本文整理汇总了PHP中nusoap_client::login方法的典型用法代码示例。如果您正苦于以下问题:PHP nusoap_client::login方法的具体用法?PHP nusoap_client::login怎么用?PHP nusoap_client::login使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类nusoap_client
的用法示例。
在下文中一共展示了nusoap_client::login方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: serialize
if ($loginSADMIN == 1) {
$loginSBUY = $SBUY->login($_POST['login'], 1, $_POST['pin'], $_SERVER["REMOTE_ADDR"]);
}
if ($loginSADMIN == 1 && $loginSBUY == 1) {
// On verifie s'il est administrateur de fundation
$allFundations = $SADMIN->hasDroitsInFundations();
if ($allFundations != 409) {
$FADMIN = new nusoap_client($wsdlFADMIN, true);
//pk deux n nn ????
$FADMIN->login($_POST['login'], 1, $_POST['pin'], $_SERVER["REMOTE_ADDR"]);
}
// On verifie s'il est admin de buckutt
$isAdminBuckutt = $SADMIN->isAdminBuckutt();
if ($isAdminBuckutt == 1) {
$BADMIN = new nusoap_client($wsdlBADMIN, true);
$BADMIN->login($_POST['login'], 1, $_POST['pin'], $_SERVER["REMOTE_ADDR"]);
}
include_once 'dashboard.inc.php';
// On linéarise les objets pour les conserver de page en page.
$_SESSION['buckutt']['SADMIN'] = serialize($SADMIN);
$_SESSION['buckutt']['SBUY'] = serialize($SBUY);
if ($allFundations != 409) {
$_SESSION['buckutt']['FADMIN'] = serialize($FADMIN);
}
if ($isAdminBuckutt == 1) {
$_SESSION['buckutt']['BADMIN'] = serialize($BADMIN);
}
} elseif ($loginSADMIN == 403 || $loginSBUY == 403) {
$state = 'blocked';
include_once 'login.inc.php';
} else {
示例2: time
<?php
$t = time();
session_start();
include 'config.inc.php';
include 'lib/nusoap.php';
$_SESSION['login'] = array("rosatber", 1, "5546", "21.21.21.1");
$SADMIN = new nusoap_client($config['SADMIN'], true);
$SADMIN->login($_SESSION['login'][0], $_SESSION['login'][1], $_SESSION['login'][2], $_SESSION['login'][3]);
var_dump($SADMIN->getHistoriqueAchats(mktime(1, 2, 3, 4, 5, 2006), mktime(1, 2, 3, 4, 5, 2012)));
$_SESSION['SADMIN'] = serialize($SADMIN);
echo time() - $t;
示例3: unserialize
<?php
include 'lib/nusoap.php';
include 'config.inc.php';
if (isset($_SESSION['nusoap']['PBUY'])) {
$PBUY = unserialize($_SESSION['nusoap']['PBUY']);
} else {
$PBUY = new nusoap_client($config['PBUY'], true);
}
var_dump($PBUY->login(6362, "5546", 2, 0, 1));
var_dump($PBUY->getSellerIdentity());