Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F113251774
test.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, May 16, 14:48
Size
1 KB
Mime Type
text/x-php
Expires
Sun, May 18, 14:48 (2 d)
Engine
blob
Format
Raw Data
Handle
26168013
Attached To
R6831 Tequila PHP client
test.php
View Options
<?php
require_once
(
"tequila.php"
);
$client
=
new
TequilaClient
();
$client
->
SetApplicationName
(
'Les Élèves vont à l
\'
école'
);
$client
->
SetWantedAttributes
(
array
(
'uniqueid'
,
'name'
,
'firstname'
,
'unit'
,
'unitid'
,
'where'
,
'group'
));
$client
->
SetWishedAttributes
(
array
(
'email'
,
'title'
));
$client
->
SetApplicationURL
(
'https://localhost:8000/test.php'
);
#$client->SetCustomFilter('org=EPFL&firstname=John&unit=SC-PME&where=SC-PME/SC-S/ETU/EPFL/CH&group=inbc');
$client
->
SetCustomParamaters
(
array
(
'toto'
=>
1
));
$client
->
Authenticate
();
$org
=
$client
->
getValue
(
'org'
);
$user
=
$client
->
getValue
(
'user'
);
$host
=
$client
->
getValue
(
'host'
);
$key
=
$client
->
GetKey
();
echo
<<<
EOT
<
html
>
<
head
>
<
title
>
Test
Tequila
</
title
>
</
head
>
<
body
>
<
h3
>
Test
Tequila
:</
h3
>
<
pre
>
key
=
$key
org
=
$org
user
=
$user
host
=
$host
EOT
;
echo
"
\n
Cookies = "
;
print_r
(
$_COOKIE
);
echo
"
\n
Session = "
;
print_r
(
$_SESSION
);
echo
<<<
EOT
</
pre
>
<
p
>
<
a
href
=
"{$_SERVER['PHP_SELF']}"
>
Test
session
key
</
a
><
br
/>
</
body
>
</
html
>
EOT
;
?>
Event Timeline
Log In to Comment