<?php
require_once dirname(__FILE__) . '/../CrossAuth.php';
/**
* Fake approval function.
*
* @return bool alwayse TRUE
*/
function fake_approve() {
return true;
}
$ca = new CrossAuth();
$ca->setApproveCallback('fake_approve');
$ca->jsHeader();
if ($approved = $ca->isApproved()) {
// do something for the authorized user
} else {
// do something for the DIRTY, BAD-SMELLING HACKER
}
?>
|