예제 #1
0
} else {
    define('PERCH_RUNWAY', false);
}
if (!defined('PERCH_RUNWAY_ROUTED')) {
    define('PERCH_RUNWAY_ROUTED', false);
}
// Essentials used on every request - no point autoloading
include PERCH_CORE . '/lib/PerchDB.class.php';
include PERCH_CORE . '/lib/PerchDB_MySQL.class.php';
include PERCH_CORE . '/lib/PerchUtil.class.php';
include PERCH_CORE . '/lib/Perch.class.php';
include PERCH_CORE . '/lib/PerchFactory.class.php';
include PERCH_CORE . '/lib/PerchBase.class.php';
include PERCH_CORE . '/lib/PerchSystem.class.php';
include PERCH_CORE . '/lib/PerchTemplate.class.php';
include PERCH_CORE . '/lib/PerchFieldType.class.php';
include PERCH_CORE . '/lib/PerchFieldTypes.class.php';
include PERCH_CORE . '/lib/PerchXMLTag.class.php';
include PERCH_CORE . '/lib/PerchResourceBuckets.class.php';
include PERCH_CORE . '/lib/PerchResourceBucket.class.php';
if (PERCH_RUNWAY) {
    include PERCH_CORE . '/runway/runtime.php';
}
if (!defined('PERCH_SECURITY_HEADERS') || PERCH_SECURITY_HEADERS === true) {
    PerchUtil::set_security_headers();
}
if (!PERCH_RUNWAY_ROUTED && isset($_SERVER['SCRIPT_FILENAME'])) {
    if ($_SERVER['SCRIPT_FILENAME'] != '') {
        PerchUtil::invalidate_opcache($_SERVER['SCRIPT_FILENAME']);
    }
}