]> git.datanom.net - qtadmin.git/blobdiff - lib/utils.inc.php
finish log method
[qtadmin.git] / lib / utils.inc.php
index a15369ea39f32c622d7b1c1c3a77c42951252842..c4a99b5774c5840010f5e38c117e1eacd2f78fa4 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 /* vim: set ts=4 tw=0 sw=4 noet: */
 require_once $CFG->root .'config.php';
 <?php
 /* vim: set ts=4 tw=0 sw=4 noet: */
 require_once $CFG->root .'config.php';
+require_once $CFG->root . 'lib/session_handler.inc.php';
 
 class Utils {
 
 
 class Utils {
 
@@ -92,6 +93,7 @@ class Utils {
                     $file = $CFG->root.'qtadmin.log';
                 }
                 file_put_contents($file, "[$time]: $message\n", FILE_APPEND | LOCK_EX);
                     $file = $CFG->root.'qtadmin.log';
                 }
                 file_put_contents($file, "[$time]: $message\n", FILE_APPEND | LOCK_EX);
+                chmod($file, 0600);
                 break;
             case 'stderr':
                 file_put_contents('php://stderr', "[$time]: $message\n");
                 break;
             case 'stderr':
                 file_put_contents('php://stderr', "[$time]: $message\n");
This page took 0.036719 seconds and 5 git commands to generate.