AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 52.15.35.129


Current Path : /var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/cms/
Upload File :
Current File : /var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/cms/franchise_post.php

<?php

include('includes/config.php');

if ($_SERVER['REQUEST_METHOD'] == 'POST' && $_POST['action'] == 'save')
{
	// Update franchise text FR
	$sql = "
		UPDATE register_history
		SET var_text = '".str_replace("'", "\'", utf8_decode($_REQUEST['var_text_fr']))."'
		WHERE id_var = '".$_REQUEST['id_var_fr']."'
		LIMIT 1
	";
	$db->query($sql);
	
	// Update franchise text EN
	$sql = "
		UPDATE register_history
		SET var_text = '".str_replace("'", "\'", utf8_decode($_REQUEST['var_text_en']))."'
		WHERE id_var = '".$_REQUEST['id_var_en']."'
		LIMIT 1
	";
	$db->query($sql);
	
	$_SESSION['post']['franchise'] = get_franchise_info($_REQUEST['franchise_id']);
	

	
}

header('location: franchise.php');
exit();