6 throw new Exception(
'Directory for CAS Server ticket storage [' .
$path .
'] does not exists. ');
8 if (!is_writable(
$path))
9 throw new Exception(
'Directory for CAS Server ticket storage [' .
$path .
'] is not writable. ');
12 file_put_contents(
$filename, serialize($value));
17 if (!preg_match(
'/^(ST|PT|PGT)-?[a-zA-Z0-9]+$/D', $ticket))
throw new Exception(
'Invalid characters in ticket');
20 throw new Exception(
'Directory for CAS Server ticket storage [' .
$path .
'] does not exists. ');
25 throw new Exception(
'Could not find ticket');
33 return unserialize($content);
37 foreach ($legal_service_urls AS $legalurl) {
38 if (strpos(
$service, $legalurl) === 0)
return TRUE;
checkServiceURL($service, array $legal_service_urls)
retrieveTicket($ticket, $path, $unlink=true)
Create styles array
The data for the language used.
storeTicket($ticket, $path, $value)