new and better way to backup - tar without find

This commit is contained in:
Serghey Rodin 2015-10-24 14:57:30 +03:00
commit 5eb10ba388
2 changed files with 11 additions and 24 deletions

View file

@ -102,8 +102,9 @@ if (isset($_SESSION['look']) && ( $_SESSION['look'] != 'admin' )) {
$user = $_SESSION['look'];
}
get_favorites();
if (isset($_SESSION['user'])) {
get_favorites();
}
function get_favorites(){
exec (VESTA_CMD."v-list-user-favourites ".$_SESSION['user']." json", $output, $return_var);