All pastes #83490 Raw Edit

Anonymous

public php v1 · immutable
·published 2006-07-09 21:23 UTC
rendered paste body
<?PHP session_start(); require("access.php"); ?><?php include("top2.php"); ?><?phpif(isset($_POST['update'])) { $title2 = $_POST['title'];$title = strip_tags($title2);$description2 = $_POST['description'];$descripton = strip_tags($description2);$image_name2 = $_POST['image_name'];$image_name = strip_tags($image_name2);$year = date("Y");$month = date("m");$day = date("d");$hours2 = date("H");if ($hours2 == "00") {$hours = "10";}elseif ($hours2 == "01") {$hours = "11";}elseif ($hours2 == "02") {$hours = "00";}else {$hours = $hours2;};$time = date("$hours:i");echo "Editing your gallery image now... <br><br> Please Wait..... ";echo "<META HTTP-EQUIV=\"refresh\" content=\"2;URL=gallery_upload.php\">";?><?PHP} else {?><?PHPfunction gethint($name) { 	$q = mysql_query("SELECT Setting_Value from settings WHERE Setting_Name = '$name' LIMIT 0,1");	$r = mysql_fetch_row($q);	return $r[0];}?><?php$id = $_GET['id'];$query = mysql_query("SELECT * FROM gallery WHERE id = '".$_GET['id']."' ") or die(mysql_error());$data = mysql_fetch_array($query);?><center>   <strong>Select your image that you would like to add to your gallery. </strong><br></center><form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" enctype="multipart/form-data">  <table>  <tr>    <td><strong>Photo Name </strong>      <div align="center"></div></td>    <td><a href="" onMouseOver="return escape(' <?php echo gethint('hint_photo_upload'); ?> ')"><img width="15" alt="" src="images/small_help.gif" hspace="3" height="15" border="0"></a></td>    <td><input name="image_name" type="text" size="45" value="<?=$data['short_title']?>"></td>  </tr>  <tr>    <td><div align="center"><strong>Title</strong></div></td>    <td><a href="" onMouseOver="return escape(' <?php echo gethint('hint_photo_upload'); ?> ')"><img width="15" alt="" src="images/small_help.gif" hspace="3" height="15" border="0"></a></td>    <td><input name="title" type="text" size="45" value="<?=$data['title']?>></td>  </tr>  <tr>    <td><div align="center">      <p><strong>Description</strong></p>      </div></td>    <td><a href="" onMouseOver="return escape(' <?php echo gethint('hint_photo_upload'); ?> ')"><img width="15" alt="" src="images/small_help.gif" hspace="3" height="15" border="0"></a></td>    <td><textarea name="description" cols="45" rows="8">value="<?=$data['description]?></textarea></td>  </tr>  	<tr> 		<td><center><input type="submit" name="update" value="update"></center><td>	 </tr></table></form><?php}?><?php include("bottom2.php"); ?>