Changeset 367 in svn for branches/1.2/xcache.c


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

applied patch from #88, option to disable admin authentication

File:
1 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)
Note: See TracChangeset for help on using the changeset viewer.