Update of /cvsroot/phpwsbb/phpwsbb/boost
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28506/boost
Modified Files:
install.php
Log Message:
Fixed Bug Reports [1038264] & [1038092] "1.0.0 CVS: New install doesn't copy images"
Index: install.php
===================================================================
RCS file: /cvsroot/phpwsbb/phpwsbb/boost/install.php,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** install.php 13 Sep 2004 21:41:54 -0000 1.22
--- install.php 1 Oct 2004 06:54:12 -0000 1.23
***************
*** 49,68 ****
/* Create image directory */
! PHPWS_File::makeDir($GLOBALS['core']->home_dir . 'images/phpwsbb');
! if (is_dir($GLOBALS['core']->home_dir . 'images/phpwsbb')) {
! $content .= 'phpwsBB image directory ' . $GLOBALS['core']->home_dir . 'images/phpwsbb/ successfully created!<br />';
! /* Copy image files */
! $images = array();
! if($handle = opendir(PHPWS_SOURCE_DIR . 'mod/phpwsbb/img/')) {
! while (false !== ($file = readdir($handle))) {
! //if ($file != '.' && $file != '..')
! if (is_file(PHPWS_SOURCE_DIR . 'mod/phpwsbb/img/${file}'))
! if(!copy(PHPWS_SOURCE_DIR . 'mod/phpwsbb/img/${file}', $GLOBALS['core']->home_dir . 'images/phpwsbb/${file}'))
! $content .= 'Failed to copy ${file}<br />\n';
! }
! }
! } else
! $content .= 'phpwsBB could not create the image directory: ' . $GLOBALS['core']->home_dir . 'images/phpwsbb/<br />You will have to do this manually!<br />';
!
! ?>
--- 49,58 ----
/* Create image directory */
! $phpwsbb_sourcedir = PHPWS_SOURCE_DIR . 'mod/phpwsbb/img/';
! $phpwsbb_imagedir = $GLOBALS['core']->home_dir . 'images/phpwsbb/';
! if(PHPWS_File::recursiveFileCopy($phpwsbb_sourcedir, $phpwsbb_imagedir))
! $content .= 'phpwsBB image directory ' . $phpwsbb_imagedir . ' successfully created!<br />';
! else
! $content .= 'phpwsBB could not create the image directory: ' . $phpwsbb_imagedir . '<br />You will have to do this manually!<br />';
! ?>
\ No newline at end of file
|