[Openfirst-cvscommit] photogallery/admin edit.php,1.15,1.16 galleryglobals.php,1.5,1.6 index.php,1.1
Brought to you by:
xtimg
From: Astronouth7303 <ast...@us...> - 2005-03-14 00:55:10
|
Update of /cvsroot/openfirst/photogallery/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20907/photogallery/admin Modified Files: edit.php galleryglobals.php index.php newgallery.php Log Message: -Corrected usage of $home -Added $server Index: galleryglobals.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/galleryglobals.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** galleryglobals.php 28 Feb 2004 02:12:17 -0000 1.5 --- galleryglobals.php 14 Mar 2005 00:55:00 -0000 1.6 *************** *** 23,27 **** */ ! $gallerydir = "gallery/"; // Declare gallery location compared to galleryglobals.php //Declare image types allowed for uploading/previewing --- 23,27 ---- */ ! $gallerydir = "/gallery"; // Declare gallery location compared to galleryglobals.php //Declare image types allowed for uploading/previewing Index: newgallery.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/newgallery.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** newgallery.php 12 Apr 2004 23:39:41 -0000 1.14 --- newgallery.php 14 Mar 2005 00:55:00 -0000 1.15 *************** *** 30,39 **** die(include_once($footer)); } ! // Check if user initiates create option and run create options if(isset($_POST['create'])){ ! if(is_writable("../" . $gallerydir) && ! file_exists("../".$gallerydir.$_POST['galleryname'])) { ! mkdir("../".$gallerydir.$_POST['galleryname'],0777) or die("<br><br><center>Can't create folder! [ <a href='index.php'>Manage</a> ]"); ! mkdir("../".$gallerydir.$_POST['galleryname']."/thumbs",0777) or die("<br><br><center>Can't create folder! [ <a href='index.php'>Manage</a> ]"); ofirst_dbquery("INSERT INTO ofirst_photogallery_galleries (GalleryName, Author, Dates, Description) values( --- 30,41 ---- die(include_once($footer)); } ! echo '<pre>'; ! var_dump($fbasepath); ! echo '</pre>'; // Check if user initiates create option and run create options if(isset($_POST['create'])){ ! if(is_writable("$fbasepath$gallerydir/") && ! file_exists("$fbasepath$gallerydir/".$_POST['galleryname'])) { ! mkdir("$fbasepath$gallerydir/".$_POST['galleryname'],0777) or die("<br><br><center>Can't create folder! [ <a href='index.php'>Manage</a> ]"); ! mkdir("$fbasepath$gallerydir/".$_POST['galleryname']."/thumbs",0777) or die("<br><br><center>Can't create folder! [ <a href='index.php'>Manage</a> ]"); ofirst_dbquery("INSERT INTO ofirst_photogallery_galleries (GalleryName, Author, Dates, Description) values( *************** *** 44,50 **** echo "<br><br><center>New gallery added! [ <a href='index.php'>Manage</a> ]</center><br><br>"; ! } elseif(is_writable("../" . $gallerydir) && file_exists("../".$gallerydir.$_POST['galleryname'])) { echo("A gallery by that name already exists.<br> [ <a href='newgallery.php'>New Gallery</a>"); ! } elseif(file_exists("../" . $gallerydir)) { echo("It appears that the permissions on the photogallery have become incorrect. In order for uploading of pictures to work, the gallery directory within the photogallery module must be --- 46,52 ---- echo "<br><br><center>New gallery added! [ <a href='index.php'>Manage</a> ]</center><br><br>"; ! } elseif(is_writable("$fbasepath$gallerydir/") && file_exists("$fbasepath$gallerydir/".$_POST['galleryname'])) { echo("A gallery by that name already exists.<br> [ <a href='newgallery.php'>New Gallery</a>"); ! } elseif(file_exists("$fbasepath$gallerydir")) { echo("It appears that the permissions on the photogallery have become incorrect. In order for uploading of pictures to work, the gallery directory within the photogallery module must be *************** *** 54,58 **** <br><tt>chmod -R 666 photogallery/gallery/</tt>"); } else { ! echo("<p>It appears as though you have not yet created a $gallerydir directory within the photogallery module. In order to use the photogallery module, this directory must be present.</p>"); } --- 56,60 ---- <br><tt>chmod -R 666 photogallery/gallery/</tt>"); } else { ! echo("<p>It appears as though you have not yet created a |$fbasepath|$gallerydir|/ directory within the photogallery module. In order to use the photogallery module, this directory must be present.</p>"); } Index: edit.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/edit.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** edit.php 30 Jul 2004 00:32:16 -0000 1.15 --- edit.php 14 Mar 2005 00:55:00 -0000 1.16 *************** *** 161,166 **** ?> </td> ! <td valign="top"><a href="editphoto.php?ID=<?php echo $_GET['ID']; ?>&PHOTO=<?php echo $file; ?>"><img src='<?php echo $home.$basepath; ?>/members/icons/actions/edit.png' width="25" height="25" border="0"></a> ! <a href='edit.php?ID=<?php echo $_GET['ID']; ?>&DELETEPHOTO=True&PHOTO=<?php echo $file; ?>'><img src='<?php echo $home.$basepath; ?>/members/icons/actions/button_cancel.png' width="25" height="25" border="0"></a></td> </tr> <?php --- 161,166 ---- ?> </td> ! <td valign="top"><a href="editphoto.php?ID=<?php echo $_GET['ID']; ?>&PHOTO=<?php echo $file; ?>"><img src='<?php echo $basepath; ?>/members/icons/actions/edit.png' width="25" height="25" border="0"></a> ! <a href='edit.php?ID=<?php echo $_GET['ID']; ?>&DELETEPHOTO=True&PHOTO=<?php echo $file; ?>'><img src='<?php echo $basepath; ?>/members/icons/actions/button_cancel.png' width="25" height="25" border="0"></a></td> </tr> <?php Index: index.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/index.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** index.php 28 Feb 2004 02:12:17 -0000 1.10 --- index.php 14 Mar 2005 00:55:00 -0000 1.11 *************** *** 51,56 **** <td width="163"><?php echo $gallery->GalleryName; ?></td> <td width="329"><?php echo $gallery->Description; ?></td> ! <td width="73"><a href="edit.php?ID=<?php echo $gallery->ID; ?>"><img src='<?php echo $home.$basepath; ?>/members/icons/actions/edit.png' border="0"></a> ! <a href="edit.php?DELETE=<?php echo $gallery->ID; ?>"><img src='<?php echo $home.$basepath; ?>/members/icons/actions/button_cancel.png' border="0"></a></td> </tr> <?php --- 51,56 ---- <td width="163"><?php echo $gallery->GalleryName; ?></td> <td width="329"><?php echo $gallery->Description; ?></td> ! <td width="73"><a href="edit.php?ID=<?php echo $gallery->ID; ?>"><img src='<?php echo $basepath; ?>/members/icons/actions/edit.png' border="0"></a> ! <a href="edit.php?DELETE=<?php echo $gallery->ID; ?>"><img src='<?php echo $basepath; ?>/members/icons/actions/button_cancel.png' border="0"></a></td> </tr> <?php |