Esempio n. 1
0
<?php

include_once '../includes.sys/ini.php';
include_once '../includes.sys/metodos.php';
include_once 'action.php';
if (checkUserAuth() == false) {
    $url = EXTERNAL_ROOT_PORTAL . '/index.php';
    echo '<script language= "JavaScript">location.href="' . $url . '?error=true";</script>';
}
include_once '../head.php';
$id = ValidateInteger(INPUT_GET, 'id');
if (!empty($_POST['cmd']) && $_POST['cmd'] == 'editar') {
    editar($_POST['id'], '');
}
connectSQL();
$query = mysql_query("SELECT * FROM " . MYSQL_BASE_USUARIOS . " WHERE id =" . $id);
$row_usuario = mysql_fetch_array($query);
$nome = $row_usuario['nome'];
$email = $row_usuario['email'];
$status = $row_usuario['status'];
?>
<!-- topbar ends -->
<div class="container-fluid">
	<div class="row-fluid sortable">

		<!-- left menu starts -->
		<div class="span2 main-menu-span">
			<?php 
include_once '../menu.php';
?>
		</div>
Esempio n. 2
0
<?php

include_once '../../includes.sys/ini.php';
include_once '../../includes.sys/metodos.php';
include_once '../DAO/EquipamentoDAO.php';
checkUserAuth(EXTERNAL_ROOT_PORTAL . '/index.php?error=true');
include_once '../../head.php';
if (!in_array(295, listarAcesso())) {
    echo '<script language= "JavaScript">location.href="index.php";</script>';
}
$DAO = new EquipamentoDAO();
if (!empty($_GET['cmd']) && $_GET['cmd'] == 'del') {
    $id = ValidateInteger(INPUT_GET, 'id');
    $retorno = $DAO->Deletar($id);
    if ($retorno == 1) {
        echo '<script language= "JavaScript">alert("Registro removido com sucesso");</script>';
        echo '<script language= "JavaScript">location.href="index.php";</script>';
    } else {
        echo '<script language= "JavaScript">alert("Erro ao remover o registro");</script>';
    }
}
?>
	<!-- topbar ends -->
		<div class="container-fluid">
		<div class="row-fluid">
				
			<!-- left menu starts -->
			<div class="span2 main-menu-span">
				<?php 
include_once '../menu.php';
?>
Esempio n. 3
0
			getHospitalLegaleseAnon("1");
			getHospitalLegaleseTimestamps("1");

		case '1.9.5':
			reportPerson($personXML, $eventShortname, $xmlFormat, $user, $pass);
			createPersonUuid($user, $pass);
			createPersonUuidBatch($number, $user, $pass);
			createNoteUuid($user, $pass);
			createNoteUuidBatch($number, $user, $pass);
			search("test", "t");
			searchWithAuth("test", "t", $user, $pass);
			getSessionTimeout();
			registerUser("testCaseUser", "*****@*****.**", "testPassword99", "testCaseGiven", "testCaseFamily");
			changeUserPassword($user, $pass, $pass);
			forgotUsername($email);
			checkUserAuth($user, $pass);
			getUserStatus($user);
			getUserGroup($user);
			getEventList();
			getEventListUser($user, $pass);
			getGroupList();
			getHospitalList();
			getHospitalData("1");
			getHospitalPolicy("1");
	}
	echo "</table><b>Note: deprecated functions are not listed/tested.</b></body>";
}