Îðëà
Îáëàñòè
Êîìïàíèé
Ïîëüçîâàòåëè
Ãàëåðåÿ
Ôèêñèðîâàííûå íîâîñòè
Îðëà
Îòçûâû î ôèðìàõ
Òàðèôû
Ïîëüçîâàòåëè
Îáëàñòè
Áàíêîìàòû
Òîðãîâûå òî÷êè
Äîñêà îáúÿâëåíèé
Êóðñû âàëþò
Ñêèäêè
îðãàíèçàöèè Îðëà
îðãàíèçàöèè îáëàñòè
òîâàðû
ñàéòû
ñàéòû Îðåë
Äàííûå
Ðàçäåëû
Ïîèñê
Ïîèñê çàïðîñû
Ñòàòèñòèêà
Ïîêàçû êàòàëîãà îðãàíèçàöèé
Ñòàòèñòèêà êëèåíòû
Ïîëüçîâàòåëè
Ñàéòû
Óïðàâëåíèå ñàéòîì
Àíêåòà
Àïòåêè
Àôèøà
Àôèøà íîâàÿ
Áàííåðû
Áèçíåñ >
Âèêòîðèíà
Ãîëîñîâàíèå
Ãîñòü íà ñàéòå
Èñòîðèè
Êàëåíäàðü ñîáûòèé
Êàòàëîãè >
Êîíêóðñ êðàñîòû
Êîíêóðñ àóäèî
Êîíñóëüòàöèè
Ìåíþ
Íîâîå íà ñàéòå
Íîâîñòè >
Îðãàíèçàöèè >
Ïðîãðàììà ÒÂ
Ïóáëèêàöèè
Ðàçäåëû ñàéòà
Ðàññûëêà
Ðåñòîðàíû
Ñåêðåò ôèðìû >
Ñåðâèñû >
Ññûëêè
Òåñòû
Ôàéëîâûé ìåíåäæåð
Ôîðóì
Ôîòîãàëåðåÿ
Îáðàòíàÿ ñâÿçü
Íåäâèæèìîñòü
Íîâûé ãîä
Òåêñòû
Ïîëüçîâàòåëè
Þðèäè÷åñêèé ðåéòèíã
Îòçûâû íà òîâàðû
Áàí ïîëüçîâàòåëåé
Æàëîáû
Íîâûå òåñòû
Êîðîíàâèðóñ
Ôàéëîâûé ìåíåäæåð
Èìÿ ôàéëà
forum_sql_new.php
Ñîäåðæèìîå
<?php //@setlocale(LC_ALL, 'ru_RU.CP1251'); ini_set('error_reporting', E_WARNING); require_once (__DIR__ . '/../autoloader.php'); ini_set('display_errors', 'Off'); require_once("../restoran/Censure.php"); $base_url = "../"; require_once($base_url . "func.php"); $l = db_connect(); sql('set names utf8'); $ip = getenv("REMOTE_ADDR"); $ip2 = getIp(); if ($_REQUEST['login1'] <> "" && $_REQUEST['pass1'] <> "") { $_REQUEST['sidp'] = md5($_REQUEST['login1'] . md5($_REQUEST['pass1']) . "jflksadjjdseswaa"); } session_start(); use app\forum\ForumArticleImageRepository; use app\forum\entity\ForumArticleImage; use app\forum\action\ForumArticleImagesSaverAction; use app\forum\ForumArticleRepository; use app\forum\notifications\moderators\NewMessageNotification; use app\captcha\CaptchaService; $forumArticleImageRepository = new ForumArticleImageRepository(); $forumArticleRepository = new ForumArticleRepository(); if (App::$user->isGuest() == true) { $id_user_sess = ANONYMOS; $keystring = isset($_POST['keystring']) ? $_POST['keystring'] : ''; if (!CaptchaService::validate($keystring)) { echo "<script type='text/javascript'>alert('Заполните правильно каптчу');history.go(-1);</script>"; exit(); } } // пытаем�� авторизовать�� if (App::$user->isGuest() == true) { if (isset($_POST['login1']) && isset($_POST['pass1'])) { $user = \app\users\User::findOne([ 'name' => App::$request->post('login1'), 'pass' => md5(App::$request->post('pass1')) ]); if ($user == null) { // попробуем проверить, // может пользователь решил авторизовать�� на �айте � помощью �лектронной почты // ведь мы же можем теперь так авторизовывать! $user = \app\users\User::findOne([ 'mail' => App::$request->post('login1'), 'pass' => md5(App::$request->post('pass1')) ]); if ($user == null) { \app\users\BadAuthUser::addUser( App::$request->post('login1', null), App::$request->post('pass1', null) ); } } if ($user == null) { echo "<script type='text/javascript'>alert('Пользователь не найден');history.go(-1);</script>"; exit; } else { App::$user->login($user->id); $id_user_sess = App::$user->getId(); } } } if (isset($_SESSION['user_id']) == false) { $_REQUEST['an'] = ANONYMOS; } else { $id_user_sess = $_SESSION['user_id']; } if($id_user_sess == ANONYMOS){ if(preg_match('/(админ|admin|модератор)/i',$_REQUEST['fio'])){ echo "<script type='text/javascript'>alert('Данный логин запрещен админи�трацией �айта!');history.go(-1);</script>"; } } $access = new \app\forum\Access(); if ($access->isAllowTimeToSendMessage() == false) { echo "<script type='text/javascript'>alert('". App::$config['messages']['allow_time_to_posting'] ."');history.go(-1);</script>"; exit; } $_REQUEST['f'] = intval($_REQUEST['f']); $izgoy = false; $ban_ip=sqlval("select count(*) from block_ip where (ip='".$ip."' or ip = '".$ip2."' or id_user = '".$id_user_sess."') and forum = '1'"); //var_dump("select count(*) from block_ip where (ip='".$ip."' or ip = '".$ip2."' or id_user = '".$id_user_sess."') and forum = '1'"); //exit; if ($ban_ip[0] >= 1) { $izgoy = true; } $forum = sqlval("select id, is_closed, view_index from forum where id='{$_REQUEST['f']}'"); if ($forum['id'] == '') { echo " <html> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> <script> alert('Раздел форума не �уще�твует'); location.href='index.php'; </script> </head> </html>"; exit; } if ($forum['is_closed'] == 1) { echo " <html> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> <script> alert('Раздел форума закрыт'); location.href='index.php'; </script> </head> </html>"; exit; } $max_u = 10; $size = 700; $f = $_REQUEST['f']; $_REQUEST['id'] = intval($_REQUEST['id']); $id = intval($_REQUEST['id']); $_REQUEST['tema'] = mysql_real_escape_string(strip_tags(str_replace("'","",$_REQUEST['tema']))); $tema = $_REQUEST['tema']; $id_parent = intval($_REQUEST['id_parent']); $_REQUEST['id_parent'] = intval($_REQUEST['id_parent']); $r_moder = sqlval("select max(rightf) as rightf from forum_moder where id_user='" . $id_user_sess . "'"); if (!$r_moder) error(); $status_right = sqlval("select status_right from forum where id='" . $_REQUEST['f'] . "'"); if (!$status_right) error(); if ($status_right['status_right'] <> 0) { if (($admlist[$login] < $status_right['status_right']) and ($r_moder['rightf'] < $status_right['status_right'])) { echo "У ва� не хватает прав дл� работы � �тим форумом!"; exit; } } function canPostYoutube($id){ return true; /* try{ if(!(int)$id)throw new Exception(); $user = sqlval("SELECT id_ranks FROM user WHERE id=$id LIMIT 1"); if(!is_array($user))throw new Exception(); if(!in_array($user['id_ranks'],array(0,7)))return true; $id_users = fetchAll("SELECT fr.id_user FROM forum_respect fr INNER JOIN user u ON u.id = fr.id_user WHERE fr.type_otzyv > 0 AND UNIX_TIMESTAMP(now()) - UNIX_TIMESTAMP(u.date_registr) > 365*24*3600 AND fr.id_author = $id GROUP BY fr.id_user"); if(!$id_users or !is_array($id_users))throw new Exception(); if(count($id_users)<3)throw new Exception(); $sum = 0; foreach($id_users as $key=>$id_user){ $pluses = sqlval("SELECT IF(SUM(type_otzyv) is null,0,SUM(type_otzyv)) as cnt FROM forum_respect WHERE type_otzyv > 0 AND id_author = {$id_user['id_user']}"); if($pluses['cnt']>20){ $sum++; } if($sum>=3)break; } if($sum<3)throw new Exception(); return true; }catch(Exception $e){ return false; }*/ } //\============================= function slova_proverka($text) { $text = strtolower($text); preg_match_all('/([а-��-Я]{3,})/', $text, $ok); $kol_slow = count($ok[1]); if ($kol_slow < 4) return 1; $rf_qr = "SELECT count(*) as cnt FROM `spell_prepared` WHERE "; for ($i = 0; $i < $kol_slow; $i++) { $qr_add.=$or . " form like '" . $ok[1][$i] . "' "; $or = " or "; } $rf_qr.=$qr_add; //echo $rf_qr; $kol_right = sqlval($rf_qr); if (!$kol_right) error(); $proc = ($kol_right['cnt'] / $kol_slow) * 100; // echo $proc."-".$kol_right['cnt']."-".$kol_slow; if ($proc >= 0) return 1; else return 0; return 1; } //\================================================= function prepare_post_sql($body) { global $admlist, $login, $id_user_sess, $_REQUEST; $body = \app\core\helpers\Youtube::replaceIframeToLink($body); $body = str_replace("\\\\", "[92]", $body); if ($admlist[$login] >= 800) { $body = mysql_real_escape_string($body); } else { if (strpos($body, "<iframe") <> false && strpos($body, "youtube.com") === false) { $body = mysql_real_escape_string(strip_tags($body, "<object><param><embed>")); } else $body = mysql_real_escape_string(strip_tags($body, "<object><param><embed><iframe>")); } $kol_q1 = substr_count($body, "[quote]"); $kol_q2 = substr_count($body, "[/quote]"); for ($i = 0; $i < $kol_q1; $i++) { $pos = strpos($body, "[quote]", $ofs); if (is_int($pos)) { // нашли первую $pos2 = strpos($body, "[/quote]", $ofs2); if (is_int($pos2)) { // нашли вторую $citata[$i] = substr($body, $pos + 7, $pos2 - $pos - 7); $str1 = "[quote]" . $citata[$i] . "[/quote]"; // разбить на �лова //preg_match_all('/([a-zA-Zа-��-Я]+)/',$citata[$i],$ok); $sql_slova = ""; // for ($j=0; $j<count($ok[1]); $j++) { // $sql_slova.=" and articl.body like '%".$ok[1][$j]."%' "; // } $sql_slova.=" and articl.body like '%" . trim($citata[$i]) . "%' "; $r_author_citat = sqlval("select user.name as name from user, articl where id_author=user.id and articl.id_forum='" . intval($_REQUEST['f']) . "' and articl.id_parent='" . intval($_REQUEST['id']) . "' " . $sql_slova . " order by articl.data limit 0,1"); if ($r_author_citat['name'] <> "") $str_repl = "[quote=" . $r_author_citat['name'] . "]" . $citata[$i] . "[/quote]"; else $str_repl="[quote]" . $citata[$i] . "[/quote]"; $body = str_replace($str1, $str_repl, $body); } } $ofs = $pos + 7; $ofs2 = $pos2 + 8; } $myIdUser = sqlval("SELECT id FROM user WHERE name='{$login}'"); $okDateUser1 = fetchAll("SELECT distinct `id_user` FROM `forum_respect` WHERE `id_author`={$myIdUser[0]} and type_otzyv > 0"); $arr=array(); foreach($okDateUser1 as $i=>$v){ $arr[]=$v["id_user"]; } $okDateUser1 = fetchAll("SELECT id FROM user WHERE YEAR(`date_registr`)+1<=YEAR(CURDATE()) and id in (".implode(',',$arr).")"); $cnt = 0; foreach($okDateUser1 as $key => $user) { $cnt_respect_plus=sqlval("select count(*) from forum_respect where id_author='{$user['id']}' and type_otzyv > 0"); if ($cnt_respect_plus[0]>20) { $cnt++; // - cnt - нужное чи�ло } } $body = cutLinksReg($id_user_sess,$body); return $body; } function cutLinksUnreg($body){ $body = preg_replace('/\[url=.*?\].*?\[\/url\]/is','',$body); preg_match_all('/\[img\].*?\[\/img\]/is',$body,$match); preg_match_all('/<iframe.*?><\/iframe>/is',$body,$match1); if(isset($match[0]) and count($match[0])>0){ $body = preg_replace('/\[img\].*?\[\/img\]/is','~hash~',$body); } if(isset($match1[0]) and count($match1[0])>0){ $body = preg_replace('/<iframe.*?><\/iframe>/is','~ytb~',$body); } $body = preg_replace('/((https?|ftp)\:\/\/)?(www\.)?[a-z0-9а-�-]*?\.([a-z0-9а-�-]*?\.){0,1}(aero|arpa|asia|biz|cat|com|coop|edu|gov|info|int|jobs|mil|mobi|museum|name|net|org|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bl|bm|bn|bo|bq|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mf|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|рф|бг)\/?/is','',$body); $body = strip_tags($body,'<iframe>'); if(isset($match[0]) and count($match[0])>0){ foreach($match[0] as $img){ $body=preg_replace('/~hash~/',$img,$body,1); } } if(isset($match1[0]) and count($match1[0])>0){ foreach($match1[0] as $video){ $body=preg_replace('/~ytb~/',$video,$body,1); } } return $body; } function cutLinksReg($id_user_sess,$body){ $reput=sqlval("select sum(type_otzyv) from forum_respect where id_author = '".$id_user_sess."'"); if(!$reput){error();} else{ if($reput[0]<=0){ $body = preg_replace('/\[url=.*?\].*?\[\/url\]/is','',$body); preg_match_all('/\[img\].*?\[\/img\]/is',$body,$match); preg_match_all('/<iframe.*?><\/iframe>/is',$body,$match1); if(isset($match[0]) and count($match[0])>0){ $body = preg_replace('/\[img\].*?\[\/img\]/is','~hash~',$body); } if(isset($match1[0]) and count($match1[0])>0){ $body = preg_replace('/<iframe.*?><\/iframe>/is','~ytb~',$body); } $body = preg_replace('/((https?|ftp)\:\/\/)?(www\.)?[a-z0-9а-�-]*?\.([a-z0-9а-�-]*?\.){0,1}(aero|arpa|asia|biz|cat|com|coop|edu|gov|info|int|jobs|mil|mobi|museum|name|net|org|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bl|bm|bn|bo|bq|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mf|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|рф|бг)\/?/is','',$body); $body = strip_tags($body,'<iframe>'); $body = str_replace('watch?v=', 'https://www.youtube.com/watch?v=', $body); if(isset($match[0]) and count($match[0])>0){ foreach($match[0] as $img){ $body=preg_replace('/~hash~/',$img,$body,1); } } if(isset($match1[0]) and count($match1[0])>0){ foreach($match1[0] as $video){ $body=preg_replace('/~ytb~/',$video,$body,1); } } } return $body; } } ////////////////////////////////////////////////////////////////////// end function $body = $_POST['fmessage']; //Text_Censure::parse($_POST['fmessage'], '10', '', false, '...'); $_REQUEST['fio'] = Text_Censure::parse($_REQUEST['fio'], '10', '', false, '...'); $body = str_replace("&autoplay=1","",$body); $body = str_replace("%)","% )",$body); $host_main = $abs_url; $datetime = date('Y-m-d H:i:s'); if ($id_user_sess <= 0) { echo "<script>alert('Вы не авторизованы');location.href='new_tema.php?f=" . $_REQUEST['f'] . "&id=" . $_REQUEST['id_parent'] . "&url=forum_read.php';</script>"; exit; } if($id_user_sess==ANONYMOS){//правка 2 $body = cutLinksUnreg($body); $cookie = isset($_COOKIE['sid']) ? $_COOKIE['sid'] : "";//правка 2 }else{ if (!isset($_COOKIE['sidp'])) { if (isset($_POST['login1']) && isset($_POST['pass1'])) { $_COOKIE['sidp'] = md5($_POST['login1'].md5($_POST['pass1'])."jflksadjjdseswaa"); } } $body = cutLinksReg($id_user_sess,$body); $cookie = isset($_COOKIE['sidp']) ? $_COOKIE['sidp'] : "";//правка 2 } if(!canPostYoutube($id_user_sess)){ $body = preg_replace('/<iframe.*?><\/iframe>/is',' ',$body); } if(isset($_REQUEST['fsid']) and $_REQUEST['fsid']!='' and preg_match('/^[0-9a-zA-Z]{32}$/i',$_REQUEST['fsid'])){ $fcookie = $_REQUEST['fsid']; }else{ $fcookie = ""; } if ($_POST['stick'] == "") $_POST['stick'] = 0; $img_index = ''; /////////////////////////////////////////////////////нова� тема if ($_REQUEST['not_podpis'] == 1) $podpis = 0; else $podpis=1; if ($_POST['new_tema'] == "Добавить" && $_POST['vote'] != 1) { if($id_user_sess!=ANONYMOS){ $r_prev_message_other_tema = sqlval("select id, id_author, tema, body, vote from articl where id_parent <> '" . $id_parent . "' and (UNIX_TIMESTAMP() - UNIX_TIMESTAMP(data)) < 120 order by data desc limit 0,1"); if(isNotEmptyArray($r_prev_message_other_tema)){ if($r_prev_message_other_tema['id_author']==$id_user_sess){ $result = sqlval("SELECT count(id) AS count FROM articl WHERE id_author=".$id_user_sess); if($result['count']<50){ echo "<script type='text/javascript'>function supports_html_storage(){ try { return 'localStorage' in window && window['localStorage'] !== null; } catch (e) { return false; } } if(supports_html_storage()){ localStorage.setItem('text_mes','".$body."'); } alert('В разных темах форума вы можете по�тить �ообщени� � интервалом не менее 2 минут, так как у ва� меньше 50 �ообщений на форуме.');location.href='forum_read.php?f=" . $_REQUEST['f'] . "&id=" . $_REQUEST['id_parent'] . "&twominutes=1#message_form';</script>"; exit(); } } } } //if($id_user_sess!=ANONYMOS){ $rban = sqlval("select data from forum_ban where id_user='" . $id_user_sess . "' and data > curdate() and (id_forum ='" . $_REQUEST['f'] . "' or id_forum = 0)"); if (!$rban) error(); //$r_moder=sqlval("select rightf from forum_moder where id_user='".$id_user_sess."'"); if ($_REQUEST['id_parent'] == 256136 && $admlist[$login] < 500 && $r_moder[0] < 500) { $rban['data'] = '2012'; } if ($rban['data'] <> "") { echo " <html> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> <script> alert('Вы не имеете права пи�ать �юда'); location.href='index.php'; </script> </head> </html>"; exit; } // }else{ //location.href='/news/news.php?news_id=".$_POST['id_obj']."'; $rban2 = sqlval("select data from comment_news_ban where data > curdate() and (id_user = $id_user_sess or ip ='" . $_SERVER['REMOTE_ADDR'] . "' or (sid = '{$cookie}' and fsid = '{$fcookie}'))"); if ($rban2['data'] <> "") { echo " <html> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> <script> alert('Вы забаненны до ".$rban2['data']."'); location.href='index.php'; </script> </head> </html>"; exit; } // } $close = sqlval("select close from articl where id='" . $_REQUEST['id_parent'] . "'"); if ($close['close'] == 1) { echo "<script>alert('Тема закрыта');location.href='index.php';</script>"; exit; } if (!isset($_REQUEST['f'])) { echo " <html> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> <script>alert('�е выбран форум');location.href='index.php';</script> </head> </html>"; exit; } if ($_REQUEST['id_parent'] <> "") { $r_close = sqlval("select close, id, id_forum from articl where id='" . $_REQUEST['id_parent'] . "'"); if ($r_close['close'] == 1) { echo " <html> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> <script> alert('Тема закрыта'); location.href='forum_read.php?f=" . $_REQUEST['f'] . "&id=" . $_REQUEST['id_parent'] . "';</script> </head> </html> "; exit; } if ($r_close['id'] == "") { echo " <html> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> <script> alert('Такой темы не �уще�твет. Скорее в�его тема удалена! '); location.href='forum_read.php?f=" . $_REQUEST['f'] . "&id=" . $_REQUEST['id_parent'] . "';</script> </head> </html> "; exit; } $_REQUEST["f"] = $r_close["id_forum"]; $f = $r_close["id_forum"]; } $ip = getenv("REMOTE_ADDR"); if (trim($body) == "") { echo " <html> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> <script> alert('Задайте тек�т �ообщение '); location.href='forum_read.php?f=" . $_REQUEST['f'] . "&id=" . $_REQUEST['id_parent'] . "';</script> </head> </html> "; exit; } if ($_REQUEST['id_parent'] == "") { $_REQUEST['id_parent'] = 0; if (trim($tema) == "") { echo " <html> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> <script> alert('Задайте тему '); location.href='forum_read.php?f=" . $_REQUEST['f'] . "&id=" . $_REQUEST['id_parent'] . "';</script> </head> </html> "; exit; } } if ($izgoy && $_REQUEST['f'] <> 19) { header("Location: forum_list.php?f=19"); exit; } $reput=sqlval("select sum(type_otzyv) from forum_respect where id_author = '".$id_user_sess."'"); $reput[0]=$reput[0]+10; if ($reput[0] < 0) { $r_data_articl=sqlval("select unix_timestamp(data) as udata from articl where id_author = '".$id_user_sess."' order by data desc limit 0,1"); if ($r_data_articl['udata'] > mktime(date("H")-3, date("i"), date("s"), date("m") , date("d"), date("Y"))) { echo " <html> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> <script> alert('У Ва� отрицательна� репутаци� на форуме, Вы имеете право пи�ать не более одного �ообщени� в 3 ча�а '); location.href='forum_read.php?f=" . $_REQUEST['f'] . "&id=" . $_REQUEST['id_parent'] . "';</script> </head> </html> "; exit; } } ///////////////////////////// подготовка �ообщени� $body_moder = $body; $prov_orfograf = 0; if ($prov_orfograf == 1) $syntaxis = slova_proverka($body); // проверка на �интак�и� if ($syntaxis || $prov_orfograf == 0) { $body = prepare_post_sql($body); ///////////////////////////////////////////// if ($id_parent == 0 and $f == 26) { $sql_vote = ", vote='-1' "; } else $sql_vote=""; $r_prev_message = sqlval("select id, id_author, tema, body, vote from articl where id_parent = '" . $id_parent . "' and (UNIX_TIMESTAMP() - UNIX_TIMESTAMP(data)) < 600 order by data desc limit 0,1"); if ($id_user_sess!= ANONYMOS && $r_prev_message['id_author'] == $id_user_sess && $img_index == "" && $tema == "" && $r_prev_message['vote'] == 0) { $r = sql("update articl set body=CONCAT(body,'\n\n', '" . $body . "'), ip='" . $ip . "', data='" . $datetime . "' where id = '" . $r_prev_message['id'] . "'"); $tema = $r_prev_message['tema']; $last_id = $r_prev_message['id']; } else { if ($id_user_sess == ANONYMOS) { $body=ereg_replace("[a-zA-Z]"," ",$body); } $commentParentId = (int) App::$request->post('comment_parent_id', 0); $r = sql("insert into articl set id_author='" . $id_user_sess . "', id_forum='" . $f . "', id_parent='" . $id_parent . "', tema='" . $tema . "', body='" . $body . "', email='" . $send_mail . "', ip='" . $ip . "', data='" . $datetime . "', moder='0', stick='" . $_POST['stick'] . "', images='" . $img_index . "', cookie = '{$cookie}', fcookie = '{$fcookie}', comment_parent_id = '{$commentParentId}', podpis='" . $podpis . "' " . $sql_vote); $last_id = mysql_insert_id($l); (new \app\forum\triggers\AnswerTrigger($last_id, new \app\users\UserRepository(), new \app\users\notifications\NotificationRepository())); forum_indexator($last_id, $l); if($id_user_sess == ANONYMOS){ $ip = $_SERVER["REMOTE_ADDR"]; $ip2 = getIp(); $res = sql("insert into anonim_news_fios set id_articl=$last_id, fio = '{$_REQUEST['fio']}', ip = '{$ip}', ip2 = '{$ip2}'"); } } if (!$r) { error(); } else { sql("update forum set last_post_id='{$last_id}' where id='{$f}' limit 1"); if ($id_parent == 0) { if (!empty($last_id)) { $r_par = sql("update articl set id_parent='{$last_id}' where id='{$last_id}'"); $id_parent = $last_id; } else { error(); exit; } } if ($id_parent == 0) { $id_parent = $last_id; } if (is_uploaded_file($_FILES['image_map']['tmp_name'])) $img_index = upload_foto($_FILES['image_map']['tmp_name'], 30, 50, 1, 1, $base_url . "forum/user_foto"); if ($_REQUEST['lat'] > 0 && $_REQUEST['lng'] > 0) { // добавл�ем объект на карту $r_ins_obj=sql("insert into forum_map_obj set id_articl = '".$last_id."', id_forum = '".$f."', id_parent = '".$id_parent."', lat = '".floatval($_REQUEST['lat'])."', lng = '".floatval($_REQUEST['lng'])."', image = '/forum/user_foto/".$img_index."', note = '".$body."' "); if (!$r_ins_obj) { error(); } } forum_indexator($last_id, $l); ///=================================== if ($_POST['id_obj'] <> "" && $_POST['tip_obj']) { // об�уждение конец $r_discus = sql("insert into forum_discuss (id_obj,tip_obj, id_forum, id_articl) values ('" . $_POST['id_obj'] . "', '" . $_POST['tip_obj'] . "', '" . $f . "', '" . $last_id . "')"); if (!$r_discuss) error(); } //========================================== if ($id_parent == $last_id) { /////////////////// пи�ьмо модератору forum_mail($f, $last_id, $id_parent, $id_user_sess, 1); forum_indexator($id_parent, $l); if ($status_right['status_right'] > 1) { forum_mail_moder($f, $last_id, $id_parent, $id_author['id']); } } else { // новое �ообщение $notification = new NewMessageNotification(); $notification->notify($last_id); } //include "menu.inc.php"; if ($id_parent <> $last_id) { forum_mail($f, $last_id, $id_parent, $id_author['id'], 0); } // обновить таблицу гор�чих тем if ($id_parent == $last_id) $tema_hot = $tema; else { $r_tema = sqlval("select tema from articl where id='" . $id_parent . "'"); $tema_hot = $r_tema['tema']; } if ($forum['view_index'] == 1) { $forum_name = sqlval("select name from forum where id='" . $f . "'"); $r_ins_hot = sql("replace into articl_hot set user_name='" . $_SESSION['login'] . "', tema='" . $tema_hot . "', forum_name='" . $forum_name['name'] . "', id_parent='" . $id_parent . "', id_forum='" . $f . "', data='" . $datetime . "'"); if (!$r_ins_hot) { error(); exit; } } // @TODO LEGACY!!!!! if (is_array($_FILES['photo_file'])) { for ($i=0; $i < $max_u; $i++) { if ($_FILES['photo_file']['tmp_name'][$i]!='') { $size_foto = getimagesize($_FILES['photo_file']['tmp_name'][$i]); $width = $size_foto[0]; $height = $size_foto[1]; if($width >= $height){ $new_w = $size; $coef = $height/$width; $new_h = floor($new_w * $coef); }else{ $new_h = $size; $coef = $width/$height; $new_w = floor($new_h * $coef); } if ($width > $size or $height > $size){ //$name = md5(rand(0,10000000)).'_sm'; //$name_orig = str_replace('_sm','',$name); //upload_fotos($_FILES['photo_file']['tmp_name'][$i], $name, $new_w, $new_h, $base_url . "forum/user_foto"); //upload_orig_fotos($_FILES['photo_file']['tmp_name'][$i], $name_orig, $base_url . "forum/user_foto"); $img_index = upload_foto1($_FILES['photo_file']['tmp_name'][$i], $new_w, $new_h, 1, 1, $base_url . "forum/user_foto",1); } else{ $name_foto_sm = rand(0, 1000) . $id_user_sess . translit($_FILES['photo_file']['name'][$i]); $orig = move_uploaded_file($_FILES['photo_file']['tmp_name'][$i], $base_url . "forum/user_foto/" . $name_foto_sm); } sql("insert into articl_photo values (NULL, '{$last_id}', 'forum/user_foto/{$name_foto_sm}')"); } } } // @TODO �тот код в будущем как и ве�ь forum_sql_new нужно будет отрефакторить if (isset($_POST['images']) && is_array($_POST['images'])) { $imagesInstances = []; foreach ($_POST['images'] as $image) { $imagesInstances[] = ForumArticleImage::instance([ 'article_id' => $last_id, 'image' => ltrim($image, '/') ]); } try { $forumArticle = $forumArticleRepository->findOneOrEmpty($last_id); (new ForumArticleImagesSaverAction($forumArticle, $imagesInstances))->save(); } catch (Exception $e) { // nothing } } header("Location: forum_read.php?f=" . $f . "&id=" . $id_parent . "&page=" . $_REQUEST['max_page'] . "&ofs=" . $_REQUEST['max_ofs'] . "#" . $last_id); exit; } } else { echo "<html> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> <body><br><div align=center class=\"big\"><b> Слишком много грамматиче�ких ошибок в тек�те �ообщени�.<br> </b> <form action = \"forum_read.php?f=" . $f . "&page=" . $page . "&ofs=" . $ofs . "\" method=\"post\"> <input type=\"hidden\" name=\"body\" value='" . str_replace("'", "", $body) . "'> <input type=\"submit\" value=\"И�править �ообщение\"> </form> <br> Е�ли программа некорректно ра�познала Ваше �ообщение, прошу уведомить <a href=\"/user_info.php?login_user=admin\" target=_blank>Admin</a> </div>"; } exit; } /////////////////////////////////////////////////////изменить if ($_POST['new_tema'] == "Изменить" and isset($_POST['edit_articl']) && $_POST['vote'] != 1) { $forumArticle = $forumArticleRepository->findOneOrEmpty(App::$request->post('edit_articl', 0)); $r_old_image = sqlval("select images from articl where id='" . $_POST['edit_articl'] . "'"); if (($_POST['del_image'] == 1) or ($img_index != '' && $r_old_image['images'] != '')) { if (file_exists($base_url . $r_old_image['images'])) { unlink($base_url . $r_old_image['images']); } $big_image = str_replace("_sm.", ".", $r_old_image['images']); if (file_exists($base_url . $big_image)) { unlink($base_url . $big_image); } } if ($img_index == "" && $r_old_image['images'] <> "" && $_POST['del_image'] <> 1) $img_index = $r_old_image['images']; $body = prepare_post_sql($body); $id_parent = sqlval("select id_author, id_parent, tema from articl where id='{$_POST['edit_articl']}'"); if ($id_parent) error(); if (($id_parent['id_parent'] == $_POST['edit_articl']) && ($tema == "")) $tema = $id_parent['tema']; $id_author = sqlval("select id, note from user where id='{$id_user_sess}'"); if (($admlist[$login] >= 500) or ($r_moder[0] >= 500)) { $r_pr = sql("update articl set tema='{$tema}', body='{$body}', email='{$send_mail}', stick = '{$_POST['stick']}', images='{$img_index}' , podpis='{$podpis}' where id='{$_POST['edit_articl']}'"); if ( !($admlist[$login] == 1000 && $_POST['edit_noview'] == 1) ) { $r_ins_edit=sql("insert into forum_edit (id_articl, id_user, data) values ('" . $_POST['edit_articl'] . "', '" . $id_user_sess . "', '" . date('Y-m-d H:i:s') . "')"); } $rs_count = sqlval("select count(*) from articl_photo where articl_id='{$_POST['edit_articl']}'"); $photo_count = $rs_count[0]; foreach ( $_POST['del_photo'] as $del_photo) { $del_photo = (int) $del_photo; $rs_photo = sqlval("select * from articl_photo where articl_id='{$_POST['edit_articl']}' and id='{$del_photo}'"); unlink($base_url.$rs_photo['image']); unlink($base_url.str_replace("_sm.", ".", $rs_photo['image'])); sql("delete from articl_photo where articl_id='{$_POST['edit_articl']}' and id='{$del_photo}'"); $photo_count--; } if (is_array($_FILES['photo_file'])) { for ($i=0; $i < $max_u - $photo_count; $i++) { if (is_uploaded_file($_FILES['photo_file']['tmp_name'][$i])) { $size_foto = getimagesize($_FILES['photo_file']['tmp_name'][$i]); $width = $size_foto[0]; $height = $size_foto[1]; if($width >= $height){ $new_w = $size; $coef = $height/$width; $new_h = floor($new_w * $coef); }else{ $new_h = $size; $coef = $width/$height; $new_w = floor($new_h * $coef); } if ($width > $size or $height > $size) {$img_index = upload_foto1($_FILES['photo_file']['tmp_name'][$i], $new_w, $new_h, 1, 1, $base_url . "forum/user_foto",1);} else{ $name_foto_sm = rand(0, 1000) . $id_user_sess . translit($_FILES['photo_file']['name'][$i]); $orig = move_uploaded_file($_FILES['photo_file']['tmp_name'][$i], $base_url . "forum/user_foto/" . $name_foto_sm); } sql("insert into articl_photo values (NULL, '{$_POST['edit_articl']}', 'forum/user_foto/{$name_foto_sm}')"); } } } // @TODO �тот код в будущем как и ве�ь forum_sql_new нужно будет отрефакторить if (isset($_POST['images']) && is_array($_POST['images'])) { $imagesInstances = []; foreach ($_POST['images'] as $image) { $imagesInstances[] = ForumArticleImage::instance([ 'article_id' => $_POST['edit_articl'], 'image' => ltrim($image, '/') ]); } try { (new ForumArticleImagesSaverAction($forumArticle, $imagesInstances))->save(); } catch (Exception $e) { // nothing } } else { $forumArticleImageRepository->removeAll($forumArticle); } } else { if ( $id_parent['id_author'] == $id_user_sess ) { $r_pr = sql("update articl set tema='{$tema}', body='{$body}', email='{$send_mail}', stick = '{$_POST['stick']}', images='{$img_index}', podpis='{$podpis}' where id='{$_POST['edit_articl']}' and id_author='{$id_user_sess}'"); $r_ins_edit=sql("insert into forum_edit (id_articl, id_user, data) values ('{$_POST['edit_articl']}', '{$id_user_sess }', '" . date('Y-m-d H:i:s') . "')"); $rs_count = sqlval("select count(*) from articl_photo where articl_id='{$_POST['edit_articl']}'"); $photo_count = $rs_count[0]; foreach ( $_POST['del_photo'] as $del_photo) { $del_photo = (int) $del_photo; $rs_photo = sqlval("select * from articl_photo where articl_id='{$_POST['edit_articl']}' and id='{$del_photo}'"); unlink($base_url.$rs_photo['image']); unlink($base_url.str_replace("_sm.", ".", $rs_photo['image'])); sql("delete from articl_photo where articl_id='{$_POST['edit_articl']}' and id='{$del_photo}'"); $photo_count--; } if (is_array($_FILES['photo_file'])) { for ($i=0; $i < $max_u - $photo_count; $i++) { if (is_uploaded_file($_FILES['photo_file']['tmp_name'][$i])) { $size_foto = getimagesize($_FILES['photo_file']['tmp_name'][$i]); $width = $size_foto[0]; $height = $size_foto[1]; if($width >= $height){ $new_w = $size; $coef = $height/$width; $new_h = floor($new_w * $coef); }else{ $new_h = $size; $coef = $width/$height; $new_w = floor($new_h * $coef); } if ($width > $size or $height > $size) {$img_index = upload_foto1($_FILES['photo_file']['tmp_name'][$i], $new_w, $new_h, 1, 1, $base_url . "forum/user_foto",1);} else{ $name_foto_sm = rand(0, 1000) . $id_user_sess . translit($_FILES['photo_file']['name'][$i]); $orig = move_uploaded_file($_FILES['photo_file']['tmp_name'][$i], $base_url . "forum/user_foto/" . $name_foto_sm); } sql("insert into articl_photo values (NULL, '{$_POST['edit_articl']}', 'forum/user_foto/{$name_foto_sm}')"); } } } // @TODO �тот код в будущем как и ве�ь forum_sql_new нужно будет отрефакторить if (isset($_POST['images']) && is_array($_POST['images'])) { $imagesInstances = []; foreach ($_POST['images'] as $image) { $imagesInstances[] = ForumArticleImage::instance([ 'article_id' => $_POST['edit_articl'], 'image' => ltrim($image, '/') ]); } try { (new ForumArticleImagesSaverAction($forumArticle, $imagesInstances))->save(); } catch (Exception $e) { // nothing } } else { $forumArticleImageRepository->removeAll($forumArticle); } } } if (!$r_pr) { error(); } else { if ((($admlist[$login] >= 500) or ($r_moder[0] >= 500)) && $_POST['comment'] != '') { if ($_POST['comment_modif'] == '') { $r_ins = sql("INSERT INTO `forum_comment` VALUES(NULL, '{$id_user_sess}', '{$id_parent['id_author']}', '{$_POST['edit_articl']}', '{$f}', '{$id_parent['id_parent']}', '" . strval($_POST['comment']) . "','" . date('Y-m-d H:i:s') . "')"); if (!$r_ins) { error(); } } else { $r_upd = sql("UPDATE `forum_comment` SET `message`='" . strval($_POST['comment']) . "' WHERE `id`='" . intval($_POST['comment_modif']) . "'"); if (!$r_upd) { error(); } } } header("Location: forum_read.php?f=" . $forumArticle->getForumId() . "&id=" . $forumArticle->getRootArticleID() . "&page=" . $page . "&ofs=" . $ofs . "#" . $forumArticle->getId()); if ($_POST['edit_articl'] != "" && $_POST['edit_articl'] != 0) forum_indexator($_POST['edit_articl'], $l); exit; } exit; } if ($_POST['vote'] == 1) { if ($_POST['new_tema'] == "Изменить") { $forumArticle = $forumArticleRepository->findOneOrEmpty(App::$request->post('edit_articl', 0)); $r_old_vote = sqlval("select vote, id_author from articl where id='" . $_POST['edit_articl'] . "'"); //$r_moder=sqlval("select rightf from forum_moder where id_user='".$id_user_sess."'"); if (($admlist[$login] >= 500) or ($r_moder[0] >= 500) or ($id_user_sess == $r_old_vote['id_author'])) { $_POST['name'] = $_POST['tema']; if (strlen(trim($_POST['name'])) > 0) { $r_upd = sql("update articl set tema='{$_POST['tema']}' where id='" . $_POST['edit_articl'] . "'"); } $_POST['name'] = mysql_real_escape_string($_POST['name']); $_POST['desc_tema'] = mysql_real_escape_string($_POST['desc_tema']); // Youtube $link = $_POST['link']; $link = str_replace(['m.youtube.com', 'www.youtube.com'], 'youtube.com', $link); $link = preg_replace("/\s*[a-zA-Z\/\/:\.]*youtube.com\/watch\?v=([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i","www.youtube.com/embed/$1", $link); $link = preg_replace("/\s*[a-zA-Z\/\/:\.]*youtu.be\/([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i","www.youtube.com/embed/$1", $link); if ($link == $_POST['link']){ $link = ""; } // } $r_upd = sql("update pollf_name set name='{$_POST['tema']}', desc_name='{$_POST['desc_tema']}', link='{$link}' where id='{$r_old_vote['vote']}'"); for ($i = 1; $i <= count($_POST['otvet']); $i++) { if ($_POST['otvet'][$i] != '') { if (isset($_POST['id_otvet'][$i])) { $result = sql("update pollf_data set name ='{$_POST['otvet'][$i]}' where id='{$_POST['id_otvet'][$i]}' and id_poll='{$r_old_vote['vote']}'"); if (!$result) { error(); } } else { $result = sql("insert into pollf_data (id_poll,name, color) values ('{$r_old_vote['vote']}', '{$_POST['otvet'][$i]}','{$_POST['color'][$i]}')"); if (!$result) { error(); } } } elseif ($_POST['id_otvet'][$i] != '' && $_POST['otvet'][$i] == '') { $result = sql("delete from pollf_data where id='{$_POST['id_otvet'][$i]}' and id_poll='{$r_old_vote['vote']}'"); if (!$result) { error(); } } } header("Location: forum_read.php?f=" . $forumArticle->getForumId() . "&id=" . $forumArticle->getRootArticleID() . "&page=" . $_REQUEST['page'] . "&ofs=" . $_REQUEST['ofs']); } else echo "У ва� не хватает прав на редактирование опро�а"; } elseif ($_POST['new_tema'] == "Добавить") { $_POST['name'] = $_POST['tema']; if ($_POST['name'] != '') { $_POST['name'] = mysql_real_escape_string($_POST['name']); $_POST['desc_tema'] = mysql_real_escape_string($_POST['desc_tema']); $_POST['data'] = date('Y-m-d'); $_POST['data_end'] = date('Y-m-d', mktime(0, 0, 0, date("m"), date("d") + 14, date("Y"))); $_POST['koment'] = 0; $_POST['log_mode'] = 1; $_POST['status'] = 3; $link = ""; // Youtube if ($_POST['link'] !== "") { $link = $_POST['link']; $link = str_replace(['m.youtube.com', 'www.youtube.com'], 'youtube.com', $link); $link = preg_replace("/\s*[a-zA-Z\/\/:\.]*youtube.com\/watch\?v=([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i","www.youtube.com/embed/$1", $link); $link = preg_replace("/\s*[a-zA-Z\/\/:\.]*youtu.be\/([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i","www.youtube.com/embed/$1", $link); if ($link == $_POST['link']){ $link = ""; } } $rins = sql("insert into pollf_name (name, desc_name, link, data, data_end, log_mode, status, koment, razdel) values ('{$_POST['name']}', '{$_POST['desc_tema']}', '{$link}', '{$_POST['data']}', '{$_POST['data_end']}','{$_POST['log_mode']}','{$_POST['status']}', '{$_POST['koment']}', '9')"); if (!$rins) { error(); } else { ////////// добавили голо�овани�, теперь варианты ответов $id_poll = mysql_insert_id(); $color = array('green.gif', 'blue.gif', 'yellow.gif', 'red.gif', 'grey.gif', 'purple.gif', 'pink.gif', 'orang.gif', 'gold.gif', 'darkgreen.gif'); $cnt = count($_POST['otvet']); // провер�ем количе�тво ответов, не меньше 2 $countOtvet = 0; for ($i = 0; $i < $cnt; $i++) { if ($_POST['otvet'][$i] !== ""){ $countOtvet ++; } } if ($countOtvet <= 1) { echo 'Вариантов ответа должно быть не меньше 2'; // exit; }else { if ($cnt > 10) $cnt = 10; $ouruser = sqlval("select name from user where id='{$id_user_sess}'"); foreach($admlist as $lst => $r) { if ($lst == $ouruser['name']) { $cnt = count($_POST['otvet']) ; } } for ($i = 0; $i < $cnt; $i++) { if ($otvet[$i] != '') { $_POST['otvet'][$i] = mysql_real_escape_string($_POST['otvet'][$i]); $ri_data = sql("insert into pollf_data (id_poll,name, color) values ('{$id_poll}', '{$_POST['otvet'][$i]}', '{$color[$i]}')"); if (!$ri_data) error(); } } if ($id_poll != '') { // добавл�ем в форум $id_forum = sqlval("select id, name from forum where id='{$f}'"); if (!$id_forum) error(); if ($id_forum['id'] <= 0) $id_forum['id'] = 1; $id_forum = intval($_REQUEST['f']); $datetime = date('Y-m-d H:i:s'); $r_ins_forum = sql("insert into articl (id_author, id_forum, tema, ip, data, vote, email) values ('{$id_user_sess}', '{$id_forum}', '{$_POST['name']}', '{$_SERVER['REMOTE_ADDR']}', NOW(), '{$id_poll}', '0')"); if (!$r_ins_forum) error(); else { $id_parent = mysql_insert_id(); $r_upd_parent = sql("update articl set id_parent = '" . $id_parent . "' where id='" . $id_parent . "'"); if (!$r_upd_parent) error(); $forum_name = sqlval("select name from forum where id='" . $f . "'"); $r_user_name = sqlval("select name from user where id='{$id_user_sess}'"); $r_ins_hot = sql("replace into articl_hot set user_name='" . $r_user_name['name'] . "', tema='" . $_POST['name'] . "', forum_name='" . $id_forum['name'] . "', id_parent='" . $id_parent . "', id_forum='" . $id_forum . "', data='" . $datetime . "'"); if (!$r_ins_hot) { error(); } header("Location: forum_read.php?f=" . $f . "&id=" . $id_parent . "&page=" . $_REQUEST['page'] . "&ofs=" . $_REQUEST['ofs']); } } } } } else echo "Заполните поле название опро�а"; } } ?>
/forum/
Èìÿ
Äàòà
Ðàçìåð
..
2026-10-02
img
2013-04-27
jquery.arcticmodal-0.3
2014-09-26
_forum_read.php
2016-12-06
37 êá.
action.php
2017-02-01
2 êá.
ban.php
2016-12-06
2 êá.
basket_list.php
2016-12-06
3 êá.
basket_list_thems.php
2016-12-06
4 êá.
basket_read.php
2016-12-06
14 êá.
bbf.js
2016-12-06
4 êá.
close_ins.php
2016-12-06
730 áàéò
close_tema.php
2016-12-06
1 êá.
del_ins.php
2016-12-06
6 êá.
del_ins_all.php
2016-12-06
3 êá.
del_tema.php
2016-12-06
2 êá.
dobavlenie.gif
2016-12-06
1 êá.
doska.php
2017-02-13
22 êá.
edit_articl.php
2021-09-02
3 êá.
edit_articl.php~
2019-03-20
3 êá.
edit_articl_back.php
2019-01-22
3 êá.
forum_image.php
2016-12-06
377 áàéò
forum_list.php
2026-10-01
21 êá.
forum_list.php.bak.intl
2026-10-01
21 êá.
forum_list.php~
2022-08-25
21 êá.
forum_new_tema.php
2019-02-25
15 êá.
forum_news.php
2017-02-14
7 êá.
forum_read.php
2024-01-25
59 êá.
forum_read.php~
2022-08-25
59 êá.
forum_read.tpl
2016-12-06
30 êá.
forum_read_old.php
2016-12-06
37 êá.
forum_read_old2.php
2026-10-01
59 êá.
forum_read_old555551.php
2026-10-01
60 êá.
forum_read_test.php
2019-01-17
65 êá.
forum_respect.php
2017-08-18
4 êá.
forum_reyting.php
2016-12-06
949 áàéò
forum_rss.php
2017-02-20
2 êá.
forum_rss_all.php
2019-03-12
2 êá.
forum_rss_theme.php
2017-02-20
2 êá.
forum_rss_utf.php
2019-03-12
2 êá.
forum_rss_utf_yandex.php
2019-03-12
2 êá.
forum_search.gif
2016-12-06
1 êá.
forum_search.php
2016-12-06
3 êá.
forum_sql.php
2017-02-10
42 êá.
forum_sql_new.php
2026-05-25
50 êá.
forum_sql_new.php~
2021-03-29
51 êá.
forum_sql_new_back.php
2019-03-12
47 êá.
forum_sql_old.php
2016-12-06
13 êá.
forum_widget_new.php
2017-02-21
2 êá.
img_forum.gif
2016-12-06
1 êá.
img_view.php
2016-12-06
398 áàéò
index.php
2023-09-05
12 êá.
index.php~
2022-08-25
12 êá.
ins_oplata_for_user.php
2016-12-06
2 êá.
insert_pass.php
2016-12-06
1 êá.
kn_activ_temy.gif
2016-12-06
2 êá.
kn_doska.gif
2016-12-06
2 êá.
logout.php
2016-12-06
342 áàéò
menu.inc.php
2020-02-19
4 êá.
moder_send.php
2017-09-05
2 êá.
neprochteni.gif
2016-12-06
1 êá.
net-tem.gif
2016-12-06
327 áàéò
new.gif
2016-12-06
516 áàéò
new_tema.inc.php
2024-03-14
29 êá.
new_tema.inc.php~
2021-01-14
29 êá.
new_tema.inc_back.php
2021-01-14
36 êá.
new_tema.php
2017-02-20
2 êá.
new_tema2.inc.php
2024-03-22
36 êá.
new_tema2.inc.php~
2024-03-20
35 êá.
new_vote.inc.php
2019-04-03
7 êá.
new_vote.inc_back.php
2019-01-23
6 êá.
new_vote.inc_test.php
2019-03-20
6 êá.
new_vote.php
2019-03-20
2 êá.
new_vote_test.php
2023-09-05
2 êá.
new_vote_test.php~
2019-03-20
2 êá.
newopros.gif
2016-12-06
2 êá.
newtopic.gif
2016-12-06
2 êá.
otpis.php
2017-02-20
549 áàéò
package.xml
2016-12-06
1 êá.
package2.xml
2016-12-06
2 êá.
panelbar.inc.php
2016-12-06
2 êá.
peremest.php
2016-12-06
788 áàéò
peremest_in_tema.php
2018-10-29
6 êá.
peremest_in_tema_ins.php
2019-01-23
2 êá.
peremest_ins.php
2016-12-06
763 áàéò
pravila.gif
2016-12-06
1 êá.
pravila.php
2019-12-09
16 êá.
preview.php
2016-12-06
7 êá.
prochitano.gif
2016-12-06
1 êá.
repair_articl.php
2016-12-06
550 áàéò
respect.php
2019-01-24
8 êá.
search.php
2019-06-07
13 êá.
statistic.php
2016-12-06
3 êá.
statistika_img.gif
2016-12-06
2 êá.
stopwords.php
2016-12-06
907 áàéò
template.php
2017-01-31
23 êá.
top.inc.php
2024-01-24
2 êá.
top.inc.php~
2023-12-22
2 êá.
topic.php
2016-12-06
63 êá.
topic_of_month.php
2016-12-06
6 êá.
user_foto
1970-01-01
áàéò
user_online.php
2017-09-04
668 áàéò
view_post.php
2019-03-05
37 êá.
vote.php
2016-12-06
1 êá.
/forum
Çàãðóçèòü ôàéëû
Ôàéë 1
Ôàéë 2
Ôàéë 3