|
echo "IN agency_agencyAdmin_homePage.php-3";
?>
|
|
What would you like to do? |
|
|
|
|
|
|
|
|
|
|
echo "IN agency_agencyAdmin_homePage.php-4";
//******************Alex
if ($this->session->userdata('id') >0)
$agency_id=$this->session->userdata('id');
$agency_type=$this->session->userdata('type');
if (isset($_COOKIE['cookie_agency_id']))
$agency_id = ($_COOKIE['cookie_agency_id']);
else
if ($agency_id > 0)
setcookie("cookie_agency_id", $agency_id);
else
echo "agency_id not set";
if (isset($_COOKIE['cookie_agent_type']))
$agent_type = ($_COOKIE['cookie_agent_type']);
else
if ($agent_type == 0)
setcookie("cookie_agent_type", $agent_type);
else
echo "agency_type not set";
//******************Alex
/*
If ($agency_id == '') // not 1st time
{
$agency_id=$this->session->userdata('id');;
$agent_id='none';
$agent_type=$this->session->userdata('type');;
}
*/
if ($agent_id=='')
$agent_id='first';
echo "VVVVVVVVagency_id=".$agency_id.' ';
echo "WWWWWWWWagent_id=".$agent_id.' ';
echo "XXXXXXXXagencyName=".$agencyName.' ';
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|