<?php
// IMPORTANT: set the ajaxPath variable in /php/scripts/common.js
// ALSO: change image paths in /php/styles/newsroom.css
/* Site Settings */
define ("SITE_CLOUDID",107); // see approvedClouds.txt
define ("SITE_TITLE",'Tech News');
define ("CACHE_PREFIX",'tech');
define ("PHP_HEADER",'<h1>Technology News</h1><p>Keep up with the latest in technology</p>');
define ("PATH_SITE",$_SERVER['DOCUMENT_ROOT']);
define ("PATH_CACHE",PATH_SITE.'../../cache');
define ("PATH_IMAGES",PATH_SITE.'../../images/');
define ("PATH_TEMPLATES",PATH_SITE.'/templates');
define ("PATH_STYLES",'../../../php/styles'); // or, move to /styles directory for site-specific approach
define ("PATH_SCRIPTS",'../../../php/scripts');
define ("URL_HOME",'http://tech.newsi.us/');
define ("URL_CACHE",'http://tech.newsi.us/?p=cache');
define ("URL_PREFIX",'/index.php');
define ("USE_ADVERTISING",TRUE);
define ("ADS_LARGEBANNER",TRUE);
define ("USE_RECAPTCHA",FALSE);
define ("USE_TWITTER",FALSE);
define ("NAV_INCL_BLOGS",false);
/* Core Settings */
define ("PATH_CORE",PATH_SITE.'../../../core/');
// used in page.class.php
define('ARCHIVE_FOLDER', '../../cache'); // location to store archive, don't add starting or trailing slashes
define('JSMIN_PATH', '../../../core/utilities'); // full path to JSMin executable
define(PATH_LOGFILE,'/var/log/smt.log');
/* PHP Module Settings */
define ("MODULE_PHP",true);
define ("PATH_PHP",PATH_SITE.'../../../php/');
/* Affiliate program settings */
$amazonAssociateId="commonmediaor-20";
/* get secret keys */
// You can either define your secret keys in the constants file
// - or - do as we do, store them in an ini file outside of the apache web directory path
// a global $init array must exist for the database to be initialized properly
define ("INI_FILE_FOR_SECRET_KEYS",true);
if (INI_FILE_FOR_SECRET_KEYS) {
define ("INI_PATH",PATH_SITE.'../../../../..');
$init=parse_ini_file(INI_PATH.'/tech.ini');
} else {
// get your api key at http://newscloud.com/learn/apidocs/apikey/
$init['apiKey']='put-yourkeyhere';
$init['analytics']='your-google-analytics-key';
$init['database']='your database Name';
$init['username']='your database user';
$init['password']='your database password';
$init['hostname']='your database hostname';
}
/* SMT Server Settings */
define ("URL_SMT_SERVER","http://www.newscloud.com");
define ("URL_SMT_NODE","http://api.newscloud.com/services/cloud.php");
?>