Changeset 14226


Ignore:
Timestamp:
06/24/12 15:23:32 (13 years ago)
Author:
tbretz
Message:
For the moment adding logging also to 'msg'
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/www/smartfact/index.php

    r14209 r14226  
    183183        // Logging (mainly for debugging)
    184184        $d = date("Y/m");
    185 
    186185        $path = "log/".$d;
    187 
    188186        if (!file_exists($path))
    189187            mkdir($path, 0777, true);
    190 
    191188        $file = fopen($path."/exec.log", "a");
    192189        fwrite($file, $cmd."\n".$str."\n\n");
     
    203200        // Execute
    204201        $str = exec($cmd, $out, $rc);
     202
     203        // Logging (mainly for debugging)
     204        $d = date("Y/m");
     205        $path = "log/".$d;
     206        if (!file_exists($path))
     207            mkdir($path, 0777, true);
     208        $file = fopen($path."/exec.log", "a");
     209        fwrite($file, $cmd."\n".$str."\n\n");
     210        fclose($file);
    205211    }
    206212
    207213    // -------------------------------------------
    208 
    209214}
    210215
Note: See TracChangeset for help on using the changeset viewer.