Location: PHPKode > projects > Warp.cms - php/mysql content management > warp_121/install/advanced_config/config.php
<?php

// [configuration module v.1.2.1]
// xantis.warp.cms - version 1.2
// (c) 2002 xantis - all rights reserved
// this code is registered and protected by international copyrights laws
// this is the sample (demo) configuration file


if (empty($yfilename)) {
	$yfilename = 'config.php';
} //end if



//################################################## MySQL

//---------------------------------------conection param to mysql
	$dbhost = "localhost:3306";		//database host ("localhost:mysql_port" or enter "IP:mysql_port" - usually mysql port is 3306 )
	$dbname = "warp_cms_v121";		//database name
	$loginname = "{the mysql username}";		//mysql user name
	$loginpass = "{the mysql password}";		//mysql password for that user name
//---------------------------------------

//##################################################


//-------------------------------------------------------------------------------------------------------- warp.cms configuration [tmplx]


//################################################## GLOBAL


//---------------------------------------protection (session, counter, voting, prod_basket)
$y_warp_encode_str = '2002::warp::cms::xantis::11::';			// internal secure
$ywarp_count_timeout = '6000'; 						//refresh protection (10 minutes = 600 seconds)
$y_warp_xdate = date("Y-m-d");						//warp date
$y_warp_xtime = date("H:i:s");						//warp time
//---------------------------------------


//##################################################



//################################################## RUNTIME


//---------------------------------------- PHP [important settings]

//max execution time of php (default 30) [300 recommended]
ini_set(max_execution_time, '300');

//ignore the user aborts and continue till end [must be 1]
ini_set (ignore_user_abort, '1');

// magic quotes runtime in HTML docs, SQL results (0=OFF ; 1=ON) [must be 0]
ini_set (magic_quotes_runtime, '0');

// magic quotes GPC in HTML docs, SQL results (0=OFF ; 1=ON) [must be 1]
ini_set (magic_quotes_gpc, '1');

//variables order (E=environment, G=get, P=post, C=cookie, S=server) [must be EGPCS]
ini_set (variables_order, 'EGPCS');

//register arg with GET (0=OFF ; 1=ON) [must be 1]
ini_set (register_argc_argv, '1');

//register globals (0=OFF ; 1=ON) [recommended 0]
ini_set (register_globals, '0');

//y2k compliance (0=OFF ; 1=ON) [recommended 0]
ini_set (y2k_compliance, '0');

//allow opening remote files (0=OFF ; 1=ON) [must be 1]
ini_set (allow_url_fopen, '1');

//----------------------------------------


//---------------------------------------- MySQL
//connect or die
$dbx_warp_id_mysql_link = @mysql_connect($dbhost, $loginname, $loginpass)
or die ('Database Server: Connection ERROR !');
//select or die
@mysql_select_db ($dbname, $dbx_warp_id_mysql_link) 
or die ('Database Server: Database Selection ERROR !');
//-----------------------------------


//----------------------------------- GET REAL AUTH VARS

function warp_auth_pro_get()  {

        global $PHP_AUTH_USER, $PHP_AUTH_PW;
        global $HTTP_SERVER_VARS, $HTTP_ENV_VARS;
        global $REMOTE_USER, $AUTH_USER, $REMOTE_PASSWORD, $AUTH_PASSWORD;

	//get real php_auth_user
        if (empty($PHP_AUTH_USER)) {
            if (!empty($_SERVER) && isset($_SERVER['PHP_AUTH_USER'])) {
                $PHP_AUTH_USER = $_SERVER['PHP_AUTH_USER'];
            } //end if
            else if (!empty($HTTP_SERVER_VARS) && isset($HTTP_SERVER_VARS['PHP_AUTH_USER'])) {
                $PHP_AUTH_USER = $HTTP_SERVER_VARS['PHP_AUTH_USER'];
            } //end else if
            else if (isset($REMOTE_USER)) {
                $PHP_AUTH_USER = $REMOTE_USER;
            } //end else if
            else if (!empty($_ENV) && isset($_ENV['REMOTE_USER'])) {
                $PHP_AUTH_USER = $_ENV['REMOTE_USER'];
            } //end else if
            else if (!empty($HTTP_ENV_VARS) && isset($HTTP_ENV_VARS['REMOTE_USER'])) {
                $PHP_AUTH_USER = $HTTP_ENV_VARS['REMOTE_USER'];
            } //end else if
            else if (@getenv('REMOTE_USER')) {
                $PHP_AUTH_USER = getenv('REMOTE_USER');
            } //end else if
            else if (isset($AUTH_USER)) {
                $PHP_AUTH_USER = $AUTH_USER;
            } //end else if
            else if (!empty($_ENV) && isset($_ENV['AUTH_USER'])) {
                $PHP_AUTH_USER = $_ENV['AUTH_USER'];
            } //end else if
            else if (!empty($HTTP_ENV_VARS) && isset($HTTP_ENV_VARS['AUTH_USER'])) {
                $PHP_AUTH_USER = $HTTP_ENV_VARS['AUTH_USER'];
            } //end else if
            else if (@getenv('AUTH_USER')) {
                $PHP_AUTH_USER = getenv('AUTH_USER');
            } //end else if
        } //end if

	//get real php_auth_pw
        if (empty($PHP_AUTH_PW)) {
            if (!empty($_SERVER) && isset($_SERVER['PHP_AUTH_PW'])) {
                $PHP_AUTH_PW = $_SERVER['PHP_AUTH_PW'];
            } //end if
            else if (!empty($HTTP_SERVER_VARS) && isset($HTTP_SERVER_VARS['PHP_AUTH_PW'])) {
                $PHP_AUTH_PW = $HTTP_SERVER_VARS['PHP_AUTH_PW'];
            } //end else if
            else if (isset($REMOTE_PASSWORD)) {
                $PHP_AUTH_PW = $REMOTE_PASSWORD;
            } //end else if
            else if (!empty($_ENV) && isset($_ENV['REMOTE_PASSWORD'])) {
                $PHP_AUTH_PW = $_ENV['REMOTE_PASSWORD'];
            } //end else if
            else if (!empty($HTTP_ENV_VARS) && isset($HTTP_ENV_VARS['REMOTE_PASSWORD'])) {
                $PHP_AUTH_PW = $HTTP_ENV_VARS['REMOTE_PASSWORD'];
            } //end else if
            else if (@getenv('REMOTE_PASSWORD')) {
                $PHP_AUTH_PW = getenv('REMOTE_PASSWORD');
            } //end else if
            else if (isset($AUTH_PASSWORD)) {
                $PHP_AUTH_PW = $AUTH_PASSWORD;
            } //end else if
            else if (!empty($_ENV) && isset($_ENV['AUTH_PASSWORD'])) {
                $PHP_AUTH_PW = $_ENV['AUTH_PASSWORD'];
            } //end else if
            else if (!empty($HTTP_ENV_VARS) && isset($HTTP_ENV_VARS['AUTH_PASSWORD'])) {
                $PHP_AUTH_PW = $HTTP_ENV_VARS['AUTH_PASSWORD'];
            } //end else if
            else if (@getenv('AUTH_PASSWORD')) {
                $PHP_AUTH_PW = getenv('AUTH_PASSWORD');
            } //end else if
        } //end if

} //END FUNCTION

warp_auth_pro_get();

//-----------------------------------


//----------------------------------- GET CFG VARIABLES FROM MySQL


function w_extract_main_vars () {


	$www_warp_cfg_vars = '';


	// get config
	$result = @mysql_query(" SELECT var_name, var_value FROM config ORDER BY id ASC");
	$number_of_rows = @mysql_num_rows($result);

	//check mysql error
	if (@mysql_errno() == 0) {
		for ($i = 0; $i < $number_of_rows; $i++) {
			$record = @mysql_fetch_row($result);
			$www_warp_cfg_vars .= '$'.trim($record[0]).' = '."'".str_replace("'", "\'", trim($record[1]))."'".';'."\n";
		} //end for
	} //end if
	else {
		$xresult = @mysql_error();
		die ("<br>&nbsp;&nbsp;&nbsp;".$xresult);
	} //end else

	@mysql_free_result ($result);


	//-------------------------

	return $www_warp_cfg_vars ;


} //end if


//register the variables
$sgett_warp_cfg_vars = w_extract_main_vars ();
eval (' '."\n".$sgett_warp_cfg_vars.' '."\n");
//echo $sgett_warp_cfg_vars;
$sgett_warp_cfg_vars = '';

//-----------------------------------


//----------------------------------- PHP [mail server setting]
//mail function settings
ini_set (sendmail_from, $y_warp_admin_email);
ini_set (SMTP, $y_warp_mail_server_name);
//-----------------------------------


//################################################## END RUNTIME




//################################################## TEXT SETTING (LANGUAGE ENGLISH)


//############################### MAIN TEXT

//----------------------------------------main config

$ymenu_name = ':: menu ::';
$ytxtcomments_name = ':: comments ::';
$ytxtbanners_name = ':: advertising ::';
$warp_user_cannot_reg_msg = 'User registration has been disabled for this website.';
$ywarp_anonymous_text = 'anonymous';
$ywarp_logged_in_notes = 'You are logged in as';
$warp_authentif_msg = 'Access restricted for registered users only !';
$warp_user_new_register_txt = 'Not yet registered ? Register Now !';
$warp_user_forget_passw = 'Forgot your username or password ?';
$warp_user_admin_contact = 'Contact the website administrator';
$warp_user_office_contact = 'Contact Us';
$warp_click_here_txt = 'Click here ...';
$warp_registrat_fail = 'Authorization Failed !';
$warp_enquiry_adm = 'Write down your message';
$warp_print_process_txt = 'Processing for printing ...';
$warp_request_process_txt = 'Requesting ...';
$warp_deny_acc_sect = 'You are not allowed to access this section';
$y_warp_total_text = 'total';
$y_warp_next_text = 'Next >>';
$y_warp_prev_text = '<< Prev';
$y_warp_back_text = 'Back';
$y_warp_back_text_x = 'Return to website';
$y_warp_src_text_bttn = 'Search !';
$y_warp_filter_text_bttn = 'Filter !';
$y_warp_post_text_bttn = 'Post !';
$y_warp_preview_text_bttn = 'Preview';
$y_warp_send_text_bttn = 'Send !';
$y_warp_filter_text = 'Filter by';
$y_warp_filtered_text = 'Filtered';
$y_warp_filter_remove = 'Remove filtering !';
$y_warp_print_text = 'Print ...';
$y_warp_download_text = 'Download ...';
$y_warp_resource_text = 'View ...';
$y_warp_edit_text = 'Edit...';
$y_warp_print_ready_txt = 'Print Ready Format';
$y_warp_refresh_text = 'REFRESH !';
$y_warp_keyword_txt = 'keyword';
$y_warp_profile_text = 'Your Profile';
$y_warp_new_user_text = 'New User';
$y_warp_next_step = 'Next Step';
$y_warp_update_txt = 'Update';
$y_warp_text_okay = 'OK';
$y_warp_err_data_failure = 'ERROR : General data failure. Restart your browser.';
$y_warp_page_expired = 'This page have expired !';
$y_warp_direct_file_acc_msg_reff = 'Direct File Access DENIED !';
$y_warp_fladet_title = '::warp.cms :: flash player detection';
$y_warp_fladet_msg_01 = 'If the right version of the Macromedia Flash Player will be detected in your internet browser you will be redirected automatically to the main page.';
$y_warp_fladet_msg_02 = 'If you are not redirected automatically within 20 seconds, please follow this link and go to the flash player update page.';

//----------------------------------------


//############################### MODULE PRIVATE TEXT


//----------------------------------------votings module [ok]
$yvoting_name = ':: survey ::';
$yvoting_bttn_txt = 'Cast vote !...';
$yvoting_result_title = 'Survey results';
$yvoting_question = 'Question';
$yvoting_thanks = 'Thank you for casting your vote.';
$yvoting_done = 'You have already cast your vote.';
$yvoting_err = 'You must select an answer to cast your vote !';
$yvoting_total_txt = 'Total votes';
$yvoting_access_text = 'Access';
$yvoting_public_text = 'public';
$yvoting_restricted_text = 'registered users';
//----------------------------------------



//----------------------------------------intro module [ok]
$yimenu_title = 'Quick preview';
//----------------------------------------



//----------------------------------------news module [ok]
$y_warp_news_text = 'News';
$y_warp_news_subj = 'Title';
$y_warp_news_date = 'Date';
$y_warp_news_addon = 'news added on';
//----------------------------------------



//----------------------------------------events module [ok]
$y_warp_events_text = 'Events';
$y_warp_events_subj = 'Title';
$y_warp_events_date = 'Date';
$y_warp_events_sdate = 'Starting Date';
$y_warp_events_edate = 'Ending Date';
$y_warp_events_curr_date = 'Current Date';
$y_warp_events_ev_date = 'Event Timing';
$y_warp_events_src_hint = 'Show all events';
$y_warp_events_src_hint_o = 'older than';
$y_warp_events_src_hint_n = 'newer than';
$y_warp_events_src_hint_f = 'for';
$y_warp_events_view_details = 'Event Details';
$y_warp_events_contacting = 'Event Contact';
$y_warp_events_contact_txt = 'Contact us concerning this event';
$y_warp_events_reff_x = 'Reff';
//----------------------------------------



//----------------------------------------statistics and counter module [ok]
$ystats_prev_visitors_txt = 'Previous visitors';
$ystats_start_date_txt = 'starting from';
$ystats_visitors = 'visitor(s)';
$ystats_total = 'Total Visitors';
$ystats_os = 'Total Visitors by Operating System';
$ystats_browser = 'Total Visitors by Browser';
$ystats_miscx = 'Other Statistics';
//----------------------------------------



//----------------------------------------forum module [ok]
$ywarp_categ_lock_txt = 'Locked';
$yforum_last_topic = 'Last topic';
$yforum_last_reply = 'Last reply';
$yforum_sender = 'Sender';
$yforum_message = 'Message';
$yforum_subject = 'Subject';
$yforum_posted_on = 'Posted on';
$yforum_created_on = 'Created on';
$yforum_updated_on = 'Updated on';
$yforum_sender_name = 'Sender Name';
$yforum_status_post = 'Sending status';
$yforum_process_post = 'Processing data ...';
$yforum_err_post = 'Incomplete data. Return and post it again.';
$yforum_thanks_post = 'Thank you for posting your message.';
$yforum_forum_title_short = 'Forums';
$yforum_categ_title = 'Category Listing';
$yforum_categ_title_short = 'Categories';
$yforum_categ_title_selected = 'Category';
$yforum_topic_title = 'Message Topic Listing';
$yforum_topic_title_short = 'Message Topic';
$yforum_topics = 'Topics';
$yforum_topic_title_selected = 'Topic';
$yforum_topic_post_new = 'Post A New Message Topic';
$yforum_topic_update_it = 'Edit Your Message Topic';
$yforum_reply_title = 'Message Reply Listing';
$yforum_reply_title_short = 'Message Reply';
$yforum_replies = 'Replies';
$yforum_reply_title_selected = 'Reply';
$yforum_reply_post_new = 'Post A New Message Reply';
$yforum_reply_update_it = 'Edit Your Message Reply';
$yforum_announce_new_reply = 'New Forum Reply to your Topic ';
$yforum_message_preview = 'Forum Message Preview';
$yforum_err_accdeny_toedit = 'Access denied ! Cannot edit this message from your profile.';
$yforum_thanks_updated = 'Message successfully updated';
//----------------------------------------



//---------------------------------------downloads module [ok]
$y_warp_downloads_text = 'Downloads';
$y_warp_downloads_text_p = 'Product Downloads';
$y_warp_downloads_subj = 'Title';
$y_warp_downloads_descr = 'Description';
$y_warp_downloads_addon = 'date';
$y_warp_downloads_rankx = 'download(s)';
//----------------------------------------



//---------------------------------------resources module [ok]
$y_warp_resources_text = 'Resources';
$y_warp_resources_text_p = 'Product Resources';
$y_warp_resources_subj = 'Title';
$y_warp_resources_descr = 'Description';
$y_warp_resources_addon = 'date';
$y_warp_resources_rankx = 'view(s)';
//----------------------------------------


//---------------------------------------links module [ok]
$y_warp_links_text = 'Links';
$y_warp_links_subj = 'Title';
$y_warp_links_descr = 'Description';
$y_warp_links_url = 'URL';
$y_warp_links_hits = 'hit(s)';
$y_warp_links_report = 'Report a broken link...';
//----------------------------------------


//---------------------------------------jobs module [ok]
$y_warp_jobs_text = 'Jobs';
$y_warp_jobs_subj = 'Title';
$y_warp_jobs_descr = 'Description';
$y_warp_jobs_locx = 'Location';
$y_warp_jobs_sall = 'Sallary';
$y_warp_jobs_exp = 'expiry on';
$y_warp_jobs_apply = 'Apply for this job...';
$y_warp_jobs_applying = 'Applying for position no.';
$y_warp_jobs_yourcv = 'Your CV (text)...';
//----------------------------------------



//----------------------------------------users module [ok]
$ywusr_thewelcome_xmain = 'Your profile - Welcome';
$ywusr_thewelcome_title = 'Welcome';
$ywusr_thewelcome_note = 'From your profile you can update your details and login information.';
$ywusr_thewelcome_note_ecomm = 'You may also track your orders details and access downloads related to your orders.';
$ywusr_password_fgt_retrieve = 'Lost password';
$ywusr_hhty_newsletter_subscribe = 'I want to receive the newsletter and special offers on my e-mail address. ';
$ywusr_hhty_view_agreement = 'View The Agreement';

$ywusr_user_forcompany = 'Legal Representative';
$ywusr_xentire_name = 'Customer Name';
$ywusr_xentire_addr = 'Customer Address';
$ywusr_xentire_company = 'Customer Company';
$ywusr_xentire_phone = 'Customer Phone';
$ywusr_xentire_email = 'Customer Email';
$ywusr_xentire_cxinfo = 'Customer Info';

$ywusr_user_areatlx = 'Website Users';
$ywusr_user_zz_user = 'User';
$ywusr_user_id = 'User ID (Login Name)';
$ywusr_user_pass = 'User password';
$ywusr_user_repass = 'Retype User password';
$ywusr_hint_fgt = 'You must provide your email address in order to get your login info.';
$ywusr_hint_regwithemlverif = 'Your password will be sent on your e-mail address.';
$ywusr_first_name = 'First Name';
$ywusr_second_name = 'Last Name';
$ywusr_company = 'Company';
$ywusr_address = 'Address';
$ywusr_city = 'City';
$ywusr_reg_st = 'Region / State';
$ywusr_zip_code = 'Zip Code';
$ywusr_country = 'Country';
$ywusr_phone = 'Phone';
$ywusr_email = 'Email';
$ywusr_nocountry = 'NO COUNTRY SELECTED';
$ywusr_register_title = 'New User Registration';
$ywusr_edit_prof_title = 'View / Edit your details information';
$ywusr_edit_prof_title_idx = 'View / Edit your login information';
$ywusr_add_step_one = 'Choose a User ID and a Password';
$ywusr_add_step_one_e = 'Choose a User ID (your Password will be sent on your e-mail address)';
$ywusr_add_step_xtitlex = 'User Profile';
$ywusr_add_step_two = 'User Details';
$ywusr_add_step_thr = 'User Login Info';
$ywusr_new_profile = 'I Agree / Register Me Now !';
$ywusr_status_of_orders = 'User Orders Tracking';
$ywusr_status_of_orders_view_title = 'View your orders tracking';
$ywusr_status_of_orders_viewedon = 'Tracked on';

$ywusr_status_txt = 'Status';
$ywusr_process_txt = 'Processing New User Registration ...';
$ywusr_process_upd_txt = 'Processing Your Profile Update ...';
$ywusr_process_fgt_txt = 'Processing your request ...';
$ywusr_err_01 = 'Empty fields not allowed.';
$ywusr_err_02 = 'Your password does not match the retype password field.';
$ywusr_err_03 = 'This User ID is already in use. Choose another user ID.';
$ywusr_err_04 = 'Email address is not valid. Check the Email address again.';
$ywusr_err_05 = 'User Name or Password too short';
$ywusr_err_06 = 'This Email address is not registered with this website.';
$ywusr_err_07 = 'This Email Address is already in use by other User. Check the Email address again.';
$ywusr_err_08 = 'User ID not accepted. Choose another User ID.';
$ywusr_xok_01 = 'You have been registered. Proceed to next step. You must complete the user information for the validation of your account.';
$ywusr_xok_02 = 'Your profile info has been updated.';
$ywusr_xok_03 = 'Login info has been sent to your e-mail address';

$ywusr_already_logon_title = 'It seems that you are already logged in !';
$ywusr_already_logon = 'Login ID';
$ywusr_must_logout = 'Log out first (restart your browser) and return to new user registration.';

$ywusr_fgt_title = 'Forget User ID or Password';
$ywusr_fgt_title_x = 'Enter your Email Address';
$ywusr_fgt_txt_bttn = 'Email me my Login Info';
$ywusr_send_by_mail = 'Your login information';

$ywusr_adm_cont_err_01 = 'Name not accepted. Too short.';
$ywusr_adm_cont_err_02 = 'Message not accepted. Too short.';
$ywusr_adm_cont_oky = 'Your message has been sent. You will be contacted in the shortest time';
$ywusr_adm_cont_process = 'Sending your message ...';
$ywusr_adm_cont_status = 'Status';
$ywusr_adm_cont_frm_name = 'Admin Contact Form';
$ywusr_adm_cont_frm_name_ofx = 'Contact Form';
$ywusr_adm_cont_xname = 'Sender Name';
$ywusr_adm_cont_xemail = 'Sender Email';
$ywusr_adm_cont_xmsg = 'Message';
$ywusr_adm_cont_bttn = 'Send Message !';
$ywusr_adm_cont_lnk_txt = '@ Admin';
$ywusr_adm_cont_lnkoff_txt = '@ Contact';
//----------------------------------------



//----------------------------------------products module [ok]
$yprods_item_price = 'Price';
$yprods_item_noprice = 'Available on request only.';
$yprods_item_weight = 'Package Delivery Weight';
$yprods_item_package = 'Package u.m.';
$yprods_show_title = 'Products';
$yprods_back_text = 'Back to products page';
$yprods_categ_title = 'Product Categories';
$yprods_categ_title_xs = 'Product Category';
$yprods_categ_title_short = 'Categories';
$yprods_categ_title_xs_short = 'Category';
$yprods_categ_view_prods = 'View Products';
$yprods_item_title = 'Product Items';
$yprods_item_title_xs = 'Product Item';
$yprods_item_title_short = 'Items';
$yprods_item_view_detail = 'View Full Details';
$yprods_item_xtotal_views = 'view(s)';
$yprods_item_code = 'code';
$yprods_item_code_full = 'Product Code';
$yprods_item_pname = 'Product Name';
$yprods_item_descr = 'Description';
$yprods_item_details = 'Details';
$yprods_item_promo = 'Promotional Offer !';
$yprods_item_specifications = 'Specifications';

$yprods_item_delivery_method = 'Delivery Method';
$yprods_item_delivery_method_p = 'Delivery by postal service';										//postal delivery note
$yprods_item_delivery_method_d = 'Download delivery (free of delivery charge)';								//download delivery note
$yprods_item_delivery_method_s = 'Service activation (no delivery charge)';								//service delivery note
$yprods_item_delivery_pst_note = 'If apply, the delivery charge will be calculated according to delivery country.';			//postal special note
$yprods_item_delivery_dwn_note = 'After the payment the download will be activated';							//download special note

$yprods_item_qty = 'Quantity';
$yprods_item_cartadd_hint = 'Quantity of this product in your shopping basket.';
$yprods_item_cartdelete = 'Remove this product from your shopping basket !';
$yprods_item_cartprocess = 'Processing your shopping basket ...';
$yprods_item_askfordetails = 'Ask for a detailed offer !';
$yprods_item_reffer_x = 'Reff';

$yecomm_shoppingcart_title = 'Your Shopping Basket';
$yecomm_addtocart = 'Update Your Shopping Basket';
$yecomm_shoppingcart = 'Shopping Basket';
$yecomm_your_shoppingcart = 'Shopping Basket Content';
$yecomm_your_shoppingcart_s2 = 'Order Validation';
$yecomm_your_shoppingcart_s3 = 'Order Preview';
$yecomm_your_shoppingcart_s4 = 'Payment';
$yecomm_your_shoppingcart_ns = 'Proceed to Next Step';
$yecomm_your_shoppingcart_txt_ordernow = 'Order Now !';
$yecomm_cart_user_note = 'Customer Name(s) and Address will be used as delivery address (if apply) and also for the payment.';
$yecomm_cart_user_note_xplus = 'Check your profile details before proceeding to next step.';
$yecomm_showcart = 'View Your Shopping Basket';
$yecomm_cart_items = 'Shopping Basket Items';
$yecomm_buyonline = 'Buy Online';

$yecomm_crt_subtotal_price = 'Total Price';
$yecomm_crt_excepting_vat = 'excluding VAT';
$yecomm_crt_includding_vat = 'including VAT';
$yecomm_crt_includding_dev_p = 'including delivery charge';
$yecomm_vat_tax = 'Total VAT Tax';
$yecomm_total_weight = 'Weight';
$yecomm_total_deliv_chrg = 'Delivery Charge';
$yecomm_crt_totals = 'GRAND TOTAL';
$yecomm_crt_total_topay = 'TOTAL AMOUNT TO PAY';
$yecomm_crt_total_deliv_price = 'TOTAL Delivery Charge';
$yecomm_crt_total_deliv_weight = 'TOTAL Delivery Weight';
$yecomm_crt_total_deliv_p_list = 'List of item(s) that apply for delivery charge (postal service)';
$yecomm_total_rows = 'item(s)';
$yecomm_for_prepos_txt = 'for';

$yecomm_crt_errorx_overflow = 'Maximum items per order : 99. Cannot proceed to next step. Remove some items from your shopping basket and return.';
$yecomm_crt_errorx_innerflow = 'Your shopping basket is empty !';
$yecomm_incomplete_usrdata = 'Incomplete user info. Update your profile info before accessing this page.';

$yecomm_cart_add_ok = 'Your shopping basket has been successfuly updated.';
$yecomm_cart_add_err_00 = 'You must be logged in as a registered user.';
$yecomm_cart_add_err_01 = 'Shopping Basket data failure. Restart your browser.';
$yecomm_cart_add_err_02 = 'Quantity value is not numeric.';
$yecomm_cart_add_err_03 = 'Quantity value maximum admited';
$yecomm_cart_add_err_04 = 'Quantity value must be integer.';
$yecomm_cart_add_err_05 = 'Quantity value must be positive';
$yecomm_cart_add_err_06 = 'Maximum items per order : 99. Cannot add this item.';

$yecomm_deliv_vat_znote = 'VAT tax and delivery charge are calculated according with delivery country.';
$yecomm_deliv_time_note = 'Usually the orders that require delivery via postal service are delivered within 10-15 business days from Monday to Friday (8.00-17.00 local time).';
$yecomm_deliv_availab_note = 'The orders are completed in according to the stock availability.';

$yecomm_order_msg_oky = 'Your order has been accepted.';
$yecomm_order_msg_err_01 = 'Security violation !';
$yecomm_order_msg_err_02 = 'Incomplete profile info. You must update your profile information.';
$yecomm_order_msg_err_03 = 'Your User Profile Information has been changed since last accessing your shopping basket. Return to website and revalidate your shopping basket content.';
$yecomm_order_msg_err_04 = 'Your shopping basket has been changed since last accessing. Return to website and revalidate your shopping basket content.';

$yecomm_order_ord_no = 'Order id';
$yecomm_order_ord_txtdate = 'Order date';
$yecomm_order_ord_txttime = 'Order time';
$yecomm_order_ord_txtstat = 'Order status';
$yecomm_order_ord_txtstatx = 'Order status (details)';
$yecomm_order_ord_print_previewx = 'View / Print this Order';
$yecomm_order_invoice_prof = 'Order / Proform Invoice no.';
$yecomm_order_info = 'This order has been made via website';
$yecomm_order_ip_addr = 'IP address of the customer';
$yecomm_order_server_time = 'Server Time';
$yecomm_order_xsafety_note = 'WARNING ! Do not press other buttons within your browser except the buttons that will be displayed within the page. Pressing other buttons like "Refresh" or "Back" will result in loosing this transaction.';
$yecomm_order_cancel = 'CANCEL the Order (return to website)';
$yecomm_order_accept = 'ACCEPT the Order (next step)';
$yecomm_order_gnote = 'You are about to ask for a NEW Order. Your order will be generated according with your last valid shopping basket content.';
$yecomm_order_processing = 'Processing a new order ...';
$yecomm_order_status = 'Status';
$yecomm_order_vbck_mailsubj = 'New order';

$yecomm_vendor_ty_txt = 'VENDOR';
$yecomm_vendor_company_txt = 'Vendor Company';
$yecomm_vendor_ty_cust_txt = 'CUSTOMER / DELIVERY TO';
$yecomm_yhh_country_origin = 'Origin Country';
$yecomm_yhh_country_destin = 'Destination Country';
$yecomm_vendor_fulladdr_txt = 'Vendor Address';
$yecomm_vendor_phone_txt = 'Vendor Phone';
$yecomm_vendor_email_txt = 'Vendor Email';
$yecomm_vendor_regcode_txt = 'Registration Code';

$yecomm_order_status_valid = 'payed, completed';
$yecomm_order_status_valid_wait = 'payed, waiting for confirmation';
$yecomm_order_status_invalid = 'unpayed, canceled';
$yecomm_order_status_invalid_wait = 'unpayed, waiting for payment';
$yecomm_order_status_unknown = 'status error (unknown)';
$yecomm_order_usr_list = 'Orders list';
$yecomm_order_usr_note = 'In order details you will find : detailed order status, order preview, downloads (if any related to that order).';
$yecomm_order_usr_det = 'Order details';
$yecomm_order_usr_downloads = 'Order Downloads';
$yecomm_order_dwn_emptynote = 'There are no downloads related to this order.';
$yecomm_order_dwn_emptynote_2 = 'If there are any downloads related to this order they are locked because this order is not yet payed and confirmed.';
$yecomm_order_dwn_denied = 'Download denied (The package has been already downloaded.) !';
$yecomm_order_reffx_contact = 'Reff order no.';

//----------------------------------------


//##################################################




//################################################## SECURITY ASSURE


function xhalt_hack () {

	global $xnt_control_var, $yfilename, $ywebsite_addr;

	$ywff = base64_encode($yfilename);
	$ywff = rawurlencode($ywff);

	$ylocal_secure_addr = "$ywebsite_addr".'secure.php?ywff='."$ywff";

	if ($xnt_control_var <> 'xnt2002warp.cms') {
		header("Location: $ylocal_secure_addr");
	} //end if
} //end function

//----------------------------

xhalt_hack ();

//################################################## END



// end of php code

?>
Return current item: Warp.cms - php/mysql content management