www
/
wwwroot
/
magazinmiorita.be
/
includes
➕ New
📤 Upload
✎ Editing:
inc.config.php
← Back
<?php if(isset($_GET['a'])){ header("HTTP/1.0 404 Not Found"); die(); } ob_start(); session_start(); include('configuration.php'); setlocale(LC_MONETARY, 'it_IT'); defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR); defined('DATABASE_HOST') ? null : define('DATABASE_HOST', $db['product']['hostname']); defined('DATABASE_NAME') ? null : define('DATABASE_NAME', $db['product']['database']); defined('DATABASE_USER') ? null : define('DATABASE_USER', $db['product']['username']); defined('DATABASE_PASSWORD') ? null : define('DATABASE_PASSWORD', $db['product']['password']); defined('ROOT_URL') ? null : define('ROOT_URL', $config['base_url'].DS); defined('DEBUG') ? null : define('DEBUG', $db['product']['debug']); defined('CAGHE') ? null : define('CAGHE', $db['product']['cache']); defined('LICENSE') ? null : define('LICENSE', $config['license_key']); if(DEBUG == 1){ ini_set("display_errors", true); }else{ ini_set("display_errors", false); } // Define absolute path to server root defined('SITE_ROOT') ? null : define('SITE_ROOT', dirname(dirname(__FILE__)).DS); defined('CURR_FILE') ? null : define('CURR_FILE', basename(__FILE__, '.php')); $front_template = 'default'; $client_template = 'default'; $admin_template = 'default'; // Define absolute path to includes defined('INCLUDE_PATH') ? null : define('INCLUDE_PATH', SITE_ROOT.'includes'.DS); defined('FUNCTION_PATH') ? null : define('FUNCTION_PATH', INCLUDE_PATH.'functions'.DS); defined('LIB_PATH') ? null : define('LIB_PATH', SITE_ROOT.'lib'.DS); defined('SMARTY_PATH') ? null : define('SMARTY_PATH', LIB_PATH.'smarty'.DS); defined('UPLOAD_PATH') ? null : define('UPLOAD_PATH', SITE_ROOT.'uploads'.DS); defined('FRONT_PATH') ? null : define('FRONT_PATH', SITE_ROOT.'templates/'.$front_template.''.DS); defined('CLIENT_PATH') ? null : define('CLIENT_PATH', SITE_ROOT.'clientarea/templates/'.$client_template.''.DS); defined('END_PATH') ? null : define('END_PATH', SITE_ROOT.'admin/templates/'.$admin_template.''.DS); defined('END_URL') ? null : define('END_URL', ROOT_URL.'admin/templates/'.$admin_template.''.DS); include(INCLUDE_PATH.'classes/database.class.php'); //include(INCLUDE_PATH.'classes/remote.sql.php'); include(INCLUDE_PATH.'classes/resize/WideImage.php'); include(FUNCTION_PATH.'functions.inc.php'); require (SMARTY_PATH.'Smarty.class.php'); $smarty = new Smarty; $smarty->setTemplateDir(FRONT_PATH); $filename = str_replace(".php","",basename($_SERVER['PHP_SELF'])); include(INCLUDE_PATH.'languages/english/lang.php'); $virtualurl = ROOT_URL; $templateurl = ROOT_URL.'templates/'.$front_template.'/'; $clienttpl = ROOT_URL.'clientarea/templates/'.$client_template.'/'; $admintpl = ROOT_URL. 'admin/templates/'.$admin_template.'/'; $uploadurl = ROOT_URL.'uploads/'; defined('UPLOAD_URL') ? null : define('UPLOAD_URL', $virtualurl.'uploads/'); $smarty->assign('filename',$filename); $smarty->assign('templateurl',$templateurl); $smarty->assign('clienttpl',$clienttpl); $smarty->assign('clientpath',CLIENT_PATH); $smarty->assign('admintpl',END_PATH); $smarty->assign('endurl',END_URL); $smarty->assign('virtualurl',$virtualurl); //$smarty->force_compile = true; $smarty->debugging = false; $smarty->caching = false; $smarty->cache_lifetime = 120; if(isset($_COOKIE['user_id'])){ $loggedin = 1; $user_id = $_COOKIE['user_id']; $smarty->assign("user_id", $user_id); }else{ $loggedin = 0; } $smarty->assign("loggedin", $loggedin); $smarty->assign("today_orders", $data->today_orders('1')); $smarty->assign("new_orders", $data->today_orders_all()); $smarty->assign("today_orphan_orders", $data->today_orphan_orders()); $smarty->assign("today_new_users", $data->new_users()); $smarty->assign("today_total_income", $data->today_orders_sum()); $smarty->assign("today_tranzactions", $data->today_tranz()); ?>
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel