Changeset 10866
- Timestamp:
- 01/09/11 12:06:47 (2 years ago)
- Files:
-
- freepbx/trunk (modified) (1 prop)
- freepbx/trunk/amp_conf/bin/generate_hints.php (modified) (1 diff)
- freepbx/trunk/amp_conf/htdocs/admin/bootstrap.php (modified) (6 diffs)
- freepbx/trunk/amp_conf/htdocs/admin/cdr/lib/defines.php (modified) (1 diff)
- freepbx/trunk/amp_conf/htdocs/admin/libraries/php-asmanager.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk
- Property svnmerge-integrated changed from /freepbx/branches/bootstrap:1-10446,10448-10638,10640-10847 /freepbx/branches/2.8:1-10634 to /freepbx/branches/bootstrap:1-10446,10448-10638,10640-10865 /freepbx/branches/2.8:1-10634
freepbx/trunk/amp_conf/bin/generate_hints.php
r10865 r10866 4 4 $restrict_mods = true; 5 5 $bootstrap_settings['freepbx_auth'] = false; 6 $bootstrap_settings['skip_db'] = true;7 6 if (!@include_once(getenv('FREEPBX_CONF') ? getenv('FREEPBX_CONF') : '/etc/freepbx.conf')) { 8 7 include_once('/etc/asterisk/freepbx.conf'); freepbx/trunk/amp_conf/htdocs/admin/bootstrap.php
r10865 r10866 2 2 /* Bootstrap Settings: 3 3 * 4 * bootstrap_settings['skip_db'] - legacy $skip_db, default false5 4 * bootstrap_settings['skip_astman'] - legacy $skip_astman, default false 6 5 * … … 19 18 */ 20 19 21 if (!isset($bootstrap_settings['skip_db'])) {22 $bootstrap_settings['skip_db'] = isset($skip_db) ? $skip_db : false;23 }24 20 if (!isset($bootstrap_settings['skip_astman'])) { 25 21 $bootstrap_settings['skip_astman'] = isset($skip_astman) ? $skip_astman : false; … … 44 40 // include base functions 45 41 require_once(dirname(__FILE__) . '/functions.inc.php'); 42 $bootstrap_settings['framework_functions_included'] = true; 46 43 47 44 //now that its been included, use our own error handler as it tends to be much more verbose. … … 59 56 60 57 // connect to database 61 if (!$bootstrap_settings['skip_db']) { 62 require_once(dirname(__FILE__) . '/common/db_connect.php'); //PEAR must be installed 63 //keep old values as well so that we have the db settings handy 64 // get settings 65 $amp_conf = $amp_conf + parse_amportal_conf("/etc/amportal.conf"); 66 $asterisk_conf = parse_asterisk_conf($amp_conf["ASTETCDIR"] . "/asterisk.conf"); 67 } 58 require_once(dirname(__FILE__) . '/common/db_connect.php'); //PEAR must be installed 59 //keep old values as well so that we have the db settings handy 60 // get settings 61 $amp_conf = $amp_conf + parse_amportal_conf("/etc/amportal.conf"); 62 $asterisk_conf = parse_asterisk_conf($amp_conf["ASTETCDIR"] . "/asterisk.conf"); 63 $bootstrap_settings['amportal_conf_initialized'] = true; 68 64 69 65 //set error reporting level if set … … 81 77 // couldn't connect at all 82 78 unset( $astman ); 79 $bootstrap_settings['astman_connected'] = false; 80 } else { 81 $bootstrap_settings['astman_connected'] = true; 83 82 } 84 83 } 84 } else { 85 $bootstrap_settings['astman_connected'] = true; 85 86 } 86 87 … … 135 136 } 136 137 } 138 $bootstrap_settings['function_modules_included'] = true; 137 139 } 140 } else { 141 $bootstrap_settings['function_modules_included'] = false; 138 142 } 139 143 ?> freepbx/trunk/amp_conf/htdocs/admin/cdr/lib/defines.php
r10865 r10866 1 1 <?php /* $Id$ */ 2 $restrict_mods = true; 3 $skip_db = true; 4 $skip_astman = true; 5 if (!@include_once(getenv('FREEPBX_CONF') ? getenv('FREEPBX_CONF') : '/etc/freepbx.conf')) { 6 include_once('/etc/asterisk/freepbx.conf'); 2 if (!isset($bootstrap_settings['amportal_conf_initialized']) || !$bootstrap_settings['amportal_conf_initialized']) { 3 $restrict_mods = true; 4 $bootstrap_settings['skip_astman'] = true; 5 if (!@include_once(getenv('FREEPBX_CONF') ? getenv('FREEPBX_CONF') : '/etc/freepbx.conf')) { 6 include_once('/etc/asterisk/freepbx.conf'); 7 } 7 8 } 8 9 if (!defined('FREEPBX_IS_AUTH')) { die('No direct script access allowed'); } freepbx/trunk/amp_conf/htdocs/admin/libraries/php-asmanager.php
r10865 r10866 23 23 /** 24 24 * Written for PHP 4.3.4, should work with older PHP 4.x versions. 25 * Please submit bug reports, patches, etc to http://sourceforge.net/projects/phpagi/26 * Gracias. :)27 25 * 28 26 */ 29 27 30 $restrict_mods = false; 31 $skip_astman = true; 32 33 if (!@include_once(getenv('FREEPBX_CONF') ? getenv('FREEPBX_CONF') : '/etc/freepbx.conf')) { 34 include_once('/etc/asterisk/freepbx.conf'); 35 } 28 if (!isset($bootstrap_settings['amportal_conf_initialized']) || !$bootstrap_settings['amportal_conf_initialized']) { 29 $bootstrap_settings['skip_astman'] = true; 30 $restrict_mods = true; 31 if (!@include_once(getenv('FREEPBX_CONF') ? getenv('FREEPBX_CONF') : '/etc/freepbx.conf')) { 32 include_once('/etc/asterisk/freepbx.conf'); 33 } 34 } 36 35 37 36 define('AST_CONFIG_DIR', $amp_conf['ASTETCDIR']);
