]> git.mxchange.org Git - friendica-addons.git/blob - jappixmini/jappix/php/get-store.php
default features - actually handle the security token in the addon code
[friendica-addons.git] / jappixmini / jappix / php / get-store.php
1 <?php
2
3 /*
4
5 Jappix - An open social platform
6 This is the store configuration GET handler (manager)
7
8 -------------------------------------------------
9
10 License: AGPL
11 Author: Vanaryon
12 Last revision: 26/08/11
13
14 */
15
16 // Someone is trying to hack us?
17 if(!defined('JAPPIX_BASE'))
18         exit;
19
20 // Purge requested
21 if(isset($_GET['p']) && preg_match('/^((everything)|(cache)|(logs)|(send)|(updates))$/', $_GET['p'])) {
22         purgeFolder($_GET['p']);
23 ?>
24         
25         <p class="info smallspace success"><?php _e("The storage folder you wanted to clean is now empty!"); ?></p>
26
27 <?php }
28
29 // Folder view?
30 if(isset($_GET['b']) && isset($_GET['s'])) {
31         if($_GET['b'] == 'share')
32                 $share_folder = urldecode($_GET['s']);
33         else if($_GET['b'] == 'music')
34                 $music_folder = urldecode($_GET['s']);
35 }
36
37 ?>