<?php session_start(); include_once dirname(__FILE__) . '/../includes/classes/class.ini.file.php'; include_once dirname(__FILE__) . '/../includes/classes/class.mysql.php'; include_once dirname(__FILE__) . '/../includes/classes/class.kermert.php'; include_once dirname(__FILE__) . '/../includes/classes/class.kmImage.php'; include_once dirname(__FILE__) . '/../includes/lib.form.php'; include_once dirname(__FILE__) . '/../includes/functions.php'; include_once dirname(__FILE__) . '/includes/classes/class.kminfo.php'; include_once dirname(__FILE__) . '/includes/classes/class.kmuser.php'; include_once dirname(__FILE__) . '/includes/classes/class.GDWrapper.php'; include_once dirname(__FILE__) . '/includes/functions.php'; define('CONFIG_FILE', dirname(__FILE__) . '/../config/kermert.ini'); iniFile::read(CONFIG_FILE); $con = new connection(km_dbuser, km_dbpassword, km_dbhost, km_dbbase); $_SESSION['hashkey'] = !empty($_REQUEST['logout']) ? $_SESSION['hashkey'] = NULL : $_SESSION['hashkey']; if (!kmUser::isAuthenticated() && empty($auth_page)) { header('Location: auth.php'); } $kermert = new Kermert($con);
<?php $auth_page = 'yes'; include_once dirname(__FILE__) . '/prepend.php'; $posted = !empty($_REQUEST['posted']) ? $_REQUEST['posted'] : ''; $username = !empty($_REQUEST['username']) ? trim($_REQUEST['username']) : ''; $password = !empty($_REQUEST['password']) ? trim($_REQUEST['password']) : ''; if ($posted != '') { if (kmUser::authenticate($username, $password)) { header('Location: images.php'); } } ?> <!-- pixelpost admin start --> <html><head><title>Administration kermert</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="robots" content="noindex" /> <style type='text/css'> body { background:#fff; margin:0px; padding:0px; text-align:center; font-family:Verdana, Helvetica, sans-serif; font-size:12px; color:#333; } #wrapper { margin:0px auto; padding-top:0px;