- Output for git.master, git.master_jit
- <? //include("js/register.js.php");//id="regist_user_input_box" $process = isset($_POST["process"])?$_POST["process"]:""; $text_err = ""; $group_id = "5";//group user //print $process; if($process=="add"){ $chk_succ = false; $text_err = ""; // check username if($regist_user != "" or strlen($regist_user)>=5 ) { $sql = "select username from ".$tb_account." where username='".$regist_user."'"; $result = mysql_query($sql); $num_row = mysql_num_rows($result); if($num_row==0){ $chk_succ = true; }else{ $text_err = "ไม่สามารถใช้ username นี้ได้"; } }else{ $text_err = "username น้อยกว่า 5 ตัวอักษร"; } // check password if($chk_succ == true){ if($regist_pass == "" || $regist_pass_conf == ""){ $text_err = "โปรดกรอกรหัสผ่านให้ถูกต้อง"; }elseif(strlen($regist_pass) < 4 || strlen($regist_pass_conf) < 4){ $text_err = "รหัสผ่านอย่างน้อย 4 ตัว"; }elseif($regist_pass != $regist_pass_conf){ $text_err = "รหัสผ่านไม่ตรงกัน"; }else{ $chk_succ = true; } } // check email if($chk_succ == true){ if( $regist_email != "" and $regist_email_conf != "" and $regist_email_conf == $regist_email_conf ) { $email_chk_reg = preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/i", $regist_email ); if ($email_chk_reg){ $sql = "SELECT email FROM ".$tb_account." WHERE email='".$regist_email."'"; $result=mysql_query($sql)or die($sql); $chk_row = mysql_num_rows($result); if($chk_row==0){ $chk_succ = true; }else{ $text_err = "ไม่สามารถใช้ email นี้ได้"; } }else{ $email_text_err = "รูปแบบ email ไม่ถูกต้อง"; } }else{ $text_err = "โปรดกรอก email ให้ครบถ้วน"; } } if($chk_succ == true){ //$sql = "select * from ".$tb_group_sub." where id='10'"; $sql = "select * from ".$tb_group_sub." WHERE group_id='5' ORDER BY rank ASC LIMIT 1"; $result = mysql_query($sql); $row=mysql_fetch_array($result); $group_id_gp_sub = $row["group_id"]; $group_type_gp_sub = $row["group_type"]; $download_gp_sub = $row["download"]; $upload_gp_sub = $row["upload"]; $dayfix_active_gp_sub = $row["dayfix_active"]; $dayfix_id_txt_gp_sub = $row["dayfix"]; $timefix_active_gp_sub = $row["timefix_active"]; $timefix_id_txt_gp_sub = $row["timefix"]; $time_limit_active_gp_sub = $row["time_limit_active"]; $time_limit_day_gp_sub = $row["time_limit_day"]; $time_limit_week_gp_sub = $row["time_limit_week"]; $time_limit_month_gp_sub = $row["time_limit_month"]; $expire_gp_sub = $row["expire"]; $sql = "INSERT INTO `".$tb_account."` (group_id,group_sub_id,group_type_id,username,password,firstname,lastname,id_code,email,download,upload,dayfix_active,dayfix,timefix_active,timefix,time_limit_active,time_limit_day,time_limit_week,time_limit_month,expire,timeout,device,quantity,price,dateregis,comment,status) VALUES ('5','10','3','".$regist_user."', '".$regist_pass."','','','','".$regist_email."','".$download_gp_sub."','".$upload_gp_sub."','".$dayfix_active_gp_sub."','".$dayfix_id_txt_gp_sub."','".$timefix_active_gp_sub."','".$timefix_id_txt_gp_sub."','".$time_limit_active_gp_sub."','".$time_limit_day_gp_sub."','".$time_limit_week_gp_sub."','".$time_limit_month_gp_sub."','".$expire_gp_sub."','10','1','0','0','".$datetime_log."','','1')"; $chk_insert = mysql_query($sql);//or die($sql); if($chk_insert){ $data="success"; if($expire_gp_sub == "0000-00-00 00:00:00"){ $expire_redcheck = ""; } foreach($regist_username_name_type_arr as $gtype_id => $name_update){//loop new username type regist $regist_user_update = $regist_user.$name_update; $sql = "INSERT INTO `usergroup` (`UserName`,`GroupName`,`priority`) VALUES ('".$regist_user_update."', '".$group_type_name[$group_id_gp_sub]."', '1')"; mysql_query($sql); // Authentication table radcheck $sql = "insert into radcheck (UserName ,Attribute ,op ,Value) values('".$regist_user_update."','Password','==','".$regist_pass."')"; mysql_query($sql); $sql = "insert into radcheck (UserName ,Attribute ,op ,Value) values('".$regist_user_update."','Expiration',':=','".$expire_redcheck."')"; mysql_query($sql); if($time_limit_active_gp_sub==1){ if($time_limit_day_gp_sub!=""){ $time_limit_day_sec = $time_limit_day_gp_sub*(60*60); $sql = "insert into radcheck (UserName ,Attribute ,op ,Value) values('".$regist_user_update."','Max-Daily-Session',':=','".$time_limit_day_sec."')"; mysql_query($sql); } if($time_limit_week_gp_sub!=""){ $time_limit_week_sec = $time_limit_week_gp_sub*(60*60); $sql = "insert into radcheck (UserName ,Attribute ,op ,Value) values('".$regist_user_update."','Max-Weeky-Session',':=','".$time_limit_week_sec."')"; mysql_query($sql); } if($time_limit_month_gp_sub!=""){ $time_limit_month_sec = $time_limit_month_gp_sub*(60*60); $sql = "insert into radcheck (UserName ,Attribute ,op ,Value) values('".$regist_user_update."','Max-Monthly-Session',':=','".$time_limit_month_sec."')"; mysql_query($sql); } } if($gtype_id==2){//hour $sql = "insert into radcheck (UserName ,Attribute ,op ,Value) values ('".$username_regist."','Max-All-Session',':=','')"; mysql_query($sql); } // Authentication table radreply $down = $download_gp_sub * 1000; $up = $upload_gp_sub * 1000; $die = 10*60; $sql = "insert into radreply(UserName ,Attribute ,op ,Value) values('".$regist_user_update."','Simultaneous-Use',':=','1')"; mysql_query($sql); $sql = "insert into radreply(UserName ,Attribute ,op ,Value) values('".$regist_user_update."','WISPr-Bandwidth-Max-Down',':=','".$down."')"; mysql_query($sql); $sql = "insert into radreply(UserName ,Attribute ,op ,Value) values('".$regist_user_update."','WISPr-Bandwidth-Max-Up',':=','".$up."')"; mysql_query($sql); $sql = "insert into radreply(UserName ,Attribute ,op ,Value) values('".$regist_user_update."','Idle-Timeout',':=','".$die."')"; mysql_query($sql); $sql = "insert into radreply(UserName ,Attribute ,op ,Value) values('".$regist_user_update."','Session-Timeout',':=','')"; mysql_query($sql); } }else{ $data=""; } }else{ $data=""; } if($data=="" and $text_err!=""){ $text_err = "<span class='red'>".$text_err."</span>"; } } if($data=="success"){ ?> <META HTTP-EQUIV="Refresh" CONTENT="5;URL= Warning: Undefined variable $prelogoff_url in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 174 "> <div align="center"> <p class="green">ระบบทำการเพิ่มข้อมูลเรียบร้อย</p> <p>ระบบทำลังกลับไปที่หน้าหลัก</p> <p>หากไม่ต้องการรอให้คลิ๊ก <a href=" Warning: Undefined variable $prelogoff_url in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 178 ">ที่นี่</a></p> </div> <? //exit(); } elseif($data==""){ ?> <link href="css/register.css" rel="stylesheet" type="text/css"> <script language="javascript"> function check_char(text,set){ var pattern = ""; set = Number(set); switch(set){ case 1 : pattern=/^[ก-๙\w\s]+$/;break; case 2 : pattern=/^[ก-์a-zA-Z\s]+$/;break; case 21 : pattern=/^[a-zA-Z]+$/;break; case 211 : pattern=/^[a-zA-Z\_]+$/;break; case 212 : pattern=/^[a-zA-Z\s]+$/;break; case 22 : pattern=/^[ก-๙]+$/;break; case 23 : pattern=/^[a-zA-Z\d\_]+$/;break; case 3 : pattern=/^[0-9]+$/;break; } //alert(pattern); var chk_str = text.match(pattern); return chk_str; } function clear_element(input_id_err){ $("#"+input_id_err).text(""); } function add_success(input_id){ var input_id_err = input_id+"_error_box"; if( !$("#"+input_id+"_succ_img").length ){ //clear element clear_element(input_id_err); $("#"+input_id_err).append($('<img src="images/check_true.png" id="'+input_id+'_succ_img" width="25" />').hide().fadeIn("fast")); } } function add_error_set(input_id,text_err){ var input_id_err = input_id+"_error_box"; //$("#js_error").text( $("#"+input_id+"_err_content").length ); if( !$("#"+input_id+"_err_content").length ){ //clear element $("#"+input_id_err).text(""); //creat element var err_content = " <div class=\"formErrorContent\" id=\""+input_id+"_err_content\" >"+text_err+"</div>\r\n";//style=\"opacity: 50;\" var err_arrow = "<div class=\"formErrorArrow\" id=\""+input_id+"_err_arrow\">\r\n"; for(i=1;i<=15;i++){ err_arrow+="<div class=\"line"+i+"\"></div>\r\n"; } err_arrow+="</div>\r\n"; //add elem to error box $("#"+input_id_err).append( $(err_content+err_arrow).hide().fadeIn("fast")); }else if( text_err != $("#"+input_id+"_err_content").text() ){ $("#"+input_id+"_err_content").text(text_err); } } function chk_db(field_name,val){ var return_val = ""; $.ajax({ url: "register_ajax.php", type: 'post', dataType: 'html', async: false, data: { field_name:field_name, val_data:val }, success: function(data) { return_val = data; } }); return return_val; } function email_filter(str) { var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i return (filter.test(str)); } // ready function $(document).ready(function(){ $("#register_form input:text").val("");//$("#register_form input[type=text]") $("#regist_user").focus(); // username check $("#regist_user").blur(function(){ var input_val = this.value; var input_id = $(this).attr("id"); var text = ""; if(input_val!=""){ chk_str = check_char(input_val,23) if(chk_str!=null){ if(input_val.length < 5){ text = "username อย่างน้อย 5 ตัวอักษร"; }else{ var chk_success = chk_db("username",input_val); if(chk_success=="success"){ add_success(input_id); }else{ text = "ไม่สามารถใช้ username นี้ได้"; } } }else{ text = "เฉพาะตัวอักษรภาษาอังกฤษ ตัวเลข และเครื่องหมาย\"_\""; } }else{ text = "โปรดกรอกข้อมูล"; } if(text!=""){ add_error_set(input_id,text); } }); // password check $("#regist_pass,#regist_pass_conf").blur(function(){ var get_pass_id_focus=""; var chk_char = true; $("#register_form input").focus( function(){ get_pass_id_focus = this.id; if(get_pass_id_focus!="regist_pass" && get_pass_id_focus!="regist_pass_conf"){ var input_id = $("#regist_pass").attr("id"); var input_id_conf = $("#regist_pass_conf").attr("id"); var input_id_val = $("#"+input_id).val(); var input_id_conf_val = $("#"+input_id_conf).val(); text = ""; if( input_id_val.length < 5 ) { text = "password อย่างน้อย 5 ตัวอักษร"; add_error_set(input_id,text); chk_char = false; }else{ clear_element(input_id+"_error_box"); } if(input_id_conf_val.length < 5){ text = "password อย่างน้อย 5 ตัวอักษร"; add_error_set(input_id_conf,text); chk_char = false; }else{ clear_element(input_id_conf+"_error_box"); } if(chk_char){ clear_element(input_id+"_error_box"); if(input_id_val == input_id_conf_val){ add_success(input_id); add_success(input_id_conf); }else{ text = "password ไม่ตรงกัน"; add_error_set(input_id_conf,text); } } } }); }); // password check $("#regist_email , #regist_email_conf").blur(function(){ var get_email_id_focus=""; var chk_char = true; $("#register_form input").focus( function(){ get_email_id_focus = this.id; if(get_email_id_focus!="regist_email" && get_email_id_focus!="regist_email_conf"){ var input_id = $("#regist_email").attr("id"); var input_id_conf = $("#regist_email_conf").attr("id"); var input_id_val = $("#"+input_id).val(); var input_id_conf_val = $("#"+input_id_conf).val(); text = ""; if(input_id_val.length == "") { text = "โปรดกรอกข้อมูล"; }else if( !email_filter(input_id_val) ){ text = "email ไม่ถูกต้อง"; }else{ clear_element(input_id+"_error_box"); } if(text!=""){ chk_char = false; add_error_set(input_id,text); } if(input_id_conf_val.length == ""){ text = "โปรดกรอกข้อมูล"; }else if( !email_filter(input_id_conf_val) ){ text = "email ไม่ถูกต้อง"; }else{ clear_element(input_id+"_error_box"); } if(text!=""){ chk_char = false; add_error_set(input_id_conf,text); } if(chk_char){ clear_element(input_id+"_error_box"); if(input_id_val == input_id_conf_val){ var chk_success = chk_db("email",input_id_val); if(chk_success=="success"){ add_success(input_id); add_success(input_id_conf); }else{ text = "ไม่สามารถใช้ email นี้ได้"; } }else{ text = "email ไม่ตรงกัน"; } if(text!=""){ add_error_set(input_id_conf,text); } } } }); //$("#js_error").text( $("#register input[type='text']").focusin().attr("id") ); }); $("#register_form").submit( function(){ if( $("#regist_user_succ_img").length && $("#regist_pass_succ_img").length && $("#regist_email_succ_img").length ){ //alert("sss"); return true; }else{ //$("#js_error").text(""); //$("#js_error").append("<span class='red'>กรอกข้อมูลให้ถูกต้องและครบถ้วน</span>"); return false; } }); //$("#js_error").text( get_id_focus ); //.toSource() }); </script> <div class="content_container"> <div class="row"> <div class="col-md-7 " style=""> <form id="register_form" method="post" action=' Warning: Undefined variable $PHP_SELF in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 451 ?fmodules= Warning: Undefined variable $fmodules in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 451 &mac= Warning: Undefined variable $mac in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 451 ' class="form-horizontal"> <div class="form-group"> <label class="col-sm-3 control-label"> Warning: Undefined variable $x_define in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 454 Warning: Trying to access array offset on value of type null in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 454 <img src="images/star.gif"></label> <div class="col-sm-5"> <input type="text" id="regist_user" name="regist_user" value="" class="form-control"/> <input type="hidden" id="chk_regist_user" value=""/> </div> <div class="col-sm-4"> <div class="red" id="regist_user_error_box"></div> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label"> Warning: Undefined variable $x_define in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 464 Warning: Trying to access array offset on value of type null in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 464 <img src="images/star.gif"></label> <div class="col-sm-5"> <input type="password" name="regist_pass" id="regist_pass" value="" class="form-control" > </div> <div class="col-sm-4"> <div class="red" id="regist_pass_error_box" ></div> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label"> Warning: Undefined variable $x_define in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 474 Warning: Trying to access array offset on value of type null in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 474 <img src="images/star.gif"></label> <div class="col-sm-5"> <input type="password" name="regist_pass_conf" id="regist_pass_conf" value="" class="form-control" > </div> <div class="col-sm-4"> <div class="red" id="regist_pass_conf_error_box" ></div> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label"> Warning: Undefined variable $x_define in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 484 Warning: Trying to access array offset on value of type null in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 484 <img src="images/star.gif"></label> <div class="col-sm-5"> <input type="text" name="regist_email" id="regist_email" value="" class="form-control" > </div> <div class="col-sm-4"> <div class="red" id="regist_email_error_box" ></div> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label"> Warning: Undefined variable $x_define in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 494 Warning: Trying to access array offset on value of type null in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 494 <img src="images/star.gif"></label> <div class="col-sm-5"> <input type="text" name="regist_email_conf" id="regist_email_conf" value="" autocomplete="off" class="form-control"> <input type="hidden" id="chk_regist_email_conf" value=""> </div> <div class="col-sm-4"> <div class="red" id="regist_email_conf_error_box" ></div> </div> </div> <div align="center"> <input type="hidden" name="chk_post" value="1" /> <input type="hidden" name="process" value="add" /> <input type="submit" class="regist_submit" value=" Warning: Undefined variable $x_define in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 507 Warning: Trying to access array offset on value of type null in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 507 " class="btn btn-default"/> </div> </form> </div> </div> </div> <? } ?>
- Output for rfc.property-hooks
- <? //include("js/register.js.php");//id="regist_user_input_box" $process = isset($_POST["process"])?$_POST["process"]:""; $text_err = ""; $group_id = "5";//group user //print $process; if($process=="add"){ $chk_succ = false; $text_err = ""; // check username if($regist_user != "" or strlen($regist_user)>=5 ) { $sql = "select username from ".$tb_account." where username='".$regist_user."'"; $result = mysql_query($sql); $num_row = mysql_num_rows($result); if($num_row==0){ $chk_succ = true; }else{ $text_err = "ไม่สามารถใช้ username นี้ได้"; } }else{ $text_err = "username น้อยกว่า 5 ตัวอักษร"; } // check password if($chk_succ == true){ if($regist_pass == "" || $regist_pass_conf == ""){ $text_err = "โปรดกรอกรหัสผ่านให้ถูกต้อง"; }elseif(strlen($regist_pass) < 4 || strlen($regist_pass_conf) < 4){ $text_err = "รหัสผ่านอย่างน้อย 4 ตัว"; }elseif($regist_pass != $regist_pass_conf){ $text_err = "รหัสผ่านไม่ตรงกัน"; }else{ $chk_succ = true; } } // check email if($chk_succ == true){ if( $regist_email != "" and $regist_email_conf != "" and $regist_email_conf == $regist_email_conf ) { $email_chk_reg = preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/i", $regist_email ); if ($email_chk_reg){ $sql = "SELECT email FROM ".$tb_account." WHERE email='".$regist_email."'"; $result=mysql_query($sql)or die($sql); $chk_row = mysql_num_rows($result); if($chk_row==0){ $chk_succ = true; }else{ $text_err = "ไม่สามารถใช้ email นี้ได้"; } }else{ $email_text_err = "รูปแบบ email ไม่ถูกต้อง"; } }else{ $text_err = "โปรดกรอก email ให้ครบถ้วน"; } } if($chk_succ == true){ //$sql = "select * from ".$tb_group_sub." where id='10'"; $sql = "select * from ".$tb_group_sub." WHERE group_id='5' ORDER BY rank ASC LIMIT 1"; $result = mysql_query($sql); $row=mysql_fetch_array($result); $group_id_gp_sub = $row["group_id"]; $group_type_gp_sub = $row["group_type"]; $download_gp_sub = $row["download"]; $upload_gp_sub = $row["upload"]; $dayfix_active_gp_sub = $row["dayfix_active"]; $dayfix_id_txt_gp_sub = $row["dayfix"]; $timefix_active_gp_sub = $row["timefix_active"]; $timefix_id_txt_gp_sub = $row["timefix"]; $time_limit_active_gp_sub = $row["time_limit_active"]; $time_limit_day_gp_sub = $row["time_limit_day"]; $time_limit_week_gp_sub = $row["time_limit_week"]; $time_limit_month_gp_sub = $row["time_limit_month"]; $expire_gp_sub = $row["expire"]; $sql = "INSERT INTO `".$tb_account."` (group_id,group_sub_id,group_type_id,username,password,firstname,lastname,id_code,email,download,upload,dayfix_active,dayfix,timefix_active,timefix,time_limit_active,time_limit_day,time_limit_week,time_limit_month,expire,timeout,device,quantity,price,dateregis,comment,status) VALUES ('5','10','3','".$regist_user."', '".$regist_pass."','','','','".$regist_email."','".$download_gp_sub."','".$upload_gp_sub."','".$dayfix_active_gp_sub."','".$dayfix_id_txt_gp_sub."','".$timefix_active_gp_sub."','".$timefix_id_txt_gp_sub."','".$time_limit_active_gp_sub."','".$time_limit_day_gp_sub."','".$time_limit_week_gp_sub."','".$time_limit_month_gp_sub."','".$expire_gp_sub."','10','1','0','0','".$datetime_log."','','1')"; $chk_insert = mysql_query($sql);//or die($sql); if($chk_insert){ $data="success"; if($expire_gp_sub == "0000-00-00 00:00:00"){ $expire_redcheck = ""; } foreach($regist_username_name_type_arr as $gtype_id => $name_update){//loop new username type regist $regist_user_update = $regist_user.$name_update; $sql = "INSERT INTO `usergroup` (`UserName`,`GroupName`,`priority`) VALUES ('".$regist_user_update."', '".$group_type_name[$group_id_gp_sub]."', '1')"; mysql_query($sql); // Authentication table radcheck $sql = "insert into radcheck (UserName ,Attribute ,op ,Value) values('".$regist_user_update."','Password','==','".$regist_pass."')"; mysql_query($sql); $sql = "insert into radcheck (UserName ,Attribute ,op ,Value) values('".$regist_user_update."','Expiration',':=','".$expire_redcheck."')"; mysql_query($sql); if($time_limit_active_gp_sub==1){ if($time_limit_day_gp_sub!=""){ $time_limit_day_sec = $time_limit_day_gp_sub*(60*60); $sql = "insert into radcheck (UserName ,Attribute ,op ,Value) values('".$regist_user_update."','Max-Daily-Session',':=','".$time_limit_day_sec."')"; mysql_query($sql); } if($time_limit_week_gp_sub!=""){ $time_limit_week_sec = $time_limit_week_gp_sub*(60*60); $sql = "insert into radcheck (UserName ,Attribute ,op ,Value) values('".$regist_user_update."','Max-Weeky-Session',':=','".$time_limit_week_sec."')"; mysql_query($sql); } if($time_limit_month_gp_sub!=""){ $time_limit_month_sec = $time_limit_month_gp_sub*(60*60); $sql = "insert into radcheck (UserName ,Attribute ,op ,Value) values('".$regist_user_update."','Max-Monthly-Session',':=','".$time_limit_month_sec."')"; mysql_query($sql); } } if($gtype_id==2){//hour $sql = "insert into radcheck (UserName ,Attribute ,op ,Value) values ('".$username_regist."','Max-All-Session',':=','')"; mysql_query($sql); } // Authentication table radreply $down = $download_gp_sub * 1000; $up = $upload_gp_sub * 1000; $die = 10*60; $sql = "insert into radreply(UserName ,Attribute ,op ,Value) values('".$regist_user_update."','Simultaneous-Use',':=','1')"; mysql_query($sql); $sql = "insert into radreply(UserName ,Attribute ,op ,Value) values('".$regist_user_update."','WISPr-Bandwidth-Max-Down',':=','".$down."')"; mysql_query($sql); $sql = "insert into radreply(UserName ,Attribute ,op ,Value) values('".$regist_user_update."','WISPr-Bandwidth-Max-Up',':=','".$up."')"; mysql_query($sql); $sql = "insert into radreply(UserName ,Attribute ,op ,Value) values('".$regist_user_update."','Idle-Timeout',':=','".$die."')"; mysql_query($sql); $sql = "insert into radreply(UserName ,Attribute ,op ,Value) values('".$regist_user_update."','Session-Timeout',':=','')"; mysql_query($sql); } }else{ $data=""; } }else{ $data=""; } if($data=="" and $text_err!=""){ $text_err = "<span class='red'>".$text_err."</span>"; } } if($data=="success"){ ?> <META HTTP-EQUIV="Refresh" CONTENT="5;URL= Warning: Undefined variable $prelogoff_url in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 174 "> <div align="center"> <p class="green">ระบบทำการเพิ่มข้อมูลเรียบร้อย</p> <p>ระบบทำลังกลับไปที่หน้าหลัก</p> <p>หากไม่ต้องการรอให้คลิ๊ก <a href=" Warning: Undefined variable $prelogoff_url in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 178 ">ที่นี่</a></p> </div> <? //exit(); } elseif($data==""){ ?> <link href="css/register.css" rel="stylesheet" type="text/css"> <script language="javascript"> function check_char(text,set){ var pattern = ""; set = Number(set); switch(set){ case 1 : pattern=/^[ก-๙\w\s]+$/;break; case 2 : pattern=/^[ก-์a-zA-Z\s]+$/;break; case 21 : pattern=/^[a-zA-Z]+$/;break; case 211 : pattern=/^[a-zA-Z\_]+$/;break; case 212 : pattern=/^[a-zA-Z\s]+$/;break; case 22 : pattern=/^[ก-๙]+$/;break; case 23 : pattern=/^[a-zA-Z\d\_]+$/;break; case 3 : pattern=/^[0-9]+$/;break; } //alert(pattern); var chk_str = text.match(pattern); return chk_str; } function clear_element(input_id_err){ $("#"+input_id_err).text(""); } function add_success(input_id){ var input_id_err = input_id+"_error_box"; if( !$("#"+input_id+"_succ_img").length ){ //clear element clear_element(input_id_err); $("#"+input_id_err).append($('<img src="images/check_true.png" id="'+input_id+'_succ_img" width="25" />').hide().fadeIn("fast")); } } function add_error_set(input_id,text_err){ var input_id_err = input_id+"_error_box"; //$("#js_error").text( $("#"+input_id+"_err_content").length ); if( !$("#"+input_id+"_err_content").length ){ //clear element $("#"+input_id_err).text(""); //creat element var err_content = " <div class=\"formErrorContent\" id=\""+input_id+"_err_content\" >"+text_err+"</div>\r\n";//style=\"opacity: 50;\" var err_arrow = "<div class=\"formErrorArrow\" id=\""+input_id+"_err_arrow\">\r\n"; for(i=1;i<=15;i++){ err_arrow+="<div class=\"line"+i+"\"></div>\r\n"; } err_arrow+="</div>\r\n"; //add elem to error box $("#"+input_id_err).append( $(err_content+err_arrow).hide().fadeIn("fast")); }else if( text_err != $("#"+input_id+"_err_content").text() ){ $("#"+input_id+"_err_content").text(text_err); } } function chk_db(field_name,val){ var return_val = ""; $.ajax({ url: "register_ajax.php", type: 'post', dataType: 'html', async: false, data: { field_name:field_name, val_data:val }, success: function(data) { return_val = data; } }); return return_val; } function email_filter(str) { var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i return (filter.test(str)); } // ready function $(document).ready(function(){ $("#register_form input:text").val("");//$("#register_form input[type=text]") $("#regist_user").focus(); // username check $("#regist_user").blur(function(){ var input_val = this.value; var input_id = $(this).attr("id"); var text = ""; if(input_val!=""){ chk_str = check_char(input_val,23) if(chk_str!=null){ if(input_val.length < 5){ text = "username อย่างน้อย 5 ตัวอักษร"; }else{ var chk_success = chk_db("username",input_val); if(chk_success=="success"){ add_success(input_id); }else{ text = "ไม่สามารถใช้ username นี้ได้"; } } }else{ text = "เฉพาะตัวอักษรภาษาอังกฤษ ตัวเลข และเครื่องหมาย\"_\""; } }else{ text = "โปรดกรอกข้อมูล"; } if(text!=""){ add_error_set(input_id,text); } }); // password check $("#regist_pass,#regist_pass_conf").blur(function(){ var get_pass_id_focus=""; var chk_char = true; $("#register_form input").focus( function(){ get_pass_id_focus = this.id; if(get_pass_id_focus!="regist_pass" && get_pass_id_focus!="regist_pass_conf"){ var input_id = $("#regist_pass").attr("id"); var input_id_conf = $("#regist_pass_conf").attr("id"); var input_id_val = $("#"+input_id).val(); var input_id_conf_val = $("#"+input_id_conf).val(); text = ""; if( input_id_val.length < 5 ) { text = "password อย่างน้อย 5 ตัวอักษร"; add_error_set(input_id,text); chk_char = false; }else{ clear_element(input_id+"_error_box"); } if(input_id_conf_val.length < 5){ text = "password อย่างน้อย 5 ตัวอักษร"; add_error_set(input_id_conf,text); chk_char = false; }else{ clear_element(input_id_conf+"_error_box"); } if(chk_char){ clear_element(input_id+"_error_box"); if(input_id_val == input_id_conf_val){ add_success(input_id); add_success(input_id_conf); }else{ text = "password ไม่ตรงกัน"; add_error_set(input_id_conf,text); } } } }); }); // password check $("#regist_email , #regist_email_conf").blur(function(){ var get_email_id_focus=""; var chk_char = true; $("#register_form input").focus( function(){ get_email_id_focus = this.id; if(get_email_id_focus!="regist_email" && get_email_id_focus!="regist_email_conf"){ var input_id = $("#regist_email").attr("id"); var input_id_conf = $("#regist_email_conf").attr("id"); var input_id_val = $("#"+input_id).val(); var input_id_conf_val = $("#"+input_id_conf).val(); text = ""; if(input_id_val.length == "") { text = "โปรดกรอกข้อมูล"; }else if( !email_filter(input_id_val) ){ text = "email ไม่ถูกต้อง"; }else{ clear_element(input_id+"_error_box"); } if(text!=""){ chk_char = false; add_error_set(input_id,text); } if(input_id_conf_val.length == ""){ text = "โปรดกรอกข้อมูล"; }else if( !email_filter(input_id_conf_val) ){ text = "email ไม่ถูกต้อง"; }else{ clear_element(input_id+"_error_box"); } if(text!=""){ chk_char = false; add_error_set(input_id_conf,text); } if(chk_char){ clear_element(input_id+"_error_box"); if(input_id_val == input_id_conf_val){ var chk_success = chk_db("email",input_id_val); if(chk_success=="success"){ add_success(input_id); add_success(input_id_conf); }else{ text = "ไม่สามารถใช้ email นี้ได้"; } }else{ text = "email ไม่ตรงกัน"; } if(text!=""){ add_error_set(input_id_conf,text); } } } }); //$("#js_error").text( $("#register input[type='text']").focusin().attr("id") ); }); $("#register_form").submit( function(){ if( $("#regist_user_succ_img").length && $("#regist_pass_succ_img").length && $("#regist_email_succ_img").length ){ //alert("sss"); return true; }else{ //$("#js_error").text(""); //$("#js_error").append("<span class='red'>กรอกข้อมูลให้ถูกต้องและครบถ้วน</span>"); return false; } }); //$("#js_error").text( get_id_focus ); //.toSource() }); </script> <div class="content_container"> <div class="row"> <div class="col-md-7 " style=""> <form id="register_form" method="post" action=' Warning: Undefined variable $PHP_SELF in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 451 ?fmodules= Warning: Undefined variable $fmodules in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 451 &mac= Warning: Undefined variable $mac in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 451 ' class="form-horizontal"> <div class="form-group"> <label class="col-sm-3 control-label"> Warning: Undefined variable $x_define in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 454 Warning: Trying to access array offset on null in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 454 <img src="images/star.gif"></label> <div class="col-sm-5"> <input type="text" id="regist_user" name="regist_user" value="" class="form-control"/> <input type="hidden" id="chk_regist_user" value=""/> </div> <div class="col-sm-4"> <div class="red" id="regist_user_error_box"></div> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label"> Warning: Undefined variable $x_define in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 464 Warning: Trying to access array offset on null in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 464 <img src="images/star.gif"></label> <div class="col-sm-5"> <input type="password" name="regist_pass" id="regist_pass" value="" class="form-control" > </div> <div class="col-sm-4"> <div class="red" id="regist_pass_error_box" ></div> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label"> Warning: Undefined variable $x_define in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 474 Warning: Trying to access array offset on null in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 474 <img src="images/star.gif"></label> <div class="col-sm-5"> <input type="password" name="regist_pass_conf" id="regist_pass_conf" value="" class="form-control" > </div> <div class="col-sm-4"> <div class="red" id="regist_pass_conf_error_box" ></div> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label"> Warning: Undefined variable $x_define in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 484 Warning: Trying to access array offset on null in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 484 <img src="images/star.gif"></label> <div class="col-sm-5"> <input type="text" name="regist_email" id="regist_email" value="" class="form-control" > </div> <div class="col-sm-4"> <div class="red" id="regist_email_error_box" ></div> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label"> Warning: Undefined variable $x_define in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 494 Warning: Trying to access array offset on null in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 494 <img src="images/star.gif"></label> <div class="col-sm-5"> <input type="text" name="regist_email_conf" id="regist_email_conf" value="" autocomplete="off" class="form-control"> <input type="hidden" id="chk_regist_email_conf" value=""> </div> <div class="col-sm-4"> <div class="red" id="regist_email_conf_error_box" ></div> </div> </div> <div align="center"> <input type="hidden" name="chk_post" value="1" /> <input type="hidden" name="process" value="add" /> <input type="submit" class="regist_submit" value=" Warning: Undefined variable $x_define in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 507 Warning: Trying to access array offset on null in /in/SV9ic(1) : eval()'d code(5) : eval()'d code on line 507 " class="btn btn-default"/> </div> </form> </div> </div> </div> <? } ?>
This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.
Active branches
Archived branches
Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page
- 2020-03-21 RFC: Is_Literal - declined
- 2020-12-04 Enumerations - included in PHP 8.1
- 2018-06-15 Typed Properties v2 - implemented in PHP 7.4
- 2016-08-12 Object typehint - included in PHP 7.2
- 2016-08-14 Arrow functions - withdrawn
- 2016-05-29 array_change_keys() - withdrawn
- 2016-04-19 Lexical scope support for anonymous classes - suspended
- 2016-04-17 Functional Interfaces - declined
- 2016-03-16 Typed Properties - superseded in favor of Typed Properties 2.0
- 2015-08-27 Callable Prototypes - declined
- 2015-05-01 Short Closures - declined / withdrawn in favor of Arrow Functions
- 2015-02-18 Scalar type hints v5 - included in PHP 7
- 2015-02-14 Union Types - declined
- 2013-09-22 Anonymous classes - included in PHP 7