diff --git a/auth.php b/auth.php
index ed7db2e..f3e858d 100755
--- a/auth.php
+++ b/auth.php
@@ -32,7 +32,7 @@ session_start();
$sid = session_id();
// check for forced login to authorize admin in case of public access
-$force_login = (isset($_REQUEST['force_login']) ? $_REQUEST['force_login'] : false);
+$force_login = isset($_REQUEST['force_login']) ? $_REQUEST['force_login'] : false;
if ($force_login) {
uConfig::$require_authentication = true;
}
@@ -41,10 +41,10 @@ $user = new uUser();
$user->getFromSession();
if (!$user->isValid && (uConfig::$require_authentication || defined('client'))) {
/* authentication */
- $login = (isset($_REQUEST['user']) ? $_REQUEST['user'] : NULL);
- $pass = (isset($_REQUEST['pass']) ? $_REQUEST['pass'] : NULL);
- $ssl = ((!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == "" || $_SERVER['HTTPS'] == "off") ? "http" : "https");
- $auth_error = (isset($_REQUEST['auth_error']) ? $_REQUEST['auth_error'] : 0);
+ $login = isset($_REQUEST['user']) ? $_REQUEST['user'] : NULL;
+ $pass = isset($_REQUEST['pass']) ? $_REQUEST['pass'] : NULL;
+ $ssl = (!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == "" || $_SERVER['HTTPS'] == "off") ? "http" : "https";
+ $auth_error = isset($_REQUEST['auth_error']) ? $_REQUEST['auth_error'] : false;
if (!$login) {
// not authenticated and username not submited
@@ -87,9 +87,10 @@ if (!$user->isValid && (uConfig::$require_authentication || defined('client')))
- ' . (($force_login == 1) ? "" : "") . '
+ ' . (($force_login) ? '
+