exit; } if (isset($_POST["hostname-node"])) { hostname_node_perform(); exit; } if (isset($_POST["update-node"])) { update_node_perform(); exit; } if (isset($_POST["update-squid"])) { update_squid_perform(); exit; } if (isset($_GET["status-list"])) { status_list(); exit; } js(); function js() { $page = CurrentPageName(); $blk = new blackboxes($_GET["nodeid"]); $title = $blk->hostname; $q = new mysql_blackbox(); $ipZ = array(); $ipsT = null; $results2 = $q->QUERY_SQL("SELECT ipaddr FROM `nics` WHERE nodeid={$_GET["nodeid"]}"); while ($ligne2 = mysql_fetch_array($results2, MYSQL_ASSOC)) { if ($ligne2["ipaddr"] == "127.0.0.1") { continue;
/** * Articles panel. * * @package Admin\List */ use Textpattern\Validator\CategoryConstraint; use Textpattern\Validator\SectionConstraint; use Textpattern\Validator\Validator; use Textpattern\Search\Filter; if (!defined('txpinterface')) { die('txpinterface is undefined.'); } if ($event == 'list') { global $statuses, $all_cats, $all_authors, $all_sections; require_privs('article'); $statuses = status_list(); $all_cats = getTree('root', 'article'); $all_authors = the_privileged('article.edit.own'); $all_sections = safe_column("name", 'txp_section', "name != 'default'"); $available_steps = array('list_list' => false, 'list_change_pageby' => true, 'list_multi_edit' => true); if ($step && bouncer($step, $available_steps)) { $step(); } else { list_list(); } } /** * The main panel listing all articles. * * @param string|array $message The activity message * @param string $post Not used
/** * Renders a HTML <select> list of available publishing * status values. * * @param string $name HTML name and id of the widget * @param string $val Initial (or current) selected item * @return string HTML */ function defaultPublishStatus($name, $val) { return selectInput($name, status_list(), $val, '', '', $name); }
* as published by the Free Software Foundation, version 2. * * Textpattern is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Textpattern. If not, see <http://www.gnu.org/licenses/>. */ if (!defined('txpinterface')) { die('txpinterface is undefined.'); } $levels = array(1 => gTxt('private'), 0 => gTxt('public')); global $file_statuses; $file_statuses = status_list(true, array(STATUS_DRAFT, STATUS_STICKY)); if ($event == 'file') { require_privs('file'); global $all_file_cats, $all_file_authors; $all_file_cats = getTree('root', 'file'); $all_file_authors = the_privileged('file.edit.own'); $available_steps = array('file_change_pageby' => true, 'file_multi_edit' => true, 'file_edit' => false, 'file_insert' => true, 'file_list' => false, 'file_replace' => true, 'file_save' => true, 'file_create' => true); if ($step && bouncer($step, $available_steps)) { $step(); } else { file_list(); } } // ------------------------------------------------------------- function file_list($message = '') {
/** * Translates article status names into numerical status codes. * * @param string $name Status name * @param int $default Status code to return if $name is not a defined status name * @return int Matching numerical status */ function getStatusNum($name, $default = STATUS_LIVE) { $statuses = status_list(false); $status = strtolower($name); $num = array_search($status, $statuses); if ($num === false) { $num = $default; } return (int) $num; }
<?php if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=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('ressources/class.templates.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.squid.inc'); include_once('ressources/class.status.inc'); include_once('ressources/class.artica.graphs.inc'); $users=new usersMenus(); if(!$users->AsWebStatisticsAdministrator){die();} if(isset($_GET["tabs"])){tabs();exit;} if(isset($_GET["popup"])){popup();exit;} if(isset($_POST["hostname"])){save_hostname();exit;} if(isset($_GET["status"])){status();exit;} if(isset($_GET["status-list"])){status_list();exit;} if(isset($_POST["delete-file"])){delete_file();exit;} if(isset($_POST["scan-now"])){scan_now();exit;} if(isset($_GET["test-nas-popup"])){test_nas_popup();exit;} if(isset($_GET["test-nas-js"])){test_nas_js();exit;} if(isset($_POST["import-now"])){import_now();exit;} if(isset($_GET["events"])){events();exit;} if(isset($_POST["delete-all"])){delete_all();exit;} js(); function test_nas_js(){ header("content-type: application/x-javascript"); $page=CurrentPageName(); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{test_connection}"); echo "YahooWin3('650','$page?test-nas-popup=yes','$title');";