$auto_subject = $params; break; case 'newtopic': // Новый топик if ($scriptname and $auto_forum and $auto_subject) { $auto_message = str_replace('^', "\n", $params); include $scriptname; $auto_subject = ''; } else { echo "Не задан форум, номер форума или тема!\n"; } break; case 'packed': // Добавить сообщение/топик if ($scriptname) { run_func('auto_packed', $params); $auto_packed = $params; include $scriptname; $auto_packed = ''; } else { echo "Не задан форум\n"; } break; default: // Добавить топик if ($scriptname and is_numeric($cmd)) { $auto_topic = $cmd; $auto_message = str_replace('^', "\n", $params); include $scriptname; } else { echo "Не задан форум или топик\n";
$GLOBALS["VERBOSE"] = true; $GLOBALS["VERBOSE"] = true; ini_set('html_errors', 0); ini_set('display_errors', 1); ini_set('error_reporting', E_ALL); } //$GLOBALS["VERBOSE"]=true;$GLOBALS["VERBOSE"]=true;$GLOBALS["debug"]=true;ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null); include_once dirname(__FILE__) . '/ressources/class.templates.inc'; include_once dirname(__FILE__) . '/ressources/class.ldap.inc'; include_once dirname(__FILE__) . '/ressources/class.ini.inc'; include_once dirname(__FILE__) . '/ressources/class.mysql.inc'; include_once dirname(__FILE__) . '/ressources/class.ccurl.inc'; include_once dirname(__FILE__) . '/framework/class.unix.inc'; include_once dirname(__FILE__) . '/framework/frame.class.inc'; include_once dirname(__FILE__) . '/ressources/class.squidguard.inc'; run_func(); function build_progress($text, $pourc) { if ($GLOBALS["NOPROGRESS"]) { return; } $array["POURC"] = $pourc; $array["TEXT"] = $text; echo "[{$pourc}]: {$text}\n"; @file_put_contents("/usr/share/artica-postfix/ressources/logs/web/squid.network.switch.progress", serialize($array)); @chmod("/usr/share/artica-postfix/ressources/logs/web/squid.network.switch.progress", 0755); sleep(1); } function run_remove() { $unix = new unix();