Changeset 1842 in subversion


Ignore:
Timestamp:
Sep 19, 2008 3:41:04 AM (5 years ago)
Author:
alec
Message:
  • support 'cookie' type in conditions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_template.php

    r1840 r1842  
    474474                '/config:([a-z0-9_]+)(:([a-z0-9_]+))?/i', 
    475475                '/env:([a-z0-9_]+)/i', 
    476                 '/request:([a-z0-9_]+)/ie' 
     476                '/request:([a-z0-9_]+)/ie', 
     477                '/cookie:([a-z0-9_]+)/ie' 
    477478            ), 
    478479            array( 
     
    480481                "\$this->app->config->get('\\1',get_boolean('\\3'))", 
    481482                "\$this->env['\\1']", 
    482                 "get_input_value('\\1', RCUBE_INPUT_GPC)" 
     483                "get_input_value('\\1', RCUBE_INPUT_GPC)", 
     484                "\$_COOKIE['\\1']" 
    483485            ), 
    484486            $condition); 
Note: See TracChangeset for help on using the changeset viewer.