GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/www/
Upload File :
Current File : /home/serb/www/upload_picture.php

<? session_start();
 include("lib/globals.php");
 include("lib/common.php");
 include("lib/functions.php");
 ?>
<? include "includes/header_top.php";?>
 <? 
if($_POST)
{
	if($_FILES['avt_image']['tmp_name'])

		{

			$manu_imagename1=time().$_FILES['avt_image']['name'];

			move_uploaded_file($_FILES['avt_image']['tmp_name'],'avtar/'.$manu_imagename1);

		}
		
	$ins="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES('','".$_POST['picName']."','".$_GET['postid']."','".$_SESSION['userid']."','$manu_imagename1','u')";
	execute_query($ins);
	?>
    <script language="javascript">
    	location.href="escort-service-dtls.php?postid=<?=$_GET['postid']?>&city_id=<?= $_GET['city_id']?>";
    </script>
    <?
}
?>
<body>

<? include "includes/location_header.php";?>
<div class="wrapper">
	<div class="top_space" style="height:30px;"></div>
		 <div class="inside_wrp_top">
         	<div class="insd_wr_top">Upload Post Ads Picture</div>
            <div class="insd_wr_mid">
            	<form action="<?=$_SERVER['PHP_SELF'] ?>?postid=<?=$_GET['postid']?>&city_id=<?= $_GET['city_id']?>" enctype="multipart/form-data" method="post" name="f1" style="margin: 0px; padding: 0px;" onSubmit="return validate();">
					<input name="submit_form" value="1" type="hidden">
						<table class="join_table2" border="0" cellpadding="0" cellspacing="0">
                         <tr>
                          <td>Name :</td>
                          <td><input name="picName" id="name" class="main_input"   type="text"><br/>
                           
                          </td>
                          <td></td>
                         </tr>         
                         <tr>
                              <td>Picture :</td>
                                <td><input type="file" name="avt_image" style="border:1px solid #999; width:200px; margin-bottom:5px; background-color:#fff;" /></td>
                                </tr>
                         <tr>
                              <td></td>
                              <td align="center" colspan="3">
                               <input src="images/submit.png" type="image" width="100" height="32" style="margin-left:20px;"/>
                              </td>
                              <td></td>
                         </tr>
                             
                          </table>
                          
                      </form>
            </div>
             <div class="insd_wr_bottom"></div>
         </div>



 <?php /*?><div class="inside_wrapper">     
     <div class="upload_pic">			
        <h1>Upload New Picture</h1>
        <div align="center">
     <form action="register-process.php" method="post" name="f1" style="margin: 0px; padding: 0px;" onSubmit="return validate();">
		<input name="submit_form" value="1" type="hidden">
		<table class="join_table" border="0" cellpadding="0" cellspacing="0">
         <tr>
          <td>Name :</td>
          <td><input name="picName" id="name" class="main_input"   type="text"><br/>
           
          </td>
          <td></td>
         </tr>
         <tr>
          <td>Coments/Note :</td>
          <td><textarea name="aboutMyself" style="width:300px; height:150px; margin-left:5px;"></textarea><br/>
           <span>
                &nbsp;If You would like to add note/comment (Optional).
           </span>
          </td>
          <td></td>
         </tr>
         <tr>
              <td>Picture :</td>
                <td><input type="file" name="avt_image" style="border:1px solid #999; width:200px; margin-bottom:5px; background-color:#fff;" /></td>
                </tr>
    
              </tbody>
          </table>
          </td>
          <td></td>
         </tr>         
         <tr>
          <td></td>
          <td>
           <input src="images/submit.png" type="image" width="100" height="32" 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><?php */?>
     
  </div>
</div>
<br class="spacer" />

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

./BlackJoker Mini Shell 1.0