Changeset 9235

Show
Ignore:
Timestamp:
08/12/08 07:42:11 (4 months ago)
Author:
afz
Message:

Update using registry get method in all core files

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/jaws/html/include/Jaws.php

    r9232 r9235  
    493493        $installedGadgets = array(); 
    494494 
    495         $gs = explode(',', $GLOBALS['app']->Registry->Get('/gadgets/enabled_items')); 
    496         $ci = explode(',', $GLOBALS['app']->Registry->Get('/gadgets/core_items')); 
     495        $gs = explode(',', $GLOBALS['app']->Registry->Get('enabled_gadgets')); 
     496        $ci = explode(',', $GLOBALS['app']->Registry->Get('enabled_core_gadgets')); 
    497497        $ci = str_replace(' ', '', $ci); 
    498498 
     
    801801    function RunAutoload() 
    802802    { 
    803         $data    = $GLOBALS['app']->Registry->Get('/gadgets/autoload_items'); 
     803        $data    = $GLOBALS['app']->Registry->Get('autoload_gadgets'); 
    804804        $gadgets = explode(',', $data); 
    805805        foreach($gadgets as $gadgetName) { 
  • trunk/jaws/html/include/Jaws/ACL.php

    r7922 r9235  
    425425    function LoadAllFiles() 
    426426    { 
    427         $gs = explode(',', $GLOBALS['app']->Registry->Get('/gadgets/enabled_items')); 
    428         $ci = explode(',', $GLOBALS['app']->Registry->Get('/gadgets/core_items')); 
     427        $gs = explode(',', $GLOBALS['app']->Registry->Get('enabled_gadgets')); 
     428        $ci = explode(',', $GLOBALS['app']->Registry->Get('enabled_core_gadgets')); 
    429429 
    430430        $ci = str_replace(' ', '', $ci); 
  • trunk/jaws/html/include/Jaws/Crypt.php

    r9232 r9235  
    4242            return new Jaws_Error('$GLOBALS[\'app\'] not available', 'CRYPT', JAWS_ERROR_ERROR); 
    4343        } 
    44         if ($GLOBALS['app']->Registry->Get('/crypt/enabled') != 'true') { 
     44        if ($GLOBALS['app']->Registry->Get('enabled', 'Jaws_Crypt') != 'true') { 
    4545            return false; 
    4646        } 
    4747 
    48         $pvt_key        = $GLOBALS['app']->Registry->Get('/crypt/pvt_key'); 
    49         $pub_key        = $GLOBALS['app']->Registry->Get('/crypt/pub_key'); 
    50         $key_len        = $GLOBALS['app']->Registry->Get('/crypt/key_len'); 
    51         $key_age        = $GLOBALS['app']->Registry->Get('/crypt/key_age'); 
    52         $key_start_date = $GLOBALS['app']->Registry->Get('/crypt/key_start_date'); 
     48        $pvt_key        = $GLOBALS['app']->Registry->Get('pvt_key', 'Jaws_Crypt'); 
     49        $pub_key        = $GLOBALS['app']->Registry->Get('pub_key', 'Jaws_Crypt'); 
     50        $key_len        = $GLOBALS['app']->Registry->Get('key_len', 'Jaws_Crypt'); 
     51        $key_age        = $GLOBALS['app']->Registry->Get('key_age', 'Jaws_Crypt'); 
     52        $key_start_date = $GLOBALS['app']->Registry->Get('key_start_date', 'Jaws_Crypt'); 
    5353        if (time() > ($key_start_date + $key_age)) { 
    5454            $result = $this->Generate_RSA_KeyPair($key_len, $this->wrapper); 
  • trunk/jaws/html/include/Jaws/FTP.php

    r7922 r9235  
    8484    function LoadFTPSettings() 
    8585    { 
    86         $this->_hostname  = $GLOBALS['app']->Registry->Get('/network/ftp_host'); 
    87         $this->_port      = $GLOBALS['app']->Registry->Get('/network/ftp_port'); 
    88         $this->_passive   = $GLOBALS['app']->Registry->Get('/network/ftp_mode') == 'passive'; 
    89         $this->_username  = $GLOBALS['app']->Registry->Get('/network/ftp_user'); 
    90         $this->_password  = $GLOBALS['app']->Registry->Get('/network/ftp_pass'); 
    91         $this->_root      = $GLOBALS['app']->Registry->Get('/network/ftp_root'); 
     86        $this->_hostname  = $GLOBALS['app']->Registry->Get('ftp_host', 'Jaws_FTP'); 
     87        $this->_port      = $GLOBALS['app']->Registry->Get('ftp_port', 'Jaws_FTP'); 
     88        $this->_passive   = $GLOBALS['app']->Registry->Get('ftp_mode', 'Jaws_FTP') == 'passive'; 
     89        $this->_username  = $GLOBALS['app']->Registry->Get('ftp_user', 'Jaws_FTP'); 
     90        $this->_password  = $GLOBALS['app']->Registry->Get('ftp_pass', 'Jaws_FTP'); 
     91        $this->_root      = $GLOBALS['app']->Registry->Get('ftp_root', 'Jaws_FTP'); 
    9292 
    9393        return true; 
  • trunk/jaws/html/include/Jaws/Gadget.php

    r9232 r9235  
    318318        // is an empty action? 
    319319        if (empty($this->_Action) || $this->_Action == 'DefaultAction') { 
    320             $this->_Action = $GLOBALS['app']->Registry->Get('/gadgets/' . $this->_Name . '/default_action'); 
     320            $this->_Action = $GLOBALS['app']->Registry->Get('default_action', $this->_Name, JAWS_REGISTRY_GADGET); 
    321321            if (empty($this->_Action)) { 
    322322                $this->_Action = 'DefaultAction'; 
     
    400400        } 
    401401 
    402         $plugins = $GLOBALS['app']->Registry->Get('/plugins/parse_text/enabled_items'); 
     402        $plugins = $GLOBALS['app']->Registry->Get('enabled_plugins'); 
    403403        if (!Jaws_Error::isError($plugins) && !empty($plugins)) { 
    404404            $plugins = explode(',', $plugins); 
     
    407407                if (file_exists($file)) { 
    408408                    $GLOBALS['app']->Registry->LoadFile($plugin, 'plugins'); 
    409                     $use_in = $GLOBALS['app']->Registry->Get('/plugins/parse_text/' . $plugin . '/use_in'); 
     409                    $use_in = $GLOBALS['app']->Registry->Get('use_in', $plugin, JAWS_REGISTRY_PLUGIN); 
    410410                    if (!Jaws_Error::isError($use_in) && ($use_in == '*' || in_array($gadget, explode(',', $use_in)))) { 
    411411                        if (!isset($GLOBALS['plugins'][$plugin]['obj'])) { 
     
    450450        // Check if gadget is enabled 
    451451        ///FIXME check for errors 
    452         if ($GLOBALS['app']->Registry->Get('/gadgets/' . $gadget . '/enabled') != 'true') { 
     452        if ($GLOBALS['app']->Registry->Get('enabled', $gadget, JAWS_REGISTRY_GADGET) != 'true') { 
    453453            Jaws_Error::Fatal('Gadget is not enabled', __FILE__, __LINE__); 
    454454        } 
     
    482482 
    483483        if ( 
    484             $GLOBALS['app']->Registry->Get('/gadgets/' . $gadget . '/enabled') == 'true' && 
     484            $GLOBALS['app']->Registry->Get('enabled', $gadget, JAWS_REGISTRY_GADGET) == 'true' && 
    485485            $GLOBALS['app']->Registry->Get('main_gadget') != $gadget 
    486486        ) { 
     
    555555        // Check if it's a core gadget, thus can't be removed. 
    556556        ///FIXME check for errors 
    557         $core = $GLOBALS['app']->Registry->Get('/gadgets/core_items'); 
     557        $core = $GLOBALS['app']->Registry->Get('enabled_core_gadgets'); 
    558558        if (stristr($core, $gadget)) { 
    559559            return false; 
     
    594594    function _commonDisableGadget($gadget) 
    595595    { 
    596         $pull = $GLOBALS['app']->Registry->Get('/gadgets/enabled_items'); 
     596        $pull = $GLOBALS['app']->Registry->Get('enabled_gadgets'); 
    597597        if (stristr($pull, $gadget)) { 
    598598            $pull = str_replace(',' . $gadget, '', $pull); 
     
    600600        $GLOBALS['app']->Registry->Set('/gadgets/enabled_items', $pull); 
    601601 
    602         $gadgets = $GLOBALS['app']->Registry->Get('/gadgets/allowurl_items'); 
     602        $gadgets = $GLOBALS['app']->Registry->Get('allowurl_gadgets'); 
    603603        if (stristr($gadgets, $gadget)) { 
    604604            $gadgets = str_replace(','.$gadget, '', $gadgets); 
     
    607607         
    608608        //Autoload stuff 
    609         $gadgets = $GLOBALS['app']->Registry->Get('/gadgets/autoload_items'); 
     609        $gadgets = $GLOBALS['app']->Registry->Get('autoload_gadgets'); 
    610610        if (stristr($gadgets, $gadget)) { 
    611611            $gadgets = str_replace(','.$gadget, '', $gadgets); 
     
    650650        } 
    651651 
    652         $currentVersion = $GLOBALS['app']->Registry->Get('/gadgets/'.$gadget.'/version'); 
     652        $currentVersion = $GLOBALS['app']->Registry->Get('version', $gadget, JAWS_REGISTRY_GADGET); 
    653653        $newVersion     = $info->GetVersion(); 
    654654 
     
    663663        $GLOBALS['app']->Registry->Commit($gadget); 
    664664 
    665         $data    = $GLOBALS['app']->Registry->Get('/gadgets/allowurl_items'); 
     665        $data    = $GLOBALS['app']->Registry->Get('allowurl_gadgets'); 
    666666        $gadgets = explode(',', $data); 
    667667        if ($info->AllowListURL()) { 
     
    679679        //Autoload feature 
    680680        $autoloadFeature = file_exists(JAWS_PATH . 'gadgets/' . $gadget . '/Autoload.php'); 
    681         $data    = $GLOBALS['app']->Registry->Get('/gadgets/autoload_items'); 
     681        $data    = $GLOBALS['app']->Registry->Get('autoload_gadgets'); 
    682682        $gadgets = explode(',', $data); 
    683683        if ($autoloadFeature) { 
     
    745745        $core = $info->GetAttribute('core_gadget'); 
    746746 
    747         $enabled = '/gadgets/' . $gadget . '/enabled'; 
    748         $status = $GLOBALS['app']->Registry->Get($enabled); 
     747        $status = $GLOBALS['app']->Registry->Get('enabled', $gadget, JAWS_REGISTRY_GADGET); 
    749748        if ($status !== null) { 
    750749            $GLOBALS['app']->Registry->Set('enabled', 'true', $gadget, JAWS_REGISTRY_GADGET); 
     
    764763            } 
    765764 
     765            $enabled = '/gadgets/' . $gadget . '/enabled'; 
    766766            // Applying the keys that every gadget gets 
    767767            $requires = implode($req, ', '); 
     
    777777        } 
    778778 
    779         $type = ($core && !is_null($core)) ? 'core_items' : 'enabled_items'; 
    780         $items = $GLOBALS['app']->Registry->Get('/gadgets/' . $type); 
     779        $type = ($core && !is_null($core)) ? 'enabled_core_gadgets' : 'enabled_gadgets'; 
     780        $items = $GLOBALS['app']->Registry->Get($type); 
    781781        $gadgets = explode(',', $items); 
    782782        if (!in_array($gadget, $gadgets)) { 
    783783            $items .= ',' . $gadget; 
    784             $GLOBALS['app']->Registry->Set('/gadgets/' . $type, $items); 
     784            $GLOBALS['app']->Registry->Set($type, $items); 
    785785        } 
    786786         
    787787        if ($info->AllowListURL()) { 
    788             $data    = $GLOBALS['app']->Registry->Get('/gadgets/allowurl_items'); 
     788            $data    = $GLOBALS['app']->Registry->Get('allowurl_gadgets'); 
    789789            $gadgets = explode(',', $data); 
    790790            if (!in_array($gadget, $gadgets)) { 
     
    796796        $autoloadFeature = file_exists(JAWS_PATH . 'gadgets/' . $gadget . '/Autoload.php'); 
    797797        if ($autoloadFeature) { 
    798             $data    = $GLOBALS['app']->Registry->Get('/gadgets/autoload_items'); 
     798            $data    = $GLOBALS['app']->Registry->Get('autoload_gadgets'); 
    799799            $gadgets = explode(',', $data); 
    800800            if (!in_array($gadget, $gadgets)) { 
     
    826826 
    827827        ///FIXME registry get has to be checked for errors 
    828         $items = trim($GLOBALS['app']->Registry->Get('/gadgets/enabled_items')); 
     828        $items = trim($GLOBALS['app']->Registry->Get('enabled_gadgets')); 
    829829        if (!empty($items) && substr($items,-1) != ',') { 
    830830            $items .= ','; 
    831831        } 
    832832 
    833         $items.= $GLOBALS['app']->Registry->Get('/gadgets/core_items'); 
     833        $items.= $GLOBALS['app']->Registry->Get('enabled_core_gadgets'); 
    834834        if (is_dir(JAWS_PATH . 'gadgets/' . $gadget) && 
    835             $GLOBALS['app']->Registry->Get('/gadgets/'.$gadget.'/enabled') == 'true' && 
     835            $GLOBALS['app']->Registry->Get('enabled', $gadget, JAWS_REGISTRY_GADGET) == 'true' && 
    836836            in_array($gadget, explode(',', $items))) 
    837837        { 
     
    858858                } 
    859859 
    860                 $current_version = $GLOBALS['app']->Registry->Get('/gadgets/'.$gadget.'/version'); 
     860                $current_version = $GLOBALS['app']->Registry->Get('version', $gadget, JAWS_REGISTRY_GADGET); 
    861861                $gadget_version  = $info->GetVersion();; 
    862862 
  • trunk/jaws/html/include/Jaws/InitApplication.php

    r9184 r9235  
    7474$GLOBALS['app']->create(); 
    7575 
    76 if ($GLOBALS['app']->Registry->Get('/version') != JAWS_VERSION) { 
     76if ($GLOBALS['app']->Registry->Get('version') != JAWS_VERSION) { 
    7777    header('Location: upgrade/index.php'); 
    7878} 
  • trunk/jaws/html/include/Jaws/Layout.php

    r9232 r9235  
    488488    function PutGadget($gadget, $action, $section, $requested = false) 
    489489    { 
    490         $enabled = $GLOBALS['app']->Registry->Get('/gadgets/' . $gadget . '/enabled'); 
     490        $enabled = $GLOBALS['app']->Registry->Get('enabled', $gadget, JAWS_REGISTRY_GADGET); 
    491491        if (Jaws_Error::isError($enabled)) { 
    492492            $enabled = 'false'; 
  • trunk/jaws/html/include/Jaws/Mail.php

    r8027 r9235  
    106106 
    107107        // Get the Mail settings data from Registry 
    108         $this->mailer     = $GLOBALS['app']->Registry->Get('/network/mailer'); 
    109         $this->from_email = $GLOBALS['app']->Registry->Get('/network/from_email'); 
    110         $this->from_name  = $GLOBALS['app']->Registry->Get('/network/from_name'); 
     108        $this->mailer     = $GLOBALS['app']->Registry->Get('mailer',     'Jaws_Mail'); 
     109        $this->from_email = $GLOBALS['app']->Registry->Get('from_email', 'Jaws_Mail'); 
     110        $this->from_name  = $GLOBALS['app']->Registry->Get('from_name',  'Jaws_Mail'); 
    111111 
    112112        $params = array(); 
    113         $params['sendmail_path'] = $GLOBALS['app']->Registry->Get('/network/sendmail_path'); 
    114         $params['sendmail_args'] = $GLOBALS['app']->Registry->Get('/network/sendmail_args'); 
    115         $params['host']          = $GLOBALS['app']->Registry->Get('/network/smtp_host'); 
    116         $params['port']          = $GLOBALS['app']->Registry->Get('/network/smtp_port'); 
    117         $params['auth']          = $GLOBALS['app']->Registry->Get('/network/smtp_auth') == 'true'; 
    118         $params['pipelining']    = $GLOBALS['app']->Registry->Get('/network/pipelining') == 'true'; 
    119         $params['username']      = $GLOBALS['app']->Registry->Get('/network/smtp_user'); 
    120         $params['password']      = $GLOBALS['app']->Registry->Get('/network/smtp_pass'); 
     113        $params['sendmail_path'] = $GLOBALS['app']->Registry->Get('sendmail_path', 'Jaws_Mail'); 
     114        $params['sendmail_args'] = $GLOBALS['app']->Registry->Get('sendmail_args', 'Jaws_Mail'); 
     115        $params['host']          = $GLOBALS['app']->Registry->Get('smtp_host',     'Jaws_Mail'); 
     116        $params['port']          = $GLOBALS['app']->Registry->Get('smtp_port',     'Jaws_Mail'); 
     117        $params['auth']          = $GLOBALS['app']->Registry->Get('smtp_auth',     'Jaws_Mail') == 'true'; 
     118        $params['pipelining']    = $GLOBALS['app']->Registry->Get('pipelining',    'Jaws_Mail') == 'true'; 
     119        $params['username']      = $GLOBALS['app']->Registry->Get('smtp_user',     'Jaws_Mail'); 
     120        $params['password']      = $GLOBALS['app']->Registry->Get('smtp_pass',     'Jaws_Mail'); 
    121121 
    122122        $this->params = $params; 
  • trunk/jaws/html/include/Jaws/Plugin.php

    r8517 r9235  
    186186        $pluginkey   = '/plugins/parse_text/' . $plugin . '/enabled'; 
    187187        $pluginusein = '/plugins/parse_text/' . $plugin . '/use_in'; 
    188         $pluginskey  = '/plugins/parse_text/enabled_items'; 
    189188 
    190189        if ( 
     
    196195 
    197196        // Put it in the enabled plugin record 
    198         $items = $GLOBALS['app']->Registry->Get($pluginskey); 
     197        $items = $GLOBALS['app']->Registry->Get('enabled_plugins'); 
    199198        if (!in_array($plugin, explode(',', $items))) { 
    200199            $GLOBALS['app']->Registry->Set($pluginskey, $items.','.$plugin); 
     
    266265 
    267266 
    268         $pull = $GLOBALS['app']->Registry->Get('/plugins/parse_text/enabled_items'); 
     267        $pull = $GLOBALS['app']->Registry->Get('enabled_plugins'); 
    269268        if (stristr($pull, $plugin)) { 
    270269            $new  = eregi_replace(',' . $plugin, '', $pull); 
  • trunk/jaws/html/include/Jaws/Registry.php

    r9232 r9235  
    122122     * @return  bool    true when the key was found, else false 
    123123     */ 
    124     function KeyExists($name, $comp = '', $type = JAWS_REGISTRY_CORE) 
     124    function KeyExists($name, $comp = 'Jaws', $type = JAWS_REGISTRY_CORE) 
    125125    { 
    126126        return array_key_exists($name, $this->_Registry[$type][$comp]); 
     
    136136     * @return  string  The value of the key 
    137137     */ 
    138     function Get($name, $comp = '', $type = JAWS_REGISTRY_CORE) 
     138    function Get($name, $comp = 'Jaws', $type = JAWS_REGISTRY_CORE) 
    139139    { 
    140140        return $this->KeyExists($name, $comp, $type) ? $this->_Registry[$type][$comp][$name] : null; 
     
    192192     * @param   string  $type  The type of the component, (core, plugin or a gadget) 
    193193     */ 
    194     function Set($name, $value, $comp = '', $type = JAWS_REGISTRY_CORE) 
     194    function Set($name, $value, $comp = 'Jaws', $type = JAWS_REGISTRY_CORE) 
    195195    { 
    196196        if (!$this->KeyExists($name, $comp, $type)) { 
     
    233233     * @param   string  $type  The type of the component, (core, plugin or a gadget) 
    234234     */ 
    235     function NewKey($name, $value, $comp = '', $type = JAWS_REGISTRY_CORE) 
     235    function NewKey($name, $value, $comp = 'Jaws', $type = JAWS_REGISTRY_CORE) 
    236236    { 
    237237        if (!$this->KeyExists($name, $comp, $type)) { 
  • trunk/jaws/html/include/Jaws/Session.php

    r9232 r9235  
    315315        $this->SetAttribute('type', APP_TYPE); 
    316316        $this->SetAttribute('life_time', $remember? 
    317                             (int)$GLOBALS['app']->Registry->Get('/policy/session_remember_timeout')*3600 : 0); 
     317                            (int)$GLOBALS['app']->Registry->Get('remember_timeout', 'Jaws_Session')*3600 : 0); 
    318318        $this->SetAttribute('updatetime', time()); 
    319319        $this->SetAttribute('username', $info['username']); 
  • trunk/jaws/html/include/Jaws/Session/Cache.php

    r8018 r9235  
    173173    { 
    174174        $params = array(); 
    175         $params['expired'] = time() - ($GLOBALS['app']->Registry->Get('/policy/session_idle_timeout') * 60); 
     175        $params['expired'] = time() - ($GLOBALS['app']->Registry->Get('idle_timeout', 'Jaws_Session') * 60); 
    176176        $sql = "DELETE FROM [[session]] WHERE [updatetime] < ({expired} - [life_time])"; 
    177177        $result = $GLOBALS['db']->queryAll($sql, $params); 
  • trunk/jaws/html/include/Jaws/Session/Web.php

    r9232 r9235  
    6666        // Create cookie 
    6767        $this->SetCookie(JAWS_SESSION_ID, $this->_SessionID, 
    68                          $remember? 60*(int)$GLOBALS['app']->Registry->Get('/policy/session_remember_timeout') : 0); 
     68                         $remember? 60*(int)$GLOBALS['app']->Registry->Get('remember_timeout', 'Jaws_Session') : 0); 
    6969    } 
    7070 
     
    7878    function SetCookie($name, $value, $minutes = 0) 
    7979    { 
    80         $secure  = $GLOBALS['app']->Registry->Get('cookie_secure',  'Session') == 'false'; 
    81         $path    = $GLOBALS['app']->Registry->Get('cookie_path',    'Session'); 
    82         $domain  = $GLOBALS['app']->Registry->Get('cookie_domain',  'Session'); 
    83         $version = $GLOBALS['app']->Registry->Get('cookie_version', 'Session'); 
     80        $secure  = $GLOBALS['app']->Registry->Get('cookie_secure',  'Jaws_Session') == 'false'; 
     81        $path    = $GLOBALS['app']->Registry->Get('cookie_path',    'Jaws_Session'); 
     82        $domain  = $GLOBALS['app']->Registry->Get('cookie_domain',  'Jaws_Session'); 
     83        $version = $GLOBALS['app']->Registry->Get('cookie_version', 'Jaws_Session'); 
    8484        $name    = $name.'_'.md5($GLOBALS['app']->getSiteURL().'_'.$version); 
    8585        setcookie($name, $value, (($minutes ==0)? 0 : time() +(60 * $minutes)), $GLOBALS['app']->getSiteURL(true, true) . '/'); 
     
    9292    function GetCookie($name) 
    9393    { 
    94         $version = $GLOBALS['app']->Registry->Get('cookie_version', 'Session'); 
     94        $version = $GLOBALS['app']->Registry->Get('cookie_version', 'Jaws_Session'); 
    9595        $name    = $name.'_'.md5($GLOBALS['app']->getSiteURL().'_'.$version); 
    9696        if (isset($_COOKIE[$name])) { 
     
    107107    function DestroyCookie($name) 
    108108    { 
    109         $secure  = $GLOBALS['app']->Registry->Get('cookie_secure',  'Session') == 'false'; 
    110         $path    = $GLOBALS['app']->Registry->Get('cookie_path',    'Session'); 
    111         $domain  = $GLOBALS['app']->Registry->Get('cookie_domain',  'Session'); 
    112         $version = $GLOBALS['app']->Registry->Get('cookie_version', 'Session'); 
     109        $secure  = $GLOBALS['app']->Registry->Get('cookie_secure',  'Jaws_Session') == 'false'; 
     110        $path    = $GLOBALS['app']->Registry->Get('cookie_path',    'Jaws_Session'); 
     111        $domain  = $GLOBALS['app']->Registry->Get('cookie_domain',  'Jaws_Session'); 
     112        $version = $GLOBALS['app']->Registry->Get('cookie_version', 'Jaws_Session'); 
    113113        $name    = $name.'_'.md5($GLOBALS['app']->getSiteURL().'_'.$version); 
    114114        setcookie($name, '', time() - 36000, $GLOBALS['app']->getSiteURL(true, true) . '/'); 
  • trunk/jaws/html/include/Jaws/Shared.php

    r7922 r9235  
    578578            } 
    579579        } else { 
    580             $res = $GLOBALS['app']->Registry->Get('/Shared/default_rule'); 
     580            $res = $GLOBALS['app']->Registry->Get('default_rule', 'Jaws_Shared'); 
    581581            if ($res == 'ACCEPT') { 
    582582                return true; 
  • trunk/jaws/html/include/Jaws/URLMapping.php

    r9232 r9235  
    3939    { 
    4040        if ($enabled === null) { 
    41             $enabled = ($GLOBALS['app']->Registry->Get('/map/enabled') == 'true'); 
     41            $enabled = ($GLOBALS['app']->Registry->Get('enabled', 'Jaws_URLMapping') == 'true'); 
    4242        } 
    4343 
    4444        if ($use_file === null) { 
    45             $use_file = ($GLOBALS['app']->Registry->Get('/map/use_file')    == 'true'); 
     45            $use_file = ($GLOBALS['app']->Registry->Get('use_file', 'Jaws_URLMapping') == 'true'); 
    4646        } 
    4747 
    4848        if ($use_rewrite === null) { 
    49             $use_rewrite = ($GLOBALS['app']->Registry->Get('/map/use_rewrite') == 'true'); 
     49            $use_rewrite = ($GLOBALS['app']->Registry->Get('use_rewrite', 'Jaws_URLMapping') == 'true'); 
    5050        } 
    5151 
    5252        if ($use_aliases === null) { 
    53             $use_aliases = ($GLOBALS['app']->Registry->Get('/map/use_aliases') == 'true'); 
     53            $use_aliases = ($GLOBALS['app']->Registry->Get('use_aliases', 'Jaws_URLMapping') == 'true'); 
    5454        } 
    5555 
    5656        if ($to_use === null) { 
    57             $to_use = $GLOBALS['app']->Registry->Get('/map/map_to_use'); 
     57            $to_use = $GLOBALS['app']->Registry->Get('map_to_use', 'Jaws_URLMapping'); 
    5858        } 
    5959 
    6060        if ($extension === null) { 
    61             $extension = $GLOBALS['app']->Registry->Get('/map/extensions'); 
     61            $extension = $GLOBALS['app']->Registry->Get('extensions', 'Jaws_URLMapping'); 
    6262        } 
    6363 
     
    230230    { 
    231231        $this->_loaded_from_gadgets = false; 
    232         $gadgets  = $GLOBALS['app']->Registry->Get('/gadgets/enabled_items'); 
    233         $cgadgets = $GLOBALS['app']->Registry->Get('/gadgets/core_items'); 
     232        $gadgets  = $GLOBALS['app']->Registry->Get('enabled_items'); 
     233        $cgadgets = $GLOBALS['app']->Registry->Get('core_items'); 
    234234 
    235235        $gadgets  = explode(',', $gadgets); 
  • trunk/jaws/html/include/Jaws/User.php

    r8187 r9235  
    4242            } 
    4343 
    44             if ($result['bad_passwd_count'] >= $GLOBALS['app']->Registry->Get('/policy/passwd_bad_count') && 
    45                ((time() - $result['last_access']) <= $GLOBALS['app']->Registry->Get('/policy/passwd_lockedout_time'))) 
     44            if ($result['bad_passwd_count'] >= $GLOBALS['app']->Registry->Get('passwd_bad_count', 'Jaws_Policy') && 
     45               ((time() - $result['last_access']) <= $GLOBALS['app']->Registry->Get('passwd_lockedout_time', 'Jaws_Policy'))) 
    4646            { 
    4747                return new Jaws_Error(_t('GLOBAL_ERROR_LOGIN_LOCKED_OUT')); 
  • trunk/jaws/html/include/Jaws/Widgets/TextArea.php

    r7922 r9235  
    192192    function extraBuild() 
    193193    { 
    194         $availablePlugins = explode(',', $GLOBALS['app']->Registry->Get('/plugins/parse_text/enabled_items')); 
     194        $availablePlugins = explode(',', $GLOBALS['app']->Registry->Get('enabled_plugins')); 
    195195        foreach ($availablePlugins as $plugin) { 
    196196            if (empty($plugin)) { 
     
    199199             
    200200            $file   = JAWS_PATH . 'plugins/' . $plugin . '/' . $plugin . '.php'; 
    201             $use_in = '/plugins/parse_text/' . $plugin . '/use_in'; 
    202201            $GLOBALS['app']->Registry->LoadFile($plugin, 'plugins'); 
    203             if (file_exists($file) && 
    204                 ( 
    205                  in_array($this->_Gadget, explode(',', $GLOBALS['app']->Registry->Get($use_in))) || 
    206                  $GLOBALS['app']->Registry->Get($use_in) == '*' 
    207                  ) 
    208                 ) { 
     202            $use_in = $GLOBALS['app']->Registry->Get('use_in', $plugin, JAWS_REGISTRY_PLUGIN); 
     203            if (file_exists($file) && (in_array($this->_Gadget, explode(',', $use_in)) || $use_in == '*')) { 
    209204                require_once $file; 
    210205                $plugintmp = new $plugin(); 
    211206                $plugincontrol = $plugintmp->GetWebControl($this->_Name); 
    212  
    213207                if (is_object($plugincontrol)) { 
    214208                    $plugincontrolValue = $plugincontrol->Get(); 
  • trunk/jaws/html/include/Jaws/Widgets/TinyMCE.php

    r8607 r9235  
    154154        /* 
    155155        $pluginTemplate = file_get_contents(JAWS_PATH . 'libraries/tinymce/plugin_template.js'); 
    156         $availablePlugins = explode(',', $GLOBALS['app']->Registry->Get('/plugins/parse_text/enabled_items')); 
     156        $availablePlugins = explode(',', $GLOBALS['app']->Registry->Get('enabled_plugins')); 
    157157        foreach ($availablePlugins as $plugin) { 
    158158            $file   = JAWS_PATH . 'plugins/' . $plugin . '/' . $plugin . '.php'; 
    159             $use_in = '/plugins/parse_text/' . $plugin . '/use_in'; 
    160159            $GLOBALS['app']->Registry->LoadFile($plugin, 'plugins'); 
    161             if (file_exists($file) && 
    162                 (in_array($this->_Gadget, explode(',', $GLOBALS['app']->Registry->Get($use_in))) || 
    163                 $GLOBALS['app']->Registry->Get($use_in) == '*')) 
    164             { 
     160            $use_in = $GLOBALS['app']->Registry->Get('use_in', $plugin, JAWS_REGISTRY_PLUGIN); 
     161            if (file_exists($file) && (in_array($this->_Gadget, explode(',', $use_in)) || $use_in == '*')) { 
    165162                require_once $file; 
    166163                $plugintmp     = new $plugin(); 
    167164                $plugincontrol = $plugintmp->GetWebControl("'".$this->TextArea->getID()."'"); 
    168  
    169165                if (is_object($plugincontrol)) { 
    170166                    $plugincontrolValue = $plugincontrol->Get(); 
  • trunk/jaws/html/include/Jaws/XSS.php

    r7922 r9235  
    3232 
    3333        if (is_null($strict)) { 
    34             $strict = ($GLOBALS['app']->Registry->Get('/policy/xss_parsing_level') == "paranoid")? true : false; 
     34            $strict = ($GLOBALS['app']->Registry->Get('xss_parsing_level', 'Jaws_Policy') == "paranoid")? true : false; 
    3535        } 
    3636