Файловый менеджер - Редактировать - /home/umudio/public_html/OLD/editslideshow.php
Назад
<?php if (!$_SESSION){ session_start(); } $acc=$_SESSION['acc']; $yto=$_SESSION['yto']; if(isset($acc) && ($acc=="administratoroftheUmuahiasiteDiocese2016Byto")){?> <?php include("Connecter/dataconn.php"); ?> <?php if (isset($_GET['deltab'])) { unset($temp); if(isset($_GET['deltab'])){ $_GET['deltab']=trim($_GET['deltab']); if(preg_match('/^[0-9]/u',$_GET['deltab'])){ settype($_GET['deltab'], 'int'); $temp=(int)$_GET['deltab']; } } if(!isset($temp)){echo "Sorry! Wrong Data!"; exit();} $deltab=$temp; $sql=sprintf("update slidephotos set photo='' where sn = %s", mysql_real_escape_string($deltab)); $result=mysql_query($sql,$csn) or die(mysql_error()); //unlink($_GET['tab']); } include("uploadslide.php"); $query_dio="select * from slidephotos"; $dio = mysql_query($query_dio, $csn) or die(mysql_error()); $row_dio = mysql_fetch_assoc($dio); $totalRows_dio = mysql_num_rows($dio); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php include("head.php"); ?> </head> <body> <?php include("top.php"); ?> <?php include("titlebar.php"); ?> <?php include("mast.php"); ?> <?php include("navbar.php"); ?> <?php include("contenttop.php"); ?> <?php include("sidebar.php"); ?> <?php include("mainbartop.php"); ?> <!--Content Goes here--> <div class="headingbiggest">Editing Slideshow…</div> <p style="color:#999900"><b>Edit Slideshow</b></p> <?php if ($totalRows_dio>0) { $gv=1;?> <table width="100%" cellpadding="1" cellspacing="2"> <?php do { ?> <form id="form1" name="form1" method="post" action="editslideshow.php" enctype="multipart/form-data"> <tr valign="middle"> <td style="font-weight:bold;">Photo <?php echo($gv); ?>:</td> <td><?php if($row_dio['photo']!=""){ ?><img src="<?php echo $row_dio['photo']; ?>" width="75" /> <a href="editslideshow.php?deltab=<?php echo $row_dio['sn']; ?>&tab=<?php echo $row_dio['photo']; ?>">Delete</a> <?php } else { echo(" "); }?></td> <td align="center"><input type="file" name="uploader" size="30" /></td> <td align="left" style="font-size:10px;"> <input name="editslide" type="submit" style="font-size:12px;" id="editslide" value=" Replace Image <?php echo($gv); ?> " /> <input name="sn" type="hidden" value="<?php echo ($row_dio['sn']); ?>" /></td> </tr> </form> <?php $gv++; } while ($row_dio = mysql_fetch_assoc($dio)); ?> </table> <?php } else { echo ("None Found!"); } ?> <p> </p><hr /> <div align="right"><a href="dadmin.php">Back to Admin Home Page</a></div> <!--Content Ends here--> <?php include("mainbarbottom.php"); ?> <?php include("contentbottom.php"); ?> <?php include("footbar.php"); ?> <?php include("bottom.php"); ?> </body> </html> <?php } else { include("ddadmin.php"); }?>
| ver. 1.4 |
Github
|
.
| PHP 5.6.40 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка