diff --git a/public/main.page b/public/main.page index 2e7947a..3aab066 100644 --- a/public/main.page +++ b/public/main.page @@ -8,7 +8,7 @@ declare(strict_types=1); * @license https://mit-license.org/ */ -$show_all_startup_errors = false; +$show_all_startup_errors = false; // Always, Keep false on LIVE PROD SYS!! if ($show_all_startup_errors) { ini_set('display_errors', 1); ini_set('display_startup_errors', 1); diff --git a/src/configs/mockup/loadall.php b/src/configs/mockup/loadall.php index da3bb7c..d2da7ba 100644 --- a/src/configs/mockup/loadall.php +++ b/src/configs/mockup/loadall.php @@ -57,19 +57,29 @@ )); /* Contents of : on_tts.php */ -\main_tts\configure::set_key('important', 'private_ip_as_local', false); +/** + * @todo REMOVE or CHANGE [set_local_site_domains] to your + * PRIVATE or non-public accessible site domain name. + * + * Make sure the web-server only servers it on a + * loop-back or non-routable IP address range, + * otherwise people will be able to see lots of + * private DEBUG info. Also, make sure your HOST file has an + * entry to your web server's IP IG: 127.0.0.1 tts.home.local + * + * When in Doubt, just make live false, below here!!! + */ +\bs_tts\site_helper::set_local_site_domains('tts.home.local'); +// \bs_tts\site_helper::set_allowed_Private_IPs(['192.168.32.2', '192.168.32.3']); +// \bs_tts\site_helper::set_allowed_Public_IPs('12.x.x.x'); \main_tts\configure::set('tts', array( - 'error_page' => 'tts', // or project - '404_page' => 'tts', // or project - 'ui_kit' => 'tts', // or project 'site_name' => 'Testing', 'short_url' => true, 'default_project' => 'home', 'check_HTML_tags' => true, - 'live' => false, //(! \tts\security::is_localhost() ) // Is this Production?? + 'live' => (\bs_tts\site_helper::remote_not_allowed_force_live()), )); - /* Contents of : on_view_mode.php */ \main_tts\configure::set('view_mode', array( diff --git a/src/configs/mockup/on_tts.php b/src/configs/mockup/on_tts.php index a762934..c43f284 100644 --- a/src/configs/mockup/on_tts.php +++ b/src/configs/mockup/on_tts.php @@ -1,14 +1,25 @@ 'tts', // or project - '404_page' => 'tts', // or project - 'ui_kit' => 'tts', // or project 'site_name' => 'Testing', 'short_url' => true, 'default_project' => 'home', 'check_HTML_tags' => true, - 'live' => false, //(! \tts\security::is_localhost() ) // Is this Production?? -)); + 'live' => (\bs_tts\site_helper::remote_not_allowed_force_live()), +)); \ No newline at end of file