Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93402803
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
Thu, Nov 28, 12:17
Size
1 KB
Mime Type
text/x-php
Expires
Sat, Nov 30, 12:17 (2 d)
Engine
blob
Format
Raw Data
Handle
22631151
Attached To
R6831 Tequila PHP client
test.php
View Options
This document is not UTF8. It was detected as ISO-8859-1 (Latin 1) and converted to UTF8 for display.
<?php
require_once
(
"tequila.php"
);
$oClient
=
new
TequilaClient
();
$oClient
->
SetApplicationName
(
'Les élèves vont à l
\'
école'
);
$oClient
->
SetWantedAttributes
(
array
(
'uniqueid'
,
'name'
,
'firstname'
,
'unit'
,
'unitid'
,
'where'
,
'group'
));
$oClient
->
SetWishedAttributes
(
array
(
'email'
,
'title'
));
#$oClient->SetApplicationURL('https://localhost/tequila/test.php');
#$oClient->SetCustomFilter('org=EPFL&firstname=John&unit=SC-PME&where=SC-PME/SC-S/ETU/EPFL/CH&group=inbc');
$oClient
->
SetCustomParamaters
(
array
(
'toto'
=>
1
));
$oClient
->
Authenticate
();
$org
=
$oClient
->
getValue
(
'org'
);
$user
=
$oClient
->
getValue
(
'user'
);
$host
=
$oClient
->
getValue
(
'host'
);
$sKey
=
$oClient
->
GetKey
();
echo
<<<
EOT
<
html
>
<
head
>
<
title
>
Test
Tequila
</
title
>
</
head
>
<
body
>
<
h3
>
Test
Tequila
:</
h3
>
<
pre
>
key
=
$sKey
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