/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

  1. <?php
  2. /**
  3. * See the enclosed file license.txt for licensing information.
  4. * If you did not receive this file, get it at http://www.fsf.org/copyleft/gpl.html
  5. *
  6. * @copyright Xoops Engine
  7. * @license BSD License
  8. * @package installer
  9. * @since 3.0
  10. * @author Taiwen Jiang <phppp@users.sourceforge.net>
  11. * @author Skalpa Keo <skalpa@xoops.org>
  12. * @version $Id$
  13. */
  14. $configs = array();
  15. // Server settings
  16. $configs['system'] = array(
  17. 'server' => '_INSTALL_REQUIREMENT_SERVER',
  18. 'php' => '_INSTALL_REQUIREMENT_PHP',
  19. 'persist' => '_INSTALL_REQUIREMENT_PERSIST',
  20. 'pdo' => '_INSTALL_REQUIREMENT_PDO',
  21. );
  22. // PHP extensions
  23. $configs['extension'] = array(
  24. 'apc' => '_INSTALL_EXTENSION_APC',
  25. 'redis' => '_INSTALL_EXTENSION_REDIS',
  26. 'memcached' => '_INSTALL_EXTENSION_MEMCACHED',
  27. 'memcache' => '_INSTALL_EXTENSION_MEMCACHE',
  28. 'mbstring' => '_INSTALL_EXTENSION_MBSTRING',
  29. //'gd' => '_INSTALL_EXTENSION_GD',
  30. //'iconv' => '_INSTALL_EXTENSION_ICONV',
  31. //'xml' => '_INSTALL_EXTENSION_XML',
  32. //'zlib' => '_INSTALL_EXTENSION_ZLIB',
  33. //'mcrypt' => '_INSTALL_EXTENSION_MCRYPT',
  34. //'fileinfo' => '_INSTALL_EXTENSION_FILEINFO',
  35. //'json' => '_INSTALL_EXTENSION_JSON',
  36. //'ftp' => '_INSTALL_EXTENSION_FTP',
  37. );
  38. // setup config site info
  39. $configs['db_types'] = array('mysql');
  40. // Directories
  41. $configs['paths'] = array(
  42. 'lib' => array(
  43. 'path' => array('../lib', 'lib'),
  44. 'url' => 'browse.php?lib',
  45. ),
  46. 'var' => array(
  47. 'path' => array('../var', 'var'),
  48. 'url' => 'browse.php?var',
  49. ),
  50. 'usr' => array(
  51. 'path' => array('../usr', 'usr', '%lib/usr'),
  52. 'url' => false,
  53. ),
  54. 'app' => array(
  55. 'path' => '%usr/apps',
  56. 'url' => 'browse.php?app',
  57. ),
  58. 'plugin' => array(
  59. 'path' => '%usr/plugins',
  60. 'url' => 'browse.php?plugin',
  61. ),
  62. 'applet' => array(
  63. 'path' => '%usr/applets',
  64. 'url' => 'browse.php?applet',
  65. ),
  66. 'img' => array(
  67. 'path' => array('img', '../img', 'static', '../static'),
  68. 'url' => array(
  69. '%www/img', 'http://img.' . preg_replace('/^(www\.)/i', '', $_SERVER['HTTP_HOST']),
  70. '%www/static', 'http://static.' . preg_replace('/^(www\.)/i', '', $_SERVER['HTTP_HOST']),
  71. ),
  72. ),
  73. 'theme' => array(
  74. 'path' => array('skin', 'themes'),
  75. 'url' => array('skin', 'themes'),
  76. ),
  77. 'upload' => array(
  78. 'path' => 'uploads',
  79. 'url' => 'uploads',
  80. ),
  81. );
  82. // Writable files and directories
  83. $configs['writable']['www'] = array('.htaccess', 'boot.php');
  84. $configs['writable']['lib'] = array("boot");
  85. $configs['writable']['var'] = "";
  86. $configs['writable']['upload'] = "";
  87. return $configs;