[Openfirst-cvscommit] photogallery cleargallery.php,1.1,1.2 edit.php,1.2,1.3 makethumb.php,1.1,1.2 m
Brought to you by:
xtimg
|
From: <dav...@us...> - 2003-06-07 03:09:24
|
Update of /cvsroot/openfirst/photogallery
In directory sc8-pr-cvs1:/tmp/cvs-serv28982
Modified Files:
cleargallery.php edit.php makethumb.php manage.php
newgallery.php upload.php
Log Message:
openFIRST.photogallery is now configured to work with the members module authentication system.
Index: cleargallery.php
===================================================================
RCS file: /cvsroot/openfirst/photogallery/cleargallery.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** cleargallery.php 5 Jun 2003 01:56:56 -0000 1.1
--- cleargallery.php 7 Jun 2003 03:09:21 -0000 1.2
***************
*** 56,64 ****
?>
! <h2>Edit Gallery</h2><p>[ <a href="manage.php">Manager</a> ] [ <a href="newgallery.php">Add New Gallery</a>
! ]</p>
! <p><em><?php echo $gallery->GalleryName; ?> Options -</em> [ <a href="edit.php?ID=<?php echo $_GET['ID']; ?>">Edit</a>
! ] [ <a href="upload.php?ID=<?php echo $_GET['ID']; ?>">Upload Photos</a> ] [
! <a href="cleargallery.php?ID=<?php echo $_GET['ID']; ?>">Clear Gallery</a> ]</p>
<br><br><p align="center">You are trying to clear the entire <b><?php echo $gallery->GalleryName; ?></b>
gallery! <a href="cleargallery.php?ID=<?php echo $_GET['ID']; ?>&CONFIRM=True">Confirm</a></p>
--- 56,63 ----
?>
! <h2>Edit Gallery</h2><p><a href="manage.php">Manager</a> <a href="newgallery.php">Add New Gallery</a><?php membersmenu($user->membertype); ?></p>
! <p><em><?php echo $gallery->GalleryName; ?> Options -</em><a href="edit.php?ID=<?php echo $_GET['ID']; ?>">Edit</a>
! <a href="upload.php?ID=<?php echo $_GET['ID']; ?>">Upload Photos</a>
! <a href="cleargallery.php?ID=<?php echo $_GET['ID']; ?>">Clear Gallery</a></p>
<br><br><p align="center">You are trying to clear the entire <b><?php echo $gallery->GalleryName; ?></b>
gallery! <a href="cleargallery.php?ID=<?php echo $_GET['ID']; ?>&CONFIRM=True">Confirm</a></p>
Index: edit.php
===================================================================
RCS file: /cvsroot/openfirst/photogallery/edit.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** edit.php 5 Jun 2003 18:36:16 -0000 1.2
--- edit.php 7 Jun 2003 03:09:21 -0000 1.3
***************
*** 34,37 ****
--- 34,40 ----
mysql_select_db($sqldatabase,$sqlconnection);
+ // Check if user is an admin then allow processes
+ if (isset($user->user)){
+
// Check if user initiated delete and run delete process
if(ISSET($_GET['DELETE'])){
***************
*** 65,73 ****
?>
! <h2>Edit Gallery</h2><p>[ <a href="manage.php">Manager</a> ] [ <a href="newgallery.php">Add New Gallery</a>
! ]</p>
! <p><em><?php echo $gallery->GalleryName; ?> Options - </em>[ <a href="edit.php?ID=<?php echo $_GET['ID']; ?>">Edit</a>
! ] [ <a href="upload.php?ID=<?php echo $_GET['ID']; ?>">Upload Photos</a> ] [
! <a href="cleargallery.php?ID=<?php echo $_GET['ID']; ?>">Clear Gallery</a> ]</p>
<table width="457" border="0" align="center" cellpadding="6" cellspacing="0">
<tr bgcolor="#999999">
--- 68,75 ----
?>
! <h2>Edit Gallery</h2><p><a href="manage.php">Manager</a> <a href="newgallery.php">Add New Gallery</a><?php membersmenu($user->membertype); ?></p>
! <p><em><?php echo $gallery->GalleryName; ?> Options - </em><a href="edit.php?ID=<?php echo $_GET['ID']; ?>">Edit</a>
! <a href="upload.php?ID=<?php echo $_GET['ID']; ?>">Upload Photos</a>
! <a href="cleargallery.php?ID=<?php echo $_GET['ID']; ?>">Clear Gallery</a></p>
<table width="457" border="0" align="center" cellpadding="6" cellspacing="0">
<tr bgcolor="#999999">
***************
*** 104,109 ****
?>
</td>
! <td valign="top">[ <a href='makethumb.php?ID=<?php echo $_GET['ID']; ?>&PHOTO=<?php echo $file; ?>'>Make Thumbnail</a> ]<br>
! [ <a href='edit.php?ID=<?php echo $_GET['ID']; ?>&DELETEPHOTO=True&PHOTO=<?php echo $file; ?>'>Delete</a> ]</td>
</tr>
<?php
--- 106,111 ----
?>
</td>
! <td valign="top"><a href='makethumb.php?ID=<?php echo $_GET['ID']; ?>&PHOTO=<?php echo $file; ?>'>Make Thumbnail</a> <br>
! <a href='edit.php?ID=<?php echo $_GET['ID']; ?>&DELETEPHOTO=True&PHOTO=<?php echo $file; ?>'>Delete</a></td>
</tr>
<?php
***************
*** 116,119 ****
?>
</table>
! <center><br>[ <a href='makethumb.php?ID=<?php echo $_GET['ID']; ?>; ?>&OPTION=all'>Make Thumbnail's for Entire Gallery</a> ]<br><br></center>
! <?php include($footer); ?>
\ No newline at end of file
--- 118,126 ----
?>
</table>
! <center><br><a href='makethumb.php?ID=<?php echo $_GET['ID']; ?>; ?>&OPTION=all'>Make Thumbnail's for Entire Gallery</a><br><br></center>
! <?php
! }else{
! showlogin();
! }
! include($footer);
! ?>
\ No newline at end of file
Index: makethumb.php
===================================================================
RCS file: /cvsroot/openfirst/photogallery/makethumb.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** makethumb.php 5 Jun 2003 18:36:19 -0000 1.1
--- makethumb.php 7 Jun 2003 03:09:21 -0000 1.2
***************
*** 34,37 ****
--- 34,40 ----
mysql_select_db($sqldatabase,$sqlconnection);
+
+ // Check if user is an admin then allow processes
+ if (isset($user->user)){
$query = mysql_query("SELECT * FROM ofirst_galleries WHERE ID = '".$_GET['ID']."'") or die(mysql_error());
***************
*** 58,61 ****
--- 61,67 ----
}
+ }else{
+ showlogin();
+ }
include($footer);
Index: manage.php
===================================================================
RCS file: /cvsroot/openfirst/photogallery/manage.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** manage.php 5 Jun 2003 01:56:56 -0000 1.1
--- manage.php 7 Jun 2003 03:09:21 -0000 1.2
***************
*** 33,41 ****
mysql_select_db($sqldatabase,$sqlconnection);
?>
<h2>Gallery Manager</h2>
! <p>[ <a href="manage.php">Manager</a> ] [ <a href="newgallery.php">Add New Gallery</a>
! ]</p>
<p align="center">
<table width="633" border="0" align="center" cellpadding="6" cellspacing="0">
--- 33,43 ----
mysql_select_db($sqldatabase,$sqlconnection);
+
+ // Check if user is an admin then allow processes
+ if (isset($user->user)){
?>
<h2>Gallery Manager</h2>
! <p><a href="manage.php">Manager</a> <a href="newgallery.php">Add New Gallery</a><?php membersmenu($user->membertype); ?></p>
<p align="center">
<table width="633" border="0" align="center" cellpadding="6" cellspacing="0">
***************
*** 73,75 ****
</p>
<p align="center"> </p>
! <?php include($footer); ?>
\ No newline at end of file
--- 75,82 ----
</p>
<p align="center"> </p>
! <?php
! }else{
! showlogin();
! }
! include($footer);
! ?>
\ No newline at end of file
Index: newgallery.php
===================================================================
RCS file: /cvsroot/openfirst/photogallery/newgallery.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** newgallery.php 5 Jun 2003 01:56:56 -0000 1.1
--- newgallery.php 7 Jun 2003 03:09:21 -0000 1.2
***************
*** 34,37 ****
--- 34,41 ----
mysql_select_db($sqldatabase,$sqlconnection);
+
+ // Check if user is an admin then allow processes
+ if (isset($user->user)){
+
// Check if user initiates create option and run create options
if(ISSET($_POST['create'])){
***************
*** 51,56 ****
?>
<h2>New Gallery</h2>
! <p>[ <a href="manage.php">Manager</a> ] [ <a href="newgallery.php">Add New Gallery</a>
! ]</p>
<form method="POST" action="newgallery.php">
<table width="499" border="0" align="center" cellpadding="6" cellspacing="0">
--- 55,59 ----
?>
<h2>New Gallery</h2>
! <p><a href="manage.php">Manager</a> <a href="newgallery.php">Add New Gallery</a><?php membersmenu($user->membertype); ?></p>
<form method="POST" action="newgallery.php">
<table width="499" border="0" align="center" cellpadding="6" cellspacing="0">
***************
*** 85,87 ****
</table>
</form>
! <?php include($footer); ?>
--- 88,97 ----
</table>
</form>
! <?php
!
! }else{
! showlogin();
! }
! include($footer);
!
! ?>
Index: upload.php
===================================================================
RCS file: /cvsroot/openfirst/photogallery/upload.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** upload.php 5 Jun 2003 14:16:27 -0000 1.2
--- upload.php 7 Jun 2003 03:09:21 -0000 1.3
***************
*** 34,37 ****
--- 34,40 ----
mysql_select_db($sqldatabase,$sqlconnection);
+ // Check if user is an admin then allow processes
+ if (isset($user->user)){
+
$query = mysql_query("SELECT * FROM ofirst_galleries WHERE ID = '".$_GET['ID']."'");
$gallery = mysql_fetch_object($query);
***************
*** 89,98 ****
?>
<h2>Upload to Gallery</h2>
! <p>[ <a href="manage.php">Manager</a> ] [ <a href="newgallery.php">Add New Gallery</a>
! ]</p>
! <p><em><?php echo $gallery->GalleryName; ?> Options - </em>[ <a href="edit.php?ID=<?php echo $_GET['ID']; ?>">Edit
! </a>] [ <a href="upload.php?ID=<?php echo $_GET['ID']; ?>">Upload Photos</a>
! ] [ <a href="cleargallery.php?ID=<?php echo $_GET['ID']; ?>">Clear Gallery</a>
! ]</p>
<p align="center">Current Files Allowd: <?php echo $imgtypes; ?></p>
<p align="center">
--- 92,99 ----
?>
<h2>Upload to Gallery</h2>
! <p><a href="manage.php">Manager</a> <a href="newgallery.php">Add New Gallery</a><?php membersmenu($user->membertype); ?></p>
! <p><em><?php echo $gallery->GalleryName; ?> Options - </em><a href="edit.php?ID=<?php echo $_GET['ID']; ?>">Edit
! </a> <a href="upload.php?ID=<?php echo $_GET['ID']; ?>">Upload Photos</a>
! <a href="cleargallery.php?ID=<?php echo $_GET['ID']; ?>">Clear Gallery</a> </p>
<p align="center">Current Files Allowd: <?php echo $imgtypes; ?></p>
<p align="center">
***************
*** 112,114 ****
<input name="upload" type="submit" value="Upload To Gallery">
</form>
! <?php include($footer); ?>
--- 113,120 ----
<input name="upload" type="submit" value="Upload To Gallery">
</form>
! <?php
! }else{
! showlogin();
! }
! include($footer);
! ?>
|