}
}
+ function set_index_module($mod)
+ {
+ $this->__idx = $mod;
+ }
+
function find_hook()
{
$p = $this->path;
new_skinned_page('index.tpl', AUTH_PUBLIC);
if (empty($this->path)) {
- $this->__mods['core']->handler_index($page);
- } else
+ $this->path = 'index';
+ }
+
switch ($this->call_hook($page)) {
case PL_FORBIDDEN:
$this->__mods['core']->handler_403($page);
);
}
- function chall(&$page)
+ function handler_chall(&$page)
{
$_SESSION["chall"] = uniqid(rand(), 1);
echo $_SESSION["chall"] . "\n" . session_id();
exit;
}
- function econf(&$page)
+ function handler_econf(&$page)
{
global $globals;
exit;
}
- function manageurs(&$page)
+ function handler_manageurs(&$page)
{
global $globals;
exit;
}
- function handler_index(&$page)
- {
- if (logged()) {
- redirect("events");
- }
-
- return PL_OK;
- }
-
function handler_403(&$page)
{
header('HTTP/1.0 403 Forbidden');
function handlers()
{
return array(
- 'cacert.pem' => $this->make_hook('cacert', AUTH_PUBLIC),
+ 'index' => $this->make_hook('index', AUTH_PUBLIC),
+ 'cacert.pem' => $this->make_hook('cacert', AUTH_PUBLIC),
'changelog' => $this->make_hook('changelog', AUTH_PUBLIC),
// Preferences thingies
);
}
+ function handler_index(&$page)
+ {
+ if (logged()) {
+ redirect("events");
+ }
+
+ return PL_OK;
+ }
+
function handler_cacert(&$page)
{
$data = file_get_contents('/etc/ssl/xorgCA/cacert.pem');