コード例 #1
0
                                         SOAP_act_resp_500("716", "WildCardNotPermittedInExtPort");
                                     } else {
                                         if ($errorCode == 718) {
                                             SOAP_act_resp_500("718", "ConflictInMappingEntry");
                                         } else {
                                             if ($errorCode == 724) {
                                                 SOAP_act_resp_500("724", "SamePortValuesRequired");
                                             } else {
                                                 if ($errorCode == 725) {
                                                     SOAP_act_resp_500("725", "OnlyPermanentLeasesSupported");
                                                 } else {
                                                     if ($errorCode == 726) {
                                                         SOAP_act_resp_500("726", "RemoteHostOnlySupportsWildcard");
                                                     } else {
                                                         if ($errorCode == 727) {
                                                             SOAP_act_resp_500("727", "ExternalPortOnlySupportsWildcard");
                                                         }
                                                     }
                                                 }
                                             }
                                         }
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }
コード例 #2
0
<?php

/* vi: set sw=4 ts=4: */
include "/htdocs/phplib/upnp.php";
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/serviceList/service:2/serviceType");
if ($ACTION_NAME == $act_name) {
    if ($act_name == "GetDefaultConnectionService") {
        SOAP_act_resp_200(query($dev_nodebase . "/server"), $svc_type, $act_name, "ACTION." . $act_name . ".php");
    } else {
        if ($act_name == "SetDefaultConnectionService") {
            SOAP_act_resp_500("501", "Action Failed");
        }
    }
} else {
    SOAP_act_resp_500("401", "Invalid Action");
}
コード例 #3
0
<?php

/* vi: set sw=4 ts=4: */
include "/htdocs/phplib/upnp.php";
include "/htdocs/upnpinc/gvar.php";
include "/htdocs/upnpinc/soap.php";
fwrite("w", $SHELL_FILE, "#!/bin/sh\n");
$rtpath_base = UPNP_getdevpathbytype($INF_UID, $G_WFA);
if ($rtpath_base == "") {
    SHELL_debug($SHELL_FILE, "Can not to get the runtime node path of WFA!");
    exit;
}
$act_name = query($RTNODE_BASE . "/action_name");
$svc_type = query($rtpath_base . "/devdesc/device:1/serviceList/service:1/serviceType");
SOAP_act_resp_500("501", "Action Failed");