[PHPPlanner-cvs] phpplanner install.php,1.9,1.10
Status: Beta
Brought to you by:
tomsommer
From: Tom S. <tom...@us...> - 2004-04-24 22:22:28
|
Update of /cvsroot/phpplanner/phpplanner In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32337 Modified Files: install.php Log Message: Make the compile folder during installation Index: install.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/install.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- install.php 24 Apr 2004 22:15:00 -0000 1.9 +++ install.php 24 Apr 2004 22:22:19 -0000 1.10 @@ -102,7 +102,7 @@ $filemode = (( $_POST['install_type'] != 'install' ) ? 'a+' : 'w+'); /* Build those lovely config files */ - if ( ($fp = fopen($config_file, $filemode) ) != FALSE) + if ( ($fp = @fopen($config_file, $filemode) ) != FALSE) { if ( $_POST['install_type'] == 'install' ) { @@ -139,6 +139,10 @@ die('Error writing config.php file'); } + if ( !is_dir($_POST['path_to_calendar'] . 'templates/_compiled') ) { + mkdir($_POST['path_to_calendar'] . 'templates/_compiled', 0777); + } + } |