Xataface
2.0alpha2
Xataface Application Framework
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
setup.php
Go to the documentation of this file.
1
#!/usr/bin/php
2
<?php
3
if
( isset(
$_SERVER
[
'REQUEST_URI'
] ) ){
4
die(
"Cannot access this file through the browser"
);
5
}
6
7
8
// make the template directories writable
9
$dataface_path
= dirname(__FILE__);
10
11
$cache_dirs
= array();
12
$cache_dirs
[
'templates_c'
] =
$dataface_path
.
'/Dataface/templates_c'
;
13
$cache_dirs
[
'phpThumbCache'
] =
$dataface_path
.
'/lib/phpThumb/cache'
;
14
15
$cache_dirs
[
'phpThumbSourceCache'
] =
$cache_dirs
[
'phpThumbCache'
].
'/source'
;
16
17
18
foreach
(array_keys(
$cache_dirs
) as $key ){
19
fwrite(STDOUT,
"Making "
.
$cache_dirs
[$key].
" writable globally...\n"
);
20
chmod(
$cache_dirs
[$key], 0777);
21
22
}
23
24
fwrite(STDOUT,
"Setup completed\n"
);
Generated on Fri Mar 22 2013 09:40:34 for Xataface by
1.8.1.2