Changeset 367


Ignore:
Timestamp:
2007-04-22T04:31:36+02:00 (8 years ago)
Author:
moo
Message:

applied patch from #88, option to disable admin authentication

Location:
branches/1.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/xcache.c

    r358 r367  
    15291529    HashTable *ht; 
    15301530 
     1531    /* auth disabled, nothing to do.. */ 
     1532    if (!XG(auth_enabled)) { 
     1533        return 1; 
     1534    } 
     1535 
    15311536    if (cfg_get_string("xcache.admin.user", &admin_user) == FAILURE || !admin_user[0]) { 
    15321537        admin_user = NULL; 
     
    23352340    STD_PHP_INI_BOOLEAN("xcache.cacher",                 "1", PHP_INI_ALL,    OnUpdateBool,        cacher,            zend_xcache_globals, xcache_globals) 
    23362341    STD_PHP_INI_BOOLEAN("xcache.stat",                   "1", PHP_INI_ALL,    OnUpdateBool,        stat,              zend_xcache_globals, xcache_globals) 
     2342    STD_PHP_INI_BOOLEAN("xcache.enable_auth",            "1", PHP_INI_SYSTEM, OnUpdateBool,        auth_enabled,      zend_xcache_globals, xcache_globals) 
    23372343#ifdef HAVE_XCACHE_OPTIMIZER 
    23382344    STD_PHP_INI_BOOLEAN("xcache.optimizer",              "0", PHP_INI_ALL,    OnUpdateBool,        optimizer,         zend_xcache_globals, xcache_globals) 
  • branches/1.2/xcache_globals.h

    r204 r367  
    1515    time_t request_time; 
    1616    long   var_ttl; 
     17    zend_bool auth_enabled; 
    1718ZEND_END_MODULE_GLOBALS(xcache) 
    1819 
Note: See TracChangeset for help on using the changeset viewer.