drakeman
Armádní generál II. tř. (Moderátor)


Registrace: 30.4. 2005
Příspěvky: 190
Bydliště: /dev/null
|
 Zaslal:
út 04. červenec, 2006 21:30 Předmět: ako uzavriet stranku a pritom na nej dalej pracovat? |
  |
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:
najdite:
zan pridajte:
najdite:
{Kód}:  $xCensorReplace = addslashes($xCensorReplace);

zan pridajte:
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:
otvorte language/lang-english.php
najdite:
pred pridajte:
otvorte admin/language/lang-english.php
najdite:
{Kód}:  ?>

pred pridajte:
cez phpmyadmin vykonajte tento prikaz:
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] |
|