session_start();
ob_start("ob_gzhandler");
include("./includes/config.php");
include("./lang/arabic.php");
include("./includes/function.php");
include("./includes/online.php");
include("./includes/easytemplate.php");
include("./includes/inquiry.php");
$PhpGroup_style['def_style'] = "designs/$style";
$stylepath= $PhpGroup_style['def_style'];
$tpl = new EasyTemplate;
$tpl->Temp = $PhpGroup_style['def_style'];
$tpl->Cache = "easycache";
$subtitle = " - تسجيل عضوية جديدة";
echo $tpl->display("headerinclude.html");
//start qurey
//get the last new poem
$selectnewdivan = mysql_db_query("$dbName", "SELECT * FROM `divan` WHERE `divan_group` = '1' ORDER BY `divan_id` DESC LIMIT 10 ") ;
while ($ndivan = @mysql_fetch_assoc($selectnewdivan)){
$nd[] = $ndivan ;
}
echo $tpl->display("header.html");
echo $tpl->display("bodyinclude.html");
//cheak site close
if (($close) == ('yes')){
echo $tpl->display("message.html");
traidntright();
echo $tpl->display("footer.html");
exit();
}
//cheak rigistar close
if (($register) == ('no')){
$message = $lang[disalowrigister];
echo $tpl->display("message.html");
traidntright();
echo $tpl->display("footer.html");
exit();
}
//statistics
$selectcount= mysql_db_query("$dbName", "SELECT * FROM cat;") ;
$totalcat = mysql_affected_rows();
@mysql_free_result($selectcount);
$selectcount= mysql_db_query("$dbName", "SELECT * FROM divan;") ;
$totaldivan = mysql_affected_rows();
@mysql_free_result($selectcount);
$selectcount= mysql_db_query("$dbName", "SELECT * FROM users;") ;
$totalusers = mysql_affected_rows();
@mysql_free_result($selectcount);
//loginbox
loginbox( $login );
//get the can name in the right page
$selectc = @mysql_db_query("$dbName", "SELECT * FROM `cat` WHERE `cat_group` = '1' ORDER BY `cat`.`cat_display` ASC ") ;
while ($s = @mysql_fetch_assoc($selectc)){
$cat[] = $s ;
}
@mysql_free_result($selectc);
echo"
";
if(($_GET['do'])==('')){
echo $tpl->display("register.html");
}elseif(($_GET['do'])==('adduser')){
$user = trim($_POST['username']);
$username = strip_tags($user);
$pass = trim($_POST['password']);
$password = md5($pass);
$mail = trim($_POST['vmail']);
$cp = $_SESSION['key'];
$mcode = md5($_POST[vcode]);
if(($mcode)!=($cp)){
$message = "
عفوا كود التحقق خاطئ
اضغط هنا للعودة
عفوا اسم المستخدم مستخدم من قبل برجاء اختيار اسم آخر
اضغط هنا للعودة
عفوا البريد الالكتروني مستخدم من قبل برجاء اختيار بريد آخر
اضغط هنا للعودة
تم تسجيل عضويتكم بنجاح
عضويتكم الآن بنتظار التفعيل من الادارة
عفوا هناك مشكلة بالتسجيل برجاء الاتصال بالادارة
"; print $tpl->display("message.html"); } } } } }else{ $message = "عفوا اتبعت رابط خاطئ برجاء
"; print $tpl->display("message.html"); } echo"