Vítejte na BLASSENweb

BLASSENweb - the future of your web !

Jste anonymní uživatel. Můžete se zdarma zaregistrovat zde

Hlavní nabídka

Pro volné chvíle

Něco na čtení

Tvorba www

Odkazy

 ·  Top-List
 ·  Dobré weby

Ke stažení

Možnosti pro Vás

Přidat sidebarPřidat na GooglePřidat na SeznamPřidat na BloglinesWAP verzeRSS 0.91RSS 0.92RSS 2.0Atom 0.3 Bookmark using any bookmark manager!
Mapa Stránek

Budík / Hodiny / Kalendář

O dnešku

Den: Pátek
Datum: 5. prosince
Rok: 2008

Svátek má:

Dnes: Jitka
Zítra: Mikuláš
Pozítří: Ambrož

Reklama

Doporučujeme vám:

Diskuzní fórum

Vzbuřte se proti hrubkám na internetu
Pamatujte si, kde jste byli, když jste Vy začínali.
To změní Váš pohled na lidi, jenž začínají teď!
FAQHledatSeznam uživatelůUživatelské skupinyRegistrace
Osobní nastaveníPřihlásit se pro kontrolu soukromých zprávPřihlášení
Už máš šprušle ??

Byl bych rád pokud by se nám společnými silami podařilo zatraktivnit tyto stránky. K tomu je však zapotřebí vzájemná spolupráce, ať už se jedná o zajímavé články či ankety. Pokuste se podělit o své názory, dojmy a myšlenky. -- BLASSENweb -tým

tvorba stránek
 

ako uzavriet stranku a pritom na nej dalej pracovat?


Zobrazit následující téma
Zobrazit předchozí téma
Přidat nové témaZaslat odpověď
Autor Zpráva
drakeman
Armádní generál II. tř. (Moderátor)
Armádní generál II. tř. (Moderátor)


Registrace: 30.4. 2005
Příspěvky: 190
Bydliště: /dev/null

PříspěvekZaslal: út 04. červenec, 2006 21:30  Předmět: ako uzavriet stranku a pritom na nej dalej pracovat? CitovatNávrat nahoru

uplne jednoducho. Pre PHP-Nuke na to zluzi
http://www.phpnuke.sk/modules.php?name=Downloads&op=getit&lid=1474

a pre UN treba postupovat nasledovne:


otvorte:
admin/modules/settings.php

najdite:
{Kód}:

$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);



nahradte:
{Kód}:

$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);



najdite:
{Kód}:

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



zan pridajte:
{Kód}:

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



najdite:
{Kód}:

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



zan pridajte:
{Kód}:

    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." &nbsp;
        <input type='radio' name='xdisable_site' value='0'>"
._NO."";
    } else {
        echo 
"<input type='radio' name='xdisable_site' value='1'>"._YES." &nbsp;
        <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>";




najdite:
{Kód}:

$xCensorReplace addslashes($xCensorReplace);



zan pridajte:
{Kód}:

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



najdite:
{Kód}:

$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."'");




zan pridajte:
{Kód}:

$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."'");




otvorte mainfile.php

najdite:
{Kód}:

?>



pred neho pridajte:
{Kód}:

//
   
    
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>";
}




otvorte language/lang-english.php
najdite:
{Kód}:

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



pred pridajte:
{Kód}:

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:");



otvorte admin/language/lang-english.php
najdite:
{Kód}:

?>



pred pridajte:
{Kód}:

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");




cez phpmyadmin vykonajte tento prikaz:
{Kód}:

ALTER TABLE `unnuke_configADD `disable_siteVARCHAR) DEFAULT '0' NOT NULL ,
ADD `disable_messageTEXT ,
ADD `disable_titleVARCHAR255 NOT NULL DEFAULT 'Stranka je docastne uzavreta';



Na PHP-Nuke som to nestestoval, ale na UNITED-NUKE_4.2.06ms2 funguje skvele.

_________________
Hobowars | [url=http://www.hobowars.com/index.php?cmd=signup&id=114010]The Best Free Online Game[/url]

PHP-Nuke Slovakia | [url=http://www.phpnuke.sk]All about PHP-Nuke[/url]
Návrat nahoru Zobrazit informace o uživateli Odeslat soukromou zprávu Zobrazit uživatelovy WWW stránky
Inzerce
Sponsor
Inzerce
No Avatar

Registrace: 4.1. 2007
Příspěvky: 143
Blassen
Armádní generál (Admin)
Armádní generál (Admin)


Registrace: 1.1. 1970
Příspěvky: 2140

PříspěvekZaslal: ne 25. únor, 2007 2:06  Předmět: Site Close Down CitovatNávrat nahoru

Pokud si nepřejete zobrazovat ani hlavičku a patičku pak pomůže následující úprava:
{Kód}:

// 
// Show 'Disabled' message if needed. 
// &copy; 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 
?>


_________________
Blassen,
Altruista, Redaktor, Programátor, Designér a Majitel
Hello IT. Have you tried turning it off and on again ? Are you sure it's plugged in ?
Návrat nahoru Zobrazit informace o uživateli Odeslat soukromou zprávu Odeslat e-mail Zobrazit uživatelovy WWW stránky
Blassen
Armádní generál (Admin)
Armádní generál (Admin)


Registrace: 1.1. 1970
Příspěvky: 2140

PříspěvekZaslal: ne 25. únor, 2007 2:53  Předmět: Site Close Down - vylepšení scriptu CitovatNávrat nahoru

Dále si to můžete ještě vyšperkovat a to nahrazením tohoto řádku:
Zakomentujte nebo smažte:
{Kód}:


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


a na jeho místo vložte:
{Kód}:


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";


stejně to sem píšu prosebe protože to nikoho nezajímá Mrkající

_________________
Blassen,
Altruista, Redaktor, Programátor, Designér a Majitel
Hello IT. Have you tried turning it off and on again ? Are you sure it's plugged in ?
Návrat nahoru Zobrazit informace o uživateli Odeslat soukromou zprávu Odeslat e-mail Zobrazit uživatelovy WWW stránky
crapper
Četař
Četař


Registrace: 23.4. 2005
Příspěvky: 69

PříspěvekZaslal: ne 25. únor, 2007 8:42  Předmět: CitovatNávrat nahoru

Mne zajímá vše. Čtu všechny topiky a každý den se dozvím něco nového Velmi ą»astný Už jsem jak knihovna Smějící
Návrat nahoru Zobrazit informace o uživateli Odeslat soukromou zprávu Odeslat e-mail
Blassen
Armádní generál (Admin)
Armádní generál (Admin)


Registrace: 1.1. 1970
Příspěvky: 2140

PříspěvekZaslal: po 13. srpen, 2007 16:20  Předmět: Re: ako uzavriet stranku a pritom na nej dalej pracovat? CitovatNávrat nahoru

{Kód}:

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:");



česká (cz - cs) verze:
{Kód}:


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:"); 


_________________
Blassen,
Altruista, Redaktor, Programátor, Designér a Majitel
Hello IT. Have you tried turning it off and on again ? Are you sure it's plugged in ?
Návrat nahoru Zobrazit informace o uživateli Odeslat soukromou zprávu Odeslat e-mail Zobrazit uživatelovy WWW stránky
Zobrazit příspěvky z předchozích:      
Přidat nové témaZaslat odpověď


 Přejít na:   



Zobrazit následující téma
Zobrazit předchozí téma
Nemůžete odesílat nové téma do tohoto fóra.
Nemůžete odpovídat na témata v tomto fóru.
Nemůžete upravovat své příspěvky v tomto fóru.
Nemůžete mazat své příspěvky v tomto fóru.
Nemůžete hlasovat v tomto fóru.

V současné době používáme pro tvorbu stránek následující dostupné technologie:

XML, XHTML, CSS, PHP, MySQL, JavaScript, Flash, CMS, SEO

Powered by phpBB © 2001-2003 phpBB Group

Green theme by BLASSENweb © 2005+ BLASSENweb
Forums ©