die('invalid');
}
- static function getAssetDir($type)
+ static function getCompileDir($type)
{
- if(!in_array($type, array(
-
- ))) {
+ 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);
+ }
}
}