예제 #1
0
            $this_user_server = new user_server();
            $this_user_server->get_from_hashrange($u->id_user, $_POST['name']);
            if ($this_user_server->id_user != "undefined") {
                $this_user_server->update(array('int_online' => '1'));
            }
        }
    }
}
if (isset($_GET['action'])) {
    if ($_GET['action'] == "update-uploaded-file") {
        if (isset($_POST['str_targetfile']) && isset($_POST['id_hf']) && isset($_POST['id'])) {
            if (strlen($_POST['id_hf']) > 0 && strlen($_POST['id']) > 0) {
                $this_hf_file = new hf_file();
                $this_hf_file->get_from_hashrange($_POST['id_hf'], $_POST['id']);
                if (isset($_POST['btnDelete'])) {
                    $this_hf_file->delete();
                } else {
                    if ($this_hf_file->id != 'undefined') {
                        $new_props = array();
                        $new_props['str_targetfile'] = $_POST['str_targetfile'];
                        $this_hf_file->update($new_props);
                    }
                }
            }
        }
    }
}
// end action
if (isset($_GET['action'])) {
    if ($_GET['action'] == "download-update" && $_SERVER['HTTP_HOST'] != $demo_domain) {
        $failed = false;