コード例 #1
0
function popup()
{
    $infos = infos();
    $html = "<span style='font-size:16px;font-weight:bold'>{network_hardware_infos_text}</span>\n\t<br>\n\t<div style='width:100%;height:400px;overflow:auto'>{$infos}</div>\n\t\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
コード例 #2
0
function popup()
{
    $infos = infos();
    $sock = new sockets();
    $page = CurrentPageName();
    $alx = $sock->getFrameWork("system.php?modinfo=alx");
    $ModeProbeAlx = intval($sock->GET_INFO("ModeProbeAlx"));
    $q = new mysql();
    $DIVS = array();
    $js = array();
    if ($q->TABLE_EXISTS("RXTX_HOUR", "artica_events")) {
        $results = $q->QUERY_SQL("SELECT ETH FROM RXTX_HOUR GROUP BY ETH", "artica_events");
        while ($ligne = @mysql_fetch_array($results, MYSQL_ASSOC)) {
            $ETH = $ligne["ETH"];
            $nic = new system_nic($ETH);
            $DIVS[] = "<hr><div style='font-size:30px;margin-top:20px'>{$ETH} [{$nic->IPADDR}] - {$nic->NICNAME} - {$nic->netzone}</div>";
            $DIVS[] = "<div style='width:1460px;height:350px' id='{$ETH}-RX-hour' class=form></div>";
            $DIVS[] = "<div style='width:1460px;height:350px' id='{$ETH}-TX-hour' class=form></div>";
            $DIVS[] = "<div style='width:1460px;height:350px' id='{$ETH}-RX-week' class=form></div>";
            $DIVS[] = "<div style='width:1460px;height:350px' id='{$ETH}-TX-week' class=form></div>";
            $js[] = "Loadjs('{$page}?eth-hour=yes&type=RX&ETH={$ETH}')";
            $js[] = "Loadjs('{$page}?eth-hour=yes&type=TX&ETH={$ETH}')";
            $js[] = "Loadjs('{$page}?eth-week=yes&type=RX&ETH={$ETH}')";
            $js[] = "Loadjs('{$page}?eth-week=yes&type=TX&ETH={$ETH}')";
        }
    }
    $t = time();
    if ($alx == "TRUE") {
        $alxform = Paragraphe_switch_img("{qualcomm_atheros}", "{qualcomm_atheros_explain}", "ModeProbeAlx", $ModeProbeAlx, null, 1450);
    } else {
        $alxform = Paragraphe_switch_disable("{qualcomm_atheros}", "{qualcomm_atheros_explain}", "ModeProbeAlx", 0, null, 1450);
    }
    //$gateway=Paragraphe('relayhost.png','{APP_ARTICA_GAYTEWAY}','{APP_ARTICA_GAYTEWAY_TEXT}',"javascript:Loadjs('index.gateway.php?script=yes')");
    $html = "\n\t<div style='width:98%' class=form>\n\t{$alxform}\t\t\n\t{$gateway}\n\t<div style='margin-top:20px;text-align:right'><hr>" . button("{apply}", "Save{$t}()", 32) . "</div>\n\t</div>\n\t\n\t<div style='width:98%' class=form>\n\t<div style='font-size:26px;font-weight:bold'>{network_hardware_infos_text}</div>\n\t<br>\n\t<div style='width:98%;height:300px;overflow:auto;'>{$infos}</div>\n\t</div>\n\t" . @implode("\n", $DIVS) . "\n<script>\nvar xSave{$t}=function (obj) {\n\tLoadjs('network.restart.php');\n}\n\t\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('ModeProbeAlx',document.getElementById('ModeProbeAlx').value);\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n}\n" . @implode("\n", $js) . "\n</script>\t\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
コード例 #3
0
ファイル: xpl search.php プロジェクト: Jack2/XPL-SEARCH
if (isset($oo["author"])) {
    $OPT["author"] = $oo["author"];
} else {
    $O = $O + 1;
}
if ($O == 4) {
    die;
}
####################################################################################################
## VERIFY SET-DB
if (isset($OPT["db"])) {
    $OPT = ccdbs($OPT);
}
####################################################################################################
## INFOS
echo infos($OPT);
####################################################################################################
## FILE SEARCH
if (file_exists($OPT["sfile"])) {
    $file = file_get_contents($OPT["sfile"]);
    if (empty($file)) {
        die(cores("r") . "File \"{$OPT["sfile"]}\" are empty!");
    }
    $file = explode("\n", $file);
} else {
    $file = array($OPT["find"]);
    if (isset($OPT["author"])) {
        $file = array($OPT["author"]);
    }
}
####################################################################################################
コード例 #4
0
<?php

include_once 'ressources/class.templates.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.kav4proxy.inc';
$user = new usersMenus();
if ($user->AsSquidAdministrator == false) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["infos"])) {
    infos();
    exit;
}
if (isset($_POST["xrescan"])) {
    rescan();
    exit;
}
kav4proxy_license_js();
function kav4proxy_license_delete()
{
    $sock = new sockets();
    $datas = base64_decode($sock->getFrameWork('cmd.php?Kav4ProxyLicenseDelete&type=' . $_GET["license-type"]));
}
function kav4proxy_license_js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $title = $tpl->_ENGINE_parse_body('{APP_KAV4PROXY}::{license_info}');
コード例 #5
0
ファイル: infos.php プロジェクト: sonicmaster/RPG
    }
    @(include "info/{$gid}.php");
    //Incluimos el @ para evitar mostrar error
    //Para hacer:
    //Falta llenar los archivos gid de la carpeta info
    return $info;
}
$userrow = checkcookies();
//Identificación del usuario
if (!isset($userrow)) {
    error('Por favor, <a href="login.php" target="_main">identificate...</a>', "Error");
}
include INCLUDES_PATH . "planet_toggle.php";
//Cambia de planeta
//$planetrow = doquery("SELECT * FROM {{table}} WHERE id = '".$userrow["current_planet"]."'","planets",true);
$info = @infos($gid);
$dpath = !$userrow["dpath"] ? DEFAULT_SKINPATH : $userrow["dpath"];
if ($gid >= 1 && $gid <= 44) {
    $TitleClass = str_replace('%n', $tech[0], $lang['Information_on']);
} elseif ($gid >= 106 && $gid <= 199) {
    $TitleClass = str_replace('%n', $tech[100], $lang['Information_on']);
} elseif ($gid >= 202 && $gid <= 214) {
    $TitleClass = str_replace('%n', $tech[200], $lang['Information_on']);
} elseif ($gid >= 401 && $gid <= 503) {
    $TitleClass = str_replace('%n', $tech[400], $lang['Information_on']);
}
$page = <<<HTML
<br />
<center>
<table width=519>
  <tr>