mirror of
https://github.com/gtbu/Typesetter-5.3-p8.git
synced 2024-11-21 13:59:11 +01:00
46 lines
826 B
PHP
46 lines
826 B
PHP
<?php
|
|
|
|
|
|
define('gp_start_time', microtime(true));
|
|
|
|
defined('is_running') or define('is_running',true);
|
|
require_once('common.php');
|
|
\gp\tool::EntryPoint(0);
|
|
|
|
/*
|
|
* Flow Control
|
|
*/
|
|
|
|
if( !empty($GLOBALS['config']['updating_message']) ){
|
|
die($GLOBALS['config']['updating_message']);
|
|
}
|
|
|
|
|
|
$title = \gp\tool::WhichPage();
|
|
$type = \gp\tool::SpecialOrAdmin($title);
|
|
switch($type){
|
|
|
|
case 'special':
|
|
$page = new \gp\special\Page($title, $type);
|
|
break;
|
|
|
|
case 'admin':
|
|
if( \gp\tool::LoggedIn() ){
|
|
$page = new \gp\admin\Page($title, $type);
|
|
}else{
|
|
$page = new \gp\admin\Login($title, $type);
|
|
}
|
|
break;
|
|
|
|
default:
|
|
if( \gp\tool::LoggedIn() ){
|
|
$page = new \gp\Page\Edit($title, $type);
|
|
}else{
|
|
$page = new \gp\Page($title, $type);
|
|
}
|
|
break;
|
|
}
|
|
|
|
\gp\tool\Plugins::Action('PageCreated');
|
|
|
|
\gp\tool\Output::RunOut();
|