diff --git a/.htaccess b/.htaccess deleted file mode 100644 index ef4dbd5..0000000 --- a/.htaccess +++ /dev/null @@ -1,63 +0,0 @@ - - Options +FollowSymLinks -Indexes - RewriteEngine On -# LOG AND DENY ACCESS TO CORE DIRs - RewriteRule "^(src|models|views|controllers|includes|forms|templates|sql|classes|settings|uploads|notes|configs|vendor|node_modules)/(.*)$" "index.php?route=/app/home&m=deny&f=$1/$2" [NC,L] -# TRACE and TRACK HTTP methods disabled to prevent XSS attacks - RewriteCond "%{REQUEST_METHOD}" "^TRAC[EK]" - RewriteRule ".*" "-" [L,R=405] -# API -# never rewrite for existing files, directories and links - RewriteCond "%{REQUEST_FILENAME}" "!-f" - RewriteCond "%{REQUEST_FILENAME}" "!-d" - RewriteCond "%{REQUEST_FILENAME}" "!-l" - RewriteRule "^(api|api2)/([^/]*)/([^/]*)/([^/]*)/([^/]*)$" "index.php?project=$2&route=/$3/$4&m=$5&$1=true" [QSA,L] -# Mobile - RewriteCond "%{HTTP_USER_AGENT}" "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC] - RewriteCond "%{REQUEST_FILENAME}" "!-f" - RewriteCond "%{REQUEST_FILENAME}" "!-d" - RewriteCond "%{REQUEST_FILENAME}" "!-l" - RewriteRule "^([^/]*)/([^/]*)/([^/]*)/([^/]*)\.html$" "index.php?project=$1&route=/$2/$3&m=$4&mobile=true" [QSA,L] -# Site - RewriteCond "%{REQUEST_FILENAME}" "!-f" - RewriteCond "%{REQUEST_FILENAME}" "!-d" - RewriteCond "%{REQUEST_FILENAME}" "!-l" - RewriteRule "^([^/]*)/([^/]*)/([^/]*)/([^/]*)\.html$" "index.php?project=$1&route=/$2/$3&m=$4" [QSA,L] -# always send 404 on missing files in these folders - RewriteCond "%{REQUEST_FILENAME}" "!-f" - RewriteCond "%{REQUEST_FILENAME}" "!-d" - RewriteCond "%{REQUEST_FILENAME}" "!-l" - RewriteRule "^(assets|skin|js|css|public)/(.*)$" "-" [R=404,L,NS] -# Short Hand Site - RewriteCond "%{REQUEST_FILENAME}" "!-f" - RewriteCond "%{REQUEST_FILENAME}" "!-d" - RewriteCond "%{REQUEST_FILENAME}" "!-l" - RewriteRule "^([^/]*)/([^/]*)/([^/]*)/$" "index.php?project=$1&route=/$2/$3&m=index" [QSA,L] -# rewrite everything not found to index.php - RewriteCond "%{REQUEST_FILENAME}" "!-f" - RewriteCond "%{REQUEST_FILENAME}" "!-d" - RewriteCond "%{REQUEST_FILENAME}" "!-l" - RewriteRule ".*" "index.php" [L] - - -#ErrorDocument 404 /404.php - - - Order allow,deny - Deny from all - - - - Order allow,deny - Deny from all - - - - Header set Content-Type "text/x-handlebars-template; charset=UTF-8" - AddCharset UTF-8 .tpl - - - - Order allow,deny - Allow from all - \ No newline at end of file diff --git a/cli_cron b/cli_cron index ee4322a..89f0dad 100755 --- a/cli_cron +++ b/cli_cron @@ -3,6 +3,12 @@ declare(strict_types=1); +/** + * @author Robert Strutts + * @copyright Copyright (c) 2022, Robert Strutts. + * @license https://mit-license.org/ + */ + require 'src/before_main.php'; \bs_tts\site_helper::set_all_projects(['mockup','ex','live']); \bs_tts\site_helper::set_default_project("mockup"); diff --git a/op_cache.php b/op_cache.php index ce79499..2ddc150 100644 --- a/op_cache.php +++ b/op_cache.php @@ -2,6 +2,12 @@ declare(strict_types=1); +/** + * @author Robert Strutts + * @copyright Copyright (c) 2022, Robert Strutts. + * @license https://mit-license.org/ + */ + require 'src/before_main.php'; \bs_tts\site_helper::set_all_projects(['mockup']); \bs_tts\site_helper::set_default_project("mockup"); diff --git a/public/assets/js/trouble_shooting_routes.js b/public/assets/js/trouble_shooting_routes.js index cc00bcf..17ab642 100644 --- a/public/assets/js/trouble_shooting_routes.js +++ b/public/assets/js/trouble_shooting_routes.js @@ -1,3 +1,9 @@ +/** + * @author Robert Strutts + * @copyright Copyright (c) 2022, Robert Strutts. + * @license https://mit-license.org/ + */ + var Fresh = function() { function KeepAsset(key) { found_one = false; diff --git a/public/main.page b/public/main.page index 2cdb475..2e7947a 100644 --- a/public/main.page +++ b/public/main.page @@ -2,6 +2,12 @@ declare(strict_types=1); +/** + * @author Robert Strutts + * @copyright Copyright (c) 2022, Robert Strutts. + * @license https://mit-license.org/ + */ + $show_all_startup_errors = false; if ($show_all_startup_errors) { ini_set('display_errors', 1); diff --git a/src/documentation/Purifier.txt b/src/documentation/Purifier.txt deleted file mode 100644 index 7ef057e..0000000 --- a/src/documentation/Purifier.txt +++ /dev/null @@ -1,7 +0,0 @@ -The HTML Purifier Cache folder needs write access for web server: - -cd /var/www/frames/tts_framework/vendor/ezyang/htmlpurifier/library -chgrp www-data HTMLPurifier/DefinitionCache/Serializer - -Make sure that group has read/write/execute access via: -chmod g+rwx HTMLPurifier/DefinitionCache/Serializer \ No newline at end of file diff --git a/src/mockup/cli_controllers/app/home_ctrl.php b/src/mockup/cli_controllers/app/home_ctrl.php index 6b56b0e..c1a9ec1 100644 --- a/src/mockup/cli_controllers/app/home_ctrl.php +++ b/src/mockup/cli_controllers/app/home_ctrl.php @@ -2,6 +2,12 @@ declare(strict_types=1); +/** + * @author Robert Strutts + * @copyright Copyright (c) 2022, Robert Strutts. + * @license https://mit-license.org/ + */ + namespace prj\mockup\cli_controllers\app; class home_ctrl {