本文整理汇总了PHP中dophp函数的典型用法代码示例。如果您正苦于以下问题:PHP dophp函数的具体用法?PHP dophp怎么用?PHP dophp使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了dophp函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dhcps_setcfg
function dhcps_setcfg($prefix, $svc)
{
/* set dhcpX of inf */
$inf = cut($svc, 1, ".");
$svc = tolower(cut($svc, 0, "."));
$base = XNODE_getpathbytarget("", "inf", "uid", $inf, 0);
$dhcps_uid = query($prefix . "/inf/" . $svc);
set($base . "/" . $svc, $dhcps_uid);
/* copy the dhcp profile. */
$uid = INF_getinfinfo($inf, $svc);
$spath = XNODE_getpathbytarget($prefix . "/" . $svc, "entry", "uid", $dhcps_uid, 0);
$dhcps = XNODE_getpathbytarget("/" . $svc, "entry", "uid", $uid, 0);
if ($dhcps != "") {
if ($svc == "dhcps4") {
copy_dhcps4($spath, $dhcps);
} else {
if ($svc == "dhcps6") {
$_GLOBALS["SETCFG_DHCPS6_SRC_PATH"] = $spath;
$_GLOBALS["SETCFG_DHCPS6_DST_PATH"] = $dhcps;
$b = "/htdocs/phplib/setcfg/libs";
dophp("load", $b . "/dhcps6.php");
}
}
} else {
TRACE_error("SETCFG/DHCPS: no dhcps entry for [" . $uid . "] found!");
}
}
示例2: fatlady_dhcps
function fatlady_dhcps($prefix, $svc)
{
$service = cut($svc, 0, ".");
$version = scut($service, 0, "DHCPS");
XNODE_set_var("FATLADY_DHCPS_PATH", $prefix);
XNODE_set_var("SERVICE_NAME", $svc);
$b = "/htdocs/phplib/fatlady/DHCPS";
if ($version == 4) {
dophp("load", $b . "/dhcps4.php");
} else {
if ($version == 6) {
dophp("load", $b . "/dhcps6.php");
} else {
$_GLOBALS["FATLADY_result"] = "FAILED";
$_GLOBALS["FATLADY_node"] = "";
$_GLOBALS["FATLADY_message"] = "Unsupported DHCP service : " . $svc;
/* internal error, no i18n(). */
}
}
XNODE_del_var("FATLADY_DHCPS_PATH");
XNODE_del_var("SERVICE_NAME");
if ($_GLOBALS["FATLADY_result"] == "OK") {
set($prefix . "/valid", 1);
}
}
示例3: SOAP_act_resp_200
function SOAP_act_resp_200($svr_name, $svc_type, $act_name, $soap_body)
{
echo "HTTP/1.1 200 OK\r\n";
echo "CONTENT-TYPE: text/xml; charset=\"utf-8\"\r\n";
echo "CONTENT-LENGTH:\r\n";
echo "EXT:\r\n\r\n";
echo "<?xml version=\"1.0\"?>\n";
echo "<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">\n";
echo "\t<s:Body>\n";
echo "\t\t<u:" . $act_name . "Response xmlns:u=\"" . $svc_type . "\">";
if ($soap_body != "") {
echo "\n";
dophp("load", "/htdocs/upnpinc/" . $soap_body);
}
echo "</u:" . $act_name . "Response>\n";
echo "\t</s:Body>\n";
echo "</s:Envelope>\n";
}
示例4: i18n
<span class="delimiter">:</span>
<span class="value" id="st_aftrserver"></span>
</div>
<div class="textinput" >
<span class="name"><?php
echo i18n("DS-Lite DHCPv6 option");
?>
</span>
<span class="delimiter">:</span>
<span class="value" id="st_dslite_dhcp6opt"></span>
</div>
<div class="gap"></div>
</div>
<?php
if (isfile("/htdocs/webinc/body/st_device_3G.php") == 1) {
dophp("load", "/htdocs/webinc/body/st_device_3G.php");
}
?>
<div class="blackbox" id="lan_ethernet_block" style="display:none">
<h2><?php
echo i18n("LAN");
?>
</h2>
<div class="textinput">
<span class="name"><?php
echo i18n("MAC Address");
?>
</span>
<span class="delimiter">:</span>
<span class="value"><?php
echo query("/runtime/devdata/lanmac");
示例5: TRACE_debug
<?php
echo "<?";
?>
xml version="1.0" encoding="utf-8"<?php
echo "?>";
?>
<?php
include "/htdocs/phplib/trace.php";
echo "<" . $SIGNATURE . ">\n<runtime>\n<session>\n<" . $SESSION . ">\n";
TRACE_debug("GETCFG: serivce = " . $GETCFG_SVC);
if ($GETCFG_SVC != "") {
$file = "/htdocs/webinc/getcfg/" . $GETCFG_SVC . ".xml.php";
/* GETCFG_SVC will be passed to the child process. */
if (isfile($file) == "1") {
dophp("load", $file);
}
}
echo "</" . $SESSION . ">\n</session>\n</runtime>\n</" . $SIGNATURE . ">\n";
示例6: dophp
<?php
dophp("load", "/htdocs/web/bsc_internet.php");
示例7: query
</div>
<div class="bannercontainer">
<span class="bannerhead"><a href="<?php
echo query("/runtime/device/producturl");
?>
"><img src="/pic/head_01.gif" width="162" height="92"></a></span>
<span class="bannertail"><img src="/pic/head_03.gif"></span>
</div>
<div id="content" class="simplecontainer">
<div class="simplebody">
<!-- Start of Page Depedent Part. -->
<?php
if (isfile("/htdocs/webinc/body/" . $_GLOBALS["TEMP_MYNAME"] . ".php") == 1) {
dophp("load", "/htdocs/webinc/body/" . $_GLOBALS["TEMP_MYNAME"] . ".php");
}
?>
<!-- End of Page Dependent Part. -->
</div>
</div>
<div class="footercontainer">
<span class="footermark"><img src="/pic/tail.gif"></span>
</div>
</div>
<div class="copyright">Copyright © 2012 D-Link Corporation. All rights reserved.</div>
</body>
</html>
示例8: ifchildsetup
function ifchildsetup($name)
{
/* Get the runtime interface */
$infp = XNODE_getpathbytarget("", "inf", "uid", $name, 0);
startcmd('# ifchildsetup: infp=' . $infp);
if ($infp == "") {
SHELL_info($_GLOBALS["START"], "ifchildsetup: (" . $name . ") no interface.");
SHELL_info($_GLOBALS["STOP"], "ifchildsetup: (" . $name . ") no interface.");
error("9");
return;
}
/* Is this interface active ? */
$disable = query($infp . "/disable");
$active = query($infp . "/active");
$phyinf = query($infp . "/phyinf");
if ($disable == 1 || $active != 1) {
SHELL_info($_GLOBALS["START"], "ifchildsetup: (" . $name . ") not active.");
SHELL_info($_GLOBALS["STOP"], "ifchildsetup: (" . $name . ") not active.");
error("8");
return;
}
/* Get the physical interface */
if ($phyinf == "") {
SHELL_info($_GLOBALS["START"], "ifchildsetup: (" . $name . ") no phyinf.");
SHELL_info($_GLOBALS["STOP"], "ifchildsetup: (" . $name . ") no phyinf.");
error("9");
return;
}
$_GLOBALS["CHILD_INFNAME"] = $name;
dophp("load", "/etc/services/INET/inet_child.php");
}
示例9: i18n
<td width="29px"> </td>
<td width="136px"><b><?php
echo i18n("DHCP Client List");
?>
</b></td>
<?php
if ($FEATURE_NOSCH != "1") {
echo '<td width="188px"><b>' . i18n("Schedule") . '</b></td>\\n';
}
?>
</tr>
<?php
$INDEX = 1;
while ($INDEX <= $MAC_FILTER_MAX_COUNT) {
dophp("load", "/htdocs/webinc/body/adv_mac_filter_list.php");
$INDEX++;
}
?>
</table>
</div>
<div class="gap"></div>
</div>
<p><input type="button" value="<?php
echo i18n("Save Settings");
?>
" onclick="BODY.OnSubmit();" />
<input type="button" value="<?php
echo i18n("Don't Save Settings");
?>
" onclick="BODY.OnReload();" /></p>
示例10: dophp
HTTP/1.1 200 OK
<?php
/*necessary and basic definition */
$TEMP_MYNAME = "adv_afp";
$TEMP_MYGROUP = "advanced";
$TEMP_STYLE = "complex";
include "/htdocs/webinc/templates.php";
dophp("load", "/htdocs/web/portal/comm/drag.php");
dophp("load", "/htdocs/web/portal/comm/event.php");
dophp("load", "/htdocs/web/portal/comm/fade.php");
dophp("load", "/htdocs/web/portal/comm/overlay.php");
dophp("load", "/htdocs/web/portal/comm/scoot.php");
示例11: Domain
</div>
<div class="info" <?php
if ($FEATURE_DUAL_BAND != "1") {
echo 'style="display:none;"';
}
?>
>
<span class="name">WLAN Domain(5GHz) :</span>
<span class="value" style="text-transform:uppercase;"><?php
echo query("/runtime/devdata/countrycode");
?>
</span>
</div>
<?php
if (isfile("/htdocs/webinc/body/version_3G.php") == 1) {
dophp("load", "/htdocs/webinc/body/version_3G.php");
}
?>
<div class="info">
<span class="name">Firmware Query :</span>
<span class="value" id="fwq"></span>
</div>
<div class="info">
<span class="name">Kernel :</span>
<span class="value"><?php
echo cut(fread("", "/proc/version"), "0", "(");
?>
</span>
</div>
<div class="info">
<span class="name">Apps :</span>
示例12: dophp
<?php
if (query("/device/wiz_freset") != "1") {
dophp("load", "/htdocs/web/wiz_freset.php");
} else {
dophp("load", "/htdocs/web/home.php");
}
示例13: i18n
echo i18n("Turn IPv6 Filtering ON and ALLOW rules listed");
?>
</option>
<option value="ACCEPT"><?php
echo i18n("Turn IPv6 Filtering ON and DENY rules listed");
?>
</option>
</select>
</p>
<div class="centerline" align="center">
<table id="" class="general">
<?php
$INDEX = 1;
while ($INDEX <= $FW_MAX_COUNT) {
dophp("load", "/htdocs/webinc/body/adv_firewallv6_list.php");
$INDEX++;
}
?>
</table>
</div>
<div class="gap"></div>
</div>
<p><input type="button" value="<?php
echo i18n("Save Settings");
?>
" onclick="BODY.OnSubmit();" />
<input type="button" value="<?php
echo i18n("Don't Save Settings");
?>
" onclick="BODY.OnReload();" /></p>
示例14: i18n
<th width="100px"> </th>
<th width="155px"> </th>
<th width="65px"><?php
echo i18n("Port");
?>
</th>
<th width="76px"><?php
echo i18n("Traffic Type");
?>
</th>
<th width="85px"></th>
</tr>
<?php
$INDEX = 1;
while ($INDEX <= $VSVR_MAX_COUNT) {
dophp("load", "/htdocs/webinc/body/adv_vsvr_list.php");
$INDEX++;
}
?>
</table>
</div>
<div class="gap"></div>
</div>
<p><input type="button" value="<?php
echo i18n("Save Settings");
?>
" onclick="BODY.OnSubmit();" />
<input type="button" value="<?php
echo i18n("Don't Save Settings");
?>
" onclick="BODY.OnReload();" /></p>
示例15: fwrite
include "/htdocs/upnpinc/gvar.php";
include "/htdocs/upnpinc/soap.php";
fwrite("w", $SHELL_FILE, "#!/bin/sh\n");
$dev_nodebase = UPNP_getdevpathbytype($INF_UID, $G_IGD);
if ($dev_nodebase == "") {
SHELL_debug($SHELL_FILE, "Can not to get the runtime node path of IGD!");
exit;
}
$act_name = query($ACTION_NODEBASE . "/action_name");
$svc_type = query($dev_nodebase . "/devdesc/device/deviceList/device:1/deviceList/device:1/serviceList/service:2/serviceType");
$WID = 1;
/* WAN port ID */
$errorCode = 401;
$SOAP_BODY = "";
if ($act_name == "AddPortMapping" || $act_name == "DeletePortMapping" || $act_name == "GetConnectionTypeInfo" || $act_name == "GetExternalIPAddress" || $act_name == "GetGenericPortMappingEntry" || $act_name == "GetNATRSIPStatus" || $act_name == "GetSpecificPortMappingEntry" || $act_name == "GetStatusInfo" || $act_name == "RequestConnection" || $act_name == "ForceTermination" || $act_name == "SetConnectionType") {
dophp("load", "/htdocs/upnpinc/ACTION.DO." . $act_name . ".php");
}
/* 200 OK */
if ($errorCode == 200) {
SOAP_act_resp_200(query($rtpath_base . "/server"), $svc_type, $act_name, $SOAP_BODY);
exit;
}
/* ERROR */
if ($errorCode == 401) {
SOAP_act_resp_500("401", "Invalid Action");
} else {
if ($errorCode == 402) {
SOAP_act_resp_500("402", "Invalid Args");
} else {
if ($errorCode == 501) {
SOAP_act_resp_500("501", "Action Failed");