'home' sends / to /home // // style - single or list of css styles to load on specific routes // // js - single or list of js script to load on specific routes // // autoload - list of directories to autoload all PHP files in them // define('SITE_CONFIG', array( /* core settings */ 'domain' => getenv("XSSBOOK_HOST"), 'allowed_hosts' => explode(" ", getenv("XSSBOOK_ALLOWED_HOSTS")), 'base_path' => getenv("XSSBOOK_BASE_PATH"), 'theme_color' => '#1778f2', /* route overides */ 'routes' => array( 'manifest.json' => '_meta/manifest', ), /* css to load on each route */ 'style' => array( '' => 'css/common.css', 'home' => ['css/home.css', 'css/post.css'], 'auth' => 'css/auth.css', 'people' => 'css/people.css', 'profile' => ['css/profile.css', 'css/people.css', 'css/post.css'], 'settings' => 'css/settings.css', 'error' => 'css/error.css', ), /* js to load on each route */ 'js' => array( '' => ['js/thirdparty/jquery.min.js', 'js/lib.js', 'js/modal.js'], 'home' => 'js/post.js', 'profile' => 'js/post.js', ), /* directories to autoload php code */ 'autoload' => array('/lib'), )); define('POST_PAGE_SIZE', 10); define('COMMENT_PAGE_SIZE', 5); define('PEOPLE_PAGE_SIZE', 24);