Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../var/softacul.../qcart
File: general.php
<?php
[0] Fix | Delete
/*
[1] Fix | Delete
* Get more details about configuration settings in manual:
[2] Fix | Delete
* http://opensolution.org/Quick.Cart/docs/ext_6.6/?id=en-requirements#5
[3] Fix | Delete
*/
[4] Fix | Delete
define( 'DEVELOPER_MODE', true ); // After starting your page, comment out this line
[5] Fix | Delete
if( defined( 'DEVELOPER_MODE' ) ){
[6] Fix | Delete
error_reporting( E_ALL | E_STRICT );
[7] Fix | Delete
}
[8] Fix | Delete
unset( $config, $aMenuTypes, $aPhotoTypes, $lang, $sMessage, $aData );
[9] Fix | Delete
[10] Fix | Delete
/*
[11] Fix | Delete
* If set to true, the logged on administrator will be able
[12] Fix | Delete
* to see hidden pages (client-side)
[13] Fix | Delete
*/
[14] Fix | Delete
$config['hidden_shows'] = false;
[15] Fix | Delete
[16] Fix | Delete
/*
[17] Fix | Delete
* Contains IP address from which logging in to admin panel is allowed
[18] Fix | Delete
* Uncomment line below and type your IP address
[19] Fix | Delete
*/
[20] Fix | Delete
$config['allowed_ip_admin_panel'] = '[[clientip]]';
[21] Fix | Delete
[22] Fix | Delete
/*
[23] Fix | Delete
* Add time difference (in minutes) between your local time and server time
[24] Fix | Delete
*/
[25] Fix | Delete
$config['time_diff'] = 0;
[26] Fix | Delete
[27] Fix | Delete
/*
[28] Fix | Delete
* Administrator's login and password
[29] Fix | Delete
*/
[30] Fix | Delete
$config['login'] = "[[admin_username]]";
[31] Fix | Delete
$config['pass'] = "[[admin_pass]]";
[32] Fix | Delete
[33] Fix | Delete
/*
[34] Fix | Delete
* Client-side default language
[35] Fix | Delete
*/
[36] Fix | Delete
$config['default_lang'] = "en";
[37] Fix | Delete
[38] Fix | Delete
/*
[39] Fix | Delete
* Admin panel language
[40] Fix | Delete
*/
[41] Fix | Delete
$config['admin_lang'] = "en";
[42] Fix | Delete
[43] Fix | Delete
/*
[44] Fix | Delete
* Admin file name
[45] Fix | Delete
*/
[46] Fix | Delete
$config['admin_file'] = "admin.php";
[47] Fix | Delete
[48] Fix | Delete
/*
[49] Fix | Delete
* CSS styles file
[50] Fix | Delete
*/
[51] Fix | Delete
$config['style'] = "style.css";
[52] Fix | Delete
[53] Fix | Delete
/*
[54] Fix | Delete
* Directory of the current skin
[55] Fix | Delete
*/
[56] Fix | Delete
$config['skin'] = "default";
[57] Fix | Delete
[58] Fix | Delete
/*
[59] Fix | Delete
* WYSIWYG editor
[60] Fix | Delete
*/
[61] Fix | Delete
$config['wysiwyg'] = true;
[62] Fix | Delete
[63] Fix | Delete
/*
[64] Fix | Delete
* Inherit themes of pages from their parents
[65] Fix | Delete
*/
[66] Fix | Delete
$config['inherit_from_parents'] = false;
[67] Fix | Delete
[68] Fix | Delete
/*
[69] Fix | Delete
* Product sorting option available on pages
[70] Fix | Delete
*/
[71] Fix | Delete
$config['sorting_products'] = true;
[72] Fix | Delete
[73] Fix | Delete
/*
[74] Fix | Delete
* Customer recieves an email containing order details
[75] Fix | Delete
*/
[76] Fix | Delete
$config['send_customer_order_details'] = false;
[77] Fix | Delete
[78] Fix | Delete
/*
[79] Fix | Delete
* Admin gets email containing order details from customer's address
[80] Fix | Delete
*/
[81] Fix | Delete
$config['order_details_from_customer'] = false;
[82] Fix | Delete
[83] Fix | Delete
/*
[84] Fix | Delete
* If the server does not allow sending emails from addresses
[85] Fix | Delete
* that are not configured on it, type value:
[86] Fix | Delete
* 1 - default - emails will be sent from the email defined in the configuration or the customer's email (if $config['order_details_from_customer'] is set to true)
[87] Fix | Delete
* 2 - emails will be sent from your default e-mail address configured on the server (not in the configuration script)
[88] Fix | Delete
*/
[89] Fix | Delete
$config['emails_from_header_option'] = 1;
[90] Fix | Delete
[91] Fix | Delete
/*
[92] Fix | Delete
* Set default image size and location in page form
[93] Fix | Delete
*/
[94] Fix | Delete
$config['pages_default_image_size_details'] = 1;
[95] Fix | Delete
$config['pages_default_image_size_list'] = 1;
[96] Fix | Delete
$config['pages_default_image_location'] = 1;
[97] Fix | Delete
[98] Fix | Delete
/*
[99] Fix | Delete
* Set default image size and location in product form
[100] Fix | Delete
*/
[101] Fix | Delete
$config['products_default_image_size_details'] = 0;
[102] Fix | Delete
$config['products_default_image_size_list'] = 1;
[103] Fix | Delete
$config['products_default_image_location'] = 1;
[104] Fix | Delete
[105] Fix | Delete
/*
[106] Fix | Delete
* Set default subpages display mode
[107] Fix | Delete
*/
[108] Fix | Delete
$config['default_subpages_show'] = 2;
[109] Fix | Delete
[110] Fix | Delete
/*
[111] Fix | Delete
* Set default menu
[112] Fix | Delete
*/
[113] Fix | Delete
$config['default_menu'] = 1;
[114] Fix | Delete
[115] Fix | Delete
/*
[116] Fix | Delete
* If set to true language id will be added to url
[117] Fix | Delete
*/
[118] Fix | Delete
$config['language_in_url'] = false;
[119] Fix | Delete
[120] Fix | Delete
/*
[121] Fix | Delete
* Language id separator in url
[122] Fix | Delete
*/
[123] Fix | Delete
$config['language_separator'] = '_';
[124] Fix | Delete
[125] Fix | Delete
/*
[126] Fix | Delete
* Define maximum product quantity in basket
[127] Fix | Delete
*/
[128] Fix | Delete
$config['max_product_quantity'] = 100;
[129] Fix | Delete
[130] Fix | Delete
/*
[131] Fix | Delete
* Define maximum product name's length in admin list
[132] Fix | Delete
*/
[133] Fix | Delete
$config['max_product_name_in_list'] = 80;
[134] Fix | Delete
[135] Fix | Delete
/*
[136] Fix | Delete
* Save each page's full description to a separate file
[137] Fix | Delete
*/
[138] Fix | Delete
$config['pages_full_description_to_file'] = false;
[139] Fix | Delete
[140] Fix | Delete
/*
[141] Fix | Delete
* Save each product's full description to a separate file
[142] Fix | Delete
*/
[143] Fix | Delete
$config['products_full_description_to_file'] = false;
[144] Fix | Delete
[145] Fix | Delete
define( 'LANGUAGE_IN_URL', $config['language_in_url'] );
[146] Fix | Delete
define( 'LANGUAGE_SEPARATOR', $config['language_separator'] );
[147] Fix | Delete
[148] Fix | Delete
$config['display_expanded_menu'] = true;
[149] Fix | Delete
$config['change_files_names'] = false;
[150] Fix | Delete
$config['delete_unused_files'] = true;
[151] Fix | Delete
$config['display_subcategory_products'] = true;
[152] Fix | Delete
$config['remember_basket'] = false;
[153] Fix | Delete
[154] Fix | Delete
/*
[155] Fix | Delete
* Define size of a preview image. If you don't want to display preview, set to null
[156] Fix | Delete
*/
[157] Fix | Delete
$config['image_preview_size'] = 250;
[158] Fix | Delete
[159] Fix | Delete
$config['images_sizes'] = array ( 0 => 75, 1 => 150, 2 => 180 );
[160] Fix | Delete
$config['max_dimension_of_image'] = 900;
[161] Fix | Delete
$config['admin_list'] = "25";
[162] Fix | Delete
$config['max_textarea_chars'] = 4000;
[163] Fix | Delete
$config['max_text_chars'] = 255;
[164] Fix | Delete
[165] Fix | Delete
/*
[166] Fix | Delete
* Allowed extensions to upload on server
[167] Fix | Delete
*/
[168] Fix | Delete
$config['allowed_extensions'] = 'pdf|swf|doc|docx|txt|xls|ppt|rtf|odt|ods|odp|rar|zip|7z|bz2|tar|gz|tgz|arj|jpg|jpeg|gif|png|mp3';
[169] Fix | Delete
[170] Fix | Delete
$config['before_amp'] = !strstr( $_SERVER['REQUEST_URI'], '?' ) ? '?' : null;
[171] Fix | Delete
[172] Fix | Delete
/*
[173] Fix | Delete
* Date formats
[174] Fix | Delete
*/
[175] Fix | Delete
$config['date_format_admin_default'] = 'Y-m-d H:i';
[176] Fix | Delete
$config['date_format_admin_orders'] = 'Y-m-d H:i';
[177] Fix | Delete
$config['date_format_customer_orders'] = 'Y-m-d H:i';
[178] Fix | Delete
[179] Fix | Delete
/*
[180] Fix | Delete
* Should the current page name in the navigation path be a link?
[181] Fix | Delete
* if not, set to: false
[182] Fix | Delete
*/
[183] Fix | Delete
$config['page_link_in_navigation_path'] = true;
[184] Fix | Delete
[185] Fix | Delete
/*
[186] Fix | Delete
* Advanced elements visibility
[187] Fix | Delete
* If you don't want them to be displayed, set to: false
[188] Fix | Delete
*/
[189] Fix | Delete
$config['display_advanced_options'] = true; // advanced options visibility
[190] Fix | Delete
$config['display_thumbnail_2'] = false; // thumbnail 2 visibility
[191] Fix | Delete
[192] Fix | Delete
/*
[193] Fix | Delete
* Directories
[194] Fix | Delete
*/
[195] Fix | Delete
$config['dir_core'] = 'core/';
[196] Fix | Delete
$config['dir_database'] = 'database/';
[197] Fix | Delete
$config['dir_database_pages'] = $config['dir_database'].'pages/';
[198] Fix | Delete
$config['dir_database_products'] = $config['dir_database'].'products/';
[199] Fix | Delete
$config['dir_libraries'] = $config['dir_core'].'libraries/';
[200] Fix | Delete
$config['dir_lang'] = $config['dir_database'].'translations/';
[201] Fix | Delete
$config['dir_templates'] = 'templates/';
[202] Fix | Delete
$config['dir_skin'] = $config['dir_templates'].$config['skin'].'/';
[203] Fix | Delete
$config['dir_files'] = 'files/';
[204] Fix | Delete
$config['dir_plugins'] = 'plugins/';
[205] Fix | Delete
[206] Fix | Delete
require_once $config['dir_core'].'common.php';
[207] Fix | Delete
[208] Fix | Delete
$config['cookie_admin'] = defined( 'CUSTOMER_PAGE' ) ? null : 'A';
[209] Fix | Delete
[210] Fix | Delete
if( defined( 'CUSTOMER_PAGE' ) && !isset( $sLang ) && LANGUAGE_IN_URL === true )
[211] Fix | Delete
$sLang = getLanguageFromUrl( );
[212] Fix | Delete
[213] Fix | Delete
$config['change_language_to_polish'] = true;
[214] Fix | Delete
if( !defined( 'CUSTOMER_PAGE' ) && !empty( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ) && $config['change_language_to_polish'] === true && preg_match( '/pl-|pl,|^pl$/', $_SERVER['HTTP_ACCEPT_LANGUAGE'] ) ){
[215] Fix | Delete
if( isset( $_POST['admin_lang'] ) && strlen( $_POST['admin_lang'] ) == 2 ){
[216] Fix | Delete
setCookie( 'sAdminLanguage', $_POST['admin_lang'], time( ) + 86400 );
[217] Fix | Delete
$_COOKIE['sAdminLanguage'] = $_POST['admin_lang'];
[218] Fix | Delete
}
[219] Fix | Delete
if( $config['admin_lang']!='pl' && !isset( $_COOKIE['sAdminLanguage'] ) ){
[220] Fix | Delete
setCookie( 'sAdminLanguage', 'pl', time( ) + 86400 );
[221] Fix | Delete
$_COOKIE['sAdminLanguage'] = 'pl';
[222] Fix | Delete
}
[223] Fix | Delete
if( isset( $_COOKIE['sAdminLanguage'] ) )
[224] Fix | Delete
$config['admin_lang']= $_COOKIE['sAdminLanguage'];
[225] Fix | Delete
}
[226] Fix | Delete
[227] Fix | Delete
if( isset( $sLang ) && is_file( $config['dir_lang'].$sLang.'.php' ) && strlen( $sLang ) == 2 ){
[228] Fix | Delete
setCookie( 'sLanguage'.$config['cookie_admin'], $sLang, time( ) + 86400 );
[229] Fix | Delete
define( 'LANGUAGE', $sLang );
[230] Fix | Delete
}
[231] Fix | Delete
else{
[232] Fix | Delete
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 )
[233] Fix | Delete
define( 'LANGUAGE', $_COOKIE['sLanguage'.$config['cookie_admin']] );
[234] Fix | Delete
else
[235] Fix | Delete
define( 'LANGUAGE', $config['default_lang'] );
[236] Fix | Delete
}
[237] Fix | Delete
[238] Fix | Delete
require_once defined( 'CUSTOMER_PAGE' ) ? $config['dir_lang'].LANGUAGE.'.php' : ( is_file( $config['dir_lang'].$config['admin_lang'].'.php' ) ? $config['dir_lang'].$config['admin_lang'].'.php' : $config['dir_lang'].LANGUAGE.'.php' );
[239] Fix | Delete
[240] Fix | Delete
$aMenuTypes = Array( 0 => $lang['Menu_0'], 1 => $lang['Menu_1'], 2 => $lang['Menu_2'], 3 => $lang['Menu_3'] );
[241] Fix | Delete
$aPhotoTypes = Array( 1 => $lang['Left'], 2 => $lang['Right'] );
[242] Fix | Delete
[243] Fix | Delete
$config['config'] = $config['dir_database'].'config/general.php';
[244] Fix | Delete
$config['config_lang'] = $config['dir_database'].'config/lang_'.LANGUAGE.'.php';
[245] Fix | Delete
[246] Fix | Delete
$config_db['pages'] = $config['dir_database'].LANGUAGE.'_pages.php';
[247] Fix | Delete
$config_db['pages_files'] = $config['dir_database'].LANGUAGE.'_pages_files.php';
[248] Fix | Delete
$config_db['products'] = $config['dir_database'].LANGUAGE.'_products.php';
[249] Fix | Delete
$config_db['products_pages'] = $config['dir_database'].LANGUAGE.'_products_pages.php';
[250] Fix | Delete
$config_db['products_files'] = $config['dir_database'].LANGUAGE.'_products_files.php';
[251] Fix | Delete
$config_db['payments_shipping'] = $config['dir_database'].LANGUAGE.'_payments_shipping.php';
[252] Fix | Delete
$config_db['orders_temp'] = $config['dir_database'].'orders_temp.php';
[253] Fix | Delete
$config_db['orders'] = $config['dir_database'].'orders.php';
[254] Fix | Delete
$config_db['orders_products'] = $config['dir_database'].'orders_products.php';
[255] Fix | Delete
$config_db['orders_ext'] = $config['dir_database'].'orders_ext.php';
[256] Fix | Delete
[257] Fix | Delete
$config['language'] = LANGUAGE;
[258] Fix | Delete
$config['version'] = '6.7';
[259] Fix | Delete
[260] Fix | Delete
$config['last_login'] = "1459328913";
[261] Fix | Delete
$config['before_last_login'] = "1459255077";
[262] Fix | Delete
[263] Fix | Delete
$config['manual_link'] = 'http://opensolution.org/Quick.Cart/docs/ext_6.6/?id='.( ( $config['admin_lang']=='pl' ) ? 'pl' : 'en' ).'-';
[264] Fix | Delete
[265] Fix | Delete
$config['default_pages_template'] = "page.php";
[266] Fix | Delete
$config['default_products_template'] = "product.php";
[267] Fix | Delete
[268] Fix | Delete
define( 'DIR_CORE', $config['dir_core'] );
[269] Fix | Delete
define( 'DIR_DATABASE', $config['dir_database'] );
[270] Fix | Delete
define( 'DIR_DATABASE_PAGES', $config['dir_database_pages'] );
[271] Fix | Delete
define( 'DIR_DATABASE_PRODUCTS', $config['dir_database_products'] );
[272] Fix | Delete
define( 'DIR_FILES', $config['dir_files'] );
[273] Fix | Delete
define( 'DIR_LIBRARIES', $config['dir_libraries'] );
[274] Fix | Delete
define( 'DIR_PLUGINS', $config['dir_plugins'] );
[275] Fix | Delete
define( 'DIR_LANG', $config['dir_lang'] );
[276] Fix | Delete
define( 'DIR_TEMPLATES', $config['dir_templates'] );
[277] Fix | Delete
define( 'DIR_SKIN', $config['dir_skin'] );
[278] Fix | Delete
[279] Fix | Delete
define( 'DB_PAGES', $config_db['pages'] );
[280] Fix | Delete
define( 'DB_PAGES_FILES', $config_db['pages_files'] );
[281] Fix | Delete
define( 'DB_PRODUCTS', $config_db['products'] );
[282] Fix | Delete
define( 'DB_PRODUCTS_FILES', $config_db['products_files'] );
[283] Fix | Delete
define( 'DB_PRODUCTS_PAGES', $config_db['products_pages'] );
[284] Fix | Delete
define( 'DB_PAYMENTS_SHIPPING', $config_db['payments_shipping'] );
[285] Fix | Delete
define( 'DB_ORDERS_TEMP', $config_db['orders_temp'] );
[286] Fix | Delete
define( 'DB_ORDERS', $config_db['orders'] );
[287] Fix | Delete
define( 'DB_ORDERS_PRODUCTS', $config_db['orders_products'] );
[288] Fix | Delete
define( 'DB_ORDERS_EXT', $config_db['orders_ext'] );
[289] Fix | Delete
define( 'DB_FAILED_LOGS', DIR_DATABASE.'logs.txt' );
[290] Fix | Delete
[291] Fix | Delete
define( 'DB_CONFIG', $config['config'] );
[292] Fix | Delete
define( 'DB_CONFIG_LANG', $config['config_lang'] );
[293] Fix | Delete
[294] Fix | Delete
define( 'MAX_DIMENSION_OF_IMAGE', $config['max_dimension_of_image'] );
[295] Fix | Delete
define( 'HIDDEN_SHOWS', $config['hidden_shows'] );
[296] Fix | Delete
define( 'DISPLAY_EXPANDED_MENU', $config['display_expanded_menu'] );
[297] Fix | Delete
define( 'WYSIWYG', $config['wysiwyg'] );
[298] Fix | Delete
define( 'VERSION', $config['version'] );
[299] Fix | Delete
define( 'TIME_DIFF', $config['time_diff'] );
[300] Fix | Delete
define( 'SESSION_KEY_NAME', md5( dirname( $_SERVER['SCRIPT_FILENAME'] ) ) );
[301] Fix | Delete
define( 'DISPLAY_SUBCATEGORY_PRODUCTS', $config['display_subcategory_products'] );
[302] Fix | Delete
[303] Fix | Delete
if( defined( 'DEVELOPER_MODE' ) ){
[304] Fix | Delete
$sValue = (float) phpversion( );
[305] Fix | Delete
if( $sValue < '5.2' )
[306] Fix | Delete
exit( '<h1>Required PHP version is <u>5.2.0</u>, your version is '.phpversion( ).'</h1>' );
[307] Fix | Delete
elseif( defined( 'ADMIN_PAGE' ) && ( !is_file( $config_db['pages'] ) || ( is_file( $config_db['pages'] ) && !is_writable( $config_db['pages'] ) ) ) ){
[308] Fix | Delete
exit( '<h1>File <u>'.$config_db['pages'].'</u> not exists or is not writable</h1>' );
[309] Fix | Delete
}
[310] Fix | Delete
}
[311] Fix | Delete
?>
[312] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function