<?php

  //  $cc=$_GET['cc'];

//Here is the Security mod xml file.  You also need to make the edits to your scripts that are outside of the normal opencart structure.  Below is the code you need to add to your custom scripts:

session_start();
if (isset($_SESSION['logged_in'])) {
	$log=$_SESSION['logged_in']['log'];
	$log2=$_SESSION['logged_in']['log2'];
	$userC=$_SESSION['logged_in']['cust_id'];
	if (isset($_GET['log']) && $_GET['log'] != $log) {
		header("Location: $loc2/index.php?route=account/logout");
	}
} else {
	/*header('Location: http://www.galliumo.com/sany9/index.php?route=common/home');*/
}

//You can uncomment the header line after the else if you want them to be redirected to the home page to login if they are not currently logged in.  This would be if they were to enter the url to go directly to a certain page.

//Bobby



?>
