forked from hestiacp/hestiacp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
24 lines (15 loc) · 700 Bytes
/
index.php
File metadata and controls
24 lines (15 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
error_reporting(NULL);
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
echo '<br> Favorites: <br>';
// Data
exec (HESTIA_CMD."v-list-user-favourites ".$_SESSION['user']." json", $output, $return_var);
// print_r(implode('', $output));
// $json = '{ "Favourites": { "USER": "", "WEB": "bulletfarm.com", "DNS": "", "MAIL": "", "DB": "", "CRON": "", "BACKUP": "", "IP": "", "PACKAGE": "", "FIREWALL": ""}}';
// $data = json_decode($json, true);
$data = json_decode(implode('', $output).'}', true);
$data = array_reverse($data,true);
print_r($data);
// $data = array_reverse($data,true);
// $data = json_decode(implode('', $output), true);
?>