2022-08-25 11:23:36 +00:00
< ? php
2022-06-06 21:30:34 +00:00
2022-08-25 11:23:36 +00:00
define ( 'GAME' , true );
2022-06-06 21:30:34 +00:00
include ( '../_incl_data/__config.php' );
include ( '../_incl_data/class/__db_connect.php' );
2022-08-25 11:23:36 +00:00
$filter = new Filter ();
$u = User :: start ();
2022-06-06 21:30:34 +00:00
include ( '_forum.class.php' );
2022-08-25 11:23:36 +00:00
$url = explode ( '?' , $_SERVER [ " REQUEST_URI " ]);
if ( isset ( $url [ 1 ])) {
$i = 0 ;
$x = explode ( '&' , $url [ 1 ]);
while ( $i < count ( $x )) {
$x2 = explode ( '=' , $x [ $i ]);
if ( is_array ( $x2 )) {
if ( ! isset ( $x2 [ 1 ])) {
$x2 [ 1 ] = true ;
}
$_GET [ $x2 [ 0 ]] = $x2 [ 1 ];
} else {
$_GET [ $x [ $i ]] = true ;
}
$i ++ ;
}
2022-06-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00:00
if ( isset ( $_GET [ 'page' ])) {
$_GET [ 'page' ] = round (( int ) $_GET [ 'page' ]);
if ( $_GET [ 'page' ] < 1 ) {
$_GET [ 'page' ] = 1 ;
}
} else {
$_GET [ 'page' ] = 1 ;
2022-06-06 21:30:34 +00:00
}
$f -> startForum ();
2022-08-25 11:23:36 +00:00
if (( $f -> user [ 'align' ] > 1 && $f -> user [ 'align' ] < 2 ) || ( $f -> user [ 'align' ] > 3 && $f -> user [ 'align' ] < 4 ) || $f -> user [ 'admin' ] > 0 ) {
if ( isset ( $_GET [ 'mod_use' ])) {
if ( ! isset ( $_COOKIE [ 'mod' ])) {
setcookie ( 'mod' , true , time () + 60 * 60 * 24 * 30 );
$_COOKIE [ 'mod' ] = true ;
} else {
setcookie ( 'mod' , true , time () - 60 * 60 * 24 * 30 );
unset ( $_COOKIE [ 'mod' ]);
}
} elseif ( isset ( $_GET [ 'mod_use2' ]) && $f -> user [ 'admin' ] > 0 ) {
if ( ! isset ( $_COOKIE [ 'mod2' ])) {
setcookie ( 'mod2' , true , time () + 60 * 60 * 24 * 30 );
$_COOKIE [ 'mod2' ] = true ;
} else {
setcookie ( 'mod2' , true , time () - 60 * 60 * 24 * 30 );
unset ( $_COOKIE [ 'mod2' ]);
}
}
$mod = 'on' ;
$mod2 = 'off' ;
if ( isset ( $_COOKIE [ 'mod' ])) {
$mod = 'off' ;
$f -> mod = 1 ;
}
if ( isset ( $_COOKIE [ 'mod2' ]) && $f -> user [ 'admin' ] > 0 ) {
$mod2 = 'on' ;
$f -> user [ 'admin' ] = 0 ;
}
2022-06-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00:00
if ( isset ( $f -> user [ 'id' ])) {
if ( isset ( $_POST [ 'add_otv_adm' ]) && (( $f -> user [ 'align' ] > 1 && $f -> user [ 'align' ] < 2 ) || ( $f -> user [ 'align' ] > 3 && $f -> user [ 'align' ] < 4 ) || $f -> user [ 'admin' ] > 0 )) {
$f -> admintopmsg (
round (( int ) $_GET [ 'read' ]), round (( int ) $_POST [ 'add_otv_adm' ]), $_POST [ 'text2_adm' ], 'Red' ,
round (( int ) $_POST [ 'adminname_adm' ])
);
} elseif ( isset ( $_POST [ 'add_top' ])) {
$add = $f -> addnewtop (
$_POST [ 'title' ], $_POST [ 'text' ], $_POST [ 'icon' ], time (), $f -> user [ 'login' ], $f -> user [ 'id' ],
$_POST [ 'add_top' ], - 1
);
if ( $add > 0 ) {
2023-01-10 16:29:32 +00:00
$fnt = 'Н а форуме, в разделе "Новости" опубликована новая статья "<b>' . $_POST [ 'title' ] . '</b>". <a href=https://' . $c [ 'host' ] . '/forum?read=' . $add . ' target=_blank \>Читать далее</a>' ;
2023-01-28 02:24:37 +00:00
$cmsg = new ChatMessage ();
$cmsg -> setText ( $fnt );
$cmsg -> setType ( 45 );
( new Chat ()) -> sendMsg ( $cmsg );
2022-08-25 11:23:36 +00:00
}
2023-01-28 02:24:37 +00:00
2022-08-25 11:23:36 +00:00
} elseif ( isset ( $_POST [ 'add_otv' ])) {
$addTo = mysql_fetch_array (
mysql_query (
'SELECT `id`,`time`,`delete`,`fid` FROM `forum_msg` WHERE `id` = "' . mysql_real_escape_string (
$_POST [ 'add_otv' ]
) . '" LIMIT 1'
)
);
if ( isset ( $addTo [ 'id' ])) {
$add = $f -> addnewtop (
'' , $_POST [ 'text2' ], 0 , time (), $f -> user [ 'login' ], $f -> user [ 'id' ], $addTo [ 'fid' ], $addTo [ 'id' ]
);
}
}
2022-06-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00:00
if ( isset ( $_GET [ 'read' ]) && $f -> mod == 1 ) {
if ( isset ( $_GET [ 'trm' ]) && (( $f -> user [ 'align' ] > 1 && $f -> user [ 'align' ] < 2 ) || ( $f -> user [ 'align' ] > 3 && $f -> user [ 'align' ] < 4 ) || $f -> user [ 'admin' ] > 0 )) {
$f -> actionSee ( 9 );
} elseif ( isset ( $_GET [ 'delete_msg' ]) && (( $f -> user [ 'align' ] >= 1.5 && $f -> user [ 'align' ] < 2 ) || ( $f -> user [ 'align' ] >= 3.05 && $f -> user [ 'align' ] < 4 ) || $f -> user [ 'admin' ] > 0 )) {
$f -> actionSee ( 8 );
} elseif ( isset ( $_GET [ 'delete' ]) && isset ( $f -> see [ 'id' ]) && (( $f -> user [ 'align' ] >= 1.5 && $f -> user [ 'align' ] < 2 ) || ( $f -> user [ 'align' ] >= 3.05 && $f -> user [ 'align' ] < 4 ) || $f -> user [ 'admin' ] > 0 )) {
$f -> actionSee ( 1 );
} elseif ( isset ( $_GET [ 'nocomment' ]) && isset ( $f -> see [ 'id' ]) && (( $f -> user [ 'align' ] >= 1.5 && $f -> user [ 'align' ] < 2 ) || ( $f -> user [ 'align' ] >= 3.05 && $f -> user [ 'align' ] < 4 ) || $f -> user [ 'admin' ] > 0 )) {
$f -> actionSee ( 2 );
} elseif ( isset ( $_GET [ 'fixed' ]) && isset ( $f -> see [ 'id' ]) && (( $f -> user [ 'align' ] >= 1.5 && $f -> user [ 'align' ] < 2 ) || ( $f -> user [ 'align' ] >= 3.05 && $f -> user [ 'align' ] < 4 ) || $f -> user [ 'admin' ] > 0 )) {
$f -> actionSee ( 7 );
} elseif ( isset ( $_GET [ 'onlyadmin' ]) && isset ( $f -> see [ 'id' ]) && $f -> user [ 'admin' ] > 0 ) {
$f -> actionSee ( 3 );
} elseif ( isset ( $_GET [ 'onlymoder' ]) && isset ( $f -> see [ 'id' ]) && (( $f -> user [ 'align' ] >= 3.05 && $f -> user [ 'align' ] < 4 ) || ( $f -> user [ 'admin' ] > 0 && $_GET [ 'onlymoder' ] == 2 ))) {
$f -> actionSee ( 5 );
} elseif ( isset ( $_GET [ 'onlymoder' ]) && isset ( $f -> see [ 'id' ]) && (( $f -> user [ 'align' ] >= 1.5 && $f -> user [ 'align' ] < 2 ) || ( $f -> user [ 'admin' ] > 0 && $_GET [ 'onlymoder' ] == 1 ))) {
$f -> actionSee ( 4 );
} elseif ( isset ( $_GET [ 'onlyall' ]) && isset ( $f -> see [ 'id' ]) && (( $f -> user [ 'align' ] >= 1.5 && $f -> user [ 'align' ] < 2 ) || ( $f -> user [ 'align' ] >= 3.05 && $f -> user [ 'align' ] < 4 ) || $f -> user [ 'admin' ] > 0 )) {
$f -> actionSee ( 6 );
}
2022-06-06 21:30:34 +00:00
}
2023-01-28 02:24:37 +00:00
$dost = [
0 => 'всем пользователям' ,
1 => 'только чтение' ,
2 => 'только для Ангелов' ,
3 => 'только для Паладинов' ,
4 => 'только для Тарманов' ,
];
2022-06-06 21:30:34 +00:00
?>
<! DOCTYPE html >
< html >
< head >
2023-01-28 02:24:37 +00:00
2023-03-31 18:30:14 +00:00
< link rel = " canonical " href = " /forum " />
2023-01-10 16:29:32 +00:00
< title > Форум браузерной онлайн игры Новый «Бойцовский клуб» </ title >
2022-08-25 11:23:36 +00:00
< meta name = " description "
2023-01-10 16:29:32 +00:00
content = " Здесь участники проекта New Combats ? имеют возможность обсудить любые игровые темы, посвященные игре БК. Присоединяйтесь к общению с игроками популярной MMORPG. " />
2022-08-25 11:23:36 +00:00
< meta name = " keywords "
2023-01-10 16:29:32 +00:00
content = " Бойцовский клуб играть, бойцовский клуб, Combats.com, старый бойцовский клуб, игра бойцовский клуб, играть в комбатс, комбатс, браузерная онлайн игра, Acombats, старый БК, играть в старый БК, oldcombats, онлайн мир, маг, likebk, Comabts, legbk, acomabts.com, гайд крит, гайд уворот, гайд танк, гайд крит " />
2022-08-25 11:23:36 +00:00
< meta name = " viewport " content = " width=device-width, initial-scale=0.5, maximum-scale=1.0, user-scalable=no " >
< script src = " https://<?= $c['host'] ?>/js/jquery.js " ></ script >
< script src = " https://<?= $c['host'] ?>/js/jquery.zclip.js " ></ script >
< script >
$ . ajaxSetup ({ cache : false });
$ ( window ) . error ( function () {
return true ;
});
</ script >
< script src = " https://<?= $c['host'] ?>/js/interface.js " ></ script >
< script src = " https://<?= $c['host'] ?>/js/jqueryrotate.js " ></ script >
2022-06-06 21:30:34 +00:00
2023-01-28 02:24:37 +00:00
< link rel = " stylesheet " href = " https://<?= $c['host'] ?>/css/windows.css " />
2022-08-25 11:23:36 +00:00
< style type = " text/css " >
<!--
html {
width : 100 % ;
height : 100 % ;
}
2022-06-06 21:30:34 +00:00
2022-08-25 11:23:36 +00:00
img {
border : none ;
}
2022-06-06 21:30:34 +00:00
2022-08-25 11:23:36 +00:00
body {
width : 100 % ;
height : 100 % ;
2023-01-28 02:24:37 +00:00
margin : 0 ;
2022-08-25 11:23:36 +00:00
background - color : #3D3D3B;
font - size : 10 pt ;
font - family : Verdana , Helvetica , Arial , Tahoma , sans - serif ;
}
2022-06-06 21:30:34 +00:00
2022-08-25 11:23:36 +00:00
#header {
width : 100 % ;
height : 135 px ;
text - align : center ;
2023-03-31 18:30:14 +00:00
background - image : url ( / forum_script / img / line_capitalcity . jpg );
2022-08-25 11:23:36 +00:00
}
2022-06-06 21:30:34 +00:00
2022-08-25 11:23:36 +00:00
#footer {
width : 100 % ;
text - align : center ;
2023-03-31 18:30:14 +00:00
background - image : url ( / forum_script / img / footer_capitalcity . jpg );
2022-08-25 11:23:36 +00:00
background - repeat : repeat - x ;
padding - top : 13 px ;
background - color : #000000;
}
#main {
width : 100 % ;
text - align : center ;
}
#leftground {
2023-03-31 18:30:14 +00:00
background - image : url ( / forum_script / img / leftground . jpg );
2022-08-25 11:23:36 +00:00
}
. text {
font - weight : normal ;
/* font-size: 13px; */
font - size : 10 pt ;
color : #000000;
font - family : Verdana , Helvetica , Arial , Tahoma , sans - serif ;
}
H3 {
font - weight : bold ;
/* font-size: 16px; */
font - size : 12 pt ;
color : #8f0000;
font - family : Verdana , Helvetica , Arial , Tahoma , sans - serif ;
text - align : center ;
}
. answ1 {
}
. answ1 : hover {
background - color : #EBDCA0;
2023-03-31 18:30:14 +00:00
background - image : url ( / forum_script / img / ao . png );
2022-08-25 11:23:36 +00:00
cursor : pointer ;
}
. answ1h {
background - color : #EBDCA0;
2023-03-31 18:30:14 +00:00
background - image : url ( / forum_script / img / ao . png );
2022-08-25 11:23:36 +00:00
cursor : pointer ;
}
H4 {
font - weight : bold ;
/* font-size: 15px; */
font - size : 11 pt ;
margin - bottom : 5 px ;
color : #8f0000;
font - family : Verdana , Helvetica , Arial , Tahoma , sans - serif ;
}
A : link {
font - weight : normal ;
color : #524936;
text - decoration : none ;
}
a : visited {
font - weight : normal ;
color : #633525;
text - decoration : none ;
}
a : active {
font - weight : normal ;
color : #77684d;
text - decoration : none ;
}
a : hover {
color : #1E1E1E;
text - decoration : underline ;
}
. date {
font - weight : normal ;
/* font-size: 11px; */
font - size : 8 pt ;
color : #007000;
font - family : Courier , Verdana , Helvetica , Arial , Tahoma , sans - serif ;
text - decoration : none ;
}
. line1 {
border - top - width : 1 px ;
border - top - style : solid ;
border - top - color : #837B5C;
width : 100 % ;
margin - top : 7 px ;
margin - bottom : 7 px ;
}
. line2 {
border - top - width : 1 px ;
border - top - style : solid ;
border - top - color : #C4BFAA;
width : 100 % ;
margin - top : 9 px ;
margin - bottom : 9 px ;
}
. text1 {
color : #8F0000;
font - size : 12 px ;
}
. inup {
border - right : #302F2A 1px double;
border - top : #302F2A 1px double;
/* font-size: 11px; */
font - size : 8 pt ;
border - left : #302F2A 1px double;
color : #000000;
border - bottom : #302F2A 1px double;
font - family : Verdana , Helvetica , Arial , Tahoma , sans - serif ;
background - color : #DED7BD;
}
. text {
font - weight : normal ;
/* font-size: 13px; */
font - size : 10 pt ;
color : #000000;
font - family : Verdana , Helvetica , Arial , Tahoma , sans - serif ;
}
SELECT {
border - right : #b0b0b0 1pt solid;
border - top : #b0b0b0 1pt solid;
margin - top : 1 px ;
font - size : 10 px ;
margin - bottom : 2 px ;
border - left : #b0b0b0 1pt solid;
color : #191970;
border - bottom : #b0b0b0 1pt solid;
font - family : Verdana , Helvetica , Arial , Tahoma , sans - serif ;
}
TEXTAREA {
border - right : #b0b0b0 1pt solid;
border - top : #b0b0b0 1pt solid;
margin - top : 1 px ;
font - size : 10 px ;
margin - bottom : 2 px ;
border - left : #b0b0b0 1pt solid;
color : #191970;
border - bottom : #b0b0b0 1pt solid;
font - family : Verdana , Helvetica , Arial , Tahoma , sans - serif ;
}
INPUT {
border - right : #b0b0b0 1pt solid;
border - top : #b0b0b0 1pt solid;
margin - top : 1 px ;
font - size : 10 px ;
margin - bottom : 2 px ;
border - left : #b0b0b0 1pt solid;
color : #191970;
border - bottom : #b0b0b0 1pt solid;
font - family : Verdana , Helvetica , Arial , Tahoma , sans - serif ;
}
pages a {
color : #5b3e33;
padding : 1 px 3 px 1 px 3 px ;
}
pages u {
padding : 1 px 3 px 1 px 3 px ;
color : #6f0000;
font - weight : bold ;
}
pages a : hover {
background - color : #FFFFFF;
}
div . fixed_topik {
background - color : #EBDCA0;
2023-03-31 18:30:14 +00:00
background - image : url ( / forum_script / img / ao . png );
2022-08-25 11:23:36 +00:00
background - repeat : repeat - x ;
- webkit - border - radius : 8 px ;
- moz - border - radius : 8 px ;
border - radius : 8 px ;
- ms - border - radius : 8 px ;
margin - top : 2 px ;
margin - bottom : 2 px ;
padding : 5 px ;
}
div . fixed_topik_in {
background - color : #EBDCA0;
2023-03-31 18:30:14 +00:00
background - image : url ( / forum_script / img / ao . png );
2022-08-25 11:23:36 +00:00
background - repeat : repeat - x ;
margin - right : 120 px ;
- webkit - border - radius : 8 px ;
- moz - border - radius : 8 px ;
border - radius : 8 px ;
- ms - border - radius : 8 px ;
padding : 5 px ;
}
. btnAdm {
display : inline - block ;
background - color : #ebdda4;
border : 1 px solid #cabb80;
margin : 1 px 1 px - 5 px 1 px ;
}
. btnAdm img {
padding : 5 px ;
display : block ;
float : left ;
}
. btnAdm img : hover {
background - color : #c1b278;
}
-->
</ style >
< script >
2023-06-11 11:50:52 +00:00
let c = {
2022-08-25 11:23:36 +00:00
url : '<?=$c[' host ']?>' ,
img : '<?=$c[' img ']?>' ,
uid : < ? = ( 0 + $f -> user [ 'id' ]) ?> ,
login : '<?=$f->user[' login ']?>' ,
city : '<?=$f->user[' city ']?>' ,
lvl : < ? = ( 0 + $f -> user [ 'level' ]) ?> ,
rnd : '1' ,
filter : 0 ,
time : < ? = time () ?> ,
pl : 0 ,
align : < ? = ( 0 + $f -> user [ 'align' ]) ?> ,
clan : < ? = ( 0 + $f -> user [ 'clan' ]) ?> ,
admin : < ? = ( 0 + $f -> user [ 'admin' ]) ?> ,
sound : 0 ,
money : 0
}, sd4key = " 0f27a8a6a79921703aee0ba6ff02e4c2 " , lafstReg = {}, enterUse = 0 ;
function ctest ( city ) {
2023-06-11 11:50:52 +00:00
if ( city !== c [ 'city' ]) {
2022-08-25 11:23:36 +00:00
top . location = 'club' ;
}
}
2023-06-11 11:50:52 +00:00
let key_actions = {};
2022-06-06 21:30:34 +00:00
<!--
2022-08-25 11:23:36 +00:00
function MM_jumpMenu ( targ , selObj , restore ) { //v3.0
eval ( targ + " .location=' " + selObj . options [ selObj . selectedIndex ] . value + " ' " );
if ( restore ) selObj . selectedIndex = 0 ;
2022-06-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00:00
function acma ( id ) {
var html = '' ;
2023-03-31 18:30:14 +00:00
html += ' < form method = " post " action = " /forum?read=<?=round(
2022-08-25 11:23:36 +00:00
( int ) $_GET [ 'read' ]
) ?> &page=<?=$_GET['page']?>">' +
'<table align="center">' +
'<tr>' +
2023-01-10 16:29:32 +00:00
'<td><h4>Текст вашей записи:</h4></td>' +
2022-08-25 11:23:36 +00:00
'</tr>' +
'<tr>' +
'<td><textarea rows="8" class="inup" name="text2_adm" cols="85" wrap="virtual"></textarea></td>' +
2023-01-10 16:29:32 +00:00
'<td><input name="add2" type="button" class="btn" value=" Ж " title="Жирный">' +
2022-08-25 11:23:36 +00:00
'<br />' +
2023-01-10 16:29:32 +00:00
'<input name="add2" type="button" class="btn" value=" К " title="Наклонный">' +
2022-08-25 11:23:36 +00:00
'<br />' +
2023-01-10 16:29:32 +00:00
'<input name="add2" type="button" class="btn" value=" Ч " title="Подчеркнутый">' +
2022-08-25 11:23:36 +00:00
'<br />' +
2023-01-10 16:29:32 +00:00
'<input name="add2" type="button" class="btn" value="Код" title="Текст программы"></td>' +
2022-08-25 11:23:36 +00:00
'</tr>' +
'<tr>' +
'<td colspan="2"><table width="100%">' +
'<tr>' +
2023-01-28 02:24:37 +00:00
< ? php if ( $f -> user [ 'admin' ] > 0 ) { ?>
2023-01-10 16:29:32 +00:00
'<td><div align="left"><input name="adminname_adm" id="adminname_adm" type="checkbox" value="1" /><label for="adminname_adm"> От имени Администрации проекта.</label></div><br><br /></td>' +
2023-01-28 02:24:37 +00:00
< ? php } ?>
2023-01-10 16:29:32 +00:00
'<td width="120" align="right"><input type="submit" class="btn" value="Добавить" name="add2_adm" />' +
2022-08-25 11:23:36 +00:00
'<input type="hidden" id="add_otv_adm" name="add_otv_adm" value="' + id + '" /></td>' +
'</tr>' +
'</table></td>' +
'</tr>' +
'</table>' +
'</form>' ;
2023-01-10 16:29:32 +00:00
win . add ( 'cmments1forum' , 'Оставить запись к комментарию' , html , { 'a1' : 'alert(' + id + ');' }, 0 , 1 , 'width:630px;' );
2022-08-25 11:23:36 +00:00
}
//-->
</ script >
2022-06-06 21:30:34 +00:00
</ head >
< body >
< div id = " windows " style = " position:absolute;z-index:1101; " ></ div >
2023-03-31 18:30:14 +00:00
< div id = " header " >< a href = " /forum/ " >< img src = " /inx/newlogo.jpg " width = " 924 "
2023-12-05 01:01:04 +00:00
height = " 135 " ></ a ></ div >
2022-06-06 21:30:34 +00:00
< div id = " main " >
2022-08-25 11:23:36 +00:00
< table width = " 80% " border = " 0 " align = " center " cellpadding = " 0 " cellspacing = " 0 " >
2022-06-06 21:30:34 +00:00
< tr >
2023-03-31 18:30:14 +00:00
< td width = " 29 " background = " /forum_script/img/leftground.jpg " >& nbsp ; </ td >
2022-08-25 11:23:36 +00:00
< td width = " 1 " bgcolor = " #F2E5B1 " >& nbsp ; </ td >
< td valign = " top " bgcolor = " #F2E5B1 " align = " left " >
<!-- -->
2023-01-28 02:24:37 +00:00
< ? = ! empty ( $f -> error ) && $f -> r != - 2 ? '<b style="color: red">' . $f -> error . '</b>' : '' ?>
2022-08-25 11:23:36 +00:00
< ? php
if ( $f -> user [ 'admin' ] > 0 && isset ( $_GET [ 'aem' ])) {
?>
< div style = " margin:30px; " >
2023-01-10 16:29:32 +00:00
< p >< a href = " javascript:void(0); " onClick = " history.back(); " > Вернуться назад </ a ></ p >
2022-08-25 11:23:36 +00:00
< br >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
$ed = mysql_fetch_array (
mysql_query ( 'SELECT * FROM `forum_msg` WHERE `id` = "' . (( int ) $_GET [ 'aem' ]) . '" LIMIT 1' )
);
if ( ! isset ( $ed [ 'id' ])) {
2023-01-10 16:29:32 +00:00
echo '<br><br><center>Данные для редактирования не найдены</center><br><br>' ;
2022-08-25 11:23:36 +00:00
} else {
$fm = mysql_fetch_array (
mysql_query ( 'SELECT * FROM `forum_menu` WHERE `id` = "' . $ed [ 'fid' ] . '" LIMIT 1' )
);
2023-01-10 16:29:32 +00:00
echo 'ID: ' . $ed [ 'id' ] . '<br>Раздел: <b>' . $fm [ 'name' ] . '</b><br>' ;
2022-08-25 11:23:36 +00:00
}
?>
</ div >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
} elseif ( isset ( $_GET [ 'search' ])) {
2023-01-10 16:29:32 +00:00
//Ищем на форуме
2022-08-25 11:23:36 +00:00
if ( isset ( $_POST [ 'search' ])) {
$_GET [ 'search' ] = $_POST [ 'search' ];
} else {
$_POST [ 'search' ] = $_GET [ 'search' ];
}
$word = $_POST [ 'search' ];
2023-01-10 17:26:14 +00:00
$word = htmlspecialchars ( $word , null );
2022-08-25 11:23:36 +00:00
$limw = mysql_fetch_array (
mysql_query (
'SELECT COUNT(*) FROM `forum_msg` WHERE ( `text` LIKE "%' . mysql_real_escape_string (
$_POST [ 'search' ]
) . '%" OR `title` LIKE "%' . mysql_real_escape_string (
$_POST [ 'search' ]
) . '%" OR `login` LIKE "%' . mysql_real_escape_string (
$_POST [ 'search' ]
) . '%" ) AND `topic` < "0" AND `delete` = "0"'
)
);
$limw = $limw [ 0 ];
?>
< table width = " 100% " border = " 0 " cellspacing = " 0 " cellpadding = " 0 " >
2022-06-06 21:30:34 +00:00
< tr >
2022-08-25 11:23:36 +00:00
< td width = " 210 " valign = " top " >
< table width = " 100% " border = " 0 " cellspacing = " 0 " cellpadding = " 0 " >
< tr >
2023-03-31 18:30:14 +00:00
< td valign = " top " >< img src = " /forum_script/img/fone1.jpg "
2022-08-25 11:23:36 +00:00
width = " 118 " height = " 257 " style = " margin-left:-15px; " ></ td >
</ tr >
< tr >
< td >
2023-01-28 02:24:37 +00:00
< div align = " center " >< ? php
2022-08-25 11:23:36 +00:00
if ( ! $f -> user ) {
2023-01-10 16:29:32 +00:00
echo 'Вы не авторизованы<br><a href="https://' . $c [ 'host' ] . '/">Войти на персонажа</a>' ;
2022-08-25 11:23:36 +00:00
} else {
2023-12-05 01:01:04 +00:00
echo 'Вы вошли как: <br>' . User :: getLogin ( $u -> info [ 'id' ]) . '<br><br>' ;
2022-08-25 11:23:36 +00:00
} ?>
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
if (( $f -> user [ 'align' ] > 1 && $f -> user [ 'align' ] < 2 ) || ( $f -> user [ 'align' ] > 3 && $f -> user [ 'align' ] < 4 ) || $f -> user [ 'admin' ] > 0 ) {
2023-01-10 16:29:32 +00:00
echo '<br><a href="?r=' . $_GET [ 'r' ] . '&mod_use&rnd=' . $code . '">«Модерирование» [' . $mod . ']</a>' ;
2022-08-25 11:23:36 +00:00
}
if ( $f -> user [ 'admin' ] > 0 || $mod2 == 'on' ) {
2023-01-10 16:29:32 +00:00
echo '<br><a href="?r=' . $_GET [ 'r' ] . '&mod_use2&rnd=' . $code . '">«Администрирование» [' . $mod2 . ']</a>' ;
2022-08-25 11:23:36 +00:00
} ?>
</ div >
</ td >
</ tr >
< tr >
< td height = " 50 " valign = " bottom " >
< div align = " center " class = " text1 " >
2023-01-10 16:29:32 +00:00
< div align = " left " >< b > Конференция </ b ></ div >
2022-08-25 11:23:36 +00:00
< div class = " line1 " ></ div >
</ div >
</ td >
</ tr >
< tr >
< td >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
echo $f -> menu ; ?>
< div class = " line1 " ></ div >
</ td >
</ tr >
< tr >
< td >
< div align = " center " >< img
2023-03-31 18:30:14 +00:00
src = " /forum_script/img/icon7.gif "
2023-01-10 16:29:32 +00:00
width = " 15 " height = " 15 " title = " Смайлики " > < a href = " ?smiles=1 " > Смайлики </ a >
2022-08-25 11:23:36 +00:00
</ div >
< br >< br >< br ></ td >
</ tr >
</ table >
</ td >
< td valign = " top " >
< div align = " center " >
< table width = " 100% " border = " 0 " align = " left " cellpadding = " 0 " cellspacing = " 0 " >
< tr >
< td >
< div align = " center " >
2023-01-28 02:24:37 +00:00
< ? php
2023-01-10 16:29:32 +00:00
echo '<H3>Результаты поиска по запросу: "' . $word . '". Найдено записей ' . $limw . ' шт.</H3><br>' ; ?> </div>
2022-08-25 11:23:36 +00:00
< div align = " left " ></ div >
</ td >
</ tr >
< tr >
< td >
< table width = " 100% " border = " 0 " cellspacing = " 0 " cellpadding = " 0 " >
< tr >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
$p_list = $f -> paginator ( 1 );
?>
< td >
< div align = " left " >< img
2023-03-31 18:30:14 +00:00
src = " /forum_script/img/news.gif "
2023-01-28 02:24:37 +00:00
width = " 16 " height = " 16 " > Страницы : < ? php
2022-08-25 11:23:36 +00:00
echo $p_list ; ?> </div>
</ td >
< td width = " 250 " >
< div class = " line2 " ></ div >
2023-01-10 16:29:32 +00:00
< form method = " post " action = " ?search " > Поиск : < input
2022-08-25 11:23:36 +00:00
type = " text " value = " <?= $word ?> " name = " search " />
2023-01-10 16:29:32 +00:00
< input type = " submit " value = " найти " ></ form >
2022-08-25 11:23:36 +00:00
</ td >
</ tr >
</ table >
< div class = " line2 " ></ div >
</ td >
</ tr >
< tr >
< td valign = " top " >
< div align = " left " >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
$f -> forumData (); ?>
</ div >
</ td >
</ tr >
< tr >
< td >
< div align = " left " style = " margin-top:5px; " >< img
2023-03-31 18:30:14 +00:00
src = " /forum_script/img/news.gif "
2023-01-28 02:24:37 +00:00
width = " 16 " height = " 16 " > Страницы : < ? php
2022-08-25 11:23:36 +00:00
echo $p_list ; ?> </div>
</ td >
</ tr >
< tr >
< td >& nbsp ; </ td >
</ tr >
</ table >
</ div >
</ td >
2022-06-06 21:30:34 +00:00
</ tr >
2022-08-25 11:23:36 +00:00
</ table >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
} elseif ( $f -> r >= 1 ) {
2023-01-10 16:29:32 +00:00
//смотрим разделы
2022-08-25 11:23:36 +00:00
?>
< table width = " 100% " border = " 0 " cellspacing = " 0 " cellpadding = " 0 " >
< tr >
< td width = " 210 " valign = " top " >
< table width = " 100% " border = " 0 " cellspacing = " 0 " cellpadding = " 0 " >
< tr >
2023-03-31 18:30:14 +00:00
< td valign = " top " >< img src = " /forum_script/img/fone1.jpg "
2022-08-25 11:23:36 +00:00
width = " 118 " height = " 257 " style = " margin-left:-15px; " ></ td >
</ tr >
< tr >
< td >
2023-01-28 02:24:37 +00:00
< div align = " center " >< ? php
2022-08-25 11:23:36 +00:00
if ( $f -> user == false ) {
2023-01-10 16:29:32 +00:00
echo 'Вы не авторизованы<br><a href="https://' . $c [ 'host' ] . '/">Войти на персонажа</a>' ;
2022-08-25 11:23:36 +00:00
} else {
2023-12-05 01:01:04 +00:00
echo 'Вы вошли как: <br>' . User :: getLogin ( $u -> info [ 'id' ]) . '<br><br>' ;
2022-08-25 11:23:36 +00:00
} ?>
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
if (( $f -> user [ 'align' ] > 1 && $f -> user [ 'align' ] < 2 ) || ( $f -> user [ 'align' ] > 3 && $f -> user [ 'align' ] < 4 ) || $f -> user [ 'admin' ] > 0 ) {
2023-01-10 16:29:32 +00:00
echo '<br><a href="?r=' . $_GET [ 'r' ] . '&mod_use&rnd=' . $code . '">«Модерирование» [' . $mod . ']</a>' ;
2022-08-25 11:23:36 +00:00
}
if ( $f -> user [ 'admin' ] > 0 || $mod2 == 'on' ) {
2023-01-10 16:29:32 +00:00
echo '<br><a href="?r=' . $_GET [ 'r' ] . '&mod_use2&rnd=' . $code . '">«Администрирование» [' . $mod2 . ']</a>' ;
2022-08-25 11:23:36 +00:00
} ?>
</ div >
</ td >
</ tr >
< tr >
< td height = " 50 " valign = " bottom " >
< div align = " center " class = " text1 " >
2023-01-10 16:29:32 +00:00
< div align = " left " >< b > Конференция </ b ></ div >
2022-08-25 11:23:36 +00:00
< div class = " line1 " ></ div >
</ div >
</ td >
</ tr >
< tr >
< td >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
echo $f -> menu ; ?>
< div class = " line1 " ></ div >
</ td >
</ tr >
< tr >
< td >
< div align = " center " >< img
2023-03-31 18:30:14 +00:00
src = " /forum_script/img/icon7.gif "
2023-01-10 16:29:32 +00:00
width = " 15 " height = " 15 " title = " Смайлики " > < a href = " ?smiles=1 " > Смайлики </ a >
2022-08-25 11:23:36 +00:00
</ div >
< br >< br >< br ></ td >
</ tr >
</ table >
</ td >
< td valign = " top " >
< div align = " center " >
< table width = " 100% " border = " 0 " align = " left " cellpadding = " 0 " cellspacing = " 0 " >
< tr >
< td >
< div align = " center " >
2023-01-28 02:24:37 +00:00
< ? php
2023-01-10 16:29:32 +00:00
echo '<H3>Конференция "' . $f -> fm [ 'name' ] . '"</H3><br><br>' . $f -> fm [ 'opisan' ]; ?> </div>
2022-08-25 11:23:36 +00:00
< div align = " left " ></ div >
</ td >
</ tr >
< tr >
< td >
< table width = " 100% " border = " 0 " cellspacing = " 0 " cellpadding = " 0 " >
< tr >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
$p_list = $f -> paginator ( 1 );
?>
< td >
< div align = " left " >< img
2023-03-31 18:30:14 +00:00
src = " /forum_script/img/news.gif "
2023-01-28 02:24:37 +00:00
width = " 16 " height = " 16 " > Страницы : < ? php
2022-08-25 11:23:36 +00:00
echo $p_list ; ?> </div>
</ td >
< td width = " 250 " >
< div class = " line2 " ></ div >
2023-01-10 16:29:32 +00:00
< form method = " post " action = " ?search " > Поиск : < input
2022-08-25 11:23:36 +00:00
type = " text " value = " " name = " search " /> < input
2023-01-10 16:29:32 +00:00
type = " submit " value = " найти " ></ form >
2022-08-25 11:23:36 +00:00
</ td >
</ tr >
</ table >
< div class = " line2 " ></ div >
</ td >
</ tr >
< tr >
< td valign = " top " >
< div align = " left " >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
$f -> forumData (); ?>
</ div >
</ td >
</ tr >
< tr >
< td >
< div align = " left " style = " margin-top:5px; " >< img
2023-03-31 18:30:14 +00:00
src = " /forum_script/img/news.gif "
2023-01-28 02:24:37 +00:00
width = " 16 " height = " 16 " > Страницы : < ? php
2022-08-25 11:23:36 +00:00
echo $p_list ; ?> </div>
</ td >
</ tr >
< tr >
< td >& nbsp ; </ td >
</ tr >
< tr >
< td >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
if ( isset ( $f -> user [ 'id' ])) { ?>
< div style = " border:1px solid #FFFFFF; margin:21px; " >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
if ( $f -> gd [ $f -> fm [ 'id' ]] != 2 && $f -> gd [ $f -> fm [ 'id' ]] != 4 && $f -> user [ 'admin' ] == 0 ) {
2023-01-10 16:29:32 +00:00
echo '<center><br>Вы не можете создавать топики в этой конференции<br><br></center>' ;
2022-08-25 11:23:36 +00:00
} elseif ( $f -> lst [ 'time' ] < time () - 60 ) { ?>
< form method = " post "
2023-03-31 18:30:14 +00:00
action = " /forum?r=<?php
2022-08-25 11:23:36 +00:00
echo $f -> r . '&rnd=' . $code . '' ; ?> ">
< table align = " center " >
< tr >
2023-01-10 16:29:32 +00:00
< td colspan = " 2 " >< h4 > Добавить свой вопрос в
форум </ h4 >
Тема сообщения
2022-08-25 11:23:36 +00:00
< input type = " text " class = " inup " name = " title "
size = " 57 " maxlength = " 70 " value = " " />
</ td >
</ tr >
< tr >
< td >< textarea rows = " 8 " class = " inup " name = " text "
cols = " 85 "
wrap = " virtual " ></ textarea >
</ td >
< td >< input name = " add " style = " width:35px; "
2023-01-10 16:29:32 +00:00
type = " button " class = " btn " value = " Ж "
title = " Жирный " >
2022-08-25 11:23:36 +00:00
< br />
< input name = " add " style = " width:35px; "
2023-01-10 16:29:32 +00:00
type = " button " class = " btn " value = " К "
title = " Наклонный " >
2022-08-25 11:23:36 +00:00
< br />
< input name = " add " style = " width:35px; "
2023-01-10 16:29:32 +00:00
type = " button " class = " btn " value = " Ч "
title = " Подчеркнутый " >
2022-08-25 11:23:36 +00:00
< br />
< input name = " add " style = " width:35px; "
2023-01-10 16:29:32 +00:00
type = " button " class = " btn " value = " Код "
title = " Текст программы " >
2022-08-25 11:23:36 +00:00
</ td >
</ tr >
< tr >
< td colspan = " 2 " >
< table width = " 100% " >
< tr >
2023-01-28 02:24:37 +00:00
< td >< ? php
2022-08-25 11:23:36 +00:00
if ( $f -> user [ 'admin' ] > 0 ) {
2023-01-10 16:29:32 +00:00
echo '<div align="left"><input name="adminname" id="adminname" type="checkbox" value="1" /><label for="adminname"> От имени Администрации проекта.</label></div><br>' ;
2022-08-25 11:23:36 +00:00
}
?>
< input type = " radio " name = " icon "
value = " 13 " checked >
2023-03-31 18:30:14 +00:00
< img src = " /forum_script/img/icon13.gif "
2022-08-25 11:23:36 +00:00
height = " 15 " width = " 15 " >
& nbsp ;
< input type = " radio " name = " icon "
value = " 14 " >
2023-03-31 18:30:14 +00:00
< img src = " /forum_script/img/icon14.gif "
2022-08-25 11:23:36 +00:00
height = " 15 " width = " 15 " >
& nbsp ;
< input type = " radio " name = " icon "
value = " 6 " >
2023-03-31 18:30:14 +00:00
< img src = " /forum_script/img/icon6.gif "
2022-08-25 11:23:36 +00:00
height = " 15 " width = " 15 " >
& nbsp ;
< input type = " radio " name = " icon "
value = " 9 " >
2023-03-31 18:30:14 +00:00
< img src = " /forum_script/img/icon9.gif "
2022-08-25 11:23:36 +00:00
height = " 15 " width = " 15 " >
& nbsp ;
< input type = " radio " name = " icon "
value = " 1 " >
2023-03-31 18:30:14 +00:00
< img src = " /forum_script/img/icon1.gif "
2022-08-25 11:23:36 +00:00
height = " 15 " width = " 15 " >
& nbsp ;
< input type = " radio " name = " icon "
value = " 10 " >
2023-03-31 18:30:14 +00:00
< img src = " /forum_script/img/icon10.gif "
2022-08-25 11:23:36 +00:00
height = " 15 " width = " 15 " >
& nbsp ;
< input type = " radio " name = " icon "
value = " 11 " >
2023-03-31 18:30:14 +00:00
< img src = " /forum_script/img/icon11.gif "
2022-08-25 11:23:36 +00:00
height = " 15 " width = " 15 " >< BR >
< input type = " radio " name = " icon "
value = " 12 " >
2023-03-31 18:30:14 +00:00
< img src = " /forum_script/img/icon12.gif "
2022-08-25 11:23:36 +00:00
height = " 15 " width = " 15 " >
& nbsp ;
< input type = " radio " name = " icon "
value = " 2 " >
2023-03-31 18:30:14 +00:00
< img src = " /forum_script/img/icon2.gif "
2022-08-25 11:23:36 +00:00
height = " 15 " width = " 15 " >
& nbsp ;
< input type = " radio " name = " icon "
value = " 3 " >
2023-03-31 18:30:14 +00:00
< img src = " /forum_script/img/icon3.gif "
2022-08-25 11:23:36 +00:00
height = " 15 " width = " 15 " >
& nbsp ;
< input type = " radio " name = " icon "
value = " 4 " >
2023-03-31 18:30:14 +00:00
< img src = " /forum_script/img/icon4.gif "
2022-08-25 11:23:36 +00:00
height = " 15 " width = " 15 " >
& nbsp ;
< input type = " radio " name = " icon "
value = " 5 " >
2023-03-31 18:30:14 +00:00
< img src = " /forum_script/img/icon5.gif "
2022-08-25 11:23:36 +00:00
height = " 15 " width = " 15 " >
& nbsp ;
< input type = " radio " name = " icon "
value = " 7 " >
2023-03-31 18:30:14 +00:00
< img src = " /forum_script/img/icon7.gif "
2022-08-25 11:23:36 +00:00
height = " 15 " width = " 15 " >
& nbsp ;
< input type = " radio " name = " icon "
value = " 8 " >
2023-03-31 18:30:14 +00:00
< img src = " /forum_script/img/icon8.gif "
2022-08-25 11:23:36 +00:00
height = " 15 " width = " 15 " >
< br /></ td >
< td align = " right " valign = " top " >
< input type = " submit " class = " btn "
2023-01-10 16:29:32 +00:00
value = " Добавить "
2022-08-25 11:23:36 +00:00
name = " add " />
< input type = " hidden " id = " key "
2023-01-28 02:24:37 +00:00
name = " key " value = " <?php
2022-08-25 11:23:36 +00:00
echo $f -> user [ 'nextAct' ]; ?> "/>
< input type = " hidden "
id = " add_top "
2023-01-28 02:24:37 +00:00
name = " add_top " value = " <?php
2022-08-25 11:23:36 +00:00
echo $f -> fm [ 'id' ]; ?> "/></td>
</ tr >
</ table >
</ td >
</ tr >
</ table >
</ form >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
} else {
2023-01-10 16:29:32 +00:00
echo '<br><center>Временное ограничение на создание топиков.<br> Осталось подождать ' . round (
2022-08-25 11:23:36 +00:00
$f -> lst [ 'time' ] + 61 - time ()
2023-01-10 16:29:32 +00:00
) . ' сек.</center><br>' ;
2022-08-25 11:23:36 +00:00
} ?>
</ div >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
} ?>
</ td >
</ tr >
</ table >
</ div >
</ td >
</ tr >
</ table >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
} elseif ( $f -> r == - 1 ) {
2023-01-10 16:29:32 +00:00
//оставляем комментарий
2022-08-25 11:23:36 +00:00
?>
< table width = " 100% " border = " 0 " cellspacing = " 0 " cellpadding = " 0 " >
< tr >
2023-03-31 18:30:14 +00:00
< td width = " 118 " valign = " top " >< img src = " /forum_script/img/fone1.jpg "
2022-08-25 11:23:36 +00:00
width = " 118 " height = " 257 " style = " margin-left:-15px; " ></ td >
< td valign = " top " >
< table width = " 100% " border = " 0 " cellspacing = " 0 " cellpadding = " 0 " >
< tr >
< td >& nbsp ; </ td >
</ tr >
< tr >
< td >
< div align = " center " >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
$url1 = mysql_fetch_array (
mysql_query (
'SELECT `id`,`title` FROM `forum_msg` WHERE `fid` = "' . $f -> see [ 'fid' ] . '" AND `topic` = "-1" AND `delete` = "0" AND `id` > ' . $f -> see [ 'id' ] . ' ORDER BY `id` ASC LIMIT 1'
)
);
$url2 = mysql_fetch_array (
mysql_query (
'SELECT `id`,`title` FROM `forum_msg` WHERE `fid` = "' . $f -> see [ 'fid' ] . '" AND `topic` = "-1" AND `delete` = "0" AND `id` < ' . $f -> see [ 'id' ] . ' ORDER BY `id` DESC LIMIT 1'
)
);
if ( isset ( $url1 [ 'id' ])) {
2023-01-10 16:29:32 +00:00
$url1 = '<a href="?read=' . $url1 [ 'id' ] . '" title="' . $url1 [ 'title' ] . '"><b>« предыдущая ветвь</b></a>' ;
2022-08-25 11:23:36 +00:00
} else {
2023-01-10 16:29:32 +00:00
$url1 = '« предыдущая ветвь' ;
2022-08-25 11:23:36 +00:00
}
if ( isset ( $url2 [ 'id' ])) {
2023-01-10 16:29:32 +00:00
$url2 = '<a href="?read=' . $url2 [ 'id' ] . '" title="' . $url2 [ 'title' ] . '"><b>следующая ветвь »</b></a>' ;
2022-08-25 11:23:36 +00:00
} else {
2023-01-10 16:29:32 +00:00
$url2 = 'следующая ветвь »' ;
2022-08-25 11:23:36 +00:00
}
?>
2023-01-28 02:24:37 +00:00
< DIV align = " center " >< ? = $url1 ?> | <A href="?r=<?php
echo $f -> fm [ 'id' ]; ?> " title="Конференция "<?php
2023-01-10 16:29:32 +00:00
echo $f -> fm [ 'name' ]; ?> ""><b>форум</b></A> | <?= $url2 ?><BR>
2022-08-25 11:23:36 +00:00
</ DIV >
</ div >
</ td >
</ tr >
< tr >
< td >& nbsp ; </ td >
</ tr >
< tr >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
$p_list = $f -> paginator ( 2 );
?>
2023-01-28 02:24:37 +00:00
< td > Страницы : < ? php
2022-08-25 11:23:36 +00:00
echo $p_list ; ?> </td>
</ tr >
< tr >
< td style = " padding-top:11px; padding-bottom:11px; " align = " left " >
< div style = " float:left " >< h4 >< img
2023-03-31 18:30:14 +00:00
src = " /forum_script/img/icon<?php
2023-01-28 02:24:37 +00:00
echo $f -> see [ 'ico' ]; ?> .gif"> <a href="?r=<?php
echo $f -> fm [ 'id' ] . '&rnd=' . $code ; ?> "><b><?php
echo $f -> fm [ 'name' ]; ?> </b></a> > <?php
2022-08-25 11:23:36 +00:00
echo $f -> see [ 'title' ]; ?> </h4></div>
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
if (( $f -> user [ 'align' ] > 1.5 || $f -> user [ 'align' ] > 3.05 || $f -> user [ 'admin' ] > 0 ) && $f -> mod == 1 ) { ?>
< div style = " float:right; " >
2023-01-28 02:24:37 +00:00
Доступ : < ? php
2022-08-25 11:23:36 +00:00
echo $dost [ $f -> see [ 'nocom' ]]; ?> <br>
< select name = " jumpTopic " id = " jumpTopic "
onChange = " MM_jumpMenu('parent',this,0) " >
2023-01-10 16:29:32 +00:00
< option selected = " selected " >--------- переместить ---------
2022-08-25 11:23:36 +00:00
</ option >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
$rtn = '' ;
$sp = mysql_query ( 'SELECT * FROM `forum_menu`' );
while ( $pl = mysql_fetch_array ( $sp )) {
if ( $pl [ 'only_admin' ] == 0 || $f -> user [ 'admin' ] > 0 ) {
$rtn .= '<option value="?read=' . $_GET [ 'read' ] . '&trm=' . $pl [ 'id' ] . '">' . $pl [ 'name' ] . '</option>' ;
}
}
echo $rtn ;
?>
</ select >< br >
< select name = " actionTopic " id = " actionTopic "
onChange = " MM_jumpMenu('parent',this,0) " >
2023-01-10 16:29:32 +00:00
< option selected >----------- действия -----------</ option >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
if ( $f -> see [ 'nocom' ] == 0 ) { ?>
2023-01-28 02:24:37 +00:00
< option value = " ?read=<?php
2022-08-25 11:23:36 +00:00
echo $_GET [ 'read' ] . '&nocomment=1&rnd=' . $code . '' ; ?> ">
2023-01-10 16:29:32 +00:00
Запретить оставлять ответы
2022-08-25 11:23:36 +00:00
</ option >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
} ?>
2023-01-28 02:24:37 +00:00
< option value = " ?read=<?php
2023-01-10 16:29:32 +00:00
echo $_GET [ 'read' ] . '&delete=1&rnd=' . $code . '' ; ?> ">удалить
топик
2022-08-25 11:23:36 +00:00
</ option >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
if ( $f -> see [ 'fixed' ] == 0 ) { ?>
2023-01-28 02:24:37 +00:00
< option value = " ?read=<?php
2022-08-25 11:23:36 +00:00
echo $_GET [ 'read' ] . '&fixed=1&rnd=' . $code . '' ; ?> ">
2023-01-10 16:29:32 +00:00
Зафиксировать топик
2022-08-25 11:23:36 +00:00
</ option >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
} else { ?>
2023-01-28 02:24:37 +00:00
< option value = " ?read=<?php
2022-08-25 11:23:36 +00:00
echo $_GET [ 'read' ] . '&fixed=1&rnd=' . $code . '' ; ?> ">
2023-01-10 16:29:32 +00:00
Убрать фиксацию топика
2022-08-25 11:23:36 +00:00
</ option >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
}
if ( $f -> see [ 'nocom' ] == 0 ) {
if ( $f -> user [ 'admin' ] > 0 ) {
?>
2023-01-28 02:24:37 +00:00
< option value = " ?read=<?php
2022-08-25 11:23:36 +00:00
echo $_GET [ 'read' ] . '&onlyadmin=1&rnd=' . $code . '' ; ?> ">
2023-01-10 16:29:32 +00:00
только для Ангелов
2022-08-25 11:23:36 +00:00
</ option >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
}
if (( $f -> user [ 'align' ] > 1.5 && $f -> user [ 'align' ] < 2 ) || $f -> user [ 'admin' ] > 0 ) {
?>
2023-01-28 02:24:37 +00:00
< option value = " ?read=<?php
2022-08-25 11:23:36 +00:00
echo $_GET [ 'read' ] . '&onlymoder=1&rnd=' . $code . '' ; ?> ">
2023-01-10 16:29:32 +00:00
только для Паладинов
2022-08-25 11:23:36 +00:00
</ option >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
}
if (( $f -> user [ 'align' ] > 3.05 && $f -> user [ 'align' ] < 4 ) || $f -> user [ 'admin' ] > 0 ) {
?>
2023-01-28 02:24:37 +00:00
< option value = " ?read=<?php
2022-08-25 11:23:36 +00:00
echo $_GET [ 'read' ] . '&onlymoder=2&rnd=' . $code . '' ; ?> ">
2023-01-10 16:29:32 +00:00
только для Тарманов
2022-08-25 11:23:36 +00:00
</ option >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
}
} else {
?>
2023-01-28 02:24:37 +00:00
< option value = " ?read=<?php
2022-08-25 11:23:36 +00:00
echo $_GET [ 'read' ] . '&onlyall=1&rnd=' . $code . '' ; ?> ">
2023-01-10 16:29:32 +00:00
разрешить оставлять ответ
2022-08-25 11:23:36 +00:00
</ option >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
}
?>
</ select >
</ div >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
} ?>
</ td >
</ tr >
< tr >
2023-01-28 02:24:37 +00:00
< td >< ? php
2022-08-25 11:23:36 +00:00
$f -> seeTopic (); ?> </td>
</ tr >
< tr >
2023-01-28 02:24:37 +00:00
< td style = " padding-top:3px; padding-bottom:3px; " align = " left " > Страницы : < ? php
2022-08-25 11:23:36 +00:00
echo $p_list ; ?> </td>
</ tr >
< tr >
2023-01-28 02:24:37 +00:00
< td style = " padding-top:3px; padding-bottom:3px; " align = " left " >< ? php
2022-08-25 11:23:36 +00:00
if ( isset ( $f -> user [ 'id' ]) || ! isset ( $f -> user [ 'id' ])) { ?>
< div style = " border:1px solid #EFEFEF; margin:21px; " >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
if ( $f -> see [ 'nocom' ] > 0 ) {
2023-01-10 16:29:32 +00:00
echo '<center><br><font color="red"><b>Обсуждение закрыто</b></font><br><br></center>' ;
2022-08-25 11:23:36 +00:00
} elseif ( $f -> see [ 'goodAdd' ] != 1 || $f -> pravasee () != 1 ) {
2023-01-10 16:29:32 +00:00
echo '<center><br>Вы не можете оставлять ответы в этом топике.<br>Попробуйте через ' . round (
2022-08-25 11:23:36 +00:00
$f -> lst [ 'time' ] + 62 - time ()
2023-01-10 16:29:32 +00:00
) . ' сек.<br><br></center>' ;
2023-01-28 02:24:37 +00:00
} elseif ( $f -> lst [ 'time' ] < time () - 60 ) { ?>
2022-08-25 11:23:36 +00:00
< form method = " post "
2023-03-31 18:30:14 +00:00
action = " /forum?read=<?php
2022-08-25 11:23:36 +00:00
echo $f -> see [ 'id' ] . '&rnd=' . $code . '' ; ?> ">
< table align = " center " >
< tr >
2023-01-10 16:29:32 +00:00
< td colspan = " 2 " >< h4 > Добавить свой ответ </ h4 ></ td >
2022-08-25 11:23:36 +00:00
</ tr >
< tr >
< td >< textarea rows = " 8 " class = " inup " name = " text2 "
cols = " 85 " wrap = " virtual " ></ textarea >
</ td >
< td >< input name = " add2 " type = " button " class = " btn "
2023-01-10 16:29:32 +00:00
value = " Ж " title = " Жирный " >
2022-08-25 11:23:36 +00:00
< br />
< input name = " add2 " type = " button " class = " btn "
2023-01-10 16:29:32 +00:00
value = " К " title = " Наклонный " >
2022-08-25 11:23:36 +00:00
< br />
< input name = " add2 " type = " button " class = " btn "
2023-01-10 16:29:32 +00:00
value = " Ч " title = " Подчеркнутый " >
2022-08-25 11:23:36 +00:00
< br />
< input name = " add2 " type = " button " class = " btn "
2023-01-10 16:29:32 +00:00
value = " Код " title = " Текст программы " ></ td >
2022-08-25 11:23:36 +00:00
</ tr >
< tr >
< td colspan = " 2 " >
< table width = " 100% " >
< tr >
2023-01-28 02:24:37 +00:00
< td >< ? php
2022-08-25 11:23:36 +00:00
if ( $f -> user [ 'admin' ] > 0 ) {
2023-01-10 16:29:32 +00:00
echo '<div align="left"><input name="adminname" id="adminname" type="checkbox" value="1" /><label for="adminname"> От имени Администрации проекта.</label></div><br>' ;
2022-08-25 11:23:36 +00:00
}
?> <br/></td>
< td width = " 120 " align = " right " >< input
type = " submit " class = " btn "
2023-01-10 16:29:32 +00:00
value = " Добавить "
2022-08-25 11:23:36 +00:00
name = " add2 " />
< input type = " hidden " id = " key2 "
2023-01-28 02:24:37 +00:00
name = " key2 " value = " <?php
2022-08-25 11:23:36 +00:00
echo $f -> user [ 'nextAct' ]; ?> "/>
< input type = " hidden " id = " add_otv "
2023-01-28 02:24:37 +00:00
name = " add_otv " value = " <?php
2022-08-25 11:23:36 +00:00
echo $f -> see [ 'id' ]; ?> "/></td>
</ tr >
</ table >
</ td >
</ tr >
</ table >
</ form >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
} else {
2023-01-10 16:29:32 +00:00
echo '<br><center>Временное ограничение на добавление ответов.</center><br>' ;
2022-08-25 11:23:36 +00:00
} ?>
</ div >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
} ?> </td>
</ tr >
</ table >
</ td >
< td width = " 118 " valign = " top " >& nbsp ; </ td >
</ tr >
2022-06-06 21:30:34 +00:00
</ table >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
} elseif ( $f -> r == - 2 ) {
2023-01-10 16:29:32 +00:00
//МЕГА-выводим ошибку
2022-08-25 11:23:36 +00:00
?>
< table width = " 100% " height = " 500 " border = " 0 " cellspacing = " 0 " cellpadding = " 0 " >
< tr >
2023-01-28 02:24:37 +00:00
< td valign = " middle " align = " center " >
< strong > Ошибка :</ strong > < ? = $f -> error ?> <br>
2023-03-31 18:30:14 +00:00
< a href = " /forum?rnd=<?= $code ?> " > Вернуться на форум </ a >
2023-01-28 02:24:37 +00:00
</ td >
2022-08-25 11:23:36 +00:00
</ tr >
</ table >
2023-01-28 02:24:37 +00:00
< ? php
2022-08-25 11:23:36 +00:00
} ?>
<!-- -->
</ td >
< td width = " 1 " bgcolor = " #F2E5B1 " >& nbsp ; </ td >
2023-03-31 18:30:14 +00:00
< td width = " 24 " background = " /forum_script/img/rightground.jpg " >& nbsp ; </ td >
2022-06-06 21:30:34 +00:00
</ tr >
2022-08-25 11:23:36 +00:00
</ table >
2022-06-06 21:30:34 +00:00
</ div >
< div id = " footer " >
2022-08-25 11:23:36 +00:00
< table width = " 100% " border = " 0 " align = " center " cellpadding = " 0 " cellspacing = " 0 " >
< tr >
2024-04-29 14:22:11 +00:00
< td width = " 10% " scope = " col " ></ td >
2022-08-25 11:23:36 +00:00
< td width = " 80% " scope = " col " >
2024-04-29 14:22:11 +00:00
< div align = " center " >< ? = \Core\Config :: getCopyright () ?> </div>
2022-08-25 11:23:36 +00:00
</ td >
< td width = " 10% " scope = " col " >& nbsp ; </ td >
</ tr >
</ table >
2022-06-06 21:30:34 +00:00
</ div >
</ body >
</ html >