GIF89a;
Direktori : /home/serb/www/ |
Current File : /home/serb/www/join1.php |
<? session_start(); include("lib/globals.php"); include("lib/common.php"); include("lib/functions.php"); ?> <? include "includes/header_top.php";?> <? if($_POST) { if(($_POST['userName']=="") || ($_POST['passWord']=="") || ($_POST['emailAddrs']=="") || ($_POST['year']=="") || ($_POST['expMonth']="") || ($_POST['acctype']=="")) { ?> <script language="javascript"> alert('Please Fill all the required fields'); location.href="join.php"; </script> <? } else { $date=date('Y-m-d'); $dt=explode('-',$date); $yer=$dt[0]; $bth=$_POST['year']; $dif=$yer-$bth; $_SESSION['reg_username']=$_POST['userName']; $_SESSION['reg_email']=$_POST['emailAddrs']; $_SESSION['reg_pass']=$_POST['passWord']; $_SESSION['reg_acctype']=$_POST['acctype']; $_SESSION['DOB']=$_POST['year']; $_SESSION['dob_month']=$_POST['expMonth']; //$ctname=$_SESSION['countryname']; $sql="SELECT * FROM user_info WHERE username='".$_POST['userName']."' OR email='".$_POST['emailAddrs']."'"; $res=execute_query($sql); $num=mysql_num_rows($res); if($num<=0) { if($_POST['acctype']=='agency') { ?> <script language="javascript"> location.href="create-agencyaccount.php"; </script> <? } else if($_POST['acctype']=='hobbyist') { ?> <script language="javascript"> location.href="create-hobbyistaccount.php"; </script> <? } else { ?> <script language="javascript"> location.href="post-ad.php?est=new"; </script> <? } } else {?> <script language="javascript"> alert('Username Or Email already exit in our database.'); location.href="<?=$loc?>"; </script> <? } } } ?> <!--<script language="javascript"> function validate() { if(document.f1.userName.value=="") { alert("Enter your username"); document.f1.userName.focus(); return false; } if(document.f1.passWord.value=="") { alert("Enter your password"); document.f1.passWord.focus(); return false; } if(document.f1.passWord.value!=document.f1.repassWord.value) { alert("Password not match"); document.f1.repassWord.focus(); return false; } if((document.f1.emailAddrs.value.indexOf('@',0)<1)||(document.f1.emailAddrs.value.indexOf('.',0)<1)) { alert("Enter any valid email address"); document.f1.emailAddrs.focus(); return false; } if(document.f1.emailAddrs.value!=document.f1.confrmEmail.value) { alert("Email not match."); document.f1.confrmEmail.value=""; document.f1.confrmEmail.focus(); return false; } if((document.f2.acctype[0].checked == false) &&(document.f2.acctype[1].checked == false) && (document.f2.acctype[2].checked == false) && (document.f2.acctype[3].checked == false) && (document.f2.acctype[4].checked == false)) { alert("Select Your Account Type"); return false; } } </script>--> <!--<link rel="stylesheet" href="default_data/jquery-ui.css"> <script src="default_data/jquery-ui.js"></script> <link rel="stylesheet" href="default_data/style.css"> <script> $(function() { $( "#datepicker" ).datepicker(); }); </script>--> <script type="text/javascript" language="javascript" > $(function(){ var allRadios = $('input[type=radio]') var radioChecked; var setCurrent = function(e) { var obj = e.target; radioChecked = $(obj).attr('checked'); } var setCheck = function(e) { if (e.type == 'keypress' && e.charCode != 32) { return false; } var obj = e.target; if (radioChecked) { $(obj).attr('checked', false); } else { $(obj).attr('checked', true); } } $.each(allRadios, function(i, val){ var label = $('label[for=' + $(this).attr("id") + ']'); $(this).bind('mousedown keydown', function(e){ setCurrent(e); }); label.bind('mousedown keydown', function(e){ e.target = $('#' + $(this).attr("for")); setCurrent(e); }); $(this).bind('click', function(e){ setCheck(e); }); }); }); </script> <body> <? include "includes/details-header.php";?> <div class="main_bg"> <div style="height:32px;"></div> <div style="width:1000px; margin:0 auto;"> <div class="statedetails"> <div class="stdtls_header"> <span style="color:#000;">Join to</span> Escortservice.org </div> <div class="stdtls_midder"> <div style="height:10px;"></div> <div style=" width:950px; margin:0 auto; font-family:'Open Sans',sans-serif; font-size:14px; color:#000;"> <? $sql_jointext="SELECT * FROM page_content WHERE id=61"; $res_jointext=execute_query($sql_jointext); $row_jointext=mysql_fetch_array($res_jointext); echo stripslashes($row_jointext['page_content']); ?> </div> </div> <div class="stdtls_footer"></div> </div><br/> <div class="statedetails"> <div class="stdtls_header"> <span style="color:#000;">Join to</span> Escortservice.org </div> <div class="stdtls_midder"> <div style=" width:990px;"> <form action=<?=$_SERVER['PHP_SELF']?> method="post" name="f1" style="margin: 0px; padding: 0px;" enctype="multipart/form-data" onSubmit="return validate();"> <input name="submit_form" value="1" type="hidden"> <table class="join_table2" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="3" align="center"> <? if($_GET['msg']==2){ ?> <p class="passwordmsg">Username or Email Already Exit.</p> <? } ?> </td> </tr> <tr> <td class="jointext"> * Profile Name :</td> <td><input name="userName" id="username" class="main_input" type="text"></td> <td></td> </tr> <tr> <td class="jointext"> * Choose a password :</td> <td><input name="passWord" id="password" class="main_input" type="password"></td> <td></td> </tr> <tr> <td class="jointext"> * Re-enter password :</td> <td><input name="repassWord" id="repassword" class="main_input" type="password"></td> <td></td> </tr> <tr> <td class="jointext"> * Your Email address :</td> <td><input name="emailAddrs" id="email" class="main_input" type="text"><br/> <!-- <span style="width:230px; color:#527750;"> e.g. myname@example.com. This will be used to sign-in to your account. </span>--> </td> <td></td> </tr> <tr height="10"></tr> <tr> <td class="jointext"> * Date of Birth :</td> <td style="text-align:left;"> <select name="expMonth" class="drp_img3" style="width:100px;"> <option value="">Month</option> <option value="January">1: Jan</option> <option value="February">2: Feb</option> <option value="March">3: Mar</option> <option value="April">4: Apr</option> <option value="May">5: May</option> <option value="June">6: Jun</option> <option value="July">7: Jul</option> <option value="August">8: Aug</option> <option value="September">9: Sep</option> <option value="October">10: Oct</option> <option value="November">11: Nov</option> <option value="December">12: Dec</option> </select> <span style="color:#000;"> Year</span> <select name="year" class="drp_img3" style="width:100px;"> <option value="">Year</option> <? for($i=1900; $i<=1997; $i++){ ?> <option value="<?=$i?>"><?=$i?></option> <? }?> </select> </td> <!--<input name="datepicker" id="datepicker" class="main_input" type="text"> <br/>--> <td></td> </tr> <tr> <td class="jointext"> * Your Account Type :</td> <td class="acctypecolor"> <input type="radio" name="acctype" value="independent" /> Independent Escort<br/> <input type="radio" name="acctype" value="agency" /> Escort Agency<br/> <input type="radio" name="acctype" value="tstv" /> Ts/Tv Escort<br/> <input type="radio" name="acctype" value="hobbyist" /> Hobbyist </td> <td></td> </tr> <tr> <td></td> <td> <input src="images/submit.png" type="image" style="margin-left:20px;"/> </td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> </tr> </table> </form> </div> </div> <div class="stdtls_footer"></div> </div> <br/> </div> </div> </div> <? include "includes/footer.php";?>