mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
user favourites
This commit is contained in:
parent
93b2a8617a
commit
7734c6cf04
27 changed files with 248 additions and 29 deletions
25
web/list/favorites/index.php
Normal file
25
web/list/favorites/index.php
Normal file
|
@ -0,0 +1,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);
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue