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


PHP Authorization函数代码示例

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


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

示例1: Authorization

<?php

include "../../../ili-functions/functions.php";
Authorization('2');
AuthorizedPrivileges('CLIENTS', 'S');
function ClientGetListSearch()
{
    global $URL;
    $q = "SELECT * FROM client";
    $r = QueryExcuteWhile($q);
    while ($o = mysqli_fetch_object($r)) {
        echo '
		<tr id="tr" onclick="document.location=\'' . $URL . 'ili-modules/contrat/add/add?clt=' . $o->idClient . '\'">
			<td><input type="checkbox" class="checkboxes" value="1" /></td>
			<td>' . $o->idClient . '</td>
			<td class="hidden-phone">' . $o->FamilyName . ' ' . $o->FirstName . '</td>
			<td class="hidden-phone">' . $o->Phone . '</td>
		</tr>
		';
    }
}
?>
<!DOCTYPE html>
<?php 
echo $author;
?>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="fr">
<!--<![endif]-->
开发者ID:iLi-Studios,项目名称:iLi-Manager.1.0,代码行数:31,代码来源:search.php

示例2: Authorization

<?php

include "../../ili-functions/functions.php";
Authorization('3');
$ets = CompanyGetInfo();
function CompanyInfoUpdate()
{
    global $URL;
    $idUser = $_SESSION['user_id'];
    $user = UserGetInfo($idUser);
    if (isset($_POST['RS']) && isset($_POST['Activity']) && isset($_POST['Phone1']) && isset($_POST['Adress'])) {
        if (isset($_POST['MF'])) {
            $MF = addslashes($_POST['MF']);
        } else {
            $MF = '';
        }
        $RS = addslashes($_POST['RS']);
        if (isset($_POST['RC'])) {
            $RC = addslashes($_POST['RC']);
        } else {
            $RC = '';
        }
        $Activity = addslashes($_POST['Activity']);
        $Adress = addslashes($_POST['Adress']);
        $Phone1 = $_POST['Phone1'];
        if (isset($_POST['Phone2'])) {
            $Phone2 = addslashes($_POST['Phone2']);
        } else {
            $Phone2 = '';
        }
        if (isset($_POST['Fax'])) {
开发者ID:iLi-Studios,项目名称:iLi-Manager.1.0,代码行数:31,代码来源:edit.php

示例3: one_array

	}
	$array_status = one_array($readed, $wr);
	foreach($array_status as $socket){
		$id = array_search($socket, $clientsockets);
		if($id === FALSE)
			$id = array_search($socket, $serversockets);
		if($id === FALSE)
			continue;
		switch ($sockets_status[$id]){
	 		case STATUS_RECVAUTHREQ:
	 		        if(time() - $timeout[$id] > $settings['AUTH_TIMEOUT'])
				{       //echo 'aaaaa';
				 	close($id);
				 	break;
				}
				Authorization($id);
			break;
	 		case STATUS_REQUESTRECV:

				BridgeEstablish1($id);
			break;
			case STATUS_RECVSTARTREQ:
				Start($id);
					
			break;
			case STATUS_CONNECTING:
				
				if(time() - $timeout[$id] > $settings['CONNECT_TIMEOUT'])
				{
					sendstring($clientsockets[$id],	VER.REP_BAD_HOST.
					"\x00\x01".$ipport[$id]);
开发者ID:xl7dev,项目名称:WebShell,代码行数:31,代码来源:Antichat+Socks5+Server+v+1.0.php

示例4: header

<?php 
header("Location: https://partnerzyapi.ceneo.pl/AuthorizationService.svc/GetToken?grantType='client_credentials'");
Authorization('Basic realm="749db76b-1e2e-4ae4-9684-68f9c98de740"');
开发者ID:Jornarileesh,项目名称:Diceroller-rpg,代码行数:3,代码来源:api_ceneo.php


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