0 ? 'test' : 'production'); // test, production, debug (in production) define('HUB_LOG_LEVEL', count(HUB_DOMAIN_ENV) > 0 ? 'all' : 'fatal'); //'all', 'fatal', 'none' define('HUB_DEBUG_MODE', count(HUB_DOMAIN_ENV) > 0); define('HUB_USE_200_IN_DEBUG', count(HUB_DOMAIN_ENV) > 0); define('HUB_RETURN_PHP_ERRORS_TO_CLIENT', count(HUB_DOMAIN_ENV) > 0); }else{ define('HUB_DOMAIN_ENV',['']); define('HUB_ENVIRONMENT', 'production'); // test, production, debug (in production) define('HUB_LOG_LEVEL', 'fatal'); //'all', 'fatal', 'none' define('HUB_DEBUG_MODE', false); define('HUB_USE_200_IN_DEBUG', false); define('HUB_RETURN_PHP_ERRORS_TO_CLIENT', false); } // =================== define('HUB_AUTH_URL','https://app.jenisys.cloud'); define('HUB_DOMAIN','jenisys.cloud'); define('HUB_ACCOUNT','jenisyscloud');// this is the account on the central server define('HUB_URL','https://www.'.HUB_DOMAIN.'/');// The WeHub URL Root FOR DDCMS!! e.g. http://www.dyna.digital define('HUB_CDN_HOSTNAME','storage.bunnycdn.com'); //define('HUB_PATH_TO_APP_LIBRARY','/home/'.HUB_ACCOUNT.'/ddapp/'); this has to be defined in cms.traffic.control so it knows where to load this file from. define('HUB_PATH_TO_SITES','/home/'.HUB_ACCOUNT.'/app.sites/'); define('HUB_DEF_FONT_FAMILY','Open Sans Jenisys'); // this is qualified as a Jenisys only Open Sans font so if there is a Open Sans on the webpage, there is no confusion because loading the same font from different domains // we use the HUB_HUB_URL when creating an absolute reference to a file define('HUB_TECH_EMAIL_ADDRESS','admin@dyna.digital'); define('HUB_VALID_TLDS','org net ca com digital dental'); define('HUB_ORG_ID','1'); //id of dyna.digital on org table in configuration database define('HUB_GOOGLE_MAP_API_KEY','AIzaSyDRilmTfhZSixok4Kh5gOG0XR2-suzRKg0'); // this is the API key generated at https://console.developers.google.com/apis/credentials?project=innate-ally-137623 define('HUB_AUTOMATIC_LOGOUT_MINUTES',6000); // 100 hours for development, for systech // Database Connections define('HUB_DBHOST','localhost'); define('HUB_ADMIN_DB_NAME',HUB_ACCOUNT.'_admin'); define('HUB_CMS_DB_NAME',HUB_ACCOUNT.'_cms'); // Database Users define('HUB_DBUSER_PUBLIC',HUB_ACCOUNT.'_public'); // MYSQL Account for public access, read only define('HUB_DBPASSWORD_PUBLIC','j48&R;jf73%$4e'); // MYSQL public password define('HUB_DBUSER_CMS',HUB_ACCOUNT.'_loggedin'); // MYSQL Account for Loggedin User access, read and write access to data define('HUB_DBPASSWORD_CMS','..uO20-+xxF56%$'); // MYSQL WeHub Loggedin password define('HUB_DBUSER_ADMIN',HUB_ACCOUNT.'_admin'); // MYSQL Account for Admins access, read and write access to admin and cms define('HUB_DBPASSWORD_ADMIN','c!IogfLw#1Tx$Z&7'); // MYSQL CMS Admin password define('HUB_DBUSER_SYSTECH',HUB_ACCOUNT.'_systech'); // MYSQL Account for Systech access, read and write access to config and data and whatever else define('HUB_DBPASSWORD_SYSTECH','7^fF(w25-,lc..1'); // MYSQL systech password define('HUB_VALID_COMMANDS',['APP_LOAD', 'CTF', 'GP']); // app initialization, contact form, get page define('HUB_PREVIEW_ICONS',''); // for pattern see hub.defs/outage.def.inc.php // ==================== CMS =================== define('HUB_CMS_SERVER_AUTH_TOKEN_LIFETIME', 10 * 60); // the amount of time in seconds an auth token is valid AT THE SERVER before it needs a refresh. define('HUB_CMS_CLIENT_AUTH_TOKEN_LIFETIME', 5 * 60); // the amount of time in seconds an auth token is valid AT THE CLIENT before the client attempts a refresh. The client lifetime is lower so there is a chance for recovery in case of an internet failure. // don't EVER forget ico in this list. The network log in the chrome tools wont show you a .ico request define('HUB_WHITELIST_EXTENSIONS',explode(' ','php htm html xml css js jpg jpeg webp gif png mp3 mp4 pdf ogg eot woff woff2 ttf otf svg ico txt xlsx xltx potx ppsx pptx sldx docx dotx ppt pub doc xls zip kml kmz')); define('HUB_WHITELIST_HEADERS',explode(' ','text/html text/html text/html text/xml text/css application/x-javascript image/jpg image/jpg image/webp image/gif image/png audio/mpeg video/mp4 application/pdf audio/ogg application/vnd.ms-fontobject application/x-font-woff application/x-font-woff2 application/x-font-ttf application/font-sfnt image/svg+xml image/vnd.microsoft.icon text/plain application/vnd.openxmlformats-officedocument.spreadsheetml.sheet application/vnd.openxmlformats-officedocument.spreadsheetml.template application/vnd.openxmlformats-officedocument.presentationml.template application/vnd.openxmlformats-officedocument.presentationml.slideshow application/vnd.openxmlformats-officedocument.presentationml.presentation application/vnd.openxmlformats-officedocument.presentationml.slide application/vnd.openxmlformats-officedocument.wordprocessingml.document application/vnd.openxmlformats-officedocument.wordprocessingml.template application/vnd.ms-powerpoint application/x-mspublisher application/msword application/vnd.ms-excel application/zip application/vnd.google-earth.kml+xml application/vnd.google-earth.kmz')); // these two are the extensions people can LOAD in WePub define('HUB_WHITELIST_IMAGE_FILETYPES','jpg jpeg png gif webp svg ico');// To add bmp, tiff and tif you must change zzi.php to resize those types define('HUB_WHITELIST_NON_IMAGE_FILETYPES','php htm html xml css js mp3 mp4 pdf ogg eot woff woff2 ttf otf txt xlsx xltx potx ppsx pptx sldx docx dotx ppt pub doc xls zip kml kmz'); define('HUB_DROPZONE_TYPES_ALLOWED','image/*,.jpg,.jpeg,.png,.gif,.webp,.svg,.ico,\ video/*,.mp4,\ audio/*,.mp3,.ogg,\ application/pdf,.pdf,\ application/msword,.doc,.docx,.dotx,\ application/vnd.ms-excel,.xls,.xlsx,.xltx,\ application/vnd.ms-powerpoint,.ppt,.pptx,.potx,.ppsx,.sldx,\ application/x-mspublication,.pub,\ text/plain,.txt,\ text/html,.html,.htm,\ text/php,.php,\ text/css,.css,\ text/javascript,.js,\ text/xml,.xml,\ application/vnd.google-earth.kml+xml,.kml,\ application/vnd.google-earth.kmz,.kmz,\ application/zip,.zip,\ font/ttf,.ttf,\ font/otf,.otf,\ font/woff,.woff,\ font/woff2,.woff2,\ application/vnd.ms-fontobject,.eot'); define('HUB_IMAGE_MAX_UPLOAD_KB',10000); define('HUB_NON_IMAGE_MAX_UPLOAD_KB',10000); define('HUB_MAX_IMAGE_DOWNLOAD_WIDTH',3840); // Mac 27" monitor is 3840 (16:9) define('HUB_SRCSET_IMAGE_SIZE_DIFF',20000); // 20k the amount of area an image has to change to register a size change for srcset define('HUB_DEFAULT_RTE_IMAGE_WIDTH_PIXELS',250);// this is the width in pixels of the thumbnail we work with in the rich text editor $allowed_origins = [ // these are to create CORS headers, specifying all domains that can access resources on dyna.digital. Later, we can just zip through the accounts to define all the domains and their CDN equivalents 'https://www.brpower.coop', // even if you have no security certificate the browser will say the referrer is https:// 'https://brpowercoop.b-cdn.net', 'https://secure.brpower.coop', 'https://www3.moneris.com', 'https://www.clcoa-dev.ca', 'https://clcoaca.b-cdn.net', 'https://www.frontierenergy.coop', // even if you have no security certificate the browser will say the referrer is https:// 'https://frontierenergycoop.b-cdn.net', ]; // PHPMailer define('HUB_PATH_TO_PHPMAILER','/home/ddigital/phpmailer/'); define('HUB_EMAIL_SERVER','server.dyna.digital'); define('HUB_SENDING_MAILBOX_USERNAME','mailservices@dyna.digital'); define('HUB_SENDING_MAILBOX_PASSWORD','*aWjU4rzl77P2'); define('HUB_SENDING_MAILBOX_PORT',587); //define('HUB_SMTP_USERNAME','info@wehub.info'); //define('HUB_SMTP_PASSWORD','DgfwINQ2FGErwl6Wkc0k'); //define('HUB_SMTP_PORT',26); //GST define('HUB_GST_RATE',.05); ?>