mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Added $CACHE_DIRECTORY and $UPLOADS_DIRECTORY to install routine. Still needs to be tested.
This commit is contained in:
parent
a88ec7aa54
commit
067384d0f6
15
install_.php
15
install_.php
@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/install_.php,v $
|
||||
| $Revision: 1.4 $
|
||||
| $Date: 2007-03-05 21:13:05 $
|
||||
| $Author: e107steved $
|
||||
| $Revision: 1.5 $
|
||||
| $Date: 2008-01-16 11:08:52 $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@ -28,7 +28,9 @@ $PLUGINS_DIRECTORY = "e107_plugins/";
|
||||
$HANDLERS_DIRECTORY = "e107_handlers/";
|
||||
$LANGUAGES_DIRECTORY = "e107_languages/";
|
||||
$HELP_DIRECTORY = "e107_docs/help/";
|
||||
$CACHE_DIRECTORY = "e107_files/cache/";
|
||||
$DOWNLOADS_DIRECTORY = "e107_files/downloads/";
|
||||
$UPLOADS_DIRECTORY = "e107_files/public/";
|
||||
|
||||
/* End configurable variables */
|
||||
|
||||
@ -106,7 +108,7 @@ $installer_folder_name = 'e107_install';
|
||||
|
||||
include_once("./{$HANDLERS_DIRECTORY}e107_class.php");
|
||||
|
||||
$e107_paths = compact('ADMIN_DIRECTORY', 'FILES_DIRECTORY', 'IMAGES_DIRECTORY', 'THEMES_DIRECTORY', 'PLUGINS_DIRECTORY', 'HANDLERS_DIRECTORY', 'LANGUAGES_DIRECTORY', 'HELP_DIRECTORY', 'DOWNLOADS_DIRECTORY');
|
||||
$e107_paths = compact('ADMIN_DIRECTORY', 'FILES_DIRECTORY', 'IMAGES_DIRECTORY', 'THEMES_DIRECTORY', 'PLUGINS_DIRECTORY', 'HANDLERS_DIRECTORY', 'LANGUAGES_DIRECTORY', 'HELP_DIRECTORY', 'CACHE_DIRECTORY', 'DOWNLOADS_DIRECTORY', 'UPLOADS_DIRECTORY');
|
||||
$e107 = new e107($e107_paths, realpath(dirname(__FILE__)));
|
||||
unset($e107_paths);
|
||||
|
||||
@ -564,7 +566,10 @@ This file has been generated by the installation script.
|
||||
\$HANDLERS_DIRECTORY = \"{$this->e107->e107_dirs['HANDLERS_DIRECTORY']}\";
|
||||
\$LANGUAGES_DIRECTORY = \"{$this->e107->e107_dirs['LANGUAGES_DIRECTORY']}\";
|
||||
\$HELP_DIRECTORY = \"{$this->e107->e107_dirs['HELP_DIRECTORY']}\";
|
||||
\$CACHE_DIRECTORY = \"{$this->e107->e107_dirs['CACHE_DIRECTORY']}\";
|
||||
\$DOWNLOADS_DIRECTORY = \"{$this->e107->e107_dirs['DOWNLOADS_DIRECTORY']}\";
|
||||
\$UPLOADS_DIRECTORY = \"{$this->e107->e107_dirs['UPLOADS_DIRECTORY']}\";
|
||||
|
||||
|
||||
?>";
|
||||
|
||||
@ -622,7 +627,7 @@ This file has been generated by the installation script.
|
||||
|
||||
function check_writable_perms(){
|
||||
$bad_files = array();
|
||||
$data = 'e107_config.php|{$FILES_DIRECTORY}cache/|{$FILES_DIRECTORY}public/|{$FILES_DIRECTORY}public/avatars/|{$PLUGINS_DIRECTORY}|{$THEMES_DIRECTORY}';
|
||||
$data = 'e107_config.php|{$CACHE_DIRECTORY}|{$UPLOADS_DIRECTORY}|{$FILES_DIRECTORY}public/avatars/|{$PLUGINS_DIRECTORY}|{$THEMES_DIRECTORY}';
|
||||
foreach ($this->e107->e107_dirs as $dir_name => $value) {
|
||||
$find[] = "{\${$dir_name}}";
|
||||
$replace[] = "./$value";
|
||||
|
Loading…
x
Reference in New Issue
Block a user