Location: PHPKode > projects > OrangeDeals > orangedeals_v1.2/http/pages.php
<?php include "config.php"; include "functions.php";

//varius pages used in system. use this file to create static pages

include "header.php"; ?>
<title><?php echo $title; ?> - Pages</title>
 <?php echo "<link rel='stylesheet' type='text/css' href='core_templates/".$template."/default.css'>"; ?>

<?php 
$id=clean($_GET["id"]);
if(isset($_GET["sw"])) $sw=clean($_GET["sw"]);

if (isset($sw)){
if (isset($_SESSION["user"][0])) $usr=user($_SESSION["user"][0]);
}


if (isset($_SESSION["user"][1]) && $id=='1'){
echo "<a class='q_link' href='pages.php?id=1&sw=".$_SESSION["user"][0]."'>".$lang['send_info_in_my_mail']."</a><br><br>";
}

if ($id==1){

if (isset($sw) && $sw==$_SESSION["user"][0] && (isset($_SESSION["user"][1]))&&($_SESSION["user"][1]==$usr[1])){

	$headers = 'From: gr@'.$server_name . "\r\n" .
    'Reply-To: gr@'.$server_name  . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

	mail($usr[4], $lang['city_contector_mail'], $headers );
	
	echo "<br><b>".$lang['info_send_in_your_email']."</b><br><br>";
}

echo $lang['city_connector_intro_txt']."<br><br>";

if (isset($_SESSION["user"][1])){
echo "<br><a class='q_link' href='pages.php?id=1&sw=".$_SESSION["user"][0]."'>".$lang['send_info_in_my_mail']."</a>";
}


} //end of id==1



if ($id==2){
echo $lang['terms_and_cond'];
}


/*
add your pages here like this. 

if ($id==4){
echo $lang['page_content'];
}

link to the page using pages.php?id=4
*/





?>







</td>
       <td class="rear_column"><?php include "rear_content.php"; ?></td>
 
	
<?php include "footer.php";  ?>
Return current item: OrangeDeals