-
Notifications
You must be signed in to change notification settings - Fork 0
/
getEvidenziati.php
25 lines (23 loc) · 1009 Bytes
/
getEvidenziati.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
// +-----------------------------------+
// | FoxCloud |
// +-----------------------------------+
// | Questo file fa parte del progetto |
// | di Cloud Open Source "FoxCloud", |
// | realizzato da FoxWorn. |
// +-----------------------------------+
// | Web: https://foxcloud.fcosma.it |
// | GH: github.com/FoxWorn3365/Cloud |
// | License: GNU GPL 3.0 |
// +-----------------------------------+
// | You can write me an email at: |
// | [email protected], also for |
// | talk! |
// +-----------------------------------+
session_start();
$user = $_SESSION["user"];
if (file_exists('protected/sys/' . $user. 'fileEvidenziati.array')) {
die(json_encode(array('status' => 200, 'presence' => true, 'evidenziati' => explode('[[FoxCloudEvidenziatiSeparator]]', file_get_contents('protected/sys/' . $user. 'fileEvidenziati.array')))));
} else {
die(json_encode(array('status' => 400, 'presence' => false)));
}