/htdocs/setup/include/config.php
https://github.com/Doap/xoops · PHP · 94 lines · 62 code · 7 blank · 25 comment · 0 complexity · 8d35973662d4be8041c262a28442b8a3 MD5 · raw file
- <?php
- /**
- * See the enclosed file license.txt for licensing information.
- * If you did not receive this file, get it at http://www.fsf.org/copyleft/gpl.html
- *
- * @copyright Xoops Engine
- * @license BSD License
- * @package installer
- * @since 3.0
- * @author Taiwen Jiang <phppp@users.sourceforge.net>
- * @author Skalpa Keo <skalpa@xoops.org>
- * @version $Id$
- */
- $configs = array();
- // Server settings
- $configs['system'] = array(
- 'server' => '_INSTALL_REQUIREMENT_SERVER',
- 'php' => '_INSTALL_REQUIREMENT_PHP',
- 'persist' => '_INSTALL_REQUIREMENT_PERSIST',
- 'pdo' => '_INSTALL_REQUIREMENT_PDO',
- );
- // PHP extensions
- $configs['extension'] = array(
- 'apc' => '_INSTALL_EXTENSION_APC',
- 'redis' => '_INSTALL_EXTENSION_REDIS',
- 'memcached' => '_INSTALL_EXTENSION_MEMCACHED',
- 'memcache' => '_INSTALL_EXTENSION_MEMCACHE',
- 'mbstring' => '_INSTALL_EXTENSION_MBSTRING',
- //'gd' => '_INSTALL_EXTENSION_GD',
- //'iconv' => '_INSTALL_EXTENSION_ICONV',
- //'xml' => '_INSTALL_EXTENSION_XML',
- //'zlib' => '_INSTALL_EXTENSION_ZLIB',
- //'mcrypt' => '_INSTALL_EXTENSION_MCRYPT',
- //'fileinfo' => '_INSTALL_EXTENSION_FILEINFO',
- //'json' => '_INSTALL_EXTENSION_JSON',
- //'ftp' => '_INSTALL_EXTENSION_FTP',
- );
- // setup config site info
- $configs['db_types'] = array('mysql');
- // Directories
- $configs['paths'] = array(
- 'lib' => array(
- 'path' => array('../lib', 'lib'),
- 'url' => 'browse.php?lib',
- ),
- 'var' => array(
- 'path' => array('../var', 'var'),
- 'url' => 'browse.php?var',
- ),
- 'usr' => array(
- 'path' => array('../usr', 'usr', '%lib/usr'),
- 'url' => false,
- ),
- 'app' => array(
- 'path' => '%usr/apps',
- 'url' => 'browse.php?app',
- ),
- 'plugin' => array(
- 'path' => '%usr/plugins',
- 'url' => 'browse.php?plugin',
- ),
- 'applet' => array(
- 'path' => '%usr/applets',
- 'url' => 'browse.php?applet',
- ),
- 'img' => array(
- 'path' => array('img', '../img', 'static', '../static'),
- 'url' => array(
- '%www/img', 'http://img.' . preg_replace('/^(www\.)/i', '', $_SERVER['HTTP_HOST']),
- '%www/static', 'http://static.' . preg_replace('/^(www\.)/i', '', $_SERVER['HTTP_HOST']),
- ),
- ),
- 'theme' => array(
- 'path' => array('skin', 'themes'),
- 'url' => array('skin', 'themes'),
- ),
- 'upload' => array(
- 'path' => 'uploads',
- 'url' => 'uploads',
- ),
- );
- // Writable files and directories
- $configs['writable']['www'] = array('.htaccess', 'boot.php');
- $configs['writable']['lib'] = array("boot");
- $configs['writable']['var'] = "";
- $configs['writable']['upload'] = "";
- return $configs;