<?php defined('_JEXEC') or die('Restricted Access'); require_once JApplicationHelper::getPath('admin_html'); JTable::addIncludePath(JPATH_COMPONENT . DS . 'tables'); switch ($task) { case 'conf': conf($option); break; case 'saveconf': saveconf($option, $task); break; case 'prune': pruneclassified(); break; case 'categories': categories($option); break; case 'add': case 'edit': editClassified($option); break; case 'apply': case 'save': saveClassified($option, $task); break; case 'remove': removeClassifieds($option); break; case 'addcategory': case 'editcategory':
exit; } if (isset($_GET["antispam"])) { config_antispam(); exit; } if (isset($_GET["notification"])) { config_notification(); exit; } if (isset($_GET["sa_tag2_level_deflt"])) { saveconf(); exit; } if (isset($_GET["mailfrom_notify_admin"])) { saveconf(); exit; } js(); function js() { $page = CurrentPageName(); $tpl = new templates(); $title = $tpl->_ENGINE_parse_body("{APP_AMAVISD_NEW}"); $hostname = $_GET["hostname"]; $ou = $_GET["ou"]; $html = "\n\t\tfunction PostfixMultiLoadAmavis(){\n\t\t\tYahooWin3(650,'{$page}?popup=yes&hostname={$hostname}&ou={$ou}','{$title}');\t\n\t\t\n\t\t}\n\t\n\t\n\tPostfixMultiLoadAmavis()"; echo $html; } function popup() {
include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.maincf.multi.inc'); if(isset($_GET["org"])){$_GET["ou"]=$_GET["org"];} if(!PostFixMultiVerifyRights()){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["antispam"])){config_antispam();exit;} if(isset($_GET["notification"])){config_notification();exit;} if(isset($_GET["sa_tag2_level_deflt"])){saveconf();exit;} if(isset($_GET["mailfrom_notify_admin"])){saveconf();exit;} js(); function js(){ $page=CurrentPageName(); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{APP_AMAVISD_NEW}"); $hostname=$_GET["hostname"]; $ou=$_GET["ou"]; $html=" function PostfixMultiLoadAmavis(){ YahooWin3(650,'$page?popup=yes&hostname=$hostname&ou=$ou','$title');