[Openfirst-cvscommit] photogallery/admin newgallery.php,1.15,1.16
Brought to you by:
xtimg
From: Astronouth7303 <ast...@us...> - 2005-03-14 15:19:10
|
Update of /cvsroot/openfirst/photogallery/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11704/photogallery/admin Modified Files: newgallery.php Log Message: -Removed debugging -Corrected location of folder Index: newgallery.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/newgallery.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** newgallery.php 14 Mar 2005 00:55:00 -0000 1.15 --- newgallery.php 14 Mar 2005 15:18:47 -0000 1.16 *************** *** 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( --- 30,38 ---- die(include_once($footer)); } // Check if user initiates create option and run create options if(isset($_POST['create'])){ ! if(is_writable("$fbasepath/photogallery$gallerydir/") && ! file_exists("$fbasepath/photogallery$gallerydir/".$_POST['galleryname'])) { ! mkdir("$fbasepath/photogallery$gallerydir/".$_POST['galleryname'],0777) or die("<br><br><center>Can't create folder! [ <a href='index.php'>Manage</a> ]"); ! mkdir("$fbasepath/photogallery$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( *************** *** 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 --- 43,49 ---- echo "<br><br><center>New gallery added! [ <a href='index.php'>Manage</a> ]</center><br><br>"; ! } elseif(is_writable("$fbasepath/photogallery$gallerydir/") && file_exists("$fbasepath/photogallery$gallerydir/".$_POST['galleryname'])) { echo("A gallery by that name already exists.<br> [ <a href='newgallery.php'>New Gallery</a>"); ! } elseif(file_exists("$fbasepath/photogallery$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 *************** *** 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>"); } --- 53,57 ---- <br><tt>chmod -R 666 photogallery/gallery/</tt>"); } else { ! echo("<p>It appears as though you have not yet created the $gallerydir directory within the photogallery module. In order to use the photogallery module, this directory must be present.</p>"); } |