Xataface 2.0
Xataface Application Framework
setup.php
Go to the documentation of this file.
00001 #!/usr/bin/php
00002 <?php
00003 if ( isset( $_SERVER['REQUEST_URI'] ) ){
00004         die("Cannot access this file through the browser");
00005 }
00006 
00007 
00008 // make the template directories writable
00009 $dataface_path = dirname(__FILE__);
00010 
00011 $cache_dirs = array();
00012 $cache_dirs['templates_c'] = $dataface_path.'/Dataface/templates_c';
00013 $cache_dirs['phpThumbCache'] = $dataface_path.'/lib/phpThumb/cache';
00014 
00015 $cache_dirs['phpThumbSourceCache'] = $cache_dirs['phpThumbCache'].'/source';
00016 
00017 
00018 foreach (array_keys($cache_dirs)  as $key ){
00019         fwrite(STDOUT, "Making ".$cache_dirs[$key]." writable globally...\n");
00020         chmod( $cache_dirs[$key], 0777);
00021         
00022 }
00023 
00024 fwrite(STDOUT, "Setup completed\n");
 All Data Structures Namespaces Files Functions Variables Enumerations