Changeset 343 for trunk


Ignore:
Timestamp:
Feb 7, 2009 7:30:23 PM (15 years ago)
Author:
dan
Message:

Made message temp directory configurable via 'log_msg_temp_dir' for platform independance.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/App.inc.php

    r342 r343  
    129129        'log_to_sms_address' => null,
    130130
     131        // Temp directory to store files that will indicate if a message has bee sent recently. Used by logMsg() for message throtteling.
     132        'log_msg_temp_dir' => '/tmp',
     133
    131134        // A key for calculating simple cryptographic signatures. Set using as an environment variables in the httpd.conf with 'SetEnv SIGNING_KEY <key>'.
    132135        // Existing password hashes rely on the same key/salt being used to compare encryptions.
     
    554557        // Create tmp files so that we don't email and sms redundantly.
    555558        $site_hash = md5(SITE_BASE);
    556         $temp_dir = "/tmp/codebase_msgs_$site_hash/";
     559        $temp_dir = $this->getParam('log_msg_temp_dir') . "/codebase_msgs_$site_hash/";
    557560        $temp_file = $temp_dir . $msg_id;
    558561        if (!is_dir($temp_dir)) {
Note: See TracChangeset for help on using the changeset viewer.