
$result = $db->sql_query("SELECT sitename, nukeurl, site_logo, slogan, startdate, adminmail, anonpost, Default_Theme, foot1, foot2, foot3, commentlimit, anonymous, minpass, pollcomm, articlecomm, broadcast_msg, my_headlines, top, storyhome, user_news, oldnum, ultramode, banners, backend_title, backend_language, language, locale, multilingual, useflags, notify, notify_email, notify_subject, notify_message, notify_from, moderate, admingraphic, httpref, httprefmax, CensorMode, CensorReplace FROM ".UN_TABLENAME_CONFIG);

$result = $db->sql_query("SELECT sitename, nukeurl, site_logo, slogan, startdate, adminmail, anonpost, Default_Theme, foot1, foot2, foot3, commentlimit, anonymous, minpass, pollcomm, articlecomm, broadcast_msg, my_headlines, top, storyhome, user_news, oldnum, ultramode, banners, backend_title, backend_language, language, locale, multilingual, useflags, notify, notify_email, notify_subject, notify_message, notify_from, moderate, admingraphic, httpref, httprefmax, CensorMode, CensorReplace, disable_site, disable_message, disable_title FROM ".UN_TABLENAME_CONFIG);

$CensorReplace = stripslashes($row['CensorReplace']);

$disable_site = $row['disable_site'];
$disable_message = $row['disable_message'];
$disable_title = $row['disable_title'];

._LOCALEFORMAT.":</td><td><input type=\"text\" name=\"xlocale\" value=\"".$locale."\" size=\"20\" maxlength=\"40\">"
."</td></tr></table>";
CloseTable();
echo "<br>";


OpenTable();
echo "<center><font class='option'><b>"._CLOSESITE2."</b></font></center>"
."<table border='0'><tr><td>"
.""._CLOSESITE."</td><td>";
if ($disable_site==1) {
echo "<input type='radio' name='xdisable_site' value='1' checked>"._YES." 
<input type='radio' name='xdisable_site' value='0'>"._NO."";
} else {
echo "<input type='radio' name='xdisable_site' value='1'>"._YES." 
<input type='radio' name='xdisable_site' value='0' checked>"._NO."";
}
echo "</td></tr><tr><td>"
.""._EXPLTITLE.":</td><td><input type='text' name='xdisable_title' value='$disable_title' size='40' maxlength='255'>"
."</td></tr><tr><td>"
.""._EXPLMESSAGE.":</td><td><textarea name='xdisable_message' cols='40' rows='8'>$disable_message</textarea>"
."</td></tr></table>";
CloseTable();
echo "<br>";


$xCensorReplace = addslashes($xCensorReplace);

$xdisable_site = addslashes($xdisable_site);
$xdisable_message = addslashes($xdisable_message);
$xdisable_title = addslashes($xdisable_title);

$db->sql_query("UPDATE ".UN_TABLENAME_CONFIG." SET sitename='".$xsitename."', nukeurl='".$xnukeurl."', site_logo='".$xsite_logo."', slogan='".$xslogan."', startdate='".$xstartdate."', adminmail='".$xadminmail."', anonpost='".$xanonpost."', Default_Theme='".$xDefault_Theme."', foot1='".$xfoot1."', foot2='".$xfoot2."', foot3='".$xfoot3."', commentlimit='".$xcommentlimit."', anonymous='".$xanonymous."', minpass='".$xminpass."', pollcomm='".$xpollcomm."', articlecomm='".$xarticlecomm."', broadcast_msg='".$xbroadcast_msg."', my_headlines='".$xmy_headlines."', top='".$xtop."', storyhome='".$xstoryhome."', user_news='".$xuser_news."', oldnum='".$xoldnum."', ultramode='".$xultramode."', banners='".$xbanners."', backend_title='".$xbackend_title."', backend_language='".$xbackend_language."', language='".$xlanguage."', locale='".$xlocale."', multilingual='".$xmultilingual."', useflags='".$xuseflags."', notify='".$xnotify."', notify_email='".$xnotify_email."', notify_subject='".$xnotify_subject."', notify_message='".$xnotify_message."', notify_from='".$xnotify_from."', moderate='".$xmoderate."', admingraphic='".$xadmingraphic."', httpref='".$xhttpref."', httprefmax='".$xhttprefmax."', CensorMode='".$xCensorMode."', CensorReplace='".$xCensorReplace."'");

$db->sql_query("UPDATE ".UN_TABLENAME_CONFIG." SET sitename='".$xsitename."', nukeurl='".$xnukeurl."', site_logo='".$xsite_logo."', slogan='".$xslogan."', startdate='".$xstartdate."', adminmail='".$xadminmail."', anonpost='".$xanonpost."', Default_Theme='".$xDefault_Theme."', foot1='".$xfoot1."', foot2='".$xfoot2."', foot3='".$xfoot3."', commentlimit='".$xcommentlimit."', anonymous='".$xanonymous."', minpass='".$xminpass."', pollcomm='".$xpollcomm."', articlecomm='".$xarticlecomm."', broadcast_msg='".$xbroadcast_msg."', my_headlines='".$xmy_headlines."', top='".$xtop."', storyhome='".$xstoryhome."', user_news='".$xuser_news."', oldnum='".$xoldnum."', ultramode='".$xultramode."', banners='".$xbanners."', backend_title='".$xbackend_title."', backend_language='".$xbackend_language."', language='".$xlanguage."', locale='".$xlocale."', multilingual='".$xmultilingual."', useflags='".$xuseflags."', notify='".$xnotify."', notify_email='".$xnotify_email."', notify_subject='".$xnotify_subject."', notify_message='".$xnotify_message."', notify_from='".$xnotify_from."', moderate='".$xmoderate."', admingraphic='".$xadmingraphic."', httpref='".$xhttpref."', httprefmax='".$xhttprefmax."', CensorMode='".$xCensorMode."', CensorReplace='".$xCensorReplace."', disable_site='".$xdisable_site."', disable_message='".$xdisable_message."', disable_title='".$xdisable_title."'");

?>


//

global $admin;
$result = $db->sql_query("SELECT disable_site, disable_message, disable_title FROM ".$prefix."_config");
$row = $db->sql_fetchrow($result);
$disable = $row[disable_site];
$disablemessage = $row[disable_message];
$disabletitle = $row[disable_title];
if ($disablemessage != "" && !is_admin($admin))
{
$reason = "<br><br><font color =\"#ff0000\"><b>"._DISABLE_REASON2."</b></font><br><font class=\"boxtitle\">$disablemessage</font>";
}
elseif ($disablemessage != "" && is_admin($admin))
{
$reason = "<br>$disablemessage";
}
if ($disabletitle != "" )
{
$title14 = $disabletitle;
}else{
$title14 = ""._DIS_TITLE."";
}
if (!eregi("admin.php", $_SERVER['PHP_SELF']) && !is_admin($admin) && $disable && $name!= "Your_Account")
{
include("header.php");
$index = 1;
title($title14);
OpenTable();
echo "<center><font class=\"boxtitle\">"._DISABLE_REASON1."</font>$reason</center>";
CloseTable();
include("footer.php");
die();
}elseif (!eregi("admin.php", $_SERVER['PHP_SELF']) && is_admin($admin) && $disable && $name!= "Your_Account")
{
echo "<center><b><font color =\"#000000\">"._DISABLE."</font><font color =\"#ff0000\">$reason</font></b></center>";
}


/*****************************************************/
/* Function to translate Datestrings */
/*****************************************************/

define("_DIS_TITLE","Site Currently Closed");
define("_DISABLE_REASON1","This site is temporarily closed (reason see below), please come back in the near future.<br>Admins still have access to this site by logging in <a href=\"admin.php\">here</a>");
define("_DISABLE_REASON2","REASON OF CLOSING:");
define("_DISABLE","An admin has closed the site down for this reason:");


?>

define("_CLOSESITE","Close the site for users??<br>Only admins can use the site then!");
define("_CLOSESITE2","Close Site");
define("_EXPLTITLE","Explanation Title");
define("_EXPLMESSAGE","Explanation Message");


ALTER TABLE `unnuke_config` ADD `disable_site` VARCHAR( 1 ) DEFAULT '0' NOT NULL ,
ADD `disable_message` TEXT ,
ADD `disable_title` VARCHAR( 255 ) NOT NULL DEFAULT 'Stranka je docastne uzavreta';




// 
// Show 'Disabled' message if needed. 
// © Mighty_Y <http://www.portedmods.com> 
// Edit by Blassen http://blassenweb.net 
// 

global $admin; 
$result = $db->sql_query("SELECT disable_site, disable_message, disable_title FROM ".$prefix."_config"); 
$row = $db->sql_fetchrow($result); 
$disable = $row[disable_site]; 
$disablemessage = $row[disable_message]; 
$disabletitle = $row[disable_title]; 
if ($disablemessage != "" && !is_admin($admin)) 
{ 
$reason = "<br><br><font><b>"._DISABLE_REASON2."</b></font><br><font>$disablemessage</font>"; 
} 
elseif ($disablemessage != "" && is_admin($admin)) 
{ 
$reason = "<br>$disablemessage"; 
} 
if ($disabletitle != "" ) 
{ 
$title14 = $disabletitle; 
}else{ 
$title14 = ""._DIS_TITLE.""; 
} 
if (!eregi("".$admin_file."", $_SERVER['PHP_SELF']) && !is_admin($admin) && $disable && $name!= "Your_Account") 
{ 
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n"; 
echo "<html dir=\"LTR\" lang=\"cs\">\n"; 
echo "<head>\n"; 
echo "<title>BLASSENweb - ZAVŘENO</title>\n"; 
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-2\">\n"; 
echo "<meta name=\"author\" content=\"BLASSENweb\">\n"; 
echo "<meta name=\"copyright\" content=\"Copyright (c) by BLASSENweb\">\n"; 
echo "<meta name=\"robots\" content=\"noindex, follow\">\n"; 
echo "</head>\n"; 
echo " <body>\n"; 
echo " <center><h1 style=\"color: red;\">$title14</h1></center>\n"; 
echo " <center><font>"._DISABLE_REASON1."</font>\n$reason</center>\n"; 
echo " </body>\n"; 
echo "</html>\n"; 
die(); 
}/*elseif (!eregi("".$admin_file."", $_SERVER['PHP_SELF']) && is_admin($admin) && $disable && $name!= "Your_Account") 
{ 
echo "<center><b><font>"._DISABLE."</font><font>$reason</font></b></center>"; 
} */ 
// zakomentováním se dosáhlo nezobrazování při přihlášení administrátora 
?>


echo " <center><h1 style=\"color: red;\">$title14</h1></center>\n";

echo "<div style=\"border: 1px solid black; margin: 1em auto; background: rgb(240, 240, 240) none repeat scroll 0%; opacity: 0.75; width: 75%; height: 3em; font-family: sans-serif; font-style: normal; font-variant: normal; font-weight: bold; font-size: 48px; line-height: 3em; font-size-adjust: none; font-stretch: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: rgb(198, 0, 0); text-align: center; -moz-border-radius-topleft: 20px; -moz-border-radius-topright: 20px; -moz-border-radius-bottomright: 20px; -moz-border-radius-bottomleft: 20px; text-shadow: rgb(153, 153, 153) 3px 5px 5px;\">$title14</div>\n";

Už jsem jak knihovna


define("_DIS_TITLE","Site Currently Closed");
define("_DISABLE_REASON1","This site is temporarily closed (reason see below), please come back in the near future.<br>Admins still have access to this site by logging in <a href=\"admin.php\">here</a>");
define("_DISABLE_REASON2","REASON OF CLOSING:");
define("_DISABLE","An admin has closed the site down for this reason:");


define("_DIS_TITLE","Zavřeno");
define("_DISABLE_REASON1","Tento server je dočasně uzavřen (důvod níľe), prosím navątivte nás později.<br />Pokud jste administrátor můľete se přihlásit jako vľdy.");
define("_DISABLE_REASON2","DŮVOD UZAVŘENÍ:");
define("_DISABLE","administrátor uzavřel stránky z následujícího důvodu:"); 


echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
echo "<head>\n";
echo "<title>$sitename - "._DIS_TITLE."</title>\n";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset="._CHARSET."\">\n";
echo "<meta name=\"author\" content=\"".$sitename."\">\n";
echo "<meta name=\"copyright\" content=\"Copyright (c) by ".$sitename."\">\n";
echo "<meta name=\"robots\" content=\"noindex, follow\">\n"; 

Obsah fóra BLASSENweb » Tipy a Triky
![]() |
|