Changeset 6526

Show
Ignore:
Timestamp:
08/31/08 17:16:27 (3 months ago)
Author:
p_lindheimer
Message:

closes #3137

db_connect.php:

  • removed all checks for notification panel when in quietmode since
    it's usually used for ajax calls and other light weight calls
    that can do without the overhead.

config.php:

  • added restrictmods parameter, populated with '/' separted module
    names. If passed, only these modules will have their functions.inc.php
    files included. Used for light weight ajax and similar calls, to
    avoid the overhead if we know we don't need those.
  • removed all checks for notification panel when in quietmode. Removed
    the inclusion of hooks when in quietmode.

functions.inc.php:

  • added modulelist class, used to cache the module xml structure which
    is now serialized and saved to the db to avoid the heavy xml processing
    overhead of reading all the module.xml files. (should probably move
    most of module_getinfo() into the class but for starters just did minimal
    changes to avoid introducing bugs since this is pretty sensitive).
  • fixed several instances of using " instead of ' in sql satements which
    breaks sqlite3 queries often.
  • replaced all instances of addslashes() with $db->escapeSimple() since
    sqlite3 is not compatible with addslashes() and this makes it db
    independent through pear.
  • added third argument to module_getinfo() defaulting in false. Setting to
    true forces a read of all the module.xml files. Module Admin and
    module_admin should always set this to true.

header.php

  • removed all checks for notification panel when in quietmode

page.modules.php

  • added third true paramter to module_getinfo

module_admin

  • added third true paramter to module_getinfo
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.5/amp_conf/bin/module_admin

    r5107 r6526  
    136136 
    137137function showList($online = false) { 
    138         $modules_local = module_getinfo(); 
     138        $modules_local = module_getinfo(false,false,true); 
    139139        $modules = $modules_local; 
    140140        if ($online) { 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads