Changeset View
Changeset View
Standalone View
Standalone View
public_html/index.php
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | if (!HTTPAuth::check($config->httpauth)) { | ||||
header($_SERVER['SERVER_PROTOCOL'] . " 401 Unauthorized", true); | header($_SERVER['SERVER_PROTOCOL'] . " 401 Unauthorized", true); | ||||
exit; | exit; | ||||
} | } | ||||
} | } | ||||
#header('Content-type: text/calendar; charset=utf-8', true); | #header('Content-type: text/calendar; charset=utf-8', true); | ||||
header('Content-type: text/plain; charset=utf-8', true); | header('Content-type: text/plain; charset=utf-8', true); | ||||
list($uri, $args) = explode('?', $uri); | |||||
// analyse request | // analyse request | ||||
$url = array_filter(explode('/', $uri)); | $url = array_filter(explode('/', $uri)); | ||||
$user = strtolower(array_pop($url)); | $user = strtolower(array_pop($url)); | ||||
$action = strtolower(array_pop($url)); | $action = strtolower(array_pop($url)); | ||||
$extended = false; | $extended = false; | ||||
// remove file extension | // remove file extension | ||||
if (preg_match('/^(.+)\.([ipx]fb)$/i', $user, $m)) { | if (preg_match('/^(.+)\.([ipx]fb)$/i', $user, $m)) { | ||||
Show All 32 Lines |