12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- if(!defined('entry'))define('entry', true);
-
- ?>
- <?php
- require_once('../entry.php');
- global $user;
-
- if ($user->isAdmin()) {
- if ($_GET["action"]) {
-
- if ($_GET["action"] == "close") {
- session_start();
- if ($user->closeSession()) {
- echo __(" ending session…");
- } else {
- echo __(" failure ending session…");
- }
- }
-
- if ($_GET["action"] == "verify") {
- if ($_GET["login"]=="") {
- echo "<div class=\"error\">".__("Required field cannot be left blank.")."</div>";
- } else {
- if (!$user->userExist($_GET["login"])) {
- echo "<div class=\"exito\">".__("Username available.")."</div>";
- } else {
- echo "<div class=\"error\">".__("The username is not available.")."</div>";
- }
- }
- }
- }
- }
- ?>
|