Răsfoiți Sursa

Disable more of the horizontal login code plan on reworking and using as an option later.

markjcrane 9 ani în urmă
părinte
comite
1407971fa5
1 a modificat fișierele cu 50 adăugiri și 49 ștergeri
  1. 50 49
      themes/default/template.php

+ 50 - 49
themes/default/template.php

@@ -2165,59 +2165,60 @@
 									<?php
 									// login form
 										if ($_SERVER['PHP_SELF'] != PROJECT_PATH."/core/install/install.php" && !$default_login) {
+											/*
 											if (strlen($_SESSION["username"]) == 0) {
-											//add multi-lingual support
-												require_once "core/user_settings/app_languages.php";
-												foreach($text as $key => $value) {
-													$text[$key] = $value[$_SESSION['domain']['language']['code']];
-												}
-											//set a default login destination
-												if (strlen($_SESSION['login']['destination']['url']) == 0) {
-													$_SESSION['login']['destination']['url'] = PROJECT_PATH."/core/user_settings/user_dashboard.php";
-												}
-											//login form
-												/*
-												echo "<div align='right'>\n";
-												echo "	<form name='login' METHOD=\"POST\" action=\"".$_SESSION['login']['destination']['url']."\">\n";
-												echo "		<input type='hidden' name='path' value='".$_GET['path']."'>\n";
-												echo "		<table width='200' border='0'>\n";
-												echo "			<tr>\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 "				</td>\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 "				</td>\n";
-
-												if ($_SESSION['login']['domain_name_visible']['boolean'] == "true") {
-													echo "			<td align='left'>\n";
-													echo "				<strong>".$text['label-domain'].":</strong>\n";
-													echo "			</td>\n";
-													echo "			<td>\n";
-													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 "    			<option value='' disabled selected hidden>".$text['label-domain']."</option>\n";
-														sort($_SESSION['login']['domain_name']);
-														foreach ($_SESSION['login']['domain_name'] as &$row) {
-															echo "    		<option value='$row'>$row</option>\n";
-														}
-														echo "    		</select>\n";
+												//add multi-lingual support
+													require_once "core/user_settings/app_languages.php";
+													foreach($text as $key => $value) {
+														$text[$key] = $value[$_SESSION['domain']['language']['code']];
+													}
+												//set a default login destination
+													if (strlen($_SESSION['login']['destination']['url']) == 0) {
+														$_SESSION['login']['destination']['url'] = PROJECT_PATH."/core/user_settings/user_dashboard.php";
 													}
-													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";
+												//login form
+	
+													echo "<div align='right'>\n";
+													echo "	<form name='login' METHOD=\"POST\" action=\"".$_SESSION['login']['destination']['url']."\">\n";
+													echo "		<input type='hidden' name='path' value='".$_GET['path']."'>\n";
+													echo "		<table width='200' border='0'>\n";
+													echo "			<tr>\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 "				</td>\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 "				</td>\n";
+	
+													if ($_SESSION['login']['domain_name_visible']['boolean'] == "true") {
+														echo "			<td align='left'>\n";
+														echo "				<strong>".$text['label-domain'].":</strong>\n";
+														echo "			</td>\n";
+														echo "			<td>\n";
+														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 "    			<option value='' disabled selected hidden>".$text['label-domain']."</option>\n";
+															sort($_SESSION['login']['domain_name']);
+															foreach ($_SESSION['login']['domain_name'] as &$row) {
+																echo "    		<option value='$row'>$row</option>\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";
 													}
-													echo "			</td>\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 "			</tr>\n";
-												echo "		</table>\n";
-												echo "	</form>";
-												echo "</div>";
-												*/
+	
+													echo "				<td align='right'>\n";
+													echo "  				<input type='submit' class='btn' style='margin-left: 5px;' value=\"".$text['button-login']."\">\n";
+													echo "				</td>\n";
+													echo "			</tr>\n";
+													echo "		</table>\n";
+													echo "	</form>";
+													echo "</div>";
 											}
+											*/
 										}
 									?>
 								</td>