sql_fetchrow($db->sql_query("SELECT title, admins FROM ".$prefix."_modules WHERE title='Classifieds'")); $row2 = $db->sql_fetchrow($db->sql_query("SELECT name, radminsuper FROM ".$prefix."_authors WHERE aid='$aid'")); $admins = explode(",", $row['admins']); $auth_user = 0; for ($i=0; $i < sizeof($admins); $i++) { if ($row2['name'] == "$admins[$i]" AND $row['admins'] != "") { $auth_user = 1; } } if ($row2['radminsuper'] == 1 || $auth_user == 1) { $NukeCAddonName = "Classifieds"; @include("modules/".$NukeCAddonName."/functions.php"); @include("modules/".$NukeCAddonName."/language/lang-".$currentlang.".php"); function NukeCDisclaimer($nod,$msgid) { global $prefix,$db,$adsbgcolor1, $adsbgcolor2, $adsbgcolor3, $adsbgcolor4, $adsbgcolor5, $admin_file; @include("header.php"); GraphicAdmin(); OpenTable(); NukeCAdminMenu(); echo "
"; echo "
"; echo "
"; echo ""._NUKECADMINDISCLAIM.""; echo "

[ "._NUKECADDDISCLAIM." ]"; if ((isset($msgid)) && ($msgid != "")) { echo "

"; switch ($msgid) { case "DiscAdded": echo _NEWDISCADDED;break; case "DiscUpdated": echo _DISCUPDATED;break; case "DiscDeleted": echo _DISCDELETED;break; } echo "
"; } echo "
"; echo "
"; listingdisc(); CloseTable(); if ((isset($nod)) && ($nod != "")) { echo "
"; OpenTable(); echo ""._NUKECPREVIEWDISC."

"; $re = $db->sql_query("select no,title, content from $prefix"."_nukec_ads_disclaimer where no='$nod'"); list ($no,$title,$content) = $db->sql_fetchrow($re); echo "$title

"; echo "$content"; echo "

[ "._NUKECEDIT." | \n" .""._NUKECDELETE." ]\n"; CloseTable(); } @include("footer.php"); } function NukeCAddDisclaimer() { global $prefix, $db, $adsbgcolor1, $adsbgcolor2, $adsbgcolor3, $adsbgcolor4, $adsbgcolor5, $multilingual, $admin_file; @include("header.php"); GraphicAdmin(); OpenTable(); NukeCAdminMenu(); echo "
"; echo "
"; echo "
"; echo ""._NUKECADMINDISCLAIM.""; echo "

[ "._NUKECADDDISCLAIM." ]"; if ((isset($msgid)) && ($msgid != "")) { echo "
"; switch ($msgid) { case "DiscAdded": echo _NEWDISCADDED;break; case "DiscUpdated": echo _DISCUPDATED;break; case "DiscDeleted": echo _DISCDELETED;break; } echo "


"; } echo "
"; echo "
"; listingdisc(); echo "
"; echo "
"; echo "\n" ."" ."" ."" .""; if ($multilingual) { echo ""; } else { echo ""; } echo "" .""; echo "
"; echo ""._NUKECADDDISCLAIM."
"._NUKECDISCTITLE."\n" ."
"._NUKECDISCCONTENT."\n" ."
"._NUKECLANGUAGE.""; echo ""; echo "
"; echo "
"; CloseTable(); @include("footer.php"); } function NukeCSaveDisclaimer($title,$content,$disclanguage) { global $prefix,$db,$adsbgcolor1, $adsbgcolor2, $adsbgcolor3, $adsbgcolor4, $adsbgcolor5, $admin_file; if (($title == "") or ($content == "")) { $errormsg = _NUKECDISCERROR3; } $re = $db->sql_query("select * from $prefix"."_nukec_ads_disclaimer where language='$disclanguage'"); if ($db->sql_numrows($re) > 0) { global $prefix, $db, $bgcolor1, $bgcolor2, $admin_file; @include("header.php"); GraphicAdmin(); OpenTable(); NukeCAdminMenu(); echo "
"; echo "
\n"; if ($disclanguage == "") { $slclang = _NUKECALL; } else { $slclang = $disclanguage; } echo "
"; echo ""._NUKECDISCERRORTITLE."

"; echo "$errormsg"; echo _NUKECDISCERROR1."\"$slclang\""._NUKECDISCERROR2.""; echo "

"._NUKECGOBACK.""; echo "
"; echo "
"; echo "
"; CloseTable(); @include("footer.php"); } else { $db->sql_query("insert into $prefix"."_nukec_ads_disclaimer values ('','$title','$content','$disclanguage')"); header("Location:".$admin_file.".php?op=ClassifiedsDisclaimer&msgid=DiscAdded"); } } function NukeCEditDisclaimer($nod) { global $prefix, $db, $adsbgcolor1, $adsbgcolor2, $adsbgcolor3, $adsbgcolor4, $adsbgcolor5, $multilingual, $admin_file; @include("header.php"); GraphicAdmin(); OpenTable(); NukeCAdminMenu(); echo "
"; echo "
"; echo "
"; echo ""._NUKECADMINDISCLAIM.""; echo "

[ "._NUKECADDDISCLAIM." ]"; if ((isset($msgid)) && ($msgid != "")) { echo "

"; switch ($msgid) { case "DiscAdded": echo _NEWDISCADDED;break; case "DiscUpdated": echo _DISCUPDATED;break; case "DiscDeleted": echo _DISCDELETED;break; } echo "
"; } echo "
"; echo "
"; listingdisc(); $re = $db->sql_query("select no,title, content,language from $prefix"."_nukec_ads_disclaimer where no='$nod'"); list ($no,$title,$content,$language) = $db->sql_fetchrow($re); echo "
"; echo "
"; echo "\n" .""; echo "" ."" .""; echo "" ."" ."" .""; echo "
"; echo ""._NUKECEDITDISCLAIM."
"._NUKECDISCTITLE."\n" ."
"._NUKECDISCCONTENT."\n" ."
"._NUKECLANGUAGE.""; echo ""; echo "
"; echo "
"; CloseTable(); @include("footer.php"); } function NukeCUpdateDisclaimer($no,$title,$content,$disclanguage) { global $prefix, $db, $bgcolor1, $bgcolor2, $admin_file; if (($title == "") or ($content == "")) { $errormsg = _NUKECDISCERROR3; } $re = $db->sql_query("select * from $prefix"."_nukec_ads_disclaimer where language='$disclanguage' and no<>'$no'"); if ($db->sql_numrows($re) > 0) { @include("header.php"); GraphicAdmin(); NukeCAdminMenu(); echo "
"; OpenTable(); if ($disclanguage == "") { $slclang = _NUKECALL; } else { $slclang = $disclanguage; } echo "
"; echo ""._NUKECDISCERRORTITLE."

"; echo "$errormsg"; echo _NUKECDISCERROR1."\"$slclang\""._NUKECDISCERROR2.""; echo "

"._NUKECGOBACK.""; echo "
"; CloseTable(); @include("footer.php"); } else { $db->sql_query("update $prefix"."_nukec_ads_disclaimer set title='$title', content='$content', language='$disclanguage' where no='$no'"); header("Location:".$admin_file.".php?op=ClassifiedsDisclaimer&msgid=DiscUpdated"); } } function NukeCDeleteDisclaimer($nod) { global $prefix, $db, $admin_file; $db->sql_query("delete from $prefix"."_nukec_ads_disclaimer where no='$nod'"); header("Location:".$admin_file.".php?op=ClassifiedsDisclaimer&msgid=DiscDeleted"); } function listingdisc() { global $prefix,$db, $adsbgcolor1, $adsbgcolor2, $adsbgcolor3, $adsbgcolor4, $adsbgcolor5, $admin_file; $re = $db->sql_query("select no,title, language from $prefix"."_nukec_ads_disclaimer order by no"); if ($db->sql_numrows($re) > 0) { echo "
"; echo ""; echo "\n" ."\n"; while (list ($no,$title,$language) = $db->sql_fetchrow($re)) { if ($language == "") { $currlang = _NUKECALL; } else { $currlang = $language; } echo "\n" ."\n" ." \n"; } echo "
"._NUKECADSTITLE.""._NUKECLANGUAGE." 
$title$currlang\n" ."[ "._NUKECEDIT." | \n" .""._NUKECDELETE." ]
"; echo "
"; } else { echo "
"._NUKECNODISCLAIM."
"; } } switch($op) { case "ClassifiedsDisclaimer" : NukeCDisclaimer($nod,$msgid);break; case "ClassifiedsAddDisclaimer":NukeCAddDisclaimer();break; case "ClassifiedsSaveDisclaimer":NukeCSaveDisclaimer($title,$content,$disclanguage);break; case "ClassifiedsEditDisclaimer":NukeCEditDisclaimer($nod);break; case "ClassifiedsUpdateDisclaimer":NukeCUpdateDisclaimer($no,$title,$content,$disclanguage);break; case "ClassifiedsDeleteDisclaimer":NukeCDeleteDisclaimer($nod) ;break; } } else { echo "Access Denied"; } ?>