Location: PHPKode > projects > S-REstate CMS - Free Edtion > www/config/general.php
<?php
//error_reporting( E_ALL ^ E_DEPRECATED );
unset( $config, $aMenuTypes, $aPhotoTypes, $lang, $aUser );

/*
* Directories 
*/
$config['dir_core'] = 'core/';
$config['dir_db'] = 'db/';
$config['dir_libraries'] = 'libraries/';
$config['dir_lang'] = 'lang/';
$config['dir_templates'] = 'templates/';
$config['dir_themes'] = $config['dir_templates'].'themes/';
$config['dir_files'] = 'files/';
$config['dir_plugins'] = 'plugins/';

/*
* Set true if logged administrator will be able 
* to see hidden pages (in client-side) 
*/
$config['hidden_shows'] = false;

/*
* Set true if mobile version will be able - NOT IMPLEMENTED IN TENEURO CMS!
*/
$config['mobile'] = false;

/*
* If You want embed PHP code in template files 
* set this variable true but it is not recommended and
* script will generate code much slower
*/
$config['embed_php'] = false;

/*
* If true, then script will search db/*_products_ext.php file in
* meta keywords, meta description and full description.
* We dont recommend it if shopping cart have more then 1000 products
*/
$config['search_products_description'] = true;

/*
* Add minutes difference between your local time and server time
*/
$config['time_diff'] = 0;

/*
* Administrator login and password 
*/
$config['login'] = "admin";
$config['pass'] = "password";

/*
* Default language
*/
$config['default_lang'] = "en";

/*
* If should be use wysiwyg editor or default
*/
$config['wysiwyg'] = true;

/*
* If should be text size change option on pages
*/
$config['text_size'] = false;

/*
* If customer should recieve on email order details
*/
$config['send_customer_order_details'] = true;

/*
* If files should be copied if use the same
*/
$config['copy_the_same_files'] = false;

$config['display_all_files'] = false;
$config['display_expanded_menu'] = false;
$config['display_subcategory_products'] = true;
$config['change_files_names'] = false;
$config['inherit_from_parents'] = true;

$config['pages_images_sizes'] = Array( 0 => 100, 1 => 150 );
$config['max_dimension_of_image'] = 900;
$config['display_products_list'] = 1;

$config['before_amp'] = !strstr( $_SERVER['REQUEST_URI'], '?' ) ? '?' : null;

/*
* If should be language parameter added to url
*/
$config['language_in_url'] = true;

/*
* Language separator in url
*/
$config['language_separator'] = '_';

define( 'LANGUAGE_IN_URL', $config['language_in_url'] );
define( 'LANGUAGE_SEPARATOR', $config['language_separator'] );

/*
* DONT CHANGE CODE BELOW!
*/
require_once $config['dir_core'].'common.php';

$config['cookie_admin'] = defined( 'CUSTOMER_PAGE' ) ? null : 'A';

if( defined( 'CUSTOMER_PAGE' ) && !isset( $sLang ) && LANGUAGE_IN_URL === true )
 $sLang = getLanguageFromUrl( );

if( isset( $sLang ) && is_file( $config['dir_lang'].$sLang.'.php' ) && strlen( $sLang ) == 2 ){
  setCookie( 'sLanguage'.$config['cookie_admin'], $sLang, time( ) + 86400 );
  define( 'LANGUAGE', $sLang );
}
else{
  if( !empty( $_COOKIE['sLanguage'.$config['cookie_admin']] ) && is_file( $config['dir_lang'].$_COOKIE['sLanguage'.$config['cookie_admin']].'.php' ) && strlen( $_COOKIE['sLanguage'.$config['cookie_admin']] ) == 2 )
    define( 'LANGUAGE', $_COOKIE['sLanguage'.$config['cookie_admin']] );
  else
    define( 'LANGUAGE', $config['default_lang'] );
}

$config['config'] = 'config/general.php';
$config['config_lang'] = 'config/lang_'.LANGUAGE.'.php';

$config_db['pages'] = $config['dir_db'].LANGUAGE.'_pages.php';
$config_db['pages_ext'] = $config['dir_db'].LANGUAGE.'_pages_ext.php';
$config_db['pages_files'] = $config['dir_db'].LANGUAGE.'_pages_files.php';
$config_db['products'] = $config['dir_db'].LANGUAGE.'_products.php';
$config_db['products_ext'] = $config['dir_db'].LANGUAGE.'_products_ext.php';
$config_db['products_files'] = $config['dir_db'].LANGUAGE.'_products_files.php';
$config_db['products_pages'] = $config['dir_db'].LANGUAGE.'_products_pages.php';
$config_db['orders_temp'] = $config['dir_db'].'orders_temp.php';
$config_db['orders'] = $config['dir_db'].'orders.php';
$config_db['orders_products'] = $config['dir_db'].'orders_products.php';
$config_db['orders_comments'] = $config['dir_db'].'orders_comments.php';
$config_db['orders_status'] = $config['dir_db'].'orders_status.php';
$config_db['payments'] = $config['dir_db'].LANGUAGE.'_payments.php';
$config_db['carriers'] = $config['dir_db'].LANGUAGE.'_carriers.php';
$config_db['carriers_payments']= $config['dir_db'].LANGUAGE.'_carriers_payments.php';

$config['language']	= LANGUAGE;
$config['version'] = '4.0';

$config['last_login'] = "1309159002";
$config['before_last_login'] = "1309157080";
$config['failed_login_time'] = 0;
$config['failed_login_count'] = 0;

define( 'DIR_CORE', $config['dir_core'] );
define( 'DIR_DB', $config['dir_db'] );
define( 'DIR_FILES', $config['dir_files'] );
define( 'DIR_LIBRARIES', $config['dir_libraries'] );
define( 'DIR_PLUGINS', $config['dir_plugins'] );
define( 'DIR_LANG', $config['dir_lang'] );
define( 'DIR_TEMPLATES', $config['dir_templates'] );
define( 'DIR_THEMES', $config['dir_themes'] );

define( 'DB_PAGES', $config_db['pages'] );
define( 'DB_PAGES_EXT', $config_db['pages_ext'] );
define( 'DB_PAGES_FILES', $config_db['pages_files'] );
define( 'DB_PRODUCTS', $config_db['products'] );
define( 'DB_PRODUCTS_EXT', $config_db['products_ext'] );
define( 'DB_PRODUCTS_FILES', $config_db['products_files'] );
define( 'DB_PRODUCTS_PAGES', $config_db['products_pages'] );
define( 'DB_ORDERS_TEMP', $config_db['orders_temp'] );
define( 'DB_ORDERS', $config_db['orders'] );
define( 'DB_ORDERS_PRODUCTS', $config_db['orders_products'] );
define( 'DB_ORDERS_COMMENTS', $config_db['orders_comments'] );
define( 'DB_ORDERS_STATUS', $config_db['orders_status'] );
define( 'DB_PAYMENTS', $config_db['payments'] );
define( 'DB_CARRIERS', $config_db['carriers'] );
define( 'DB_CARRIERS_PAYMENTS', $config_db['carriers_payments'] );

define( 'DB_CONFIG', $config['config'] );
define( 'DB_CONFIG_LANG', $config['config_lang'] );

define( 'MAX_DIMENSION_OF_IMAGE', $config['max_dimension_of_image'] );
define( 'HIDDEN_SHOWS', $config['hidden_shows'] );
define( 'DISPLAY_EXPANDED_MENU', $config['display_expanded_menu'] );
define( 'DISPLAY_SUBCATEGORY_PRODUCTS', $config['display_subcategory_products'] );
define( 'WYSIWYG', $config['wysiwyg'] );
define( 'COPY_THE_SAME_FILES', $config['copy_the_same_files'] );
define( 'VERSION', $config['version'] );
define( 'TIME_DIFF', $config['time_diff'] );
define( 'SESSION_KEY_NAME', dirname( $_SERVER['REQUEST_URI'] ) );

/*
* HOMEPAGE
*/
$config['mban1'] = "index.php?about-us,1";
$config['mban2'] = "index.php?house,6";
$config['mban3'] = "index.php?rules-and-policies,4";
$config['mban4'] = "index.php?contact-us,2";
$config['slide1'] = "index.php?house,6";
$config['slide2'] = "index.php?house,6";
$config['slide3'] = "index.php?our-team,3";
$config['slide4'] = "index.php?contact-us,2";

?>
Return current item: S-REstate CMS - Free Edtion