[Spidertree-cvs] spidertree/classes SAlbum.php,1.5,1.6
Status: Pre-Alpha
Brought to you by:
spiderr
|
From: <sp...@us...> - 2004-02-08 02:40:14
|
Update of /cvsroot/spidertree/spidertree/classes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2165/spidertree/classes Modified Files: SAlbum.php Log Message: more uploading Index: SAlbum.php =================================================================== RCS file: /cvsroot/spidertree/spidertree/classes/SAlbum.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- SAlbum.php 8 Feb 2004 02:09:43 -0000 1.5 +++ SAlbum.php 8 Feb 2004 02:37:16 -0000 1.6 @@ -192,7 +192,9 @@ $imageHash['dest_loc'] = $iDestPath.$files['name'][$i]; $imageHash['size'] = $files['size'][$i]; $image = new SImage( NULL, $this->mUID ); - if( !$image->store( $imageHash ) ) { + if( $image->store( $imageHash ) ) { + $this->addImage( ); + } else { pvd( $image->mErrors ); } } @@ -200,6 +202,25 @@ } // }}} + // {{{ processUpload + /** + * accepts a HTTP_POST_FILES var, saves the images, and adds them to this album + * + * @param $pPostFiles a $HTTP_POST_FILES varible with 'UPLOAD' as the hash to use + * @return TRUE if successful, FALSE if not. mErrors will hold error strings + * @access public + **/ + function addImage( $iImageMixed ) { + if( isset( $this->mALID ) && isset( $this->mUID ) ) { + if( is_numeric( $iImageMixed ) ) { + $sql = "INSERT"; + } + } + } + // }}} + + + } |