示例#1
0
<?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]-->
示例#2
0
<?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'])) {
	}
	$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]);
示例#4
0
<?php 
header("Location: https://partnerzyapi.ceneo.pl/AuthorizationService.svc/GetToken?grantType='client_credentials'");
Authorization('Basic realm="749db76b-1e2e-4ae4-9684-68f9c98de740"');