当前位置: 首页>>代码示例>>PHP>>正文


PHP FATAL_WARNING_SHOW_128函数代码示例

本文整理汇总了PHP中FATAL_WARNING_SHOW_128函数的典型用法代码示例。如果您正苦于以下问题:PHP FATAL_WARNING_SHOW_128函数的具体用法?PHP FATAL_WARNING_SHOW_128怎么用?PHP FATAL_WARNING_SHOW_128使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了FATAL_WARNING_SHOW_128函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: page

function page(){
	$page=CurrentPageName();
	$tpl=new templates();
	
	$sock=new sockets();
	$SquidPerformance=intval($sock->GET_INFO("SquidPerformance"));
	if($SquidPerformance>1){
		echo $tpl->_ENGINE_parse_body(FATAL_WARNING_SHOW_128("{artica_statistics_disabled}"));
		return;
	}
	
	$t=time();
	$html="<div style='font-size:26px;margin-bottom:20px'>{APP_LOGGERS}</div>
	<div style='font-size:16px' class=text-info>{APP_LOGGERS_SQUID_EXPLAIN}</div>
	<div id='logger-status'></div>
	
			
	<script>
		function LoggerStatus$t(){
			LoadAjax('logger-status','$page?logger-status=yes',false);
		
		}
		LoggerStatus$t();
	</script>
";
	
echo $tpl->_ENGINE_parse_body($html);
	
	
	
	
	
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:33,代码来源:squid.loggers.status.php

示例2: page

function page(){
	$sock=new sockets();
	$tpl=new templates();
	
	$IsInstalled=trim($sock->getFrameWork("system.php?phpmyadmin-installed=yes"));
	
	if($IsInstalled<>"TRUE"){
		$button=button("{reinstall_software}","Loadjs('system.mysql.phpmyadmin.install.php')",36);
		echo FATAL_WARNING_SHOW_128("<span style='font-size:26px'>{ERROR_SERVICE_NOT_INSTALLED}</span><center style='margin:20px'>$button</center>");
		
	}
	
	
	
	$version=trim($sock->getFrameWork("system.php?phpmyadpmin-version=yes"));
	
	$html="
	<div style='width:100%;text-align:center'>
	<center>
	<center style='width:70%;margin:30px' class=form>
	<div style='font-size:26px'>PHPMyAdmin v.$version</div>
	<p>&nbsp;</p>
	". button("PHPMyAdmin Front-end","document.location.href='/mysql';",40)."<p>&nbsp;</p></center></center></div>";
		
			
			
	echo $tpl->_ENGINE_parse_body($html);
	
	
	
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:31,代码来源:system.mysql.phpmyadmin.php

示例3: tabs

function tabs(){
$sock=new sockets();

$results=base64_decode($sock->getFrameWork("squid.php?ziproxy-isinstalled=yes"));
if($results<>"TRUE"){
	echo FATAL_WARNING_SHOW_128("{the_specified_module_is_not_installed}");
	return;
}
$tpl=new templates();
$page=CurrentPageName();
$array["status"]='{status}';
$array["popup"]='{parameters}';
$array["events-ziproxy"]='{compressor_requests}';
$t=time();

while (list ($num, $ligne) = each ($array) ){
	if($num=="events-ziproxy"){
		$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"squid.zipproxy.access.php?popup=yes\" style='font-size:18px'><span>$ligne</span></a></li>\n");
		continue;
	
	}
	
	
		$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"$page?$num=yes\" style='font-size:18px'><span>$ligne</span></a></li>\n");
}
echo build_artica_tabs($html, "main_zipproxy_tabs");
}	
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:27,代码来源:squid.zipproxy.php

示例4: popup

function popup() {
	$page=CurrentPageName();
	$tpl=new templates();
	
	$sock=new sockets();
	$RemoteUfdbCat=intval($sock->GET_INFO("RemoteUfdbCat"));
	if($RemoteUfdbCat==0){
		$SquidPerformance=intval($sock->GET_INFO("SquidPerformance"));
		if($SquidPerformance>0){
			echo $tpl->_ENGINE_parse_body(FATAL_WARNING_SHOW_128("{artica_ufdbcat_disabled}"));
			return;
		}
	}
	
	$t=time();
	$html="<div style='font-size:16px' class=text-info>{squid_test_categories_perform}</div>
	<div style='width:95%;padding:15px' class=form>
	<center>
		". Field_text("test-$t",null,"font-size:22px;letter-spacing:2px",null,null,null,false,"Run$t(event)",false)."
	</center>
	</div>		
	<div id='results-$t'></div>		
	<script>
		function Run$t(e){
			if(!checkEnter(e)){return;}
			LoadAjax('results-$t','$page?test='+document.getElementById('test-$t').value,true);
		}
	
	</script>";
	
	echo $tpl->_ENGINE_parse_body($html);
	
	
	
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:35,代码来源:squid.category.tests.php

示例5: page

function page()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $users = new usersMenus();
    if (!$users->APACHE_MOD_BW) {
        echo FATAL_WARNING_SHOW_128("{the_specified_module_is_not_installed}");
        return;
    }
    $servername_enc = urlencode($_GET["servername"]);
    $page = CurrentPageName();
    $tpl = new templates();
    $q = new mysql();
    $sock = new sockets();
    $free = new freeweb($_GET["servername"]);
    $Params = $free->Params;
    $t = time();
    $ForceBandWidthModule = intval($Params["ModeBw"]["ForceBandWidthModule"]);
    $BandwidthAll = intval($Params["ModeBw"]["BandwidthAll"]);
    if ($BandwidthAll == 0) {
        $BandwidthAll = 1536000;
    }
    $BandwidthAll = $BandwidthAll / 1024;
    $html = "\n\n\t<div style='width:98%' class=form>\n\t" . Paragraphe_switch_img("{apache_Bandwidth_enable}", "{apache_Bandwidth_explain}", "bandlimit", "{$free->bandlimit}", null, 650) . "\n\t<table style='width:100%'>\n\t<td colspan=3 align=right>" . button("{rules}", "Loadjs('freeweb.mod.bw.php?servername={$servername_enc}')", 24) . "</td>\n\t<tr>\n\t\t<td class=legend style='font-size:18px'>{limit_all_requests}:</td>\n\t\t<td>" . Field_checkbox("ForceBandWidthModule", 1, $ForceBandWidthModule) . "</td>\n\t\t<td></td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:18px'>{default_limit}:</td>\n\t\t<td style='font-size:18px'>" . Field_text("BandwidthAll", $BandwidthAll, "font-size:18px;width:90px") . "&nbsp;KB/s</td>\n\t\t<td></td>\n\t</tr>\n\n\t<tr>\n\t\t<td colspan=3 align=right><hr>" . button("{apply}", "Save{$t}()", 24) . "</td>\n\t</tr>\n\t</table>\n\t<p>&nbsp;</p>\n\t</div>\n<script>\n\tvar xSave{$t}=function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif(results.length>0){alert(results);}\n\t\t\tRefreshTab('main_freeweb_qos');\n\t}\n\t\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('bandlimit',document.getElementById('bandlimit').value);\n\tif(document.getElementById('ForceBandWidthModule').checked){\n\t\tXHR.appendData('ForceBandWidthModule',1);\n\t}else{\n\t\tXHR.appendData('ForceBandWidthModule',0);\n\t}\n\t\n\t\n\tXHR.appendData('BandwidthAll',document.getElementById('BandwidthAll').value);\n\tXHR.appendData('servername','{$_GET["servername"]}');\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n}\n</script>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:26,代码来源:freeweb.edit.bw.php

示例6: tabs

function tabs(){
	$tpl=new templates();
	$q=new mysql_squid_builder();
	$sock=new sockets();
	
	$status=trim($sock->getFrameWork("squid.php?videocache-streamsquidcache=yes"));
	
	if($status<>"TRUE"){
		echo $tpl->_ENGINE_parse_body(FATAL_WARNING_SHOW_128("{module_in_squid_not_installed}<hr>{EnableStreamCache_text}"));
		return;
	}
	
	$page=CurrentPageName();
	$array["status"]='{status}';
	$array["parameters"]='{parameters}';
	$array["events"]='{events}';
	$array["events-retriver"]='{retreiver_events}';
	if($q->TABLE_EXISTS("videocacheA")){
		$array["stats"]='{statistics}';
	}
	
	$array["websites"]="{supported_websites}";
	
	$t=time();
	while (list ($num, $ligne) = each ($array) ){
		if($num=="events"){
			$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"squid.videocache.events.php\" style='font-size:18px'><span>$ligne</span></a></li>\n");
			continue;
		}
		if($num=="events-retriver"){
			$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"squid.videocache.events-retreiver.php\" style='font-size:18px'><span>$ligne</span></a></li>\n");
			continue;
		}
		
		if($num=="master"){
			$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"squid.master-proxy.php?byQuicklinks=yes\" style='font-size:18px'><span>$ligne</span></a></li>\n");
			continue;
		}
	
		$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"$page?$num=yes\" style='font-size:18px'><span>$ligne</span></a></li>\n");
		}
	
	echo build_artica_tabs($html, "main_squid_videocache_tabs",1200)."<script>LeftDesign('videocache-256-white-opac20.png');</script>";
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:44,代码来源:squid.videocache.php

示例7: tabs

function tabs()
{
    $ID = intval($_GET["ID"]);
    $page = CurrentPageName();
    $tpl = new templates();
    $q = new mysql();
    $title = $tpl->javascript_parse_text("{new_server}");
    $sock = new sockets();
    $EnableNginx = intval($sock->GET_INFO("EnableNginx"));
    if ($EnableNginx == 0) {
        echo FATAL_WARNING_SHOW_128("\n\t\t{enable_reverse_proxy_service}\n\t\t<center style='margin:30px'>" . button("{enable_reverse_proxy_service}", "Loadjs('{$page}?EnableNginx=yes')", 42) . "</center>");
        return;
    }
    if ($ID > 0) {
        $q = new mysql_squid_builder();
        $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT ipaddr FROM reverse_sources WHERE ID='{$ID}'"));
        $title = $ligne["ipaddr"];
    }
    $array["general-settings"] = $title;
    $array["web-servers"] = '{web_servers}';
    $fontsize = 18;
    while (list($num, $ligne) = each($array)) {
        if ($num == "web-servers") {
            $tab[] = $tpl->_ENGINE_parse_body("<li><a href=\"nginx.peer.www.php?ID={$ID}\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "events") {
            $tab[] = $tpl->_ENGINE_parse_body("<li><a href=\"nginx.events.php?ID={$ID}\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "destinations") {
            $tab[] = $tpl->_ENGINE_parse_body("<li><a href=\"nginx.destinations.php?ID={$ID}\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        $tab[] = "<li style='font-size:{$fontsize}px'><a href=\"{$page}?{$num}=yes&ID={$ID}\"><span >{$ligne}</span></a></li>\n";
    }
    $t = time();
    //
    echo build_artica_tabs($tab, "main_source_{$ID}") . "<script>";
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:40,代码来源:nginx.peer.php

示例8: popup

function popup(){
	$tpl=new templates();
	$sock=new sockets();
	$page=CurrentPageName();
	$users=new usersMenus();
	$squid=new squidbee();
	$EnableArticaHotSpot=$sock->GET_INFO("EnableArticaHotSpot");
	$SquidHotSpotPort=intval($sock->GET_INFO("SquidHotSpotPort"));
	$ArticaHotSpotPort=intval($sock->GET_INFO("ArticaHotSpotPort"));
	$ArticaSSLHotSpotPort=$sock->GET_INFO("ArticaSSLHotSpotPort");
	$ArticaSplashHotSpotPort=$sock->GET_INFO("ArticaSplashHotSpotPort");
	$ArticaSplashHotSpotPortSSL=$sock->GET_INFO("ArticaSplashHotSpotPortSSL");
	$ArticaSplashHotSpotCacheAuth=$sock->GET_INFO("ArticaSplashHotSpotCacheAuth");
	$ArticaSplashHotSpotCertificate=$sock->GET_INFO("ArticaSplashHotSpotCertificate");
	$ArticaSplashHotSpotEndTime=$sock->GET_INFO("ArticaSplashHotSpotEndTime");
	$SquidHotSpotSSLPort=intval($sock->GET_INFO("SquidHotSpotSSLPort"));
	$WifiDogDebugLevel=intval($sock->GET_INFO("WifiDogDebugLevel"));
	$ArticaHotSpotInterface2=$sock->GET_INFO("ArticaHotSpotInterface2");
	
	
	if(!is_numeric($ArticaSplashHotSpotCacheAuth)){$ArticaSplashHotSpotCacheAuth=60;}
	if(!is_numeric($ArticaSplashHotSpotEndTime)){$ArticaSplashHotSpotEndTime=0;}
	
	$ArticaHotSpotInterface=$sock->GET_INFO("ArticaHotSpotInterface");
	
	if(!$users->CONNTRACK_INSTALLED){
		echo FATAL_WARNING_SHOW_128("{conntrackd_not_installed}");
	}
	
	for($i=0;$i<11;$i++){
		$WifiDogDebugLevelZ[$i]=$i;
	}
	
	$Timez[60]="1 {hour}";
	$Timez[120]="2 {hours}";
	$Timez[180]="3 {hours}";
	$Timez[360]="6 {hours}";
	$Timez[720]="12 {hours}";
	$Timez[1440]="1 {day}";
	$Timez[2880]="2 {days}";
	$Timez[10080]="1 {week}";
	
	
	$Timez[0]="{unlimited}";
	$Timez[30]="30 {minutes}";
	$Timez[60]="1 {hour}";
	$Timez[120]="2 {hours}";
	$Timez[180]="3 {hours}";
	$Timez[360]="6 {hours}";
	$Timez[720]="12 {hours}";
	$Timez[1440]="1 {day}";
	$Timez[2880]="2 {days}";
	$Timez[10080]="1 {week}";
	$Timez[20160]="2 {weeks}";
	$Timez[40320]="1 {month}";
	
	$ArticaHotSpotEnableMIT=$sock->GET_INFO("ArticaHotSpotEnableMIT");
	$ArticaHotSpotEnableProxy=$sock->GET_INFO("ArticaHotSpotEnableProxy");
	
	if(!is_numeric($ArticaHotSpotEnableMIT)){$ArticaHotSpotEnableMIT=1;}
	if(!is_numeric($ArticaHotSpotEnableProxy)){$ArticaHotSpotEnableProxy=1;}
	
	if(!is_numeric($ArticaHotSpotPort)){$ArticaHotSpotPort=0;}
	if(!is_numeric($ArticaSplashHotSpotPort)){$ArticaSplashHotSpotPort=16080;}
	if(!is_numeric($ArticaSplashHotSpotPortSSL)){$ArticaSplashHotSpotPortSSL=16443;}
	
	
	$ArticaSplashHotSpotTitle=$sock->GET_INFO("ArticaSplashHotSpotTitle");
	if($ArticaSplashHotSpotTitle==null){$ArticaSplashHotSpotTitle="HotSpot system";}
	
	if($ArticaHotSpotPort==0){
		$ArticaHotSpotPort=rand(38000, 64000);
		$sock->SET_INFO("ArticaHotSpotPort", $ArticaHotSpotPort);
	}
	
	if($ArticaSSLHotSpotPort==0){
		$ArticaSSLHotSpotPort=rand(38500, 64000);
		$sock->SET_INFO("ArticaSSLHotSpotPort", $ArticaSSLHotSpotPort);
	}
	
	if($SquidHotSpotPort==0){
		$SquidHotSpotPort=rand(40000, 64000);
		$sock->SET_INFO("SquidHotSpotPort", $SquidHotSpotPort);
	}
	
	if($SquidHotSpotSSLPort==0){
		$SquidHotSpotSSLPort=rand(40500, 64000);
		$sock->SET_INFO("SquidHotSpotSSLPort", $SquidHotSpotSSLPort);
	}
	
	
	$tcp=new networking();
	$interfacesZ=$tcp->Local_interfaces();
	while (list ($interface, $line) = each ($interfacesZ) ){
		$p=new system_nic($interface);
		if($p->IsBridged($interface)){continue;}
		$interfaces[$interface]=$p->NICNAME;
		
	}
	
//.........这里部分代码省略.........
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:101,代码来源:squid.webauth.php

示例9: iptables_status

function iptables_status(){
	$page=CurrentPageName();
	$tpl=new templates();
	$eth=$_GET["eth"];
	$sock=new sockets();
	$EnableArticaAsGateway=intval($sock->GET_INFO("EnableArticaAsGateway"));
	
	$ethC=new system_nic($eth);
	$isFW=$ethC->isFW;
	$isFWAcceptNet=$ethC->isFWAcceptNet;
	$isFWLogBlocked=$ethC->isFWLogBlocked;
	if($ethC->Bridged==1){
		$text=$tpl->_ENGINE_parse_body("{warn_this_interface_is_bridged_to}");
		$text=str_replace("%s", $ethC->BridgedTo, $text);
		$error_bridge=FATAL_WARNING_SHOW_128($text);
		
	}
	
	if(preg_match("#^br([0-9]+)#", $eth,$re)){
		$q=new mysql();
		$ligne=mysql_fetch_array($q->QUERY_SQL("SELECT isFW,isFWAcceptNet,isFWLogBlocked FROM nics_bridge WHERE ID='{$re[1]}'","artica_backup"));
		if(!$q->ok){echo "<p class=text-error>$q->mysql_error</p>";}
		$isFW=$ligne["isFW"];
		$isFWAcceptNet=$ligne["isFWAcceptNet"];
		$isFWLogBlocked=$ligne["isFWLogBlocked"];
		$error_bridge=null;
		
	}
	if(!is_numeric($isFWAcceptNet)){$isFWAcceptNet=1;}
	if(!is_numeric($isFWLogBlocked)){$isFWLogBlocked=0;}
	$t=time();
	
	$EnableArticaAsGateway=Paragraphe_switch_img('{ARTICA_AS_GATEWAY}','{ARTICA_AS_GATEWAY_EXPLAIN}',"EnableArticaAsGateway-$t",$EnableArticaAsGateway,null,550);
	
	$p=Paragraphe_switch_img("{activate_firewall_nic}", "{activate_firewall_nic_explain}","isFW-$t",$isFW,null,550);
	$p1=Paragraphe_switch_img("{trust_local_networks}", "{trust_local_networks_explain}","isFWAcceptNet-$t",$isFWAcceptNet,null,550);
	$p2=Paragraphe_switch_img("{isFWLogBlocked}", "{isFWLogBlocked_explain}","isFWLogBlocked-$t",$isFWLogBlocked,null,550);
	
	$html="<div style='width:98%' class=form>
	$error_bridge
	<table style='width:100%'>
		<tr>
			<td colspan=2 align='right' style='font-size:22px'><hr>
			". button("{firewall_rules}","Save$t();Loadjs('firewall.view.php')",22)."&nbsp;|&nbsp;
			". button("{apply_firewall_rules}","Save$t();Loadjs('firewall.restart.php')",22)."
			<hr>		
			</td>
		</tr>
		<tr>
			<td colspan=2>
				$EnableArticaAsGateway
				<div style='text-align:right'><hr>". button("{apply}","SaveGateway$t()",22)."</div>
				</td>
		</tr>		
		<tr>
			<td colspan=2>$p</td>
		</tr>
		<tr>
			<td colspan=2>$p1</td>
		</tr>	
		<tr>
			<td colspan=2>$p2</td>
		</tr>			
		<tr>
			<td colspan=2 align='right'><hr>". button("{apply}","Save$t()",22)."</td>
		</tr>
	</table>
	</div>
	<script>
var xSave$t= function (obj) {
	var res=obj.responseText;
	if (res.length>3){alert(res);}
	RefreshTab('main_firewall_table_$eth');
}

	

function Save$t(){
	var XHR = new XHRConnection();
	XHR.appendData('eth',  '$eth');
	XHR.appendData('isFW',  document.getElementById('isFW-$t').value);
	XHR.appendData('isFWLogBlocked',  document.getElementById('isFWLogBlocked-$t').value);
	XHR.appendData('isFWAcceptNet',  document.getElementById('isFWAcceptNet-$t').value);
	XHR.sendAndLoad('$page', 'POST',xSave$t);
		
	}	

function SaveGateway$t(){
	var XHR = new XHRConnection();
	XHR.appendData('EnableArticaAsGateway',  document.getElementById('EnableArticaAsGateway-$t').value);
	XHR.sendAndLoad('$page', 'POST',xSave$t);
}
	
</script>					
					
";
	
	
echo $tpl->_ENGINE_parse_body($html);	
	
//.........这里部分代码省略.........
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:101,代码来源:system.firewall.php

示例10: page

function page(){
	$page=CurrentPageName();
	$tpl=new templates();
	$sock=new sockets();
	$SquidPerformance=intval($sock->GET_INFO("SquidPerformance"));
	if($SquidPerformance>1){
		echo $tpl->_ENGINE_parse_body(FATAL_WARNING_SHOW_128("{artica_statistics_disabled}"));
		return;
	}
	$t=time();
	$events=$tpl->_ENGINE_parse_body("{events}");
	$zdate=$tpl->_ENGINE_parse_body("{zDate}");
	$proto=$tpl->_ENGINE_parse_body("{proto}");
	$uri=$tpl->_ENGINE_parse_body("{url}");
	$member=$tpl->_ENGINE_parse_body("{member}");
	if(function_exists("date_default_timezone_get")){$timezone=" - ".date_default_timezone_get();}
	$title=$tpl->_ENGINE_parse_body("{today}: {realtime_requests} ".date("H")."h$timezone");
	$zoom=$tpl->_ENGINE_parse_body("{zoom}");
	$button1="{name: 'Zoom', bclass: 'Search', onpress : ZoomSquidAccessLogs},";
	$stopRefresh=$tpl->javascript_parse_text("{stop_refresh}");
	$logs_container=$tpl->javascript_parse_text("{logs_container}");
	$refresh=$tpl->javascript_parse_text("{refresh}");
	
	$items=$tpl->_ENGINE_parse_body("{items}");
	$size=$tpl->_ENGINE_parse_body("{size}");
	$SaveToDisk=$tpl->_ENGINE_parse_body("{SaveToDisk}");
	$addCat=$tpl->_ENGINE_parse_body("{add} {category}");
	$date=$tpl->_ENGINE_parse_body("{zDate}");
	$task=$tpl->_ENGINE_parse_body("{task}");
	$new_schedule=$tpl->_ENGINE_parse_body("{new_rotate}");
	$explain=$tpl->_ENGINE_parse_body("{explain_squid_tasks}");
	$run=$tpl->_ENGINE_parse_body("{run}");
	$task=$tpl->_ENGINE_parse_body("{task}");
	$size=$tpl->_ENGINE_parse_body("{size}");
	$filename=$tpl->_ENGINE_parse_body("{filename}");
	$empty=$tpl->_ENGINE_parse_body("{empty}");
	$askdelete=$tpl->javascript_parse_text("{empty_store} ?");	
	$files=$tpl->_ENGINE_parse_body("{files}");
	$ext=$tpl->_ENGINE_parse_body("{extension}");
	$back_to_events=$tpl->_ENGINE_parse_body("{back_to_events}");
	$Compressedsize=$tpl->_ENGINE_parse_body("{compressed_size}");
	$realsize=$tpl->_ENGINE_parse_body("{realsize}");
	$delete_file=$tpl->javascript_parse_text("{delete_file}");
	$rotate_logs=$tpl->javascript_parse_text("{rotate_logs}");
	$change_date=$tpl->javascript_parse_text("{change_date}");
	$MAC=$tpl->_ENGINE_parse_body("{MAC}");
	$reload_proxy_service=$tpl->_ENGINE_parse_body("{reload_proxy_service}");
	$table_size=855;
	$url_row=650;
	$member_row=330;
	$table_height=500;
	$distance_width=230;
	$tableprc="100%";
	$margin="-10";
	$margin_left="-15";
	if(is_numeric($_GET["table-size"])){$table_size=$_GET["table-size"];}
	if(is_numeric($_GET["url-row"])){$url_row=$_GET["url-row"];}
	$parameters=$tpl->_ENGINE_parse_body("{parameters}");
		
	if(isset($_GET["bypopup"])){
		$table_size=1019;
		$url_row=650;
		$member_row=333;
		$distance_width=352;
		$margin=0;
		$margin_left="-5";
		$tableprc="99%";
		$button1="{name: '<strong id=refresh-$t>$stopRefresh</stong>', bclass: 'Reload', onpress : StartStopRefresh$t},";
		$table_height=590;
		$Start="StartRefresh$t()";
	}

	$q=new mysql_squid_builder();
	$countContainers=$q->COUNT_ROWS("squid_storelogs");
	if($countContainers>0){
		$button2="{name: '<strong id=container-log-$t>$logs_container</stong>', bclass: 'SSQL', onpress : StartLogsContainer$t},";
		$button_container="{name: '<strong id=container-log-$t>$back_to_events</stong>', bclass: 'SSQL', onpress : StartLogsSquidTable$t},";
		$button_container_delall="{name: '$empty', bclass: 'Delz', onpress : EmptyStore$t},";
		$ligne=mysql_fetch_array($q->QUERY_SQL("SELECT SUM(Compressedsize) as tsize FROM squid_storelogs"));
		$title_table_storage="$logs_container $countContainers $files (".FormatBytes($ligne["tsize"]/1024).")";
	}
	
	
	$ipaddr=$tpl->javascript_parse_text("{ipaddr}");
	$error=$tpl->javascript_parse_text("{error}");
	$sitename=$tpl->javascript_parse_text("{sitename}");
	//$button3="{name: '<strong id=container-log-$t>$rotate_logs</stong>', bclass: 'Reload', onpress : SquidRotate$t},";

	
	$buttons[]="{name: '<strong>$parameters</stong>', bclass: 'Settings', onpress : Settings$t},";
	//$buttons[]="{name: '<strong>$reload_proxy_service</stong>', bclass: 'Reload', onpress : ReloadProxy$t},";
	
	$buttons=@implode("", $buttons);
	
$html="
	<div style='margin:{$margin}px;margin-left:{$margin_left}px' id='$t-main-form'>
	<table class='flexRT$t' style='display: none' id='flexRT$t' style='width:$tableprc'></table>
	</div>
	<input type='hidden' id='refresh$t' value='1'>
<script>
//.........这里部分代码省略.........
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:101,代码来源:squid.accesslogs.php

示例11: page

function page(){
	
	$tpl=new templates();
	$page=CurrentPageName();
	$sock=new sockets();
	$SquidPerformance=intval($sock->GET_INFO("SquidPerformance"));
	if($SquidPerformance>1){
		
		echo $tpl->_ENGINE_parse_body(FATAL_WARNING_SHOW_128("{artica_statistics_disabled}"));
		return;
	}
	$tt=time();
	$t=time();
	$html="
	<div id='main-page-squid-statistics-central'>		
	<div class=text-info style='font-size:16px'>{squid_stats_central_progress_explain}</div>
			
			
	<center style='font-size:32px;margin:15px' id='squid-stats-central-progress-title-$t'></center>	
	<div id='squid-stats-central-progress' style='height:50px'></div>		
	<center style='margin:20px'>". button("{execute_now}", "Loadjs('$page?execute-js=yes',false)",26)."</center>
			
	<div id='squid-stats-central-details'></div>	
	</div>
	<script>
	
		$('#squid-stats-central-progress').progressbar({ value: 0 });
		LoadAjaxSilent('squid-stats-central-details','$page?squid-stats-central-details=yes&t=$t');
	</script>
			
	";
	
	echo $tpl->_ENGINE_parse_body($html);
	
	
}	
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:36,代码来源:squid.statistics.tasks-progress.php

示例12: central_information


//.........这里部分代码省略.........
	
	
	
	if(!$users->PROXYTINY_APPLIANCE){
		
		$tr[]=Paragraphe32('remote_statistics_server','remote_statistics_server_text',"javascript:Loadjs('squid.stats-appliance.php',true)",'syslog-32-client.png');
		

		if($DisableArticaProxyStatistics==0){
			$tr[]=Paragraphe32('import_squid_logs','import_squid_logs_explain',"Loadjs('squid.logs.import.php',true)",'32-import.png');
		}

		
		$tr[]=Paragraphe32('APP_ARTICADB','APP_ARTICADB_TEXT',"Loadjs('squid.categories.php?onlyDB=yes',true)",'32-categories.png');

	
	if($DisableArticaProxyStatistics==0){
			
		$tr[]=table_heures_enretard();
		$tr[]=Paragraphe32('remote_mysql_server','remote_mysqlsquidserver_text',"Loadjs('squid.remote-mysql.php',true)","artica-meta-32.png");
		$tr[]=Paragraphe32('restore_purged_statistics','restore_purged_statistics_explain',"Loadjs('squid.artica.statistics.restore.php',true)","32-import.png");		
		
		}
		
		
		$tr[]=Paragraphe32('source_logs','source_logs_squid_text'
				,"Loadjs('squid.logrotate.php',true)","32-logs.png");		
		
		$tr[]=Paragraphe32('enable_disable_statistics','ARTICA_STATISTICS_TEXT'
				,"Loadjs('squid.artica.statistics.php',true)","statistics-32.png");
		
		
		
	}
	
	if(!$users->CORP_LICENSE){$more_features="<div class=text-info style='font-size:16px;'>{squid_stats_nolicence_explain}</div>";}
	
	
	if($DisableArticaProxyStatistics==1){
		$more_features="<div class=text-info style='font-size:16px;'>{squid_stats_disabled_explain}</div>";
		
	}
	
	
	
	}
		
	
		//
	$tr[]=Paragraphe32('APP_SARG','APP_SARG_TXT',"Loadjs('sarg.php',true)","sarg-logo-32.png");
	$tr[]=Paragraphe32('APP_SARG_HOWTO','APP_SARG_HOWTO_TXT',
		"s_PopUpFull('http://proxy-appliance.org/index.php?cID=203',1024,768,'Statistics');","help-32.png");
	
	
	if($users->URLSNARF_INSTALLED){
		//$tr[]=Paragraphe32('APP_URLSNARF','APP_URLSNARF_TEXT',"Loadjs('urlsnarf.php')","website-32.png");
	}
	
	
	$table=CompileTr2($tr,true);	
	
	$garphs="<div id='graph1-$t' style='height:250px'><center style='margin:50px'><img src='img/wait-clock.gif'></center></div>
	<div style='text-align:right'>". imgtootltip("refresh-24.png","{refresh}","Loadjs('$page?graphique_heure=yes&container=graph1-$t');")."</div>";
	
	$garphsjs="Loadjs('$page?graphique_heure=yes&container=graph1-$t');";
	
	if($sock->SQUID_LOCAL_STATS_DISABLED()){
		$garphs=$tpl->_ENGINE_parse_body(FATAL_WARNING_SHOW_128("{artica_statistics_disabled}"));
		$garphsjs=null;
		
	}
	
	$EnableSquidRemoteMySQL=$sock->GET_INFO("EnableSquidRemoteMySQL");
	if(!is_numeric($EnableSquidRemoteMySQL)){$EnableSquidRemoteMySQL=0;}
	if($EnableSquidRemoteMySQL==1){
		$garphs="<div id='graph1-$t' style='height:250px'><center style='margin:50px'><img src='img/wait-clock.gif'></center></div>
		<div style='text-align:right'>". imgtootltip("refresh-24.png","{refresh}","Loadjs('$page?graphique_heure=yes&container=graph1-$t');")."</div>";
		
		$garphsjs="Loadjs('$page?graphique_heure=yes&container=graph1-$t');";
		$more_features=null;}
	
	$html="
	<div style='font-size:22px;margin-bottom:15px'>{SQUID_STATS}</div>
	$garphs
	$TRPTEXT
	$more_features
	
	<center>
	<div style='margin-top:15px;width:80%'>$table</div>
	</center>
	<script>
		LoadAjax('info-gene-$t','squid.traffic.statistics.php?squid-status-stats=yes',true);
		$garphsjs
	</script>
	";
	

	echo $tpl->_ENGINE_parse_body($html);
	
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:101,代码来源:squid.statistics.central.php

示例13: step8

function step8(){
	$tpl=new templates();
	$sock=new sockets();
	$net=new networking();
	$page=CurrentPageName();
	$MAIN=unserialize(base64_decode($sock->GET_INFO("HASettings")));
	$eth=$MAIN["eth"];
	$t=time();
	if(!is_numeric($MAIN["SLAVE_SSL"])){$MAIN["SLAVE_SSL"]=1;}
	$proto="http";
	if($MAIN["SLAVE_SSL"]==1){$proto="https";}
	
	$MAIN=unserialize(base64_decode($sock->GET_INFO("HASettings")));
	$eth=$MAIN["eth"];
	$nic=new system_nic($eth);
	$MAIN["BALANCE_IP"]=$nic->IPADDR;
	
	$SEND_SETTING=urlencode(base64_encode(serialize($MAIN)));
	
	$uri="$proto://{$MAIN["SLAVE"]}:{$MAIN["SLAVE_PORT"]}/nodes.listener.php?ucarp3=$SEND_SETTING";
	
	$curl=new ccurl($uri);
	$curl->NoHTTP_POST=true;
	if(!$curl->get()){
		$deb=debug_curl($curl->CURL_ALL_INFOS);
		echo FATAL_WARNING_SHOW_128($curl->error."<hr>
				<strong>$proto://{$MAIN["SLAVE"]}:{$MAIN["SLAVE_PORT"]} SSL:{$MAIN["SLAVE_SSL"]}</strong>
				<hr>
				$deb<hr>".wizard_restart());
		return;
	}
	
	if(!preg_match("#<RESULTS>(.+?)</RESULTS>#is", $curl->data,$re)){
		echo FATAL_WARNING_SHOW_128("<hr>
				<strong>$proto://{$MAIN["SLAVE"]}:{$MAIN["SLAVE_PORT"]} SSL:{$MAIN["SLAVE_SSL"]}</strong>
				<br>
				{protocol_error}
				<br>
				{check_same_version_artica}<br>$curl->data<br>$deb".wizard_restart());
		return;
	}
	
	$sock=new sockets();
	$sock->getFrameWork("network.php?reconfigure-restart=yes");
	$reboot_remote_server_net=$tpl->javascript_parse_text("{success}");
	echo "<script>
	function Start$t(){
		document.getElementById('failover-title').innerHTML='$reboot_remote_server_net';
		YahooWin6Hide();
		CacheOff();
		RefreshTab('main_failover_tabs');
	}
	setTimeout('Start$t()',2000);
	
	</script>
	";
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:57,代码来源:squid.failover.php

示例14: table

function table(){
	$page=CurrentPageName();
	$tpl=new templates();
	
	$sock=new sockets();
	$SquidPerformance=intval($sock->GET_INFO("SquidPerformance"));
	if($SquidPerformance>1){
		echo $tpl->_ENGINE_parse_body(FATAL_WARNING_SHOW_128("{artica_statistics_disabled}"));
		return;
	}
	
	
	$tt=time();
	$t=$_GET["t"];
	$ipaddr=$tpl->javascript_parse_text("{ipaddr}");
	$hostname=$tpl->_ENGINE_parse_body("{hostname}");
	$uid=$tpl->javascript_parse_text("{uid}");
	$MAC=$tpl->javascript_parse_text("{MAC}");
	$QuerySize=$tpl->javascript_parse_text("{size}");
	$hits=$tpl->javascript_parse_text("{hits}");
	$maintitle=$tpl->_ENGINE_parse_body("{members}");

//ipaddr          | hostname      | uid               | MAC               | account | QuerySize    | hits

$buttons="
	buttons : [
	{name: '$new_text', bclass: 'add', onpress : NewRule$tt},
	{name: '$apply', bclass: 'Reconf', onpress : Apply$tt},
	],";

$buttons=null;
	
	$html="
<table class='flexRT$tt' style='display: none' id='flexRT$tt' style='width:100%'></table>
<script>
function Start$tt(){
	$('#flexRT$tt').flexigrid({
	url: '$page?items=yes&t=$tt',
	dataType: 'json',
	colModel : [
	{display: '$ipaddr', name : 'ipaddr', width : 124, sortable : false, align: 'left'},
	{display: '$hostname', name : 'hostname', width :330, sortable : true, align: 'left'},
	{display: '$uid', name : 'uid', width : 226, sortable : true, align: 'left'},
	{display: '$MAC', name : 'MAC', width : 129, sortable : false, align: 'left'},
	{display: '$QuerySize', name : 'size', width : 107, sortable : false, align: 'left'},
	{display: '$hits', name : 'hits', width : 100, sortable : true, align: 'left'},
	],
	$buttons
	searchitems : [
	{display: '$ipaddr', name : 'ipaddr'},
	{display: '$hostname', name : 'hostname'},
	{display: '$uid', name : 'uid'},
	{display: '$MAC', name : 'MAC'},
	
	
	],
	sortname: 'QuerySize',
	sortorder: 'desc',
	usepager: true,
	title: '<span style=font-size:22px>$maintitle</span>',
	useRp: true,
	rp: 50,
	showTableToggleBtn: false,
	width: '99%',
	height: 450,
	singleSelect: true,
	rpOptions: [10, 20, 30, 50,100,200]
	
	});
}

Start$tt();
</script>
";
echo $html;
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:76,代码来源:squid.BrowsersView.members.php

示例15: server_settings

function server_settings()
{
    $vpn = new openvpn();
    $nic = new networking();
    $sock = new sockets();
    $OpenVpnPasswordCert = $sock->GET_INFO("OpenVpnPasswordCert");
    if ($OpenVpnPasswordCert == null) {
        $OpenVpnPasswordCert = "MyKey";
    }
    //openvpn_access_interface
    $DEV_TYPE = $vpn->main_array["GLOBAL"]["DEV_TYPE"];
    $dev = Field_array_Hash(array("tun" => "{routed_IP_tunnel}", "tap0" => "{ethernet_tunnel}"), "DEV_TYPE", $vpn->main_array["GLOBAL"]["DEV_TYPE"], "OpenVPNChangeServerMode()", null, 0, 'font-size:16px;padding:3px');
    $dev = "{routed_IP_tunnel}<input type='hidden' name='DEV_TYPE' id='DEV_TYPE' value='tun'>";
    if ($vpn->main_array["GLOBAL"]["IP_START"] == null) {
        $vpn->main_array["GLOBAL"]["IP_START"] = "10.8.0.0";
    }
    if ($vpn->main_array["GLOBAL"]["NETMASK"] == null) {
        $vpn->main_array["GLOBAL"]["NETMASK"] = "255.255.255.0";
    }
    if ($vpn->main_array["GLOBAL"]["ENABLE_BRIDGE_MODE"] == 1) {
        $openvpn_local = null;
    }
    $CLIENT_NAT_PORT = $vpn->main_array["GLOBAL"]["CLIENT_NAT_PORT"];
    if ($CLIENT_NAT_PORT == null) {
        $CLIENT_NAT_PORT = $vpn->main_array["GLOBAL"]["LISTEN_PORT"];
    }
    $vpn->main_array["GLOBAL"]["PUBLIC_IP"];
    $vpn->main_array["GLOBAL"]["CLIENT_NAT_PORT"];
    $vpn->main_array["GLOBAL"]["LISTEN_PORT"];
    $vpn->main_array["GLOBAL"]["LISTEN_PROTO"];
    $vpn->main_array["GLOBAL"]["ENABLE_SERVER"];
    $vpn->main_array["GLOBAL"]["ENABLE_BRIDGE_MODE"];
    $vpn->main_array["GLOBAL"]["IP_START"];
    $vpn->main_array["GLOBAL"]["IPTABLES_ETH"];
    if ($vpn->main_array["GLOBAL"]["PUBLIC_IP"] == null) {
        $status = FATAL_WARNING_SHOW_128("<strong>{MISSING_PARAMETER}</strong><hr>{MISSING_PARAMETER_TEXT}<br><strong>{public_ip_addr}</strong><p><center>" . button("{settings}", "Loadjs('index.openvpn.server.php')", 22) . "</p></center>");
    }
    if ($vpn->main_array["GLOBAL"]["LISTEN_PORT"] == null) {
        $status = FATAL_WARNING_SHOW_128("<strong>{MISSING_PARAMETER}</strong><hr>{MISSING_PARAMETER_TEXT}<br><strong>{listen_port}</strong><p><center>" . button("{settings}", "Loadjs('index.openvpn.server.php')", 22) . "</p></center>");
    }
    if ($vpn->main_array["GLOBAL"]["CLIENT_NAT_PORT"] == null) {
        $status = FATAL_WARNING_SHOW_128("<strong>{MISSING_PARAMETER}</strong><hr>{MISSING_PARAMETER_TEXT}<br><strong>{listen_port}:{public_ip_addr}</strong><p><center>" . button("{settings}", "Loadjs('index.openvpn.server.php')", 22) . "</p></center>");
    }
    if ($vpn->main_array["GLOBAL"]["IP_START"] == null) {
        $status = FATAL_WARNING_SHOW_128("<strong>{MISSING_PARAMETER}</strong><hr>{MISSING_PARAMETER_TEXT}<br><strong>{from_ip_address}</strong><p><center>" . button("{settings}", "Loadjs('index.openvpn.server.php')", 22) . "</p></center>");
    }
    if ($vpn->main_array["GLOBAL"]["NETMASK"] == null) {
        $status = FATAL_WARNING_SHOW_128("<strong>{MISSING_PARAMETER}</strong><hr>{MISSING_PARAMETER_TEXT}<br><strong>{netmask}</strong><p><center>" . button("{settings}", "Loadjs('index.openvpn.server.php')", 22) . "</p></center>");
    }
    if ($vpn->main_array["GLOBAL"]["LISTEN_PROTO"] == null) {
        $status = FATAL_WARNING_SHOW_128("<strong>{MISSING_PARAMETER}</strong><hr>{MISSING_PARAMETER_TEXT}<br><strong>{protocol}</strong><p><center>" . button("{settings}", "Loadjs('index.openvpn.server.php')", 22) . "</p></center>");
    }
    if ($vpn->main_array["GLOBAL"]["IP_START"] == null) {
        $status = FATAL_WARNING_SHOW_128("<strong>{MISSING_PARAMETER}</strong><hr>{MISSING_PARAMETER_TEXT}<br><strong>{from_ip_address}</strong><p><center>" . button("{settings}", "Loadjs('index.openvpn.server.php')", 22) . "</p></center>");
    }
    if ($vpn->main_array["GLOBAL"]["NETMASK"] == null) {
        $status = FATAL_WARNING_SHOW_128("<strong>{MISSING_PARAMETER}</strong><hr>{MISSING_PARAMETER_TEXT}<br><strong>{netmask}</strong><p><center>" . button("{settings}", "Loadjs('index.openvpn.server.php')", 22) . "</p></center>");
    }
    $LDAP_AUTH = "{no}";
    $EnableOpenVPNEndUserPage = "{no}";
    if ($vpn->main_array["GLOBAL"]["LDAP_AUTH"] == 1) {
        $LDAP_AUTH = "{yes}";
    }
    if ($sock->GET_INFO("EnableOpenVPNEndUserPage") == 1) {
        $EnableOpenVPNEndUserPage = "{yes}";
    }
    $wake_up_ip = $vpn->main_array["GLOBAL"]["WAKEUP_IP"];
    $tcp_ip = new ip();
    if (!$tcp_ip->isValid($wake_up_ip)) {
        $wake_up_ip = "{disabled}";
    }
    $ahref_edit = "<a href=\"javascript:blur();\" OnClick=\"Loadjs('index.openvpn.server.php');\" style='font-size:16px;text-decoration:underline'>";
    $button_edit = button("{change_settings}", "Loadjs('index.openvpn.server.php')", 34);
    $openvpn_local = "\n\t\t\t<tr>\n\t\t\t\t<td class=legend style='font-size:20px'>{openvpn_local}</a>:</td>\n\t\t\t\t<td style='font-weight:bold;font-size:20px'>{$vpn->main_array["GLOBAL"]["LOCAL_BIND"]}</a></td>\n\t\t\t\t<td>&nbsp;</td>\n\t\t\t</tr>";
    $mandatories = "<table style='width:99%'>\n\t\t\t<tr>\n\t\t\t\t<td class=legend style='font-size:20px'>{listen_port}:</a></td>\n\t\t\t\t<td style='font-weight:bold;font-size:20px'>{$vpn->main_array["GLOBAL"]["LISTEN_PORT"]}&nbsp;{$vpn->main_array["GLOBAL"]["LISTEN_PROTO"]}</a></td>\n\t\t\t\t<td>&nbsp;</td>\n\t\t\t</tr>\n\t\t\t{$openvpn_local}\n\t\t\t<tr>\n\t\t\t\t<td class=legend style='font-size:20px'>{public_ip_addr}</a>:</td>\n\t\t\t\t<td style='font-weight:bold;font-size:20px;'>{$vpn->main_array["GLOBAL"]["PUBLIC_IP"]}:{$CLIENT_NAT_PORT}</a></td>\n\t\t\t\t<td>&nbsp;</td>\n\t\t\t<tr>\t\n\t\t\t<tr>\n\t\t\t\t<td class=legend style='font-size:20px'>{password}:</a></td>\n\t\t\t\t<td style='font-weight:bold;font-size:20px'>*****</a></td>\n\t\t\t\t<td>&nbsp;</td>\n\t\t\t<tr>\n\t\t\t</table>";
    $proxy = "{no}";
    if ($vpn->main_array["GLOBAL"]["USE_RPROXY"] == 1) {
        $proxy = "{$vpn->main_array["GLOBAL"]["PROXYADDR"]}:{$vpn->main_array["GLOBAL"]["PROXYPORT"]}";
    }
    if ($vpn->main_array["GLOBAL"]["IPTABLES_ETH"] == null) {
        $vpn->main_array["GLOBAL"]["IPTABLES_ETH"] = "{no}";
    }
    $mode_tun = "<table style='width:99%'>\n\t<tr>\n\t\t<td class=legend style='font-size:20px'>{enable_authentication}</a>:</td>\n\t\t<td style='font-weight:bold;font-size:20px'>{$LDAP_AUTH}</td>\n\t\t<td>&nbsp;</td>\n\t<tr>\n\t<tr>\n\t\t<td class=legend style='font-size:20px'>{EnableOpenVPNEndUserPage}</a>:</td>\n\t\t<td style='font-weight:bold;font-size:20px'>{$EnableOpenVPNEndUserPage}</td>\n\t\t<td>&nbsp;</td>\n\t<tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:20px'>{reverse_proxy}</a>:</td>\n\t\t<td style='font-weight:bold;font-size:20px'>{$proxy}</td>\n\t\t<td>&nbsp;</td>\n\t<tr>\t\n\t\n\t<tr>\n\t\t<td class=legend style='font-size:20px'>{from_ip_address}</a>:</td>\n\t\t<td style='font-weight:bold;font-size:20px'>{$vpn->main_array["GLOBAL"]["IP_START"]}</td>\n\t\t<td>&nbsp;</td>\n\t<tr>\n\t<tr>\n\t\t<td class=legend style='font-size:20px'>{netmask}</a>:</td>\n\t\t<td style='font-weight:bold;font-size:20px'>{$vpn->main_array["GLOBAL"]["NETMASK"]}</a></td>\n\t\t<td>&nbsp;</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:20px'>{openvpn_access_interface}</a>:</td>\n\t\t<td style='font-weight:bold;font-size:20px'>{$vpn->main_array["GLOBAL"]["IPTABLES_ETH"]}</a></td>\n\t\t<td>&nbsp;</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:20px'>{wake_up_ip}</a>:</td>\n\t\t<td style='font-weight:bold;font-size:20px'>{$wake_up_ip}</a></td>\n\t\t<td>&nbsp;</td>\n\t</tr>\t\n\t\n</table>";
    $VPN_SERVER_IP = $vpn->main_array["GLOBAL"]["VPN_SERVER_IP"];
    $VPN_DHCP_FROM = $vpn->main_array["GLOBAL"]["VPN_DHCP_FROM"];
    $VPN_DHCP_TO = $vpn->main_array["GLOBAL"]["VPN_DHCP_TO"];
    $tcp = new networking();
    if ($vpn->main_array["GLOBAL"]["BRIDGE_ETH"] == null) {
        $vpn->main_array["GLOBAL"]["BRIDGE_ETH"] = "eth0";
    }
    $array_ip = $tcp->GetNicInfos($vpn->main_array["GLOBAL"]["BRIDGE_ETH"]);
    if ($vpn->main_array["GLOBAL"]["VPN_SERVER_IP"] == null) {
        $vpn->main_array["GLOBAL"]["VPN_SERVER_IP"] = $array_ip["IPADDR"];
    }
    if ($vpn->main_array["GLOBAL"]["NETMASK"] == null) {
        $vpn->main_array["GLOBAL"]["NETMASK"] = $array_ip["NETMASK"];
    }
    if ($vpn->main_array["GLOBAL"]["ENABLE_BRIDGE_MODE"] == 1) {
        $nics = Field_array_Hash($vpn->virtual_ip_lists(), 'BRIDGE_ETH', $vpn->main_array["GLOBAL"]["BRIDGE_ETH"]);
    }
//.........这里部分代码省略.........
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:101,代码来源:index.openvpn.php


注:本文中的FATAL_WARNING_SHOW_128函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。