validate_email($email_list_to_stop); if($validate_email != 1){ $listmail .= $validate_email; } else{ $validate_email_db = $ib_list_mail->validate_in_db_email_list($email_list_to_stop); if($validate_email_db == 1){ $listmail .= $ib_list_mail-> send_stop_email_list($email_list_to_stop); } else { $listmail .= "
".$lang->get_lang(younotuse)."
"; } } } $listmail .= $ib_list_mail->form_stop_mail(); } else if($get_do == 'done_stop'){ $get_email_d = post_sec($_GET['email']); $get_code_d = post_sec($_GET['code']); if($get_email_d and $get_code_d){ $validate_email = $ib_list_mail->validate_email($get_email_d); if($validate_email != 1){ $listmail .= "
".$lang->get_lang(errorlink)."
"; } else{ $validate_email_db = $ib_list_mail->validate_in_db_email_list($get_email_d); if($validate_email_db == 1){ if($get_code_d != $ib_list_mail->get_code_email_list($get_email_d)){ $listmail .= "
".$lang->get_lang(errorlink)."
"; }else{ #الغاء الاشتراك بعد تخطي جميع الشروط $listmail .= $ib_list_mail-> stop_email_to_list($get_email_d); } } else { $listmail .= "
".$lang->get_lang(errorlink)."
"; } } } } #==================================================================================نهاية الغاء الاشتراك #================================================================================== start الاشتراك في القائمة else if($get_do == 'add') { if(post_sec($_POST['add_email_list'])){ $email_add_list = post_sec($_POST['email_add_list']); $validate_email = $ib_list_mail->validate_email($email_add_list); if($validate_email != 1){ $listmail .= $validate_email; } else{ $validate_email_db = $ib_list_mail->validate_in_db_email_list($email_add_list); if($validate_email_db == 1){ $listmail .= "
".$lang->get_lang(youuse)."
"; } else { $listmail .= $ib_list_mail-> add_email_to_list($email_add_list); } } } $listmail .=$ib_list_mail->form_mail(); } else if ($get_do == 'done_active'){ $get_email_d = post_sec($_GET['email']); $get_code_d = post_sec($_GET['code']); if($get_email_d and $get_code_d){ $validate_email = $ib_list_mail->validate_email($get_email_d); if($validate_email != 1){ $listmail .= "
".$lang->get_lang(errorlink)."
"; } else{ $validate_email_db = $ib_list_mail->validate_in_db_email_list($get_email_d); if($validate_email_db == 1){ if($get_code_d != $ib_list_mail->get_code_email_list($get_email_d)){ $listmail .= "
".$lang->get_lang(errorlink)."
"; }else{ #تفعيل الاشتراك بعد تخطي جميع الشروط $listmail .= $ib_list_mail-> active_email_to_list($get_email_d); } } else { $listmail .= "
".$lang->get_lang(errorlink)."
"; } } } } #==================================================================================نهاية الاشتراك بالقائمة $listmail2 =ib_des_blocks2($lang->get_lang(maillest), $listmail); $template->get_template('PageMaillist'); $template->rep_template('{header}',$header); //$template->rep_template("rtl",$lang->langlist(dir));$template->rep_template("ltr",$lang->langlist(dir));$template->rep_template('{footer}',$footer); $template->rep_template('{block_right}',ib_blocks(1)); $template->rep_template('{block_left}',ib_blocks(3)); $template->rep_template('{listmail}', $listmail2); $template->display(); #include footer site require_once 'inc/footer.php'; ?>