Example #1
0
* Class and Function List:
* Function list:
* Classes list:
*/
require_once "classes/Security.inc";
require_once "classes/Session.inc";
require_once "ossim_conf.inc";
require_once 'ossim_db.inc';
/* connect to db */
$db = new ossim_db();
$conn = $db->connect();
$user = Session::get_session_user();
if (preg_match("/pro|demo/i", $conf->get_conf("ossim_server_version", FALSE))) {
    Acl::changefirst($conn, $user);
} else {
    Session::changefirst($conn, $user);
}
$conf = $GLOBALS["CONF"];
if (!isset($_SESSION["_user"])) {
    $ossim_link = $conf->get_conf("ossim_link", FALSE);
    $login_location = $ossim_link . '/session/login.php';
    header("Location: {$login_location}");
    exit;
}
$version = $conf->get_conf("ossim_server_version", FALSE);
$opensource = !preg_match("/.*pro.*/i", $version) && !preg_match("/.*demo.*/i", $version) ? true : false;
$demo = preg_match("/.*demo.*/i", $version) ? true : false;
$pass1 = GET('pass1');
$pass2 = GET('pass2');
$oldpass = GET('oldpass');
ossim_valid($pass1, OSS_ALPHA, OSS_PUNC_EXT, OSS_NULLABLE, 'illegal:' . _("Password"));