live setting

main
Robert 18 hours ago
parent 6e3979f284
commit 48318e9f21
  1. 5
      protected/ENV_Example_CONFIG
  2. 20
      protected/src/Configs/on_HTML.php
  3. 38
      protected/src/Configs/on_IOcornerstone.php

@ -0,0 +1,5 @@
DB_HOST=127.0.0.1
DB_NAME=goals_db
DB_USER=root
DB_PASSWORD=<PASSWORD>
SESSION_KEY=<KEY>

@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
/**
* @author Robert Strutts
* @copyright (c) 2026, Robert Strutts
* @license MIT
*/
use IOcornerstone\Framework\Configure;
Configure::set('html', array(
'author' => 'Robert Strutts',
'title' => 'StickingToGoal.com',
'javascript' => array(), //'js/analytics.js'=>'project'
'robots' => 'noindex',
'keywords' => 'goal, setting',
'description' => 'Goals site',
));

@ -0,0 +1,38 @@
<?php
declare(strict_types=1);
/**
* @author Robert Strutts
* @copyright (c) 2026, Robert Strutts
* @license MIT
*/
use IOcornerstone\Framework\{
Configure,
SiteHelper
};
/**
* @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 OR tts.home.local
*
* When in Doubt, just make live false, below here!!!
*/
// SiteHelper::setLocalSiteDomains('pc1');
// SiteHelper::setAllowedPrivateIPs(['192.168.32.2', '192.168.32.3']);
// SiteHelper::setAllowedPublicIPs('12.x.x.x');
Configure::set('IOcornerstone', array(
'site_name' => 'StickingToGoal.com',
'short_url' => true,
'default_project' => 'Home',
'check_HTML_tags' => true,
'live' => (SiteHelper::remoteNotAllowedForceLive()),
));
Loading…
Cancel
Save