34 if (!checkRole(
"admin") && $_SERVER[
"REMOTE_ADDR"] != $_SERVER[
"SERVER_ADDR"]
35 && $_SERVER[
"REMOTE_ADDR"] != gethostbyname(
$config[
'http_host'])
36 && $_SERVER[
"REMOTE_ADDR"] !=
"127.0.0.1")
38 throw new FakoliException(
"Anonymous component scans cannot be run from {$_SERVER["REMOTE_ADDR
"]}");
41 if ($_SERVER[
"REMOTE_ADDR"] ==
"127.0.0.1" && array_key_exists(
"clear", $_GET))
43 $db = ConnectionManager::getConnection();
44 $db->exec(
"TRUNCATE TABLE component");
46 Cache::invalidate(
"fakoli_components");
51 $plain = checkNumeric($_GET[
"plain"]);
63 if (checkRole(
"admin"))
69 echo $e->getMessage();
73 if (checkRole(
"admin"))
75 redirect(
"/admin/components");
79 echo
"Scan Complete\n";
ComponentManager provides the core functionality for building the component map describing the applic...
static $verbosityLevel
Verbosity level for component scan (same as trace level)
static $plainOutput
Set to true for plain text output during component scan.
FakoliException is the base exception class for all Fakoli errors.
static $rollbackBuffers
Specifies whether to rollback output buffers when there is an unhandled exception.
if(!checkRole("admin") && $_SERVER["REMOTE_ADDR"] !=$_SERVER["SERVER_ADDR"] && $_SERVER["REMOTE_ADDR"] !=gethostbyname($config['http_host']) && $_SERVER["REMOTE_ADDR"] !="127.0.0.1") if($_SERVER["REMOTE_ADDR"]=="127.0.0.1" &&array_key_exists("clear", $_GET)) $verbosity
if($verbosity) ComponentManager $plain