Changeset c8a21d6 in github


Ignore:
Timestamp:
Sep 5, 2008 3:27:23 AM (5 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
c505e59
Parents:
5ec762a
Message:

Killed one more global var + log logins to a separate file (not console)

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • index.php

    r48aff91 rc8a21d6  
    3030// include environment 
    3131require_once 'program/include/iniset.php'; 
    32  
    33 // define global vars 
    34 $OUTPUT_TYPE = 'html'; 
    3532 
    3633// init application and start session with requested task 
     
    9592 
    9693    // log successful login 
    97     if ($RCMAIL->config->get('log_logins') && $RCMAIL->config->get('debug_level') & 1) 
    98       console(sprintf('Successful login for %s (id %d) from %s', 
    99                       trim(get_input_value('_user', RCUBE_INPUT_POST), ' '), 
    100                       $_SESSION['user_id'], 
    101                       $_SERVER['REMOTE_ADDR'])); 
     94    if ($RCMAIL->config->get('log_logins')) { 
     95      write_log('userlogins', sprintf('Successful login for %s (id %d) from %s', 
     96        $RCMAIL->user->get_username(), 
     97        $RCMAIL->user->ID, 
     98        $_SERVER['REMOTE_ADDR'])); 
     99    } 
    102100 
    103101    // send redirect 
  • program/include/main.inc

    r62784a2 rc8a21d6  
    318318  } 
    319319  if (!$enctype) 
    320     $enctype = $GLOBALS['OUTPUT_TYPE']; 
     320    $enctype = $OUTPUT->type; 
    321321 
    322322  // encode for plaintext 
  • program/include/rcube_json_output.php

    rf7a122f rc8a21d6  
    3535    private $commands = array(); 
    3636 
     37    public $type = 'js'; 
    3738    public $ajax_call = true; 
    3839     
  • program/include/rcube_template.php

    rc8ae249 rc8a21d6  
    4040    var $object_handlers = array(); 
    4141 
     42    public $type = 'html'; 
    4243    public $ajax_call = false; 
    4344 
  • program/steps/mail/list.inc

    rac5d15d rc8a21d6  
    2020*/ 
    2121 
    22 $OUTPUT_TYPE = 'js'; 
    2322// is there a sort type for this request? 
    2423if ($sort = get_input_value('_sort', RCUBE_INPUT_GET)) 
Note: See TracChangeset for help on using the changeset viewer.