Changeset 44428ee in git


Ignore:
Timestamp:
2007-04-22T02:31:36Z (13 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.2, 1.3
Children:
c0cec2b
Parents:
0065304
Message:

applied patch from #88, option to disable admin authentication

git-svn-id: svn://svn.lighttpd.net/xcache/branches/1.2@367 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • xcache.c

    r8c7e69c r44428ee  
    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)
  • xcache_globals.h

    r5230b60 r44428ee  
    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.