Example #1
0
$conn = $db->connect();
require_once "ossim_conf.inc";
$conf = $GLOBALS["CONF"];
$complex = $conf->get_conf("pass_complex", FALSE) ? $conf->get_conf("pass_complex", FALSE) : "lun";
$order = GET('order');
$change_enabled = GET('change_enabled');
ossim_valid($order, OSS_ALPHA, OSS_SPACE, OSS_SCORE, OSS_NULLABLE, 'illegal:' . _("Order"));
ossim_valid($change_enabled, OSS_USER, OSS_NULLABLE, 'illegal:' . _("Change_enabled"));
if (ossim_error()) {
    die(ossim_error());
}
if (empty($order)) {
    $order = "login";
}
if ($change_enabled != "") {
    Session::change_enabled($conn, $change_enabled);
}
?>

<table align="center">
    <tr>
		<th><a href="<?php 
echo $_SERVER["SCRIPT_NAME"];
?>
?order=<?php 
echo ossim_db::get_order("login", $order);
?>
"><?php 
echo gettext("Login");
?>
</a></th>