5 Jappix - An open social platform
6 This script (re)generates the store sub-folders (after an update)
8 -------------------------------------------------
12 Last revision: 26/08/11
16 // Someone is trying to hack us?
17 if(!defined('JAPPIX_BASE'))
20 // Array of the sub-folders to create
21 $store_folders = array(
35 // Creates the sub-folders
36 for($i = 0; $i < count($store_folders); $i++) {
37 $current = JAPPIX_BASE.'/store/'.$store_folders[$i];
39 // Create the folder itself
41 mkdir($current, 0777, true);
43 chmod($current, 0777);
45 // Create the security file inside the folder
46 $security_html = securityHTML();
48 file_put_contents($current.'/index.html', $security_html);