hjkhghtjhjjhjhjhjhjjhjhjjhrrtrtoirh
bnmbertsurrttrtrtrtrjhjhjjhjhhjhjhjhf'tdfg
/
home
/
u506006416
/
domains
/
nitinkashyap.in
/
balaji-lagan
/
Upload FileeE
HOME
<?php include("memprotect.php"); ?> <?php include("config.php"); ?> <?php require 'php4upload.class.php'; if($_GET['Choice']=="1") { require 'Photouploddir1.php'; } elseif ($_GET['Choice']=="2") { require 'Photouploddir2.php'; } elseif ($_GET['Choice']=="3") { require 'Photouploddir3.php'; } $im = new imageupload(); if ($_POST['__upload']) { header('location: '.'http://'.$_SERVER['HTTP_HOST'].preg_replace('/\/([^\/]+?)$/', '/', $_SERVER['PHP_SELF'])); } ?> <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title><?php echo $info['Title']; ?></title> <meta name="Description" content="<?php echo $info['Description']; ?>"> <meta name="keywords" content="<?php echo $info['Keywords']; ?>"> <LINK href="style.css" rel="stylesheet" type="text/css"> </HEAD> <style type="text/css"> body { margin:0; font-family:Verdana, arial, sans-serif; font-size:12px; } div.wrapper { margin:0 auto; padding:5px; width:620px; border:1px solid #35528F; } h1 { padding:8px; margin:0px; } div.errors { color:#FF0000; } ul { list-style:none; padding:5px; } ul li { display:inline; padding-right:12px; } p.footer { clear:both; text-align:center; font-size:10px; } div.block { float:left; width:300px; } div.errors { color:red; } </style> <BODY class="body"> <DIV align="center"> <TABLE width="780" border="0" align="center" cellpadding="0" cellspacing="0" class="BlueTborder"> <!--DWLayoutTable--> <TR> <TD height="37" colspan="2"> <?php include("header.php");?> </TD> </TR> <TR> </TR> <TR> <TD colspan="2"><?php include("topmenu.php");?></TD> </TR> <TR bgcolor="#FFFFFF"> <TD colspan="2" valign="top"> <!-- START LEFT PART --> <DIV align="center"> <TABLE width="100%" border="0" cellpadding="0" cellspacing="0"> <TR> <TD valign="top" class="leftbox"> <?php include("left.php");?> <?php include("leftbanner.php");?> </TD> <TD valign="top" class="righttable"><br> <table width="97%" height="20" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><div align="left" class="headingstyle"><span>Photo Upload </span></div></td> </tr> </table> <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" class="submenubox"> <tr> <td> <form method="post" enctype="multipart/form-data" action="<?=$im->path?>"> <table width="97%" border="0" align="center" cellpadding="3" cellspacing="3"> <tr> <td colspan="2">Add Your photo : Choice-1<br> Acceptable Formats : <span class="Alert">GIF</span> and <span class="Alert">JPG</span>. </td> </tr> <tr> <td colspan="2"><p class="normaltext"> </p></td> </tr> <tr> <td width="23%">Select your Photo :</td> <td width="77%"><input name="__upload" type="file" class="addtextfiled" size="35" /></td> </tr> <tr> <td> </td> <td><input name="submit" type="submit" class="afterloglightyellow2" value="Upload" /></td> </tr> <tr> <td colspan="2"> </td> </tr> </table> </form> <table width="97%" border="0" align="center"> <tr> <td> </td> </tr> <tr> <td> <div class="block"> <? if ($im->_im_status == true) { include('dbconnect.php'); $strid=$_SESSION['username']; if($_GET['Choice']=="1") { $update1 = mysql_query("update register set Photo1='$im->imgurl' where MatriID='$strid'") or die("Could not update data because ".mysql_error()); print "<script>"; print " self.location='photouploadconfirm.php?choice=1';"; // Comment this line if you don't want to redirect print "</script>"; } elseif ($_GET['Choice']=="2") { $update2 = mysql_query("update register set Photo2='$im->imgurl' where MatriID='$strid'") or die("Could not update data because ".mysql_error()); print "<script>"; print " self.location='photouploadconfirm.php?choice=2';"; // Comment this line if you don't want to redirect print "</script>"; } elseif ($_GET['Choice']=="3") { $update3 = mysql_query("update register set Photo3='$im->imgurl' where MatriID='$strid'") or die("Could not update data because ".mysql_error()); print "<script>"; print " self.location='photouploadconfirm.php?choice=3';"; // Comment this line if you don't want to redirect print "</script>"; } //echo '<h2>Upload Successful!</h2>'; //print '<a href="'.$im->imgurl.'">Photo </a>'; //print '<br>'; //print "$im->imgurl" ; } elseif (!empty($im->errorStr)) { echo '<div class="errors">'.$im->errorStr.'</div>'; } ?> </div> </td> </tr> </table> <p> </p> </td> </tr> </table> <p> </p></TD> </TR> </TABLE> </DIV> <!-- END LEFT PART --> </TD> </TR> <TR> <TD><?php include("footer.php");?></TD> </TR> </TABLE> </DIV> </BODY> </HTML> ?>