admin/index.php

생성일 비교 결과 만료 없음
95 삭제
411 행
139 추가
405 행
<?php
<?php
/*=======================================================================
/*=======================================================================
Nuke-Evolution Basic: Enhanced PHP-Nuke Web Portal System
Nuke-Evolution Basic: Enhanced PHP-Nuke Web Portal System
=======================================================================*/
=======================================================================*/


// ==========================================
// ==========================================
// PHP-NUKE: Shout Box
// PHP-NUKE: Shout Box
// ==========================
// ==========================
//
//
// Copyright (c) 2003-2005 by Aric Bolf (SuperCat)
// Copyright (c) 2003-2005 by Aric Bolf (SuperCat)
// http://www.OurScripts.net
// http://www.OurScripts.net
//
//
// Copyright (c) 2002 by Quiecom
// Copyright (c) 2002 by Quiecom
// http://www.Quiecom.com
// http://www.Quiecom.com
//
//
// This program is free software. You can redistribute it and/or modify
// This program is free software. You can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation
// the Free Software Foundation
// ===========================================
// ===========================================


/*****[CHANGES]**********************************************************
/*****[CHANGES]**********************************************************
-=[Base]=-
-=[Base]=-
Nuke Patched v3.1.0 08/10/2005
Nuke Patched v3.1.0 08/10/2005
-=[Mod]=-
-=[Mod]=-
Advanced Username Color v1.0.5 10/29/2005
Advanced Username Color v1.0.5 10/29/2005
************************************************************************/
************************************************************************/


if (!defined('ADMIN_FILE')) {
if (!defined('ADMIN_FILE')) {
die ("Illegal File Access");
die ("Illegal File Access");
}
}


global $prefix, $db, $cache;
global $prefix, $cache;
$module_name = basename(dirname(dirname(__FILE__)));
$module_name = basename(dirname(dirname(__FILE__)));
if (!is_mod_admin($module_name)) {
if (!is_mod_admin($module_name)) {
die("Access Denied");
die("Access Denied");
}
}


global $currentlang, $sbURL;
global $currentlang, $sbURL;


if ($currentlang) {
if ($currentlang) {
include_once(NUKE_MODULES_DIR.$module_name.'/lang-admin/lang-'.$currentlang.'.php');
include_once(NUKE_MODULES_DIR.$module_name.'/lang-admin/lang-'.$currentlang.'.php');
} else {
} else {
include_once(NUKE_MODULES_DIR.$module_name.'/lang-admin/lang-english.php');
include_once(NUKE_MODULES_DIR.$module_name.'/lang-admin/lang-english.php');
}
}


include_once(NUKE_MODULES_DIR.'Shout_Box/shout.php');
include_once(NUKE_MODULES_DIR.'Shout_Box/shout.php');


$ThemeSel = get_theme();
$ThemeSel = get_theme();
global $rowColor;
global $rowColor;
if ((($rowColor = $cache->load('theme_'.$ThemeSel, 'shoutbox')) == false) || empty($rowColor)) {
if ((($rowColor = $cache->load('theme_'.$ThemeSel, 'shoutbox')) == false) || empty($rowColor)) {
$sql = "SELECT * FROM `".$prefix."_shoutbox_themes` WHERE themeName='$ThemeSel'";
$sql = "SELECT * FROM `".$prefix."_shoutbox_themes` WHERE themeName='$ThemeSel'";
$result = $db->sql_query($sql);
$result = dbquery($sql);
$rowColor = $db->sql_fetchrow($result);
$rowColor = dbrow($result);
$cache->save('theme_'.$ThemeSel, 'shoutbox', $rowColor);
$cache->save('theme_'.$ThemeSel, 'shoutbox', $rowColor);
$db->sql_freeresult($result);
dbfree($result);
}
}


global $shout_conf;
global $shout_conf;
if ((($shout_conf = $cache->load('conf', 'shoutbox')) == false) || empty($shout_conf)) {
if ((($shout_conf = $cache->load('conf', 'shoutbox')) == false) || empty($shout_conf)) {
$sql = "SELECT * FROM `".$prefix."_shoutbox_conf`";
$sql = "SELECT * FROM `".$prefix."_shoutbox_conf`";
$result = $db->sql_query($sql);
$result = dbquery($sql);
$shout_conf = $db->sql_fetchrow($result);
$shout_conf = dbrow($result);
$cache->save('conf', 'shoutbox', $shout_conf);
$cache->save('conf', 'shoutbox', $shout_conf);
}
}




$sbURL = 'index.php?url=';
$sbURL = 'index.php?url=';


function LinkAdmin() {
function LinkAdmin() {
Global $admin_file;
Global $admin_file;
OpenTable();
OpenTable();
//echo "<center><a href=\"".$admin_file.".php\"><span class=\"title\">"._ADMINMENU."</span></a></center>";
//echo "<center><a href=\"".$admin_file.".php\"><span class=\"title\">"._ADMINMENU."</span></a></center>";
echo "<div align=\"center\">\n<a href=\"$admin_file.php?op=shout\">" . _SHOUT_ADMIN_HEADER . "</a></div>\n";
echo "<div style=\"text-align: center;\">\n<a href=\"$admin_file.php?op=shout\">" . _SHOUT_ADMIN_HEADER . "</a></div>\n";
echo "<br /><br />";
echo "<br /><br />";
echo "<div align=\"center\">\n[ <a href=\"$admin_file.php\">" . _SHOUT_RETURNMAIN . "</a> ]</div>\n";
echo "<div style=\"text-align: center;\">\n[ <a href=\"$admin_file.php\">" . _SHOUT_RETURNMAIN . "</a> ]</div>\n";
CloseTable();
CloseTable();
echo "<br />";
echo "<br />";
}
}


// Start 'Menu' code
// Start 'Menu' code


function ShoutBoxAdminMenu($ShoutMenuOptionActive) {
function ShoutBoxAdminMenu($ShoutMenuOptionActive) {
global $admin_file, $rowColor;
global $admin_file, $rowColor;
OpenTable();
OpenTable();
echo "<br /><div align=\"center\" class=\"title\">"._SHOUTADMIN."</div><br />";
echo "<br /><div style=\"text-align: center;\" class=\"title\">"._SHOUTADMIN."</div><br />";


echo "<center><table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"background-color: ".$rowColor['border'].";\" nowrap=\"nowrap\">";
echo "<table style=\"text-align: center; border: 0; margin-left:auto; margin-right:auto;\" cellpadding=\"0\" cellspacing=\"0\"><tr><td style=\"background-color: ".$rowColor['border'].";\" nowrap=\"nowrap\">";
echo "<table align=\"center\" cellpadding=\"0\" cellspacing=\"1\" border=\"0\"><tr><td style=\"background-color: ".$rowColor['menuColor2'].";\" nowrap=\"nowrap\">";
echo "<table style=\"text-align: center; border:0;\" cellpadding=\"0\" cellspacing=\"1\"><tr><td style=\"background-color: ".$rowColor['menuColor2'].";\" nowrap=\"nowrap\">";
echo "<table align=\"center\" cellpadding=\"1\" cellspacing=\"2\" border=\"0\"><tr style=\"cursor: hand; text-align: center;\">";
echo "<table style=\"text-align: center; border:0;\" cellpadding=\"1\" cellspacing=\"2\"><tr style=\"cursor: hand; text-align: center;\">";


echo "<td style=\"background-color: $rowColor[border];\"><table cellpadding=\"6\" cellspacing=\"0\" border=\"0\"><tr>";
echo "<td style=\"background-color: $rowColor[border];\"><table cellpadding=\"6\" cellspacing=\"0\" style=\"border: 0;\"><tr>";
if ($ShoutMenuOptionActive == 1) {
if ($ShoutMenuOptionActive == 1) {
echo "<td style=\"background-color: ".$rowColor['menuColor1']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=manageShouts'\" nowrap=\"nowrap\">";
echo "<td style=\"background-color: ".$rowColor['menuColor1']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=manageShouts'\" nowrap=\"nowrap\">";
} else {
} else {
echo "<td style=\"background-color: ".$rowColor['menuColor2']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=manageShouts'\" onmouseover=\"this.style.backgroundColor='".$rowColor['menuColor1']."';\" onmouseout=\"this.style.backgroundColor='".$rowColor['menuColor2']."';\" nowrap=\"nowrap\">";
echo "<td style=\"background-color: ".$rowColor['menuColor2']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=manageShouts'\" onmouseover=\"this.style.backgroundColor='".$rowColor['menuColor1']."';\" onmouseout=\"this.style.backgroundColor='".$rowColor['menuColor2']."';\" nowrap=\"nowrap\">";
}
}
echo "<strong>"._MANAGESHOUTS."</strong></td></tr></table></td>";
echo "<strong>"._MANAGESHOUTS."</strong></td></tr></table></td>";


echo "<td style=\"background-color: $rowColor[border];\"><table cellpadding=\"6\" cellspacing=\"0\" border=\"0\"><tr>";
echo "<td style=\"background-color: $rowColor[border];\"><table cellpadding=\"6\" cellspacing=\"0\" style=\" border:0;\"><tr>";
if ($ShoutMenuOptionActive == 2) {
if ($ShoutMenuOptionActive == 2) {
echo "<td style=\"background-color: ".$rowColor['menuColor1']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=ShoutBoxLayout'\" nowrap=\"nowrap\">";
echo "<td style=\"background-color: ".$rowColor['menuColor1']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=ShoutBoxLayout'\" nowrap=\"nowrap\">";
} else {
} else {
echo "<td style=\"background-color: ".$rowColor['menuColor2']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=ShoutBoxLayout'\" onmouseover=\"this.style.backgroundColor='".$rowColor['menuColor1']."';\" onmouseout=\"this.style.backgroundColor='".$rowColor['menuColor2']."';\" nowrap=\"nowrap\">";
echo "<td style=\"background-color: ".$rowColor['menuColor2']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=ShoutBoxLayout'\" onmouseover=\"this.style.backgroundColor='".$rowColor['menuColor1']."';\" onmouseout=\"this.style.backgroundColor='".$rowColor['menuColor2']."';\" nowrap=\"nowrap\">";
}
}
echo "<strong>"._SB_LAYOUT."</strong></td></tr></table></td>";
echo "<strong>"._SB_LAYOUT."</strong></td></tr></table></td>";


echo "<td style=\"background-color: ".$rowColor['border'].";\"><table cellpadding=\"6\" cellspacing=\"0\" border=\"0\"><tr>";
echo "<td style=\"background-color: ".$rowColor['border'].";\"><table cellpadding=\"6\" cellspacing=\"0\" style=\"border:0;\"><tr>";
if ($ShoutMenuOptionActive == 3) {
if ($ShoutMenuOptionActive == 3) {
echo "<td style=\"background-color: ".$rowColor['menuColor1']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=ShoutBoxThemeing'\" nowrap=\"nowrap\">";
echo "<td style=\"background-color: ".$rowColor['menuColor1']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=ShoutBoxThemeing'\" nowrap=\"nowrap\">";
} else {
} else {
echo "<td style=\"background-color: ".$rowColor['menuColor2']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=ShoutBoxThemeing'\" onmouseover=\"this.style.backgroundColor='".$rowColor['menuColor1']."';\" onmouseout=\"this.style.backgroundColor='".$rowColor['menuColor2']."';\" nowrap=\"nowrap\">";
echo "<td style=\"background-color: ".$rowColor['menuColor2']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=ShoutBoxThemeing'\" onmouseover=\"this.style.backgroundColor='".$rowColor['menuColor1']."';\" onmouseout=\"this.style.backgroundColor='".$rowColor['menuColor2']."';\" nowrap=\"nowrap\">";
}
}
echo "<strong>"._SB_THEMEING."</strong></td></tr></table></td>";
echo "<strong>"._SB_THEMEING."</strong></td></tr></table></td>";


echo "<td style=\"background-color: ".$rowColor['border'].";\"><table cellpadding=\"6\" cellspacing=\"0\" border=\"0\"><tr>";
echo "<td style=\"background-color: ".$rowColor['border'].";\"><table cellpadding=\"6\" cellspacing=\"0\" style=\"border: 0;\"><tr>";
if ($ShoutMenuOptionActive == 4) {
if ($ShoutMenuOptionActive == 4) {
echo "<td style=\"background-color: ".$rowColor['menuColor1']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=ShoutBoxPermissions'\" nowrap=\"nowrap\">";
echo "<td style=\"background-color: ".$rowColor['menuColor1']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=ShoutBoxPermissions'\" nowrap=\"nowrap\">";
} else {
} else {
echo "<td style=\"background-color: ".$rowColor['menuColor2']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=ShoutBoxPermissions'\" onmouseover=\"this.style.backgroundColor='".$rowColor['menuColor1']."';\" onmouseout=\"this.style.backgroundColor='".$rowColor['menuColor2']."';\" nowrap=\"nowrap\">";
echo "<td style=\"background-color: ".$rowColor['menuColor2']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=ShoutBoxPermissions'\" onmouseover=\"this.style.backgroundColor='".$rowColor['menuColor1']."';\" onmouseout=\"this.style.backgroundColor='".$rowColor['menuColor2']."';\" nowrap=\"nowrap\">";
}
}
echo "<strong>"._SB_PERMISSIONS."</strong></td></tr></table></td>";
echo "<strong>"._SB_PERMISSIONS."</strong></td></tr></table></td>";


echo "<td style=\"background-color: ".$rowColor['border'].";\"><table cellpadding=\"6\" cellspacing=\"0\" border=\"0\"><tr>";
echo "<td style=\"background-color: ".$rowColor['border'].";\"><table cellpadding=\"6\" cellspacing=\"0\" style=\"border: 0;\"><tr>";
if ($ShoutMenuOptionActive == 5) {
if ($ShoutMenuOptionActive == 5) {
echo "<td style=\"background-color: ".$rowColor['menuColor1']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=manageemoticons'\" nowrap=\"nowrap\">";
echo "<td style=\"background-color: ".$rowColor['menuColor1']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=manageemoticons'\" nowrap=\"nowrap\">";
} else {
} else {
echo "<td style=\"background-color: ".$rowColor['menuColor2']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=manageemoticons'\" onmouseover=\"this.style.backgroundColor='".$rowColor['menuColor1']."';\" onmouseout=\"this.style.backgroundColor='".$rowColor['menuColor2']."';\" nowrap=\"nowrap\">";
echo "<td style=\"background-color: ".$rowColor['menuColor2']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=manageemoticons'\" onmouseover=\"this.style.backgroundColor='".$rowColor['menuColor1']."';\" onmouseout=\"this.style.backgroundColor='".$rowColor['menuColor2']."';\" nowrap=\"nowrap\">";
}
}
echo "<strong>"._SB_EMOTICONS."</strong></td></tr></table></td>";
echo "<strong>"._SB_EMOTICONS."</strong></td></tr></table></td>";


echo "<td style=\"background-color: ".$rowColor['border'].";\"><table cellpadding=\"6\" cellspacing=\"0\" border=\"0\"><tr>";
echo "<td style=\"background-color: ".$rowColor['border'].";\"><table cellpadding=\"6\" cellspacing=\"0\" style=\"border: 0;\"><tr>";
if ($ShoutMenuOptionActive == 6) {
if ($ShoutMenuOptionActive == 6) {
echo "<td style=\"background-color: ".$rowColor['menuColor1']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=managecensor'\" nowrap=\"nowrap\">";
echo "<td style=\"background-color: ".$rowColor['menuColor1']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=managecensor'\" nowrap=\"nowrap\">";
} else {
} else {
echo "<td style=\"background-color: ".$rowColor['menuColor2']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=managecensor'\" onmouseover=\"this.style.backgroundColor='".$rowColor['menuColor1']."';\" onmouseout=\"this.style.backgroundColor='".$rowColor['menuColor2']."';\" nowrap=\"nowrap\">";
echo "<td style=\"background-color: ".$rowColor['menuColor2']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=managecensor'\" onmouseover=\"this.style.backgroundColor='".$rowColor['menuColor1']."';\" onmouseout=\"this.style.backgroundColor='".$rowColor['menuColor2']."';\" nowrap=\"nowrap\">";
}
}
echo "<strong>"._SB_CENSOR."</strong></td></tr></table></td>";
echo "<strong>"._SB_CENSOR."</strong></td></tr></table></td>";


echo "<td style=\"background-color: ".$rowColor['border'].";\"><table cellpadding=\"6\" cellspacing=\"0\" border=\"0\"><tr>";
echo "<td style=\"background-color: ".$rowColor['border'].";\"><table cellpadding=\"6\" cellspacing=\"0\" style=\"border: 0;\"><tr>";
if ($ShoutMenuOptionActive == 7) {
if ($ShoutMenuOptionActive == 7) {
echo "<td style=\"background-color: ".$rowColor['menuColor1']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=ShoutBoxBans'\" nowrap=\"nowrap\">";
echo "<td style=\"background-color: ".$rowColor['menuColor1']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=ShoutBoxBans'\" nowrap=\"nowrap\">";
} else {
} else {
echo "<td style=\"background-color: ".$rowColor['menuColor2']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=ShoutBoxBans'\" onmouseover=\"this.style.backgroundColor='".$rowColor['menuColor1']."';\" onmouseout=\"this.style.backgroundColor='".$rowColor['menuColor2']."';\" nowrap=\"nowrap\">";
echo "<td style=\"background-color: ".$rowColor['menuColor2']."; line-height: .8em;\" onclick=\"top.location.href='".$admin_file.".php?op=shout&amp;Submit=ShoutBoxBans'\" onmouseover=\"this.style.backgroundColor='".$rowColor['menuColor1']."';\" onmouseout=\"this.style.backgroundColor='".$rowColor['menuColor2']."';\" nowrap=\"nowrap\">";
}
}
echo "<strong>"._SB_BANS."</strong></td></tr></table></td>";
echo "<strong>"._SB_BANS."</strong></td></tr></table></td>";


echo "</tr></table>\n";
echo "</tr></table>\n";
echo "</td></tr></table></td></tr></table></center>";
echo "</td></tr></table></td></tr></table>";


CloseTable();
CloseTable();
echo "<br />";
echo "<br />";
}
}


// End 'Menu' code
// End 'Menu' code


// Start 'Manage Shouts' code (Default page)
// Start 'Manage Shouts' code (Default page)


function manageShouts($page, $pruned) {
function manageShouts($page, $pruned) {
global $prefix, $db, $admin, $admin_file, $sbURL, $module_name, $shout_conf, $rowColor, $userinfo, $board_config;
global $prefix, $admin, $admin_file, $sbURL, $module_name, $shout_conf, $rowColor, $userinfo, $board_config;
include_once(NUKE_BASE_DIR.'header.php');
include_once(NUKE_BASE_DIR.'header.php');
LinkAdmin();
LinkAdmin();
$ShoutMenuOptionActive = 1;
$ShoutMenuOptionActive = 1;
ShoutBoxAdminMenu($ShoutMenuOptionActive);
ShoutBoxAdminMenu($ShoutMenuOptionActive);
OpenTable();
OpenTable();


$conf = $shout_conf;
$conf = $shout_conf;


$sql = "SELECT aCount FROM ".$prefix."_shoutbox_manage_count WHERE admin='$admin[0]'";
$sql = "SELECT aCount FROM ".$prefix."_shoutbox_manage_count WHERE admin='$admin[0]'";
$resultA = $db->sql_query($sql);
$resultA = dbquery($sql);
$aCount = $db->sql_fetchrow($resultA);
$aCount = dbrow($resultA);
if (empty($aCount['aCount'])) {
if (empty($aCount['aCount'])) {
$sql = "INSERT INTO ".$prefix."_shoutbox_manage_count (admin, aCount) VALUES ('$admin[0]','10')";
$sql = "INSERT INTO ".$prefix."_shoutbox_manage_count (admin, aCount) VALUES ('$admin[0]','10')";
$db->sql_query($sql);
dbquery($sql);
$aCount['aCount'] = 10;
$aCount['aCount'] = 10;
}
}


echo "<form name=\"manageShouts1\" action=\"\" method=\"post\" style=\"margin-bottom: 0px;\"><div class=\"content\">";
echo "<form name=\"manageShouts1\" action=\"\" method=\"post\" style=\"margin-bottom: 0px;\"><div class=\"content\">";
echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\"><tr><td style=\"background-color: ".$rowColor['border'].";\">";
echo "<table cellpadding=\"0\" cellspacing=\"0\"style=\"border: 0px; width: 100%;\"><tr><td style=\"background-color: ".$rowColor['border'].";\">";
echo "<table cellpadding=\"3\" cellspacing=\"1\" border=\"0\" width=\"100%\"><tr style=\"background-color: ".$rowColor['menuColor1'].";\" align=\"center\">";
echo "<table cellpadding=\"3\" cellspacing=\"1\"style=\"border: 0px; width: 100%;\"><tr style=\"background-color: ".$rowColor['menuColor1'].";\" style=\"text-align: center;\">";
echo "<td width=\"10%\"><strong>"._SB_NICKNAME."</strong></td>";
echo "<td style=\"width:10%;\"><strong>"._SB_NICKNAME."</strong></td>";
echo "<td><strong>"._SB_SHOUT."</strong></td>";
echo "<td><strong>"._SB_SHOUT."</strong></td>";
echo "<td width=\"16%\"><strong>"._SB_DATE." &amp; "._SB_TIME."</strong></td>";
echo "<td style=\"width:16%;\"><strong>"._SB_DATE." &amp; "._SB_TIME."</strong></td>";
echo "<td width=\"5%\"><strong>"._DELETE."</strong></td>";
echo "<td style=\"width:5%; text-align:center;\"><strong>"._DELETE."</strong></td>";
echo "<td width=\"5%\"><strong>"._EDIT."</strong></td>";
echo "<td style=\"width:5%; text-align:center;\"><strong>"._EDIT."</strong></td>";
echo "<td width=\"5%\"><strong>"._BAN."</strong></td>";
echo "<td style=\"width:5%; text-align:center;\"><strong>"._BAN."</strong></td>";
echo "</tr>";
echo "</tr>";


$sql = "SELECT `id` FROM `".$prefix."_shoutbox_shouts`";
$sql = "SELECT `id` FROM `".$prefix."_shoutbox_shouts`";
$result = $db->sql_query($sql);
$result = dbquery($sql);
$numrows = $db->sql_numrows($result);
$numrows = dbnumrows($result);
$db->sql_freeresult($result);
dbfree($result);
$numrows2 = $numrows;
$numrows2 = $numrows;
$shout_pages = 1;
$shout_pages = 1;
$shoutsViewed = $aCount['aCount'];
$shoutsViewed = $aCount['aCount'];
while ($numrows >= $shoutsViewed) {
while ($numrows >= $shoutsViewed) {
$shout_pages++;
$shout_pages++;
$numrows = ($numrows - $shoutsViewed);
$numrows = ($numrows - $shoutsViewed);
}
}
if ($shout_pages == 0) { $shout_pages = 1; }
if ($shout_pages == 0) { $shout_pages = 1; }
if (!$page) { $page = 1; }
if (!$page) { $page = 1; }
if ($page < 1) { $page = 1; }
if ($page < 1) { $page = 1; }
if ($page > $shout_pages) { $page = $shout_pages; }
if ($page > $shout_pages) { $page = $shout_pages; }
if ($page > 1) {
if ($page > 1) {
$offset = ($page * $shoutsViewed);
$offset = ($page * $shoutsViewed);
$offset1 = ($offset - $shoutsViewed);
$offset1 = ($offset - $shoutsViewed);
} else { $offset1 = 0; }
} else { $offset1 = 0; }


$shgroup1 = ($page*$aCount['aCount']);
$shgroup1 = ($page*$aCount['aCount']);
$shgroup1 = ($shgroup1-$aCount['aCount']);
$shgroup1 = ($shgroup1-$aCount['aCount']);
$shgroup1 = ($shgroup1+1);
$shgroup1 = ($shgroup1+1);
if ($shgroup1 < 1) { $shgroup1 = 1; }
if ($shgroup1 < 1) { $shgroup1 = 1; }
$shgroup2 = ($shgroup1-1);
$shgroup2 = ($shgroup1-1);


$sql = "SELECT * FROM `".$prefix."_shoutbox_shouts` ORDER BY `id` DESC LIMIT ".$offset1.",".$aCount['aCount'];
$sql = "SELECT * FROM `".$prefix."_shoutbox_shouts` ORDER BY `id` DESC LIMIT ".$offset1.",".$aCount['aCount'];
$nameresult = $db->sql_query($sql);
$nameresult = dbquery($sql);
$x = 1;
$x = 1;
while ($shout = $db->sql_fetchrow($nameresult)) {
while ($shout = dbrow($nameresult)) {
$comment = str_replace('src=', 'src="', $shout['comment']);
$comment = str_replace('src=', 'src="', $shout['comment']);
$comment = str_replace('.gif>', '.gif" alt="" />', $comment);
$comment = str_replace('.gif>', '.gif" alt="" />', $comment);
$comment = str_replace('.jpg>', '.jpg" alt="" />', $comment);
$comment = str_replace('.jpg>', '.jpg" alt="" />', $comment);
$comment = str_replace('.png>', '.png" alt="" />', $comment);
$comment = str_replace('.png>', '.png" alt="" />', $comment);
$comment = str_replace('.bmp>', '.bmp" alt="" />', $comment);
$comment = str_replace('.bmp>', '.bmp" alt="" />', $comment);
/*$comment = str_replace("http:", "".$sbURL."http:", $comment);
/*$comment = str_replace("http:", "".$sbURL."http:", $comment);
$comment = str_replace("ftp:", "".$sbURL."ftp:", $comment);*/
$comment = str_replace("ftp:", "".$sbURL."ftp:", $comment);*/


// BB code [b]word[/b] [i]word[/i] [u]word[/u]
// BB code [b]word[/b] [i]word[/i] [u]word[/u]
if ((preg_match("#[b]#i", $comment)) && (preg_match("#[/b]#i", $comment)) && (substr_count($comment,"[b]") == substr_count($comment,"[/b]"))) {
if ((preg_match("#[b]#i", $comment)) && (preg_match("#[/b]#i", $comment)) && (substr_count($comment,"[b]") == substr_count($comment,"[/b]"))) {
$comment = str_replace("[b]","<span style=\"font-weight: bold\">",$comment);
$comment = str_replace("[b]","<span style=\"font-weight: bold\">",$comment);
$comment = str_replace("[/b]","</span>",$comment);
$comment = str_replace("[/b]","</span>",$comment);
}
}
if ((preg_match("#[i]#i", $comment)) && (preg_match("#[/i]#i", $comment)) && (substr_count($comment,"[i]") == substr_count($comment,"[/i]"))) {
if ((preg_match("#[i]#i", $comment)) && (preg_match("#[/i]#i", $comment)) && (substr_count($comment,"[i]") == substr_count($comment,"[/i]"))) {
$comment = str_replace("[i]","<span style=\"font-style: italic\">",$comment);
$comment = str_replace("[i]","<span style=\"font-style: italic\">",$comment);
$comment = str_replace("[/i]","</span>",$comment);
$comment = str_replace("[/i]","</span>",$comment);
}
}
if ((preg_match("#[u]#i", $comment)) && (preg_match("#[/u]#i", $comment)) && (substr_count($comment,"[u]") == substr_count($comment,"[/u]"))) {
if ((preg_match("#[u]#i", $comment)) && (preg_match("#[/u]#i", $comment)) && (substr_count($comment,"[u]") == substr_count($comment,"[/u]"))) {
$comment = str_replace("[u]","<span style=\"text-decoration: underline\">",$comment);
$comment = str_replace("[u]","<span style=\"text-decoration: underline\">",$comment);
$comment = str_replace("[/u]","</span>",$comment);
$comment = str_replace("[/u]","</span>",$comment);
}
}


// check to see if nickname is a user in the DB
// check to see if nickname is a user in the DB
$sql = "SELECT * FROM `".$prefix."_users` WHERE `username`='".$shout['name']."'";
$sql = "SELECT * FROM `".$prefix."_users` WHERE `username`='".$shout['name']."'";
$nameresult2 = $db->sql_query($sql);
$nameresult2 = dbquery($sql);
$row = $db->sql_fetchrow($nameresult2);
$row = dbrow($nameresult2);
if ($row && $shout['name'] != "Anonymous" && $shout['comment'] != "Anonymous") {
if ($row && $shout['name'] != "Anonymous" && $shout['comment'] != "Anonymous") {
/*****[BEGIN]******************************************
/*****[BEGIN]******************************************
[ Mod: Advanced Username Color v1.0.5 ]
[ Mod: Advanced Username Color v1.0.5 ]
******************************************************/
******************************************************/
echo "<tr style=\"background-color: ".$rowColor['menuColor2'].";\" onmouseover=\"this.style.backgroundColor='".$rowColor['menuColor1']."';\" onmouseout=\"this.style.backgroundColor='".$rowColor['menuColor2']."';\"><td nowrap=\"nowrap\"><a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$shout[name]\">" . UsernameColor($shout['name']) . "</a></td><td>$comment</td>";
echo "<tr style=\"background-color: ".$rowColor['menuColor2'].";\" onmouseover=\"this.style.backgroundColor='".$rowColor['menuColor1']."';\" onmouseout=\"this.style.backgroundColor='".$rowColor['menuColor2']."';\"><td nowrap=\"nowrap\"><a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$shout[name]\">" . UsernameColor($shout['name']) . "</a></td><td>$comment</td>";
} else {
} else {
echo "<tr style=\"background-color: ".$rowColor['menuColor2'].";\" onmouseover=\"this.style.backgroundColor='".$rowColor['menuColor1']."';\" onmouseout=\"this.style.backgroundColor='".$rowColor['menuColor2']."';\"><td nowrap=\"nowrap\">" . UsernameColor($shout['name']) . "</td><td>$comment</td>";
echo "<tr style=\"background-color: ".$rowColor['menuColor2'].";\" onmouseover=\"this.style.backgroundColor='".$rowColor['menuColor1']."';\" onmouseout=\"this.style.backgroundColor='".$rowColor['menuColor2']."';\"><td nowrap=\"nowrap\">" . UsernameColor($shout['name']) . "</td><td>$comment</td>";
/*****[END]********************************************
/*****[END]********************************************
[ Mod: Advanced Username Color v1.0.5 ]
[ Mod: Advanced Username Color v1.0.5 ]
******************************************************/
******************************************************/
}
}


echo "<td nowrap=\"nowrap\">";
echo "<td nowrap=\"nowrap\">";
if (!empty($shout['timestamp'])) {
if (!empty($shout['timestamp'])) {
// reads unix timestamp and formats it to the viewer's timezone
// reads unix timestamp and formats it to the viewer's timezone
if (is_user()) {
if (is_user()) {
$unixTime = EvoDate($userinfo['user_dateformat'], $shout['timestamp'], $userinfo['user_timezone']);
$unixTime = EvoDate($userinfo['user_dateformat'], $shout['timestamp'], $userinfo['user_timezone']);
echo $unixTime;
echo $unixTime;
} else {
} else {
$unixTime = EvoDate($board_config['default_dateformat'], $shout['timestamp'], $board_config['board_timezone']);
$unixTime = EvoDate($board_config['default_dateformat'], $shout['timestamp'], $board_config['board_timezone']);
echo "$unixTime";
echo "$unixTime";
}
}
} else {
} else {
echo $shout['date']."&nbsp;".$shout['time'];
echo $shout['date']."&nbsp;".$shout['time'];
}
}
echo "</td>";
echo "</td>";


echo "<td align=\"center\"><input type=\"hidden\" name=\"sr$x\" value=\"".$shout['id']."\" /><input type=\"checkbox\" name=\"shr$x\" /></td><td align=\"center\"><a title=\"Edit\" href=\"".$admin_file.".php?op=shout&amp;Submit=ShoutEdit&amp;shoutID=".$shout['id']."&amp;page=$page\">"._EDIT."</a></td>";
echo "<td style=\"text-align: center;\"><input type=\"hidden\" name=\"sr$x\" value=\"".$shout['id']."\" /><input type=\"checkbox\" name=\"shr$x\" /></td><td style=\"text-align: center;\"><a title=\"Edit\" href=\"".$admin_file.".php?op=shout&amp;Submit=ShoutEdit&amp;shoutID=".$shout['id']."&amp;page=$page\">"._EDIT."</a></td>";


if ($shout['ip'] != 'noip') {
if ($shout['ip'] != 'noip') {
$sql = "SELECT * FROM `".$prefix."_shoutbox_ipblock` WHERE `name`='".$shout['ip']."' ";
$sql = "SELECT * FROM `".$prefix."_shoutbox_ipblock` WHERE `name`='".$shout['ip']."' ";
$nameIPresult = $db->sql_query($sql);
$nameIPresult = dbquery($sql);
$nameIProw = $db->sql_fetchrow($nameIPresult);
$nameIProw = dbrow($nameIPresult);
$db->sql_freeresult($nameIPresult);
dbfree($nameIPresult);
if ($nameIProw) {
if ($nameIProw) {
echo "<td><strong>"._SB_BANNED."</strong></td></tr>";
echo "<td><strong>"._SB_BANNED."</strong></td></tr>";
} else {
} else {
echo "<td align=\"center\"><a title=\""._BAN."\" href=\"".$admin_file.".php?op=shout&amp;Submit=ban&amp;bid=".$shout['id']."&amp;page=$page\">"._BAN."</a></td></tr>";
echo "<td style=\"text-align: center;\"><a title=\""._BAN."\" href=\"".$admin_file.".php?op=shout&amp;Submit=ban&amp;bid=".$shout['id']."&amp;page=$page\">"._BAN."</a></td></tr>";
}
}
} else {
} else {
echo "<td>&nbsp;</td></tr>";
echo "<td>&nbsp;</td></tr>";
}
}
$x++;
$x++;
$shgroup2++;
$shgroup2++;
}
}
$db->sql_freeresult($nameresult);
dbfree($nameresult);
echo "</table></td></tr></table><br />";
echo "</table></td></tr></table><br />";


echo "<table cellpadding=\"3\" cellspacing=\"0\" border=\"0\" width=\"100%\"><tr>";
echo "<table cellpadding=\"3\" cellspacing=\"0\"style=\"border: 0px; width: 100%;\"><tr>";
echo "<td width=\"1%\"><select onchange=\"top.location.href=this.options[this.selectedIndex].value\" name=\"adminDropCount2\">";
echo "<td style=\"width:1%;\"><select onchange=\"top.location.href=this.options[this.selectedIndex].value\" name=\"adminDropCount2\">";
if ($aCount['aCount'] == '10') { $SEL1 = " selected=\"selected\""; } else { $SEL1 = ''; }
if ($aCount['aCount'] == '10') { $SEL1 = " selected=\"selected\""; } else { $SEL1 = ''; }
if ($aCount['aCount'] == '15') { $SEL2 = " selected=\"selected\""; } else { $SEL2 = ''; }
if ($aCount['aCount'] == '15') { $SEL2 = " selected=\"selected\""; } else { $SEL2 = ''; }
if ($aCount['aCount'] == '20') { $SEL3 = " selected=\"selected\""; } else { $SEL3 = ""; }
if ($aCount['aCount'] == '20') { $SEL3 = " selected=\"selected\""; } else { $SEL3 = ""; }
if ($aCount['aCount'] == '25') { $SEL4 = " selected=\"selected\""; } else { $SEL4 = ""; }
if ($aCount['aCount'] == '25') { $SEL4 = " selected=\"selected\""; } else { $SEL4 = ""; }
echo "<option value=\"".$admin_file.".php?op=shout&amp;Submit=adminDropCount&amp;aCount=10&amp;page=$page\"$SEL1>10</option><option value=\"".$admin_file.".php?op=shout&amp;Submit=adminDropCount&amp;aCount=15&amp;page=$page\"$SEL2>15</option><option value=\"".$admin_file.".php?op=shout&amp;Submit=adminDropCount&amp;aCount=20&amp;page=$page\"$SEL3>20</option><option value=\"".$admin_file.".php?op=shout&amp;Submit=adminDropCount&amp;aCount=25&amp;page=$page\"$SEL4>25</option></select></td>";
echo "<option value=\"".$admin_file.".php?op=shout&amp;Submit=adminDropCount&amp;aCount=10&amp;page=$page\"$SEL1>10</option><option value=\"".$admin_file.".php?op=shout&amp;Submit=adminDropCount&amp;aCount=15&amp;page=$page\"$SEL2>15</option><option value=\"".$admin_file.".php?op=shout&amp;Submit=adminDropCount&amp;aCount=20&amp;page=$page\"$SEL3>20</option><option value=\"".$admin_file.".php?op=shout&amp;Submit=adminDropCount&amp;aCount=25&amp;page=$page\"$SEL4>25</option></select></td>";


echo "<td width=\"9%\" nowrap=\"nowrap\">"._VIEWINGSHOUTS.": $shgroup1 - $shgroup2<br />"._TOTALSHOUTS.": $numrows2</td>";
echo "<td style=\"width:9%;\" nowrap=\"nowrap\">"._VIEWINGSHOUTS.": $shgroup1 - $shgroup2<br />"._TOTALSHOUTS.": $numrows2</td>";


echo "<td width=\"90%\" align=\"center\" nowrap=\"nowrap\">";
echo "<td style=\"text-align: center; width:90%;\" nowrap=\"nowrap\">";
$num1 = ($page-4);
$num1 = ($page-4);
if ($num1 < 1) { $num1 = 1; }
if ($num1 < 1) { $num1 = 1; }
$num2 = ($num1+8);
$num2 = ($num1+8);
if ($num2 > $shout_pages) { $num2 = $shout_pages; }
if ($num2 > $shout_pages) { $num2 = $shout_pages; }
$num5 = ($num2-8);
$num5 = ($num2-8);
if ($num5 < $num1) {
if ($num5 < $num1) {
$num1 = $num5;
$num1 = $num5;
if ($num1 < 1) { $num1 = 1; }
if ($num1 < 1) { $num1 = 1; }
}
}
$num3 = ($page-1);
$num3 = ($page-1);
$num4 = ($page+1);
$num4 = ($page+1);
$menuLinks = "";
$menuLinks = "";


$count = $num1;
$count = $num1;
while ($count <= $shout_pages AND $count <= $num2) {
while ($count <= $shout_pages AND $count <= $num2) {
if ($count == $page) {
if ($count == $page) {
$menuLinks .= "<strong>$count</strong>";
$menuLinks .= "<strong>$count</strong>";
} else {
} else {
$menuLinks .= "<a href=\"".$admin_file.".php?op=shout&Submit=manageShouts&amp;page=$count\">$count</a>";
$menuLinks .= "<a href=\"".$admin_file.".php?op=shout&Submit=manageShouts&amp;page=$count\">$count</a>";
}
}
if ($count < $num2) { $menuLinks .= "&nbsp;&nbsp;"; }
if ($count < $num2) { $menuLinks .= "&nbsp;&nbsp;"; }
$count++;
$count++;
}
}


$menuLinks .= "<br /><br />";
$menuLinks .= "<br /><br />";
if ($page > 1) {
if ($page > 1) {
$menuLinks .= "<a href=\"".$admin_file.".php?op=shout&Submit=manageShouts&amp;page=$num3\">"._PREVIOUS."</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n";
$menuLinks .= "<a href=\"".$admin_file.".php?op=shout&Submit=manageShouts&amp;page=$num3\">"._PREVIOUS."</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n";
}
}
if ($page != $shout_pages) {
if ($page != $shout_pages) {
$menuLinks .= _PAGE." $page / <a href=\"".$admin_file.".php?op=shout&Submit=manageShouts&amp;page=$shout_pages\">$shout_pages</a>\n";
$menuLinks .= _PAGE." $page / <a href=\"".$admin_file.".php?op=shout&Submit=manageShouts&amp;page=$shout_pages\">$shout_pages</a>\n";
} else {
} else {
$menuLinks .= _PAGE." $page / $shout_pages\n";
$menuLinks .= _PAGE." $page / $shout_pages\n";
}
}
if ($page < $shout_pages) {
if ($page < $shout_pages) {
$menuLinks .= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"".$admin_file.".php?op=shout&Submit=manageShouts&amp;page=$num4\">"._NEXT."</a>\n";
$menuLinks .= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"".$admin_file.".php?op=shout&Submit=manageShouts&amp;page=$num4\">"._NEXT."</a>\n";
}
}
echo "$menuLinks";
echo "$menuLinks";
echo "</td>";
echo "</td>";


echo "<td width=\"10%\" nowrap=\"nowrap\" align=\"right\">";
echo "<td nowrap=\"nowrap\" style=\"text-align: right; width:10%;\">";
echo "<input type=\"hidden\" name=\"listnum\" value=\"$aCount[aCount]\" /><input type=\"hidden\" name=\"Submit\" value=\"shremove\" /><input type=\"hidden\" name=\"page\" value=\"$page\" /><input type=\"submit\" name=\"button\" value=\""._REMOVECHECKEDSHOUTS."\" /></td>";
echo "<input type=\"hidden\" name=\"listnum\" value=\"$aCount[aCount]\" /><input type=\"hidden\" name=\"Submit\" value=\"shremove\" /><input type=\"hidden\" name=\"page\" value=\"$page\" /><input type=\"submit\" name=\"button\" value=\""._REMOVECHECKEDSHOUTS."\" /></td>";
echo "</tr></table></div></form>";
echo "</tr></table></div></form>";
CloseTable();
CloseTable();
echo "<br />";
echo "<br />";
OpenTable();
OpenTable();
echo "<br /><div align=\"center\" class=\"title\">"._SB_PRUNESHOUTS."</div><br />";
echo "<br /><div style=\"text-align: center;\" class=\"title\">"._SB_PRUNESHOUTS."</div><br />";
if ($pruned > 0) {
if ($pruned > 0) {
echo "<div align=\"center\" class=\"content\"><strong>$pruned</strong> "._SB_SHOUTSPRUNED."</div><br />";
echo "<div style=\"text-align: center;\" class=\"content\"><strong>$pruned</strong> "._SB_SHOUTSPRUNED."</div><br />";
}
}
echo "<center><form name=\"shoutPrune1\" action=\"\" method=\"post\" style=\"margin-bottom: 0px;\">"._SB_PRUNESHOUTSOLDERTHAN."&nbsp;&nbsp;<input type=\"hidden\" name=\"page\" value=\"$page\" /><input type=\"text\" name=\"pruneDays\" value=\"\" maxlength=\"3\" size=\"5\" />&nbsp;&nbsp;"._SB_DAYS."&nbsp;&nbsp;<input type=\"hidden\" name=\"Submit\" value=\"pruneSubmit\" /><input type=\"submit\" name=\"button\" value=\""._SB_DOPRUNE."\" /></form></center>";
echo "<div style=\"text-align: center; margin-left:auto; margin-right:auto;\"><form name=\"shoutPrune1\" action=\"\" method=\"post\" style=\"margin-bottom: 0px;\">"._SB_PRUNESHOUTSOLDERTHAN."&nbsp;&nbsp;<input type=\"hidden\" name=\"page\" value=\"$page\" /><input type=\"text\" name=\"pruneDays\" value=\"\" maxlength=\"3\" size=\"5\" />&nbsp;&nbsp;"._SB_DAYS."&nbsp;&nbsp;<input type=\"hidden\" name=\"Submit\" value=\"pruneSubmit\" /><input type=\"submit\" name=\"button\" value=\""._SB_DOPRUNE."\" /></form></div>";


$sql = "SELECT `id` FROM `".$prefix."_shoutbox_shouts` WHERE `timestamp`=''";
$sql = "SELECT `id` FROM `".$prefix."_shoutbox_shouts` WHERE `timestamp`=''";
$resultTS = $db->sql_query($sql);
$resultTS = dbquery($sql);
$TSrows = $db->sql_numrows($resultTS);
$TSrows = dbnumrows($resultTS);
$db->sql_freeresult($resultTS);
dbfree($resultTS);
if ($TSrows > 0) {
if ($TSrows > 0) {
echo "<br /><br /><strong>NOTE:</strong> The prune feature only works on shouts that use the new unix timestamp format. You currently have <strong>$TSrows</strong> shouts that are using the old format. Please run the conversion tool that came in the Shout_Box.zip to update your shouts.";
echo "<br /><br /><strong>NOTE:</strong> The prune feature only works on shouts that use the new unix timestamp format. You currently have <strong>$TSrows</strong> shouts that are using the old format. Please run the conversion tool that came in the Shout_Box.zip to update your shouts.";
}
}
CloseTable();
CloseTable();
echo "<br />";
echo "<br />";
OpenTable();
OpenTable();
$sql = "SELECT `name`, `comment` FROM `".$prefix."_shoutbox_sticky` WHERE `stickySlot`=0";
$sql = "SELECT `name`, `comment` FROM `".$prefix."_shoutbox_sticky` WHERE `stickySlot`=0";
$stickyResult = $db->sql_query($sql);
$stickyResult = dbquery($sql);
$stickyRow0 = $db->sql_fetchrow($stickyResult);
$stickyRow0 = dbrow($stickyResult);
$db->sql_freeresult($stickyResult);
dbfree($stickyResult);
$sql = "SELECT `name`, `comment` FROM `".$prefix."_shoutbox_sticky` WHERE `stickySlot`=1";
$sql = "SELECT `name`, `comment` FROM `".$prefix."_shoutbox_sticky` WHERE `stickySlot`=1";
$stickyResult = $db->sql_query($sql);
$stickyResult = dbquery($sql);
$stickyRow1 = $db->sql_fetchrow($stickyResult);
$stickyRow1 = dbrow($stickyResult);
$db->sql_freeresult($stickyResult);
dbfree($stickyResult);


echo "<br /><div align=\"center\" class=\"title\">"._SB_STICKYSHOUTS."</div><br />";
echo "<br /><div style=\"text-align: center;\" class=\"title\">"._SB_STICKYSHOUTS."</div><br />";
echo "<center><table align=\"center\" cellpadding=\"5\" cellspacing=\"0\" border=\"0\"><tr><td>".$stickyRow0['name']." </td><td nowrap=\"nowrap\"><form name=\"shoutAdmin20\" action=\"\" method=\"post\" style=\"margin-bottom: 0px;\"><input type=\"hidden\" name=\"page\" value=\"$page\" /><input type=\"text\" name=\"stickyShout\" value=\"".$stickyRow0['comment']."\" maxlength=\"150\" size=\"75\" />&nbsp;&nbsp;<input type=\"hidden\" name=\"stickyUsername\" value=\"".$admin[0]."\" /><input type=\"hidden\" name=\"Submit\" value=\"stickySubmit\" /><input type=\"hidden\" name=\"stickySlot\" value=\"0\" /><input type=\"submit\" name=\"button\" value=\""._SB_SUBMIT."\" /></form></td></tr><tr><td>".$stickyRow1['name']." </td><td nowrap=\"nowrap\"><form name=\"shoutAdmin21\" action=\"\" method=\"post\" style=\"margin-bottom: 0px;\"><input type=\"hidden\" name=\"page\" value=\"$page\" /><input type=\"text\" name=\"stickyShout\" value=\"".$stickyRow1['comment']."\" maxlength=\"150\" size=\"75\" />&nbsp;&nbsp;<input type=\"hidden\" name=\"stickyUsername\" value=\"".$admin[0]."\" /><input type=\"hidden\" name=\"Submit\" value=\"stickySubmit\" /><input type=\"hidden\" name=\"stickySlot\" value=\"1\" /><input type=\"submit\" name=\"button\" value=\""._SB_SUBMIT."\" /></form></td></tr></table></center>";
echo "<table style=\"text-align: center; border: 0; margin-left:auto; margin-right:auto;\" cellpadding=\"5\" cellspacing=\"0\"><tr><td>".$stickyRow0['name']." </td><td nowrap=\"nowrap\"><form name=\"shoutAdmin20\" action=\"\" method=\"post\" style=\"margin-bottom: 0px;\"><input type=\"hidden\" name=\"page\" value=\"$page\" /><input type=\"text\" name=\"stickyShout\" value=\"".$stickyRow0['comment']."\" maxlength=\"150\" size=\"75\" />&nbsp;&nbsp;<input type=\"hidden\" name=\"stickyUsername\" value=\"".$admin[0]."\" /><input type=\"hidden\" name=\"Submit\" value=\"stickySubmit\" /><input type=\"hidden\" name=\"stickySlot\" value=\"0\" /><input type=\"submit\" name=\"button\" value=\""._SB_SUBMIT."\" /></form></td></tr><tr><td>".$stickyRow1['name']." </td><td nowrap=\"nowrap\"><form name=\"shoutAdmin21\" action=\"\" method=\"post\" style=\"margin-bottom: 0px;\"><input type=\"hidden\" name=\"page\" value=\"$page\" /><input type=\"text\" name=\"stickyShout\" value=\"".$stickyRow1['comment']."\" maxlength=\"150\" size=\"75\" />&nbsp;&nbsp;<input type=\"hidden\" name=\"stickyUsername\" value=\"".$admin[0]."\" /><input type=\"hidden\" name=\"Submit\" value=\"stickySubmit\" /><input type=\"hidden\" name=\"stickySlot\" value=\"1\" /><input type=\"submit\" name=\"button\" value=\""._SB_SUBMIT."\" /></form></td></tr></table>";
CloseTable();
CloseTable();
// YOU MAY NOT REMOVE, EDIT, OR MARK OUT THE FOLLOWING PAYPAL CODE. IT IS PART OF OUR COPYRIGHT.
// YOU MAY NOT REMOVE, EDIT, OR MARK OUT THE FOLLOWING PAYPAL CODE. IT IS PART OF OUR COPYRIGHT.
echo "<br />";
echo "<br />";
OpenTable();
OpenTable();
echo "<p align=\"center\" class=\"title\">OurScripts.net needs your support!</p>";
echo "<p style=\"text-align: center;\" class=\"title\">OurScripts.net needs your support!</p>";
echo "<p align=\"center\" class=\"content\">Open Source software costs money and time to develop.</p>";
echo "<p style=\"text-align: center;\" class=\"content\">Open Source software costs money and time to develop.</p>";
echo "<form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">
echo "<form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">
<input type=\"hidden\" name=\"cmd\" value=\"_xclick\" />
<input type=\"hidden\" name=\"cmd\" value=\"_xclick\" />
<input type=\"hidden\" name=\"business\" value=\"donate@ourscripts.net\" />
<input type=\"hidden\" name=\"business\" value=\"donate@ourscripts.net\" />
<input type=\"hidden\" name=\"item_name\" value=\"Donation to OurScripts.net\" />
<input type=\"hidden\" name=\"item_name\" value=\"Donation to OurScripts.net\" />
<input type=\"hidden\" name=\"no_shipping\" value=\"1\" />
<input type=\"hidden\" name=\"no_shipping\" value=\"1\" />
<input type=\"hidden\" name=\"cn\" value=\"Comments\" /><p align=\"center\">
<input type=\"hidden\" name=\"cn\" value=\"Comments\" /><p style=\"text-align: center;\">
<input type=\"image\" src=\"modules/$module_name/images/paypal.gif\" alt=\"Please donate. Thank you!\" name=\"submit\" title=\"Please donate. Thank you!\" /></p></form><p align=\"center\" class=\"content\">Our community appreciates your monitary support!</p><p align=\"center\" class=\"content\">Released under the <a target=\"_blank\" href=\"".$sbURL."http://www.gnu.org\">GNU/GPL license</a> and distributed by <a target=\"_blank\" href=\"".$sbURL."http://www.ourscripts.net\">OurScripts.net</a>.<br />Copyright &copy; 2002-2005 by SuiteSoft Solutions. All rights reserved.</p>";
<input type=\"image\" src=\"modules/$module_name/images/paypal.gif\" alt=\"Please donate. Thank you!\" name=\"submit\" title=\"Please donate. Thank you!\" /></p></form><p style=\"text-align: center;\" class=\"content\">Our community appreciates your monitary support!</p><p style=\"text-align: center;\" class=\"content\">Released under the <a target=\"_blank\" href=\"".$sbURL."http://www.gnu.org\">GNU/GPL license</a> and distributed by <a target=\"_blank\" href=\"".$sbURL."http://www.ourscripts.net\">OurScripts.net</a>.<br />Copyright &copy; 2002-2005 by SuiteSoft Solutions. All rights reserved.</p>";
CloseTable();
CloseTable();
// END OF COPYRIGHT.
// END OF COPYRIGHT.
include_once(NUKE_BASE_DIR.'footer.php');
include_once(NUKE_BASE_DIR.'footer.php');
exit;
exit;
}
}


function pruneSubmit($pruneDays, $page) {
function pruneSubmit($pruneDays, $page) {
global $prefix, $db, $admin_file;
global $prefix, $admin_file;
if ($pruneDays > 0 AND is_numeric($pruneDays)) {
if ($pruneDays > 0 AND is_numeric($pruneDays)) {
$pruneDays = round($pruneDays);
$pruneDays = round($pruneDays);
if ($pruneDays > 0) {
if ($pruneDays > 0) {
$timestamp = time();
$timestamp = time();
$pruneDays = $pruneDays * 86400;
$pruneDays = $pruneDays * 86400;
$newTimestamp = $timestamp - $pruneDays;
$newTimestamp = $timestamp - $pruneDays;


$sql = "SELECT `id` FROM `".$prefix."_shoutbox_shouts`";
$sql = "SELECT `id` FROM `".$prefix."_shoutbox_shouts`";
$result = $db->sql_query($sql);
$result = dbquery($sql);
$shoutsBefore = $db->sql_numrows($result);
$shou
$db->sql_freeresult($result);

$sql = "DELETE FROM `".$prefix."_shoutbox_shouts` WHERE `timestamp` <> '' AND `timestamp` < $newTimestamp";
$db->sql_query($sql);