Disable more of the horizontal login code plan on reworking and using as an option later.
This commit is contained in:
parent
e7dd30113b
commit
339b5425c2
|
|
@ -2165,59 +2165,60 @@
|
||||||
<?php
|
<?php
|
||||||
// login form
|
// login form
|
||||||
if ($_SERVER['PHP_SELF'] != PROJECT_PATH."/core/install/install.php" && !$default_login) {
|
if ($_SERVER['PHP_SELF'] != PROJECT_PATH."/core/install/install.php" && !$default_login) {
|
||||||
|
/*
|
||||||
if (strlen($_SESSION["username"]) == 0) {
|
if (strlen($_SESSION["username"]) == 0) {
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "core/user_settings/app_languages.php";
|
require_once "core/user_settings/app_languages.php";
|
||||||
foreach($text as $key => $value) {
|
foreach($text as $key => $value) {
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||||
}
|
}
|
||||||
//set a default login destination
|
//set a default login destination
|
||||||
if (strlen($_SESSION['login']['destination']['url']) == 0) {
|
if (strlen($_SESSION['login']['destination']['url']) == 0) {
|
||||||
$_SESSION['login']['destination']['url'] = PROJECT_PATH."/core/user_settings/user_dashboard.php";
|
$_SESSION['login']['destination']['url'] = PROJECT_PATH."/core/user_settings/user_dashboard.php";
|
||||||
}
|
}
|
||||||
//login form
|
//login form
|
||||||
/*
|
|
||||||
echo "<div align='right'>\n";
|
echo "<div align='right'>\n";
|
||||||
echo " <form name='login' METHOD=\"POST\" action=\"".$_SESSION['login']['destination']['url']."\">\n";
|
echo " <form name='login' METHOD=\"POST\" action=\"".$_SESSION['login']['destination']['url']."\">\n";
|
||||||
echo " <input type='hidden' name='path' value='".$_GET['path']."'>\n";
|
echo " <input type='hidden' name='path' value='".$_GET['path']."'>\n";
|
||||||
echo " <table width='200' border='0'>\n";
|
echo " <table width='200' border='0'>\n";
|
||||||
echo " <tr>\n";
|
echo " <tr>\n";
|
||||||
echo " <td>\n";
|
echo " <td>\n";
|
||||||
echo " <input type='text' class='txt login' style='min-width: 150px; width: 105px; text-align: center;' name='username' placeholder=\"".$text['label-username']."\">\n";
|
echo " <input type='text' class='txt login' style='min-width: 150px; width: 105px; text-align: center;' name='username' placeholder=\"".$text['label-username']."\">\n";
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td align='left'>\n";
|
echo " <td align='left'>\n";
|
||||||
echo " <input type='password' class='txt login' style='min-width: 150px; width: 105px; text-align: center;' name='password' placeholder=\"".$text['label-password']."\">\n";
|
echo " <input type='password' class='txt login' style='min-width: 150px; width: 105px; text-align: center;' name='password' placeholder=\"".$text['label-password']."\">\n";
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|
||||||
if ($_SESSION['login']['domain_name_visible']['boolean'] == "true") {
|
if ($_SESSION['login']['domain_name_visible']['boolean'] == "true") {
|
||||||
echo " <td align='left'>\n";
|
echo " <td align='left'>\n";
|
||||||
echo " <strong>".$text['label-domain'].":</strong>\n";
|
echo " <strong>".$text['label-domain'].":</strong>\n";
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td>\n";
|
echo " <td>\n";
|
||||||
if (count($_SESSION['login']['domain_name']) > 0) {
|
if (count($_SESSION['login']['domain_name']) > 0) {
|
||||||
echo " <select name='domain_name' class='txt login' style='color: #999999; width: 150px; text-align: center; text-align-last: center;' onclick=\"this.style.color='#000000';\" onchange=\"this.style.color='#000000';\">\n";
|
echo " <select name='domain_name' class='txt login' style='color: #999999; width: 150px; text-align: center; text-align-last: center;' onclick=\"this.style.color='#000000';\" onchange=\"this.style.color='#000000';\">\n";
|
||||||
echo " <option value='' disabled selected hidden>".$text['label-domain']."</option>\n";
|
echo " <option value='' disabled selected hidden>".$text['label-domain']."</option>\n";
|
||||||
sort($_SESSION['login']['domain_name']);
|
sort($_SESSION['login']['domain_name']);
|
||||||
foreach ($_SESSION['login']['domain_name'] as &$row) {
|
foreach ($_SESSION['login']['domain_name'] as &$row) {
|
||||||
echo " <option value='$row'>$row</option>\n";
|
echo " <option value='$row'>$row</option>\n";
|
||||||
|
}
|
||||||
|
echo " </select>\n";
|
||||||
}
|
}
|
||||||
echo " </select>\n";
|
else {
|
||||||
|
echo " <input type='text' name='domain_name' class='txt login' style='text-align: center; min-width: 150px; width: 150px;' placeholder=\"".$text['label-domain']."\">\n";
|
||||||
|
}
|
||||||
|
echo " </td>\n";
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
echo " <input type='text' name='domain_name' class='txt login' style='text-align: center; min-width: 150px; width: 150px;' placeholder=\"".$text['label-domain']."\">\n";
|
echo " <td align='right'>\n";
|
||||||
}
|
echo " <input type='submit' class='btn' style='margin-left: 5px;' value=\"".$text['button-login']."\">\n";
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
}
|
echo " </tr>\n";
|
||||||
|
echo " </table>\n";
|
||||||
echo " <td align='right'>\n";
|
echo " </form>";
|
||||||
echo " <input type='submit' class='btn' style='margin-left: 5px;' value=\"".$text['button-login']."\">\n";
|
echo "</div>";
|
||||||
echo " </td>\n";
|
|
||||||
echo " </tr>\n";
|
|
||||||
echo " </table>\n";
|
|
||||||
echo " </form>";
|
|
||||||
echo "</div>";
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue