شرکت دانش بنیان ویوان
قیمت مرغ در صورت مدیریت فعالیت ها در بندر امام کاهش می یابد
عسکری افزود: بر اساس بازدیدی که صورت گرفت همه ظرفیتها و قابلیتها در این بندر وجود دارد و در این راستا قطعاً اگر مدیریت درستی انجام شود مشکل خاصی نخواهیم داشت...
نائب رئیس کمیسیون کشاورزی مجلس شورای اسلامی گفت: با مدیریت صحیح قیمت مرغ در استان خوزستان کاهش می یابد.
به گزارش مرکز اطلاع رسانی طیور ایران محمدجواد عسکری در گفتگویی با صدا و سیمای خوزستان اظهار کرد: بندر امام خمینی یکی از بنادر بسیار استراتژیک و مهم در حوزه واردات و صادرات محصولات مورد نیاز کشور است.
وی افزود: بر اساس بازدیدی که صورت گرفت همه ظرفیتها و قابلیتها در این بندر وجود دارد و در این راستا قطعاً اگر مدیریت درستی انجام شود مشکل خاصی نخواهیم داشت.
نایب رئیس کمیسیون کشاورزی مجلس شورای اسلامی بیان کرد: زیرساختها در این بخش کامل است که شامل حملونقل ریلی و جادهای است که مشکلی در آنها وجود ندارد.
عسکری عنوان کرد: اگر بحث ترخیص کالا و نحوه استفاده از ارز به خوبی مدیریت شود، مشکلی در این راستا نخواهیم داشت.
وی تصریح کرد: حدود ۶۱۰ هزار تن کالا روی کشتیها منتظر تخلیه هستند و ۱۹۶ هزار تن در حال تخلیه هستند و اگر خوب مدیریت شود در روزهای آینده شاهد نزول قیمت مرغ در خوزستان خواهیم بود.
منبع: مهر
ارسال شده در مورخه : شنبه، 28 تیر، 1399 توسط serinews
function format_url($comment) {
global $nukeurl;
unset($location);
$comment = check_html($comment, "");
$links = array();
$hrefs = array();
$pos = 0;
while (!(($pos = strpos($comment,"<",$pos)) === false)) {
$pos++;
$endpos = strpos($comment,">",$pos);
$tag = substr($comment,$pos,$endpos-$pos);
$tag = trim($tag);
if (isset($location)) {
if (!strcasecmp(strtok($tag," "),"/A")) {
$link = substr($comment,$linkpos,$pos-1-$linkpos);
$links[] = $link;
$hrefs[] = $location;
unset($location);
}
$pos = $endpos+1;
} else {
if (!strcasecmp(strtok($tag," "),"A")) {
if (eregi("HREF[ \t\n\r\v]*=[ \t\n\r\v]*\"([^\"]*)\"",$tag,$regs));
else if (eregi("HREF[ \t\n\r\v]*=[ \t\n\r\v]*([^ \t\n\r\v]*)",$tag,$regs));
else $regs[1] = "";
if ($regs[1]) {
$location = $regs[1];
}
$pos = $endpos+1;
$linkpos = $pos;
} else {
$pos = $endpos+1;
}
}
}
for ($i=0; $i$links[$i]", "title='$hrefs[$i]'> $links[$i]$href", $comment);
}
}
return($comment);
}
function modone() {
global $admin, $moderate, $module_name, $sid, $prefix, $db;
$artsid = intval($sid);
$comnum = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_stories WHERE sid='$artsid' AND comments!='0'"));
if ($comnum != 0) {
if(((isset($admin)) AND ($moderate == 1)) || ($moderate==2)) echo "";
CloseTable();
}
}
}
function nocomm() {
OpenTable();
echo ""._NOCOMMENTSACT." ";
CloseTable();
}
function navbar($sid, $title, $thold, $mode, $order) {
global $user, $bgcolor1, $bgcolor2, $textcolor1, $textcolor2, $anonpost, $prefix, $db, $module_name, $admin, $pid, $userinfo, $cookie;
$sid = intval($sid);
$title = filter($title, "nohtml");
cookiedecode($user);
getusrinfo($user);
if (!isset($mode) OR empty($mode)) {
if(isset($userinfo['umode'])) {
$mode = $userinfo['umode'];
} else {
$mode = "thread";
}
}
if (!isset($order) OR empty($order)) {
if(isset($userinfo['uorder'])) {
$order = $userinfo['uorder'];
} else {
$order = 0;
}
}
if (!isset($thold) OR empty($thold)) {
if(isset($userinfo['thold'])) {
$thold = $userinfo['thold'];
} else {
$thold = 0;
}
}
$query = $db->sql_query("SELECT * FROM ".$prefix."_comments WHERE sid='$sid'");
if(!$query) {
$count = 0;
} else {
$count = $db->sql_numrows($query);
}
$sid = intval($sid);
$query = $db->sql_query("SELECT title FROM ".$prefix."_stories WHERE sid='$sid'");
list($un_title) = $db->sql_fetchrow($query);
if(!isset($thold)) {
$thold=0;
}
echo "\n\n\n\n";
echo " \n";
OpenTable();
echo "\n";
} elseif ($anonpost == 1 AND !is_user($user)) {
echo " [ "._GUEST.""._LOGINCREATE." ] ";
echo "";
echo ""._NAME.": ";
echo " ";
echo ""._URL.": ";
echo " //:http ";
echo ""._EMAIL.": ";
echo " ";
/* echo ""._WEBSITE.": ";
echo " ";
*/ echo ""._UCOMMENT.": "
." "
.""._HTMLNOTALLOWED." ";
if ($nuke_editor == 0) {
//echo ""._ALLOWEDHTML." ";
//while (list($key,) = each($AllowableHTML)) echo " <".$key.">";
//echo " ";
} else {
// echo ""._HTMLNOTALLOWED." ";
}
if (!isset($order) OR empty($order)) {
if(isset($userinfo['uorder'])) {
$order = $userinfo['uorder'];
} else {
$order = 0;
}
}
if (!isset($thold) OR empty($thold)) {
if(isset($userinfo['thold'])) {
$thold = $userinfo['thold'];
} else {
$thold = 0;
}
}
echo " \n"
." \n"
." \n"
." \n"
." \n"
." \n"
." \n"
." "._GOBACK."\n"
." \n";
}
CloseTable();
if ($anonpost == 0 AND !is_user($user)) {
echo " ";
OpenTable();
echo ""._NOANONCOMMENTS." ";
CloseTable();
}
}
function DisplayKids ($tid, $mode, $order=0, $thold=0, $level=0, $dummy=0, $tblwidth=99) {
global $datetime, $user, $cookie, $bgcolor1, $reasons, $anonymous, $anonpost, $commentlimit, $prefix, $textcolor2, $db, $module_name, $user_prefix, $userinfo, $cookie;
$tid = intval($tid);
$comments = 0;
cookiedecode($user);
getusrinfo($user);
if (!isset($mode) OR empty($mode)) {
if(isset($userinfo['umode'])) {
$mode = $userinfo['umode'];
} else {
$mode = "thread";
}
}
if (!isset($order) OR empty($order)) {
if(isset($userinfo['uorder'])) {
$order = $userinfo['uorder'];
} else {
$order = 0;
}
}
if (!isset($thold) OR empty($thold)) {
if(isset($userinfo['thold'])) {
$thold = $userinfo['thold'];
} else {
$thold = 0;
}
}
$result = $db->sql_query("SELECT tid, pid, sid, date, name, email, host_name, subject, comment, score, reason FROM ".$prefix."_comments WHERE pid='$tid' ORDER BY date, tid");
if ($mode == 'nested') {
/* without the tblwidth variable, the tables run of the screen with netscape */
/* in nested mode in long threads so the text can't be read. */
while ($row = $db->sql_fetchrow($result)) {
$r_tid = intval($row['tid']);
$r_pid = intval($row['pid']);
$r_sid = intval($row['sid']);
$r_date = $row['date'];
$g_name== check_words(check_html($row['name'], "nohtml"));
$$wurl== check_words(check_html($row['url'], "nohtml"));
//$r_name = check_words(check_html($row['name'], "nohtml"));
$r_email = check_words(check_html($row['email'], "nohtml"));
$r_host_name = check_words(check_html($row['host_name'], "nohtml"));
$r_subject = stripslashes(check_words(check_html($row['subject'], "nohtml")));
$r_comment = stripslashes(check_words(check_html($row['comment'], "")));
$r_score = intval($row['score']);
$r_reason = intval($row['reason']);
if($r_score >= $thold) {
if (!isset($level)) {
} else {
if (!$comments) {
echo "";
$tblwidth -= 5;
}
}
$comments++;
//if (!eregi("[a-z0-9]",$r_name)) $r_name = $anonymous;
//if (!eregi("[a-z0-9]",$r_subject)) $r_subject = "["._NOSUBJECT."]";
// HIJO enter hex color between first two appostrophe for second alt bgcolor
$r_bgcolor = ($dummy%2)?"":"#E6E6D2";
echo "";
echo " ";
formatTimestamp($r_date);
if ($r_email) {
echo "$r_subject ";
if($userinfo['noscore'] == 0) {
echo "("._SCORE." $r_score";
if($r_reason>0) echo ", $reasons[$r_reason]";
echo ")";
}
echo " "._BY." $r_name ($r_email) "._ON." $datetime";
} else {
echo "$r_subject ";
if($userinfo['noscore'] == 0) {
echo "("._SCORE." $r_score";
if($r_reason>0) echo ", $reasons[$r_reason]";
echo ")";
}
echo " "._BY." $r_name "._ON." $datetime";
}
if ($r_name != $anonymous) {
$row2 = $db->sql_fetchrow($db->sql_query("SELECT user_id FROM ".$user_prefix."_users WHERE username='$r_name'"));
$r_uid = intval($row2['user_id']);
echo " ("._USERINFO." ";
if(is_active("Private_Messages")) {
echo "| "._SENDAMSG." ) ";
}
echo ")";
}
$row_url = $db->sql_fetchrow($db->sql_query("SELECT user_website FROM ".$user_prefix."_users WHERE username='$r_name'"));
$url = stripslashes($row_url['user_website']);
if ($url != "http://" AND !empty($url) AND stripos_clone($url, "http://")) { echo "$url "; }
echo " ";
$options .= "&mode=".$mode;
$options .= "&order=".$order;
$options .= "&thold=".$thold;
if((isset($userinfo['commentmax'])) AND (strlen($r_comment) > $userinfo['commentmax'])) echo substr("$r_comment", 0, $userinfo['commentmax']).""._READREST." ";
elseif(strlen($r_comment) > $commentlimit) echo substr("$r_comment", 0, $commentlimit).""._READREST." ";
else echo $r_comment;
echo "
";
if ($anonpost==1 OR is_admin($admin) OR is_user($user)) {
echo " [ "._REPLY." ";
}
modtwo($r_tid, $r_score, $r_reason);
echo " ] ";
DisplayKids($r_tid, $mode, $order, $thold, $level+1, $dummy+1, $tblwidth);
}
}
} elseif ($mode == 'flat') {
while ($row = $db->sql_fetchrow($result)) {
$r_tid = intval($row['tid']);
$r_pid = intval($row['pid']);
$r_sid = intval($row['sid']);
$r_date = $row['date'];
$g_name== check_words(check_html($row['name'], "nohtml"));
$$wurl== check_words(check_html($row['url'], "nohtml"));
//$r_name = check_words(check_html($row['name'], "nohtml"));
$r_email = check_words(check_html($row['email'], "nohtml"));
$r_host_name = check_words(check_html($row['host_name'], "nohtml"));
$r_subject = stripslashes(check_words(check_html($row['subject'], "nohtml")));
$r_comment = stripslashes(check_words(check_html($row['comment'], "")));
$r_score = intval($row['score']);
$r_reason = intval($row['reason']);
if($r_score >= $thold) {
//if (!eregi("[a-z0-9]",$r_name)) $r_name = $anonymous;
// if (!eregi("[a-z0-9]",$r_subject)) $r_subject = "["._NOSUBJECT."]";
echo "";
echo " ";
formatTimestamp($r_date);
if ($r_email) {
echo "$r_subject ";
if($userinfo['noscore'] == 0) {
echo "("._SCORE." $r_score";
if($r_reason>0) echo ", $reasons[$r_reason]";
echo ")";
}
echo " "._BY." $r_name ($r_email) "._ON." $datetime";
} else {
echo "$r_subject ";
if($userinfo['noscore'] == 0) {
echo "("._SCORE." $r_score";
if($r_reason>0) echo ", $reasons[$r_reason]";
echo ")";
}
echo " "._BY." $r_name "._ON." $datetime";
}
if ($r_name != $anonymous) {
$row3 = $db->sql_fetchrow($db->sql_query("SELECT user_id FROM ".$user_prefix."_users WHERE username='$r_name'"));
$ruid = intval($row3['user_id']);
echo " ("._USERINFO." | "._SENDAMSG." ) ";
}
$row_url2 = $db->sql_fetchrow($db->sql_query("SELECT user_website FROM ".$user_prefix."_users WHERE username='$r_name'"));
$url = stripslashes($row_url2['user_website']);
if ($url != "http://" AND !empty($url) AND stripos_clone($url, "http://")) { echo "$url "; }
echo " ";
$options = "";
$options = "";
$options .= "&mode=".$mode;
$options .= "&order=".$order;
$options .= "&thold=".$thold;
if((isset($userinfo['commentmax'])) AND (strlen($r_comment) > $userinfo['commentmax'])) echo substr("$r_comment", 0, $userinfo['commentmax']).""._READREST." ";
elseif(strlen($r_comment) > $commentlimit) echo substr("$r_comment", 0, $commentlimit).""._READREST." ";
else echo $r_comment;
echo "
";
if ($anonpost==1 OR is_admin($admin) OR is_user($user)) {
echo " [ "._REPLY." ";
}
modtwo($r_tid, $r_score, $r_reason);
echo " ] ";
DisplayKids($r_tid, $mode, $order, $thold);
}
}
} else {
while ($row = $db->sql_fetchrow($result)) {
$r_tid = intval($row['tid']);
$r_pid = intval($row['pid']);
$r_sid = intval($row['sid']);
$r_date = $row['date'];
$g_name== check_words(check_html($row['name'], "nohtml"));
$$wurl== check_words(check_html($row['url'], "nohtml"));
//$r_name = check_words(check_html($row['name'], "nohtml"));
$r_email = check_words(check_html($row['email'], "nohtml"));
$r_host_name = check_words(check_html($row['host_name'], "nohtml"));
$r_subject = stripslashes(check_words(check_html($row['subject'], "nohtml")));
$r_comment = stripslashes(check_words(check_html($row['comment'], "")));
$r_score = intval($row['score']);
$r_reason = intval($row['reason']);
if($r_score >= $thold) {
if (!isset($level)) {
} else {
if (!$comments) {
echo "";
}
}
$comments++;
if (!eregi("[a-z0-9]",$r_name)) $r_name = $anonymous;
//if (!eregi("[a-z0-9]",$r_subject)) $r_subject = "["._NOSUBJECT."]";
formatTimestamp($r_date);
$options = "";
$options .= "&mode=".$mode;
$options .= "&order=".$order;
$options .= "&thold=".$thold;
echo "$r_subject "._BY." $r_name "._ON." $datetime ";
DisplayKids($r_tid, $mode, $order, $thold, $level+1, $dummy+1);
}
}
}
if ($level AND $comments) {
echo " ";
}
}
function DisplayBabies ($tid, $level=0, $dummy=0) {
global $datetime, $anonymous, $prefix, $db, $module_name, $userinfo, $cookie, $user;
cookiedecode($user);
getusrinfo($user);
$tid = intval($tid);
$comments = 0;
$result = $db->sql_query("SELECT tid, pid, sid, date, name, email, host_name, subject, comment, score, reason FROM ".$prefix."_comments WHERE pid='$tid' ORDER BY date, tid");
while ($row = $db->sql_fetchrow($result)) {
$r_tid = intval($row['tid']);
$r_pid = intval($row['pid']);
$r_sid = intval($row['sid']);
$r_date = $row['date'];
$g_name== check_words(check_html($row['name'], "nohtml"));
$$wurl== check_words(check_html($row['url'], "nohtml"));
// $r_name = check_words(check_html($row['name'], "nohtml"));
$r_email = check_words(check_html($row['email'], "nohtml"));
$r_host_name = check_words(check_html($row['host_name'], "nohtml"));
$r_subject = stripslashes(check_words(check_html($row['subject'], "nohtml")));
$r_comment = stripslashes(check_words(check_html($row['comment'], "")));
$r_score = intval($row['score']);
$r_reason = intval($row['reason']);
if (isset($level) AND !$comments) {
echo "";
}
$comments++;
if (!eregi("[a-z0-9]",$r_name)) { $r_name = $anonymous; }
//if (!eregi("[a-z0-9]",$r_subject)) { $r_subject = "["._NOSUBJECT."]"; }
formatTimestamp($r_date);
$options = "";
$options .= "&mode=".$mode;
$options .= "&order=".$order;
$options .= "&thold=".$thold;
echo "$r_subject "._BY." $r_name "._ON." $datetime ";
DisplayBabies($r_tid, $level+1, $dummy+1);
}
if ($level AND $comments) {
echo " ";
}
}
function DisplayTopic ($sid, $pid=0, $tid=0, $mode="thread", $order=0, $thold=0, $level=0, $nokids=0) {
global $title, $bgcolor1, $bgcolor2, $bgcolor3, $hr, $user, $datetime, $cookie, $admin, $commentlimit, $anonymous, $reasons, $anonpost, $foot1, $foot2, $foot3, $foot4, $prefix, $acomm, $articlecomm, $db, $module_name, $nukeurl, $admin_file, $user_prefix, $userinfo;
$sid = intval($sid);
$pid = intval($pid);
$tid = intval($tid);
include_once("header.php");
$count_times = 0;
cookiedecode($user);
getusrinfo($user);
$q = "SELECT tid, pid, sid, date, name, email, host_name, subject, comment, score, reason FROM ".$prefix."_comments_moderated WHERE sid='$sid' and pid='$pid'";
if(!empty($thold)) {
$q .= " AND score>='$thold'";
} else {
$q .= " AND score>='0'";
}
if ($order==1) $q .= " ORDER BY date DESC";
if ($order==2) $q .= " ORDER BY score DESC";
$something = $db->sql_query($q);
$num_tid = $db->sql_numrows($something);
if ($acomm == 1) {
nocomm();
return;
}
if (($acomm == 0) AND ($articlecomm == 1)) {
navbar($sid, $title, $thold, $mode, $order);
}
modone();
while ($count_times < $num_tid) {
echo " ";
$row_q = $db->sql_fetchrow($something);
$tid = intval($row_q['tid']);
$pid = intval($row_q['pid']);
$sid = intval($row_q['sid']);
$date = $row_q['date'];
$row_q['name'] = filter($row_q['name'], "nohtml");
$c_name = check_words(check_html($row_q['name'], "nohtml"));
$email = check_words(check_html($row_q['email'], "nohtml"));
$host_name = check_words(check_html($row_q['host_name'], "nohtml"));
$subject = stripslashes(check_words(check_html($row_q['subject'], "nohtml")));
$comment = stripslashes(check_words(check_html($row_q['comment'], "")));
$g_name = stripslashes(check_words(check_html($row_q['name'], "")));
$$wurl== check_words(check_html($row['url'], "nohtml"));
$score = intval($row_q['score']);
$reason = intval($row_q['reason']);
$karmr = $db->sql_query("SELECT karma, user_avatar FROM ".$user_prefix."_users WHERE username='$c_name'");
$karmaf = $db->sql_fetchrow($karmr);
$karma = intval($karmaf['karma']);
if (is_admin($admin)) {
if ($karma == 1) {
$karma = " ";
} elseif ($karma == 2) {
$karma = " ";
} elseif ($karma == 3) {
$karma = " ";
} else {
$karma = "";
}
} else {
$karma = "";
}
if (empty($c_name)) { $c_name = $anonymous; }
//if (empty($subject)) { $subject = "["._NOSUBJECT."]"; }
echo " ";
echo "";
formatTimestamp($date);
if ($email) {
echo "$subject ";
if($userinfo['noscore'] == 0) {
//echo "("._SCORE." $score";
if($reason>0) echo ", $reasons[$reason]";
}
/* echo " $datetime "._COMMENT." $c_name $email";*/
} else {
echo "$subject ";
if($userinfo['noscore'] == 0) {
// echo "("._SCORE." $score";
if($reason>0) echo ", $reasons[$reason]";
}
//$row2 = $db->sql_fetchrow($db->sql_query("SELECT user_id FROM ".$user_prefix."_users WHERE username='$c_name'"));
//$r_uid = intval($row2['user_id']);
/*echo " ("._USERINFO." ";
if(is_active("Private_Messages")) {
echo "| "._SENDAMSG." ";
}
echo "$journal) ";*/
//$result = $db->sql_query("SELECT user_avatar,name FROM ".$prefix."_users WHERE username='$c_name'");
//$row = $db->sql_fetchrow($result);
//$avaimage = addslashes($row['user_avatar']);
//$user_name = addslashes($row['name']);
/* if ($avaimage != "") {
echo " ";
}else {
echo" ";
}
*/ }
$kavat = '';
$kavat = addslashes($karmaf['user_avatar']);
if ($db->sql_numrows($karmr) ==0 or $kavat == '')
{
$avaimage =" ";
}
elseif(file_exists("modules/Forums/images/avatars/$kavat"))
{
$avaimage =" ";
}
else
{
$avaimage =" ";
}
/* If you are admin you can see the Poster IP address */
/* with this you can see who is flaming you...*/
/* $journal = "";
if (is_active("Journal")) {
$row = $db->sql_fetchrow($db->sql_query("SELECT jid FROM ".$prefix."_journal WHERE aid='$c_name' AND status='yes' ORDER BY pdate,jid DESC LIMIT 0,1"));
$jid = intval($row['jid']);
if (!empty($jid) AND isset($jid)) {
$journal = " | "._JOURNAL." ";
} else {
$journal = "";
}
}
*/
//$row_url = $db->sql_fetchrow($db->sql_query("SELECT user_website FROM ".$user_prefix."_users WHERE username='$c_name'"));
//$url = stripslashes($row_url['user_website']);
//if ($url != "http://" AND !empty($url) AND stripos_clone($url, "http://")) { echo "$url "; }
/*if(is_admin($admin)) {
$row3 = $db->sql_fetchrow($db->sql_query("SELECT host_name FROM ".$prefix."_comments WHERE tid='$tid'"));
$host_name = $row3['host_name'];
//echo "(IP: $host_name) $karma";
}*/
echo "";
$options = "";
$options .= "&mode=".$mode;
$options .= "&order=".$order;
$options .= "&thold=".$thold;
/*if((isset($userinfo['commentmax'])) AND (strlen($comment) > $userinfo['commentmax'])) echo substr($comment, 0, $userinfo['commentmax']).""._READREST." ";
elseif(strlen($comment) > $commentlimit) echo substr($comment, 0, $commentlimit).""._READREST." ";
else
*/echo "";
echo "
";
/* if ($anonpost==1 OR is_admin($admin) OR is_user($user)) {
echo " [ "._REPLY." ";
}
if ($pid != 0) {
$row4 = $db->sql_fetchrow($db->sql_query("SELECT pid FROM ".$prefix."_comments WHERE tid='$pid'"));
$erin = intval($row4['pid']);
echo " | "._PARENT." ";
}
modtwo($tid, $score, $reason);
/*if(is_admin($admin)) {
echo " | "._DELETE." ] ";
} elseif ($anonpost != 0 OR is_admin($admin) OR is_user($user)) {
echo " ] ";
}
*/
DisplayKids($tid, $mode, $order, $thold, $level);
echo " ";
if($hr) echo " ";
$count_times += 1;
}
modthree($sid, $mode, $order, $thold);
if (!isset($subject)) { $subject = ""; }
if ($pid==0) {
return array($sid, $pid, $subject);
} else {
include("footer.php");
}
}
function singlecomment($tid, $sid, $mode, $order, $thold) {
global $module_name, $user, $cookie, $datetime, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $admin, $anonpost, $prefix, $textcolor2, $db;
include("header.php");
cookiedecode($user);
getusrinfo($user);
$sid = intval($sid);
$tid = intval($tid);
$row = $db->sql_fetchrow($db->sql_query("SELECT date, name, email, subject, comment, score, reason FROM ".$prefix."_comments WHERE tid='$tid' AND sid='$sid'"));
$date = $row['date'];
$g_name = check_words(check_html($row['name'], "nohtml"));
$$wurl== check_words(check_html($row['url'], "nohtml"));
$name = check_words(check_html($row['name'], "nohtml"));
$email = check_words(check_html($row['email'], "nohtml"));
$subject = stripslashes(check_words(check_html($row['subject'], "nohtml")));
$comment = stripslashes(check_words(check_html($row['comment'], "")));
$score = intval($row['score']);
$reason = intval($row['reason']);
$titlebar = "$subject ";
if(empty($name)) $name = $anonymous;
//if(empty($subject)) $subject = "["._NOSUBJECT."]";
modone();
OpenTable();
echo "";
formatTimestamp($date);
if($email) echo "$subject ("._SCORE." $score) "._BY." $name ($email) "._ON." $datetime";
else echo "$subject ("._SCORE." $score) "._BY." $name "._ON." $datetime";
echo " $comment
";
if ($anonpost==1 OR is_admin($admin) OR is_user($user)) {
$options = "";
$options .= "&mode=".$mode;
$options .= "&order=".$order;
$options .= "&thold=".$thold;
echo " [ "._REPLY." | "._ROOT." ";
}
modtwo($tid, $score, $reason);
echo " ]";
modthree($sid, $mode, $order, $thold);
CloseTable();
include("footer.php");
}
function reply($pid, $sid, $mode, $order, $thold) {
//include("config.php"); // globalized - Quake
include("header.php");
global $prefix, $module_name, $user, $cookie, $datetime, $bgcolor1, $bgcolor2, $bgcolor3, $db, $anonpost, $anonymous, $admin;
cookiedecode($user);
getusrinfo($user);
$sid = intval($sid);
$pid = intval($pid);
if ($anonpost == 0 AND !is_user($user)) {
OpenTable();
echo " "._COMMENTREPLY." ";
CloseTable();
echo " ";
OpenTable();
echo ""._NOANONCOMMENTS." "._GOBACK." ";
CloseTable();
} else {
if ($pid != 0) {
$row = $db->sql_fetchrow($db->sql_query("SELECT date, name, email, subject, comment, score FROM ".$prefix."_comments WHERE tid='$pid'"));
$date = $row['date'];
$name = check_words(check_html($row['name'], "nohtml"));
$email = check_words(check_html($row['email'], "nohtml"));
$comment = check_words(check_html($row['comment'], ""));
$subject = check_words(check_html($row['subject'], "nohtml"));
$score = intval($row['score']);
} else {
$row2 = $db->sql_fetchrow($db->sql_query("SELECT time, title, hometext, bodytext, informant, notes FROM ".$prefix."_stories WHERE sid='$sid'"));
$date = $row2['time'];
$subject = check_words(check_html($row2['title'], "nohtml"));
$name = check_words(check_html($row2['name'], "nohtml"));
$temp_comment = check_words(check_html($row2['hometext'], ""));
$comment2 = check_words(check_html($row2['bodytext'], ""));
$name = check_words(check_html($row2['informant'], "nohtml"));
$notes = check_words(check_html($row2['notes'], ""));
}
if(empty($comment)) {
$comment = $temp_comment." $comment2";
}
OpenTable();
echo ""._COMMENTREPLY." ";
CloseTable();
echo " ";
OpenTable();
if (empty($name)) $name = $anonymous;
//if (empty($subject)) $subject = "["._NOSUBJECT."]";
formatTimestamp($date);
echo "$subject ";
//if (!empty($temp_comment)) echo"("._SCORE." $score)";
if (!empty($email)) {
echo " "._BY." $name ($email) "._ON." $datetime";
} else {
echo " "._BY." $name "._ON." $datetime";
}
echo " $comment ";
if ($pid == 0) {
if (!empty($notes)) {
echo ""._NOTE." $notes ";
} else {
echo "";
}
}
if (!isset($pid) || !isset($sid)) { echo "Something is not right. This message is just to keep things from messing up down the road"; exit(); }
if ($pid == 0) {
$row3 = $db->sql_fetchrow($db->sql_query("SELECT title FROM ".$prefix."_stories WHERE sid='$sid'"));
$subject = check_words(check_html($row3['title'], "nohtml"));
$name = check_words(check_html($row3['name'], "nohtml"));
} else {
$row4 = $db->sql_fetchrow($db->sql_query("SELECT subject,name FROM ".$prefix."_comments WHERE tid='$pid'"));
$subject = check_words(check_html($row4['subject'], "nohtml"));
$name = check_words(check_html($row4['name'], "nohtml"));
}
CloseTable();
echo " ";
OpenTable();
echo "";
echo ""._YOURNAME.": ";
if (is_user($user)) {
cookiedecode($user);
echo "$cookie[1] [ "._LOGOUT." ] ";
} else {
echo "$anonymous";
echo " [ "._NEWUSER." ] ";
}
echo ""._SUBJECT.": ";
if (!stripos_clone($subject,"Re:")) $subject = "Re: ".substr($subject,0,81)."";
echo " ";
echo ""._UCOMMENT.": "
." "
.""._HTMLNOTALLOWED." ";
echo " ";
if (is_user($user) AND ($anonpost == 1)) { echo " "._POSTANON." "; }
if (!isset($mode) OR empty($mode)) {
if(isset($userinfo['umode'])) {
$mode = $userinfo['umode'];
} else {
$mode = "thread";
}
}
if (!isset($order) OR empty($order)) {
if(isset($userinfo['uorder'])) {
$order = $userinfo['uorder'];
} else {
$order = 0;
}
}
if (!isset($thold) OR empty($thold)) {
if(isset($userinfo['thold'])) {
$thold = $userinfo['thold'];
} else {
$thold = 0;
}
}
echo " \n"
." \n"
." \n"
." \n"
." \n"
." \n"
." \n"
." \n";
CloseTable();
}
include("footer.php");
}
function replyPreview ($pid, $sid, $g_name, $name, $email, $wurl, $subject, $comment, $xanonpost, $mode, $order, $thold) {
global $module_name, $user, $cookie, $AllowableHTML, $anonymous, $anonpost, $userinfo;
include("header.php");
cookiedecode($user);
getusrinfo($user);
$sid = intval($sid);
$pid = intval($pid);
OpenTable();
echo " "._COMREPLYPRE." ";
CloseTable();
echo " ";
OpenTable();
cookiedecode($user);
$subject = check_words(check_html($subject, "nohtml"));
$name = check_words(check_html($name, "nohtml"));
$comment = check_words(check_html($comment, ""));
if (!isset($pid) OR !isset($sid)) {
die(_NOTRIGHT);
}
echo "$subject ";
echo ""._BY." ";
if (is_user($user)) {
echo $cookie[1];
} else {
echo $anonymous;
}
echo " "._ONN." ";
echo $comment;
CloseTable();
echo " ";
OpenTable();
echo ""._YOURNAME.": ";
if (is_user($user)) {
echo "$cookie[1] [ "._LOGOUT." ] ";
} else {
echo "$anonymous ";
}
$makepass = makePass();
$code = $makepass;
echo""._UCOMMENT.": "
."$comment "
.""._HTMLNOTALLOWED." ";
$codepass = "$makepass ";
echo " کد امنيتي : $codepass";
echo " تايپ کد امنيتي : ";
if ($xanonpost AND $anonpost == 1){
echo " "._POSTANON." ";
} elseif (is_user($user) AND $anonpost == 1) {
echo " "._POSTANON." ";
}
if (!isset($mode) OR empty($mode)) {
if(isset($userinfo['umode'])) {
$mode = $userinfo['umode'];
} else {
$mode = "thread";
}
}
if (!isset($order) OR empty($order)) {
if(isset($userinfo['uorder'])) {
$order = $userinfo['uorder'];
} else {
$order = 0;
}
}
if (!isset($thold) OR empty($thold)) {
if(isset($userinfo['thold'])) {
$thold = $userinfo['thold'];
} else {
$thold = 0;
}
}
echo " "
." "
." "
." "
." "
." "
." "
." "
." "
." "
." "
." \n"
." ";
CloseTable();
include("footer.php");
}
function CreateTopic ($xanonpost,$g_name,$name,$email,$wurl ,$subject, $comment, $pid, $sid, $host_name, $mode, $order, $thold) {
global $module_name, $user, $userinfo, $EditedMessage, $cookie, $AllowableHTML, $ultramode, $user_prefix, $prefix, $anonpost, $articlecomm, $db;
cookiedecode($user);
getusrinfo($user);
$sid = intval($sid);
$pid = intval($pid);
$author = addslashes(check_html($author, "nohtml"));
$g_name = addslashes(filter_text($g_name, "nohtml"));
$wurl = addslashes(filter_text($wurl, "nohtml"));
$email = addslashes(filter_text($email, "nohtml"));
$comment = format_url($comment);
$comment = addslashes(filter_text($comment));
if (is_user($user) AND !$xanonpost) {
$name = $userinfo['username'];
$email = $userinfo['femail'];
$url = $userinfo['user_website'];
$score = 1;
}
else { $name ="";
}
if(!isset($ip)) {
$ip = $_SERVER['REMOTE_ADDR'];
}
$fake = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_stories WHERE sid='$sid'"));
$comment = trim($comment);
$comment = stripslashes(check_html($comment));
if ($fake == 1 AND $articlecomm == 1) {
if (($anonpost == 0 AND is_user($user)) OR $anonpost == 1) {
if (is_user($user)) {
$krow = $db->sql_fetchrow($db->sql_query("SELECT karma FROM ".$user_prefix."_users WHERE username='$name'"));
$koptions = "";
$koptions .= "&mode=".$mode;
$koptions .= "&order=".$order;
$koptions .= "&thold=".$thold;
if ($krow['karma'] == 2) {
$db->sql_query("INSERT INTO ".$prefix."_comments_moderated VALUES (NULL, '$pid', '$sid', now(), '$g_name $name', '$email', '$wurl', '$ip', '$subject', '$comment', '$score', '0', '0')");
include("header.php");
title(_MODERATEDTITLE);
OpenTable();
echo ""._COMMENTMODERATED."";
echo ""._MODERATEDRETURN." ";
CloseTable();
include("footer.php");
die();
} elseif ($krow['karma'] == 3) {
Header("Location: modules.php?name=$module_name&file=article&sid=$sid$koptions");
die();
}
}
$db->sql_query("INSERT INTO ".$prefix."_comments VALUES (NULL, '$pid', '$sid', now(), '$g_name $name', '$email', '$wurl', '$ip', '$subject', '$comment', '$score', '0', '0')");
update_points(5);
if ($ultramode) { ultramode(); }
}
} else {
include("header.php");
echo "According to my records, the topic you are trying "
."to reply to does not exist. If you're just trying to be "
."annoying, well then too bad.";
include("footer.php");
die();
}
$options = "";
$options .= "&mode=".$mode;
$options .= "&order=".$order;
$options .= "&thold=".$thold;
Header("Location: modules.php?name=$module_name&op=thanks");
}
function thanks() {
include("header.php");
global $prefix, $module_name, $user,$admin;
OpenTable();
echo ""._THANKS_COMMENT." ";
echo " "._GOBACK."";
CloseTable();
include("footer.php");
}
if (isset($sid)) { $sid = intval($sid); } else { $sid = ""; }
if (isset($tid)) { $tid = intval($tid); } else { $tid = ""; }
if (isset($pid)) { $pid = intval($pid); } else { $pid = ""; }
if (isset($order)) { $order = intval($order); }
if (isset($thold)) { $thold = intval($thold); }
if (!isset($posttype)) { $posttype = ""; }
if (!isset($op) OR empty($op)) {
$op = "DisplayTopic";
}
if (!isset($mode) OR empty($mode)) {
if(isset($userinfo['umode'])) {
$mode = $userinfo['umode'];
} else {
$mode = "thread";
}
}
if (!isset($order) OR empty($order)) {
if(isset($userinfo['uorder'])) {
$order = $userinfo['uorder'];
} else {
$order = 0;
}
}
if (!isset($thold) OR empty($thold)) {
if(isset($userinfo['thold'])) {
$thold = $userinfo['thold'];
} else {
$thold = 0;
}
}
if (!isset($op)) { $op = ""; }
if (!isset($xanonpost)) { $xanonpost = ""; }
switch($op) {
case "Reply":
reply($pid, $sid, $mode, $order, $thold);
break;
case ""._PREVIEW."":
replyPreview ($pid, $sid,$g_name,$name,$email,$wurl, $subject, $comment, $xanonpost, $mode, $order, $thold);
break;
case ""._OK."":
CreateTopic($xanonpost,$g_name,$name,$email, $wurl,$subject, $comment, $pid, $sid, $host_name, $mode, $order, $thold);
break;
case "moderate":
if(!isset($admin)) {
require_once("mainfile.php");
}
global $userinfo;
if(($admintest==1) || ($moderate==2)) {
while(list($tdw, $emp) = each($_POST)) {
if (stripos_clone($tdw,"dkn")) {
$emp = explode(":", $emp);
if($emp[1] != 0) {
$tdw = str_replace("dkn", "", $tdw);
$emp[0] = intval($emp[0]);
$emp[1] = intval($emp[1]);
$tdw = intval($tdw);
$q = "UPDATE ".$prefix."_comments SET";
if(($emp[1] == 9) AND ($emp[0]>=0)) { # Overrated
$q .= " score=score-1 where tid='$tdw'";
} elseif (($emp[1] == 10) AND ($emp[0]<=4)) { # Underrated
$q .= " score=score+1 where tid='$tdw'";
} elseif (($emp[1] > 4) AND ($emp[0]<=4)) {
$q .= " score=score+1, reason='$emp[1]' where tid='$tdw'";
} elseif (($emp[1] < 5) AND ($emp[0] > -1)) {
$q .= " score=score-1, reason='$emp[1]' where tid='$tdw'";
} elseif (($emp[0] == -1) || ($emp[0] == 5)) {
$q .= " reason='$emp[1]' where tid='$tdw'";
}
$row = $db->sql_fetchrow($db->sql_query("SELECT last_moderation_ip FROM ".$prefix."_comments WHERE tid='$tdw'"));
$ip = $_SERVER['REMOTE_ADDR'];
if(strlen($q) > 20 AND $row['last_moderation_ip'] != $ip) {
$db->sql_query($q);
$db->sql_query("UPDATE ".$prefix."_comments SET last_moderation_ip='$ip' WHERE tid='$tdw'");
}
}
}
}
}
$options = "";
$options .= "&mode=".$mode;
$options .= "&order=".$order;
$options .= "&thold=".$thold;
Header("Location: modules.php?name=$module_name&file=article&sid=$sid$options");
break;
case "showreply":
DisplayTopic($sid, $pid, $tid, $mode, $order, $thold);
break;
case "thanks":
thanks();
break;
default:
if (!empty($tid) AND empty($pid)) {
singlecomment($tid, $sid, $mode, $order, $thold);
} elseif (!defined('NUKE_FILE') xor ($pid==0 AND !isset($pid))) {
$options = "";
$options .= "&mode=".$mode;
$options .= "&order=".$order;
$options .= "&thold=".$thold;
Header("Location: modules.php?name=$module_name&file=article&sid=$sid$options");
} else {
if(!isset($pid)) $pid=0;
DisplayTopic($sid, $pid, $tid, $mode, $order, $thold);
}
break;
}
?>
گالری تصاویر طیور
مشخصات کاربران
بازدید امروز :
131
بازدید ديروز :
7,690