Changeset 7139e33 in github


Ignore:
Timestamp:
Sep 8, 2006 11:16:47 AM (7 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
40ed9be
Parents:
8acab00
Message:

Updated MDB2 with MSSQL support + some cosmetics

Location:
program
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • program/include/main.inc

    r70d4b9a r7139e33  
    186186  if (!$valid || ($_SERVER['REQUEST_METHOD']!='POST' && $now-$_SESSION['auth_time'] > 300)) 
    187187    { 
    188           $_SESSION['last_auth'] = $_SESSION['auth_time']; 
     188    $_SESSION['last_auth'] = $_SESSION['auth_time']; 
    189189    $_SESSION['auth_time'] = $now; 
    190190    setcookie('sessauth', rcmail_auth_hash(session_id(), $now)); 
  • program/include/rcube_mdb2.inc

    rd2a9dbb r7139e33  
    412412 
    413413  /** 
     414   * Return SQL function for current time and date 
     415   * 
     416   * @return string SQL function to use in query 
     417   * @access public 
     418   */ 
     419  function now() 
     420    { 
     421    switch($this->db_provider) 
     422      { 
     423      case 'mssql': 
     424        return "getdate()"; 
     425 
     426      default: 
     427        return "now()"; 
     428      } 
     429    } 
     430 
     431 
     432  /** 
    414433   * Return SQL statement to convert a field value into a unix timestamp 
    415434   * 
     
    425444        return "EXTRACT (EPOCH FROM $field)"; 
    426445        break; 
     446 
     447      case 'mssql': 
     448        return "datediff(s, '1970-01-01 00:00:00', $field)"; 
    427449 
    428450      default: 
  • program/js/app.js

    re170b4b r7139e33  
    5050 
    5151  // default environment vars 
    52   this.env.keep_alive = 50;        // seconds 
     52  this.env.keep_alive = 60;        // seconds 
    5353  this.env.request_timeout = 180;  // seconds 
    5454  this.env.draft_autosave = 0;     // seconds 
Note: See TracChangeset for help on using the changeset viewer.