the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ if (!isset($_SESSION)) { session_start(); } include_once 'user.php'; if (!check_session_user() || !check_admin_user()) { header('Location: index.php?error=Invalid User'); } else { $users = get_users(); ?> <!DOCTYPE HTML> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE10" > <title>Infrastructure Manager | GRyCAP | UPV</title> <link rel="shortcut icon" href="images/favicon.ico"> <link href="css/style.css" rel="stylesheet" type="text/css" media="all"/> <link href="css/datatable.css" rel="stylesheet" type="text/css" media="all"/> <link rel="stylesheet" href="css/style_login2.css"> <link rel="stylesheet" href="css/style_intro2.css"> <link rel="stylesheet" href="css/style_menu2.css">
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ include_once 'user.php'; include_once 'cred.php'; include_once 'config.php'; if (!isset($_SESSION)) { session_start(); } $op = ""; if (isset($_POST['op'])) { $op = $_POST['op']; } elseif (isset($_GET['op'])) { $op = $_GET['op']; } if ($op != "register" && (!check_session_user() || !check_admin_user())) { header('Location: index.php?error=Invalid User' . $op); } else { if (strlen($op) > 0) { if ($op == "delete") { if (isset($_GET['id'])) { $username = $_GET['id']; $err = delete_user($username); if (strlen($err) > 0) { header('Location: error.php?msg=' . urlencode($err)); } else { header('Location: user_list.php'); } } else { header('Location: error.php?msg=No id'); }
the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ if (!isset($_SESSION)) { session_start(); } include 'user.php'; if (!check_session_user()) { header('Location: index.php?error=Invalid User'); } else { if (isset($_GET['id'])) { include 'im.php'; include 'config.php'; $id = $_GET['id']; if (isset($_GET['vmid'])) { $vmid = $_GET['vmid']; $cont_msg = GetVMContMsg($im_host, $im_port, $id, $vmid); } else { $cont_msg = GetInfrastructureContMsg($im_host, $im_port, $id); } } ?> <!DOCTYPE HTML>