Exemplo n.º 1
0
}
?>
    <?php 
switch ($_POST["t"]) {
    case "u":
        echo "<h1 style='color:#09C'>USER DATA</h1>";
        require_once "user.php";
        $_hx = array("id", "name", "avatarlink", "gcmid", "lastlogin", "gender", "address", "birthday", "school", "workplace", "email", "fblink", "ispublic");
        $_tbx = UserManager::getAllUsers();
        show($_hx, $_tbx);
        break;
    case "a":
        echo "<h1 style='color:#09C'>ACCOUNT DATA</h1>";
        require_once "account.php";
        $_hx = array("number");
        $_tbx = AccountManager::getAllAcounts();
        show2($_hx, $_tbx);
        break;
    case "f":
        echo "<h1 style='color:#09C'>FRIEND DATA</h1>";
        require_once "friend.php";
        $_hx = array("uid", "fid", "share");
        $_tbx = FriendManager::getAllFriendList();
        show($_hx, $_tbx);
        break;
    case "c":
        echo "<h1 style='color:#09C'>CHAT DATA</h1>";
        require_once "chats.php";
        $_hx = array("timest", "sender", "recipient", "msg");
        $_tbx = ChatsManager::getAllChats();
        show($_hx, $_tbx);