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
25 lines (15 loc) · 698 Bytes
/
Copy pathindex.php
File metadata and controls
25 lines (15 loc) · 698 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
25
<?php
session_start();
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
echo '<br> Favorites: <br>';
// Data
exec (VESTA_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);
?>