error_reporting(0); @session_start(); // info base de dados define("SITE_NAME",'Omnichord Records'); $page_title = 'Omnichord Records'; $page_description = ''; switch($_SERVER['SERVER_NAME']) { case 'omnichordrecords.localhost': define("DB_USER", "root"); define("DB_PASSWORD", "root"); define("DB_NAME", "orecords_online"); define("DB_HOST", "localhost"); break; default: define("DB_USER", "theatcom_ramon"); define("DB_PASSWORD", "avantgarde!"); define("DB_NAME", "theatcom_orecords"); define("DB_HOST", "localhost"); break; } define("NAME_GERAL",'Geral - ' . $page_title); define("EMAIL_GERAL",'joaosantos@pendulo.pt'); function isSecure() { return (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443; } $rootpath = $_SERVER['DOCUMENT_ROOT'] . '/'; $server_uri = isSecure() ? 'https://' . $_SERVER['SERVER_NAME'] . '/' : 'http://' . $_SERVER['SERVER_NAME'] . '/'; require_once $rootpath."includes/ezsql/shared/ez_sql_core.php"; require_once $rootpath."includes/ezsql/mysql/ez_sql_mysql.php"; require_once $rootpath."includes/functions.inc.php"; require_once $rootpath."smarty/Smarty.class.php"; require_once $rootpath."includes/class.cart.php"; require_once $rootpath."includes/httplocale.class.php"; $db = new ezSQL_mysql(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST); $db->query("SET CHARACTER SET utf8"); $smarty = new Smarty(); $smarty->assign('server_uri',$server_uri); $sql = "SELECT * FROM wcm_config"; $temp = $db->get_results($sql,ARRAY_A); $_SESSION['wcm_config'] = array(); foreach ($temp as $conf){ $_SESSION['wcm_config'][$conf['id']] = $conf['value']; } ?>
Fatal error: Call to a member function assign() on null in /home/theatcom/public_html/domains/omnichordrecords.com/includes/common.php on line 12