コード例 #1
0
include_once('ressources/class.main_cf.inc');
include_once('ressources/charts.php');
include_once('ressources/class.syslogs.inc');
include_once('ressources/class.system.network.inc');
include_once('ressources/class.os.system.inc');
include_once('ressources/class.tcpip.inc');

include_once(dirname(__FILE__)."/ressources/class.mysql.squid.builder.php");

if(isset($_GET["myhome1"])){myhome1();exit;}
if(isset($_GET["myhome2"])){myhome2();exit;}
if(isset($_GET["myhome3"])){myhome3();exit;}
if(isset($_POST["update-public-ip"])){task_update_public_ip();exit;}

if(isset($_GET["UpdatePublicIPBox"])){UpdatePublicIPBox();exit;}
if(isset($_POST["UpdatePublicIPBoxSave"])){UpdatePublicIPBoxSave();exit;}
page();



function page(){
	$tpl=new templates();
	$page=CurrentPageName();	
	$html="<div class=form>
	<div style='font-size:18px'>{welcome_title} {$_SESSION["email"]}</div>
	<p style='font-size:16px'  class=text-info>{instroduction_enduser_proxy}</p>
	<table style='width:100%'>
	<tbody>
	<tr>
		<td valign='top' style='width:50%'>
					<table style='width:99%' class=form>
コード例 #2
0
    exit;
}
if (isset($_GET["myhome3"])) {
    myhome3();
    exit;
}
if (isset($_POST["update-public-ip"])) {
    task_update_public_ip();
    exit;
}
if (isset($_GET["UpdatePublicIPBox"])) {
    UpdatePublicIPBox();
    exit;
}
if (isset($_POST["UpdatePublicIPBoxSave"])) {
    UpdatePublicIPBoxSave();
    exit;
}
page();
function page()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $html = "<div class=form>\n\t<div style='font-size:18px'>{welcome_title} {$_SESSION["email"]}</div>\n\t<p style='font-size:16px'  class=explain>{instroduction_enduser_proxy}</p>\n\t<table style='width:100%'>\n\t<tbody>\n\t<tr>\n\t\t<td valign='top' style='width:50%'>\n\t\t\t\t\t<table style='width:99%' class=form>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td width=1% valign='top'><img src='img/infowarn-64.png'></td>\n\t\t\t\t\t\t<td valign='top'>\n\t\t\t\t\t\t<div style='font-size:16px'>{public_information}:</div>\n\t\t\t\t\t\t<div id='myhome1'></div>\n\t\t\t\t\t\t\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t<div id='myhome3'></div>\n\t\t</td>\n\t\t<td valign='top' style='width:50%'>\n\t\t\t\n\t\t\t<div id='myhome2'></div>\n\t\t</td>\n\t</tr>\n\t</table>\n\t</div>\n\t\n\t\n\t<script>\n\t\tLoadAjax('myhome1','{$page}?myhome1=yes');\n\t</script>\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
function myhome1()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $ip = $_SERVER["REMOTE_ADDR"];