if (!class_exists('SmartAppBootstrap')) { die('SmartFramework // Runtime: the Class SmartAppBootstrap is missing ...'); } //end if if (!is_subclass_of('SmartAppBootstrap', 'SmartInterfaceAppBootstrap', true)) { die('SmartFramework // Runtime: the Class SmartAppBootstrap must implement the SmartInterfaceAppBootstrap ...'); } //end if //--------------------------------------- //######################### MONITOR: REDIRECTION CONTROLLER SmartFrameworkRuntime::Redirection_Monitor(); //######################### REGISTER UNIQUE ID COOKIE (required before run) SmartFrameworkRuntime::SetVisitorEntropyIDCookie(); // will define the constant SMART_APP_VISITOR_COOKIE ; cookie will be set only if SMART_FRAMEWORK_UNIQUE_ID_COOKIE_NAME is non empty //######################### APP.BOOTSTRAP: RUN SmartAppBootstrap::Run(); //######################### SmartCache::setKey('smart-app-runtime', 'visitor-cookie', (string) SMART_APP_VISITOR_COOKIE); //######################### //================================================================================== //================================================================================== CLASS START //================================================================================== /** * Class Smart.Framework Security * It may be used anywhere inside Smart.Framework or by Plugins and Application Modules. * * <code> * // Usage example: * SmartFrameworkSecurity::some_method_of_this_class(...); * </code> *