Asset.php
[Pman.Core] / Asset.php
index 5e565ae..95f818e 100644 (file)
--- a/Asset.php
+++ b/Asset.php
@@ -123,12 +123,21 @@ class Pman_Core_Asset extends Pman {
         die('invalid');
     }
      
-    static function getAssetDir($type)
+    static function getCompileDir($type)
     {
         if(empty($type)) {
             return false;
         }
         
+        $ui = posix_getpwuid(posix_geteuid());
+        
+        $ff = HTML_FlexyFramework::get();
         
+        $compiledir = session_save_path() . '/' .
+                $ui['name'] . '-' . $ff->project . '-' . $ff->version . '-jscompile';
+        
+        if (!file_exists($compiledir)) {
+            mkdir($compiledir,0700,true);
+        }
     }
 }