Update of /cvsroot/openfirst/photogallery/admin
In directory sc8-pr-cvs1:/tmp/cvs-serv19657
Modified Files:
upload.php
Log Message:
Minor changes to code placement.
Index: upload.php
===================================================================
RCS file: /cvsroot/openfirst/photogallery/admin/upload.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** upload.php 21 Aug 2003 14:18:56 -0000 1.3
--- upload.php 21 Aug 2003 17:52:13 -0000 1.4
***************
*** 32,37 ****
include("galleryglobals.php");
! // Check if user is an admin then allow processes
! if (isset($user->user)){
$query = mysql_query("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'");
--- 32,39 ----
include("galleryglobals.php");
! if(! ISSET($user->user)){
! showlogin();
! die(include($footer));
! }
$query = mysql_query("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'");
***************
*** 114,120 ****
</form>
<?php
- }else{
- showlogin();
- }
include($footer);
?>
--- 116,119 ----
|