<?php
/***
* The base configurations of the Sfhati.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, Sfhati Language, and PATHs.
*
* This file is writen by the install.php creation script during the
* installation. You don't have to use the web site, you can just copy this file
* to "conf.php" and fill in the values.
*
* @package Sfhati
*/
error_reporting(E_ERROR | E_WARNING | E_PARSE);
ini_set('display_errors', '1');
ini_set("session.gc_maxlifetime", '2592000'); // 30 days
set_time_limit('30');
ini_set('memory_limit', '80M');
date_default_timezone_set('Asia/Amman');
define('SITE_DOMAIN',$_SERVER[HTTP_HOST]);
define('LANGUAGE', 'en');
// database mysql configration
define('db_type', '');
define('db_host', 'localhost');
define('db_port', '');
define('db_name', 'fw');
define('db_user', 'root');
define('db_pass', '');
define('SITE_PATH', dirname( __FILE__ ) . DIRECTORY_SEPARATOR);
define('SITE_IP', $_SERVER['SERVER_ADDR']);
define('QUERY_STRING', $_SERVER['QUERY_STRING']);
define('SITE_LINK', 'http://' . SITE_DOMAIN . '/');
define('TEMPLATE_FOLDER', 'template');
define('UPLOADED_FOLDER', 'uploaded');
define('CLASSES_FOLDER', 'classes');
define('CACHE_FOLDER', 'cache');
define('TMP_FOLDER', 'tmp');
define('PLUGIN_FOLDER', 'plugin');
define('THEME_FOLDER', 'mytheme');
define('TEMPLATE_PATH', SITE_PATH . TEMPLATE_FOLDER . DIRECTORY_SEPARATOR);
define('UPLOADED_PATH', SITE_PATH . UPLOADED_FOLDER . DIRECTORY_SEPARATOR);
define('CLASSES_PATH', SITE_PATH . CLASSES_FOLDER . DIRECTORY_SEPARATOR);
define('CACHE_PATH', SITE_PATH . CACHE_FOLDER . DIRECTORY_SEPARATOR);
define('TMP_PATH', SITE_PATH . TMP_FOLDER . DIRECTORY_SEPARATOR);
define('PLUGIN_PATH', SITE_PATH . PLUGIN_FOLDER . DIRECTORY_SEPARATOR);
define('THEME_PATH', TEMPLATE_PATH . THEME_FOLDER . DIRECTORY_SEPARATOR);
define('TEMPLATE_LINK', SITE_LINK . TEMPLATE_FOLDER .'/');
define('UPLOADED_LINK', SITE_LINK . UPLOADED_FOLDER .'/');
define('CLASSES_LINK', SITE_LINK . CLASSES_FOLDER .'/');
define('CACHE_LINK', SITE_LINK . CACHE_FOLDER .'/');
define('TMP_LINK', SITE_LINK . TMP_FOLDER .'/');
define('PLUGIN_LINK', SITE_LINK . PLUGIN_FOLDER .'/');
define('THEME_LINK', TEMPLATE_LINK . THEME_FOLDER . '/');
define('SITE_EMAIL', 'info@' . SITE_DOMAIN);
define('Main_Domain', 'http://server.sfhati.com/');
define('Version', '1.00');
define('DEVELOP_MODE', true); //
define('SQL_CACHE', '0'); // in secuend
define('CRYPT_CACHE', FALSE); // no sql cache is defult
define('SALT','FR4d32cddw2s#gt54');
define('LEZAZ_START_TIME', microtime(1), true);
define('LEZAZ_START_PEAK_MEM', memory_get_peak_usage(true));
// include Classes
include(CLASSES_PATH . '___core.php');
$GLOBALS[lezaz]=new __CORE;
//auto include classes
$dir=CLASSES_PATH.'autoinclude/';
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
//echo "$dir$file :";
if (strtolower(end(explode('.', $file))) == 'php') {
include($dir . $file);
//echo " $dir$file";
}
//echo "<br/>";
}
closedir($dh);
}
//auto load classes
$dir=CLASSES_PATH.'autoload/';
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
//echo "$dir$file :";
if (strtolower(end(explode('.', $file))) == 'php') {
include($dir . $file);
$class= str_replace(array('__','.php'), '', $file);
$lezaz->__add('__'.$class,$class);
//echo " $dir$file";
}
//echo "<br/>";
}
closedir($dh);
}
|