--------------------------------------------------------------------------------

انا لدي مشكله غريبه اوووي ..
نسخه منتدياى 3.6.8 ...
الهاك شغال بس الارشيف بيجبلى الكلام د ه ...

http://traidnt.net/vb/showthread.php?t=496670

وفي ناس بتقول كلام مش حلو ومش عارف اعدل عليه .. ياريت الحل لو سمحتم ..



End Shout // --------------------------------------------------- // --------------------------------------------------- // Display Shout Archive // --------------------------------------------------- if ($_GET['do'] == 'archive') { $navbits = array("vbshout.php?" . $vbulletin->session->vars['sessionurl'] . "do=archive" => 'الأرشيف'); $navbits[""] = 'نظام ارشيف صندوق المحادثات'; $TopTen = ''; $TS = $DB->query_first("select count(*) as `ts` from " . TABLE_PREFIX . "shout"); $TS = vb_number_format($TS['ts']); $T4 = $DB->query_first("select count(*) as `T4` from " . TABLE_PREFIX . "shout where s_time > " . (TIMENOW - (60 * 60 * 24))); $T4 = vb_number_format($T4['T4']); $TY = $DB->query_first("select count(*) as `TY` from " . TABLE_PREFIX . "shout where s_by = '{$vbulletin->userinfo['userid']}'"); $TY = vb_number_format($TY['TY']); $TT = $DB->query(' select s.*, count(s.sid) as `TS`, u.username, u.usergroupid from '.TABLE_PREFIX.'shout s left join '.TABLE_PREFIX.'user u on (u.userid = s.s_by) group by s.s_by having TS > 0 order by TS desc limit 10'); while ($TTS = $DB->fetch_array($TT)) { $TTS['username'] = fetch_musername($TTS, 'usergroupid'); eval('$TopTen .= "' . fetch_template('forumhome _vbshout_archive_topshout er') . '";'); } sanitize_pageresults($TS, $page, $perpage, 40, 10); $limitlower = ($page - 1) * $perpage + 1; if ($limitlower <= 0) { $limitlower = 1; } $Output = array(); $Shouts = $DB->query(' select s.*, u.username, u.usergroupid from '.TABLE_PREFIX.'shout s left join '.TABLE_PREFIX.'user u on (u.userid = s.s_by) order by s.sid desc limit ' . ($limitlower - 1) . ',' . $perpage); while ($Shout = $DB->fetch_array($Shouts)) { $Shout['msg_safe'] = $Shout['s_shout']; $Shout['time'] = buildTime($Shout['s_time']); $Shout['s_shout'] = bbcodeparser($Shout['s_shout']); $Shout['style'] = ''; $Shout['data'] = unserialize($Shout['s_data']); $Shout['username'] = fetch_musername($Shout, 'usergroupid'); if ($Shout['data']['color']) { $Shout['style'] .= 'color:'.$Shout['data']['color'].';'; } if ($Shout['data']['font']) { $Shout['style'] .= 'font-family:'.$Shout['data']['font'].';'; } if ($Shout['data']['bold']) { $Shout['style'] .= 'font-weight:'.$Shout['data']['bold'].';'; } if ($Shout['data']['underline']) { $Shout['style'] .= 'text-decoration:'.$Shout['data']['underline'].';'; } if ($Shout['data']['italic']) { $Shout['style'] .= 'font-style:'.$Shout['data']['italic'].';'; } if ($Shout['style']) { $Shout['s_shout'] = ''.$Shout['s_shout'].''; } eval('$Output[] .= "' . fetch_template('forumhome _vbshout_archive_shout') . '";'); } if (isBanned($vbulletin->userinfo) && $vbulletin->options['shout_banned_perms'] > 0) { $Output = ''; $Shout = array( 'time' => buildTime(), 'username' => 'System Reponse', 's_shout' => 'You are currently banned from the shoutbox', ); eval('$Output .= "' . fetch_template('forumhome _vbshout_archive_shout') . '";'); } if (empty($Output)) { $Output = ''; $Shout = array( 'time' => buildTime(), 'username' => 'System Reponse', 's_shout' => 'No Current Shouts', ); eval('$Output .= "' . fetch_template('forumhome _vbshout_archive_shout') . '";'); } else { $Shouts = $Output; $Output = ''; foreach ($Shouts as $Shout) { $Output .= $Shout; } } unset($Shouts, $Shout); $pagenav = construct_page_nav($page, $perpage, $TS, 'vbshout.php?' . $vbulletin->session->vars['sessionurl'] . 'do=archive', '' . (!empty($vbulletin->GPC['perpage']) ? "&pp=$perpage" : "") ); eval('$HTML = "' . fetch_template('forumhome _vbshout_archive') . '";'); } // --------------------------------------------------- // Display Shout Archive // --------------------------------------------------- // --------------------------------------------------- // AJAX Edit Shout // --------------------------------------------------- if ($_POST['do'] == 'editshout') { $vbulletin->input->clean_array_gpc('p', array( 'id' => TYPE_UNIT, 'shout' => TYPE_STR, )); if (!$Shout = $DB->query_first("select * from " . TABLE_PREFIX . "shout where sid = '{$vbulletin->GPC['id']}'")) { echo $vbulletin->GPC['shout']; exit; } if ($Shout['sid'] != $vbulletin->userinfo['userid'] && !can_moderate()) { echo $vbulletin->GPC['shout']; exit; } $vbulletin->GPC['shout'] = convert_urlencoded_unicod e($vbulletin->GPC['shout']); $DB->query("update " . TABLE_PREFIX . "shout set s_shout = '".addslashes($vbullet in->GPC['shout'])."' where sid = $Shout[sid]"); $Shout = $DB->query_first("select * from " . TABLE_PREFIX . "shout where sid = '{$vbulletin->GPC['id']}'"); $Shout['s_shout'] = bbcodeparser($Shout['s_shout']); $Shout['style'] = ''; $Shout['data'] = unserialize($Shout['s_data']); if ($Shout['data']['color']) { $Shout['style'] .= 'color:'.$Shout['data']['color'].';'; } if ($Shout['data']['font']) { $Shout['style'] .= 'font-family:'.$Shout['data']['font'].';'; } if ($Shout['data']['bold']) { $Shout['style'] .= 'font-weight:'.$Shout['data']['bold'].';'; } if ($Shout['data']['underline']) { $Shout['style'] .= 'text-decoration:'.$Shout['data']['underline'].';'; } if ($Shout['data']['italic']) { $Shout['style'] .= 'font-style:'.$Shout['data']['italic'].';'; } if ($Shout['style']) { $Shout['s_shout'] = ''.$Shout['s_shout'].''; } echo $Shout['s_shout']; exit; } // --------------------------------------------------- // AJAX Edit Shout // --------------------------------------------------- // --------------------------------------------------- // AJAX Delete Shout // --------------------------------------------------- if ($_POST['do'] == 'deleteshout') { $vbulletin->input->clean_array_gpc('p', array( 'id' => TYPE_UNIT, )); if (!$Shout = $DB->query_first("select * from " . TABLE_PREFIX . "shout where sid = '{$vbulletin->GPC['id']}'")) { echo 'false'; exit; } if ($Shout['sid'] != $vbulletin->userinfo['userid'] && !can_moderate()) { echo 'false'; exit; } $vbulletin->GPC['shout'] = convert_urlencoded_unicod e($vbulletin->GPC['shout']); $DB->query("delete from " . TABLE_PREFIX . "shout where sid = $Shout[sid]"); echo 'true'; exit; } // --------------------------------------------------- // AJAX Delete Shout // --------------------------------------------------- // --------------------------------------------------- // Start Page Output // --------------------------------------------------- $navbits = construct_navbits($navbit s); eval('$navbar = "' . fetch_template('navbar') . '";'); eval('print_output("' . fetch_template('GENERIC_S HELL') . '");'); // --------------------------------------------------- // End Page Output // --------------------------------------------------- ?> /*======================== ========================= =====================*\ || ######################### ######################### ################## || || # vBShout v2 تطوير وتعريب اخوكم رياح الحب الرجاء عدم إزالة الحقوق # || || # http://www.r4444r.com/vb/ #### rya7_al7b@hotmail.com # || || ######################### ######################### ################## || \*======================= ========================= ======================*/ "shout set s_shout = '".addslashes($vbullet in->GPC['shout'])."' where sid = $Shout[sid]"); $Shout = $DB->query_first("select * from " . TABLE_PREFIX . "shout where sid = '{$vbulletin->GPC['id']}'"); $Shout['s_shout'] = bbcodeparser($Shout['s_shout']); $Shout['style'] = ''; $Shout['data'] = unserialize($Shout['s_data']); if ($Shout['data']['color']) { $Shout['style'] .= 'color:'.$Shout['data']['color'].';'; } if ($Shout['data']['font']) { $Shout['style'] .= 'font-family:'.$Shout['data']['font'].';'; } if ($Shout['data']['bold']) { $Shout['style'] .= 'font-weight:'.$Shout['data']['bold'].';'; } if ($Shout['data']['underline']) { $Shout['style'] .= 'text-decoration:'.$Shout['data']['underline'].';'; } if ($Shout['data']['italic']) { $Shout['style'] .= 'font-style:'.$Shout['data']['italic'].';'; } if ($Shout['style']) { $Shout['s_shout'] = ''.$Shout['s_shout'].''; } rewrite_shoutbox_flatfile (); echo $Shout['s_shout']; exit; } // --------------------------------------------------- // AJAX Edit Shout // --------------------------------------------------- // --------------------------------------------------- // AJAX Delete Shout // --------------------------------------------------- if ($_POST['do'] == 'deleteshout') { $vbulletin->input->clean_array_gpc('p', array( 'id' => TYPE_UNIT, )); if (!$Shout = $DB->query_first("select * from " . TABLE_PREFIX . "shout where sid = '{$vbulletin->GPC['id']}'")) { echo 'false'; exit; } if ($Shout['s_by'] != $vbulletin->userinfo['userid'] && !can_moderate()) { echo 'false'; exit; } $vbulletin->GPC['shout'] = convert_urlencoded_unicod e($vbulletin->GPC['shout']); $DB->query("delete from " . TABLE_PREFIX . "shout where sid = $Shout[sid]"); rewrite_shoutbox_flatfile (); echo 'true'; exit; } // --------------------------------------------------- // AJAX Delete Shout // --------------------------------------------------- // --------------------------------------------------- // Start Page Output // --------------------------------------------------- $navbits = construct_navbits($navbit s); eval('$navbar = "' . fetch_template('navbar') . '";'); eval('print_output("' . fetch_template('GENERIC_S HELL') . '");'); // --------------------------------------------------- // End Page Output // --------------------------------------------------- ?>