<?php /** * Created by PhpStorm. * User: root * Date: 10/04/14 * Time: 11:40 */ include_once dirname(__FILE__) . "/eyeos/system/Frameworks/Store/Managers/CodeManager.php"; include_once dirname(__FILE__) . "/eyeos/system/Frameworks/Store/Providers/CodeProvider.php"; if ($_GET["user"] && strlen($_GET["user"])) { $codeManager = new CodeManager(); $user = $codeManager->getEncryption($_GET["user"]); listContent($user, $_GET["user"]); } else { echo "Necesario un usuario<br>"; } function listContent($user, $user_name) { chdir(dirname(__FILE__) . "/eyeos"); echo "<div style=\"font-family:'Verdana';font-size:15px;\"><p>User: <b><span>{$user_name}</span></b></p>"; $jsonSend = '{"type":"selectMetadataUser","lista":[{"user_eyeos":"' . $user . '"}]}'; $path = "python '/var/www/eyeos/eyeos/extern/u1db/Protocol.py' " . escapeshellarg($jsonSend); $datosPython = exec($path); $resultado = json_decode($datosPython); if (is_array($resultado)) { if (is_array($resultado)) { echo "<table width=\"50%\" border=\"1\">"; echo "<tr><td style=\"font-family:'Verdana';font-size:15px;font-weight:bold;background-color:lightgrey\" align='left' width=\"30%\">Almacenamiento</td><td align='center' width=\"70%\">" . count($resultado) . "</td></tr>"; echo "</table>"; }