include "wa-conn.php"; @include "userscounter.php"; @include "visitorcounter.php"; session_start(); if(isset($_SESSION['loggedu']) ) { $memid=$_SESSION['loggedu']; $result32 = @mysql_query("SELECT * FROM wa_members where id=$memid limit 1 ",$db); $myrow=mysql_fetch_array($result32); $memname=$myrow['name']; $memid=$myrow['id']; $memtype=$myrow['type']; $mememail=$myrow['email']; } $result = mysql_query("select * from wa_siteoptions limit 1",$db); $myrow = mysql_fetch_array($result); $mysitename = $myrow["sname"]; $words=$myrow["swords"]; $saddress =$myrow["saddress"]; $semail=$myrow["semail"]; $action=$_GET["action"]; $titleofme=$mysitename; $id=mysql_real_escape_string(clean_url(clean_vr($_GET[id])));; if($action=="detail" or $action=="det_ben" and isset($id)) { $result = mysql_query("select * from wa_lpn where id=$id ",$db); $myrow = mysql_fetch_array($result); $title = $myrow["title"]; $titleofme=$title; } elseif($action=="group" or $action=="archive"){ if(isset($_GET[cat])) { $type= $_GET[cat]; } else { $type =$_GET[type]; } $result = mysql_query("SELECT * FROM wa_subcat where id=$type order by id desc limit 1",$db); $num=mysql_fetch_array($result); $titleofme=$num["name"]; } elseif($action=="page" and isset($id)) { $result = mysql_query("select * from wa_pagecontent where id=$id ",$db); $myrow = mysql_fetch_array($result); $title = $myrow["title"]; $titleofme=$title; } ?>