aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www/skin/classic/module-auth/html
diff options
context:
space:
mode:
authorM.Gergo2018-07-06 11:14:41 +0200
committerM.Gergo2018-07-06 11:14:41 +0200
commit43de9af71f7f4ca5731b94a06d688ae8412ba427 (patch)
tree54835de1dfcda504c02da261f0dc26885aed2e89 /mayor-orig/www/skin/classic/module-auth/html
parent50310b0e4513ee3fcce67351ae61e8fff851130e (diff)
downloadmayor-43de9af71f7f4ca5731b94a06d688ae8412ba427.tar.gz
mayor-43de9af71f7f4ca5731b94a06d688ae8412ba427.zip
2018/Feb/28 -i állapot hozzáadva, mint a módosítások kiindulási állapota
Diffstat (limited to 'mayor-orig/www/skin/classic/module-auth/html')
-rw-r--r--mayor-orig/www/skin/classic/module-auth/html/forgotten.phtml103
-rw-r--r--mayor-orig/www/skin/classic/module-auth/html/login.phtml77
2 files changed, 180 insertions, 0 deletions
diff --git a/mayor-orig/www/skin/classic/module-auth/html/forgotten.phtml b/mayor-orig/www/skin/classic/module-auth/html/forgotten.phtml
new file mode 100644
index 00000000..464f4f64
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-auth/html/forgotten.phtml
@@ -0,0 +1,103 @@
+<?php
+
+ function putForgotPasswordForm($ADAT) {
+
+ echo '<h1>'._SITE.'</h1>'."\n";
+ echo '<h2>'._GREETING.'</h2>'."\n";
+
+ formBegin(array('class'=>'forgot'));
+
+ echo '<h1>'._FORGOT_PASSWORD.'</h1>';
+
+ echo '<p>'._ENTER_USERACCOUNT.'</p>';
+ echo '<input type="hidden" name="action" value="sendResetPasswordMail" />';
+ echo '<input type="hidden" name="toPolicy" value="'.$ADAT['toPolicy'].'" />';
+ echo '<input type="text" name="userAccount" value="'.$ADAT['userAccount'].'" placeholder="'._USERNAME.'" />';
+ echo '<input type="submit" value="'._RESET_PASSWORD.'" />';
+ echo '<p>'._FORGOT_PASSWORD_HELP.'</p>';
+
+ formEnd();
+
+ }
+
+ function putForgotUserAccountForm($ADAT) {
+
+ formBegin(array('class'=>'forgot'));
+
+ echo '<h1>'._FORGOT_USERACCOUNT.'</h1>';
+
+ echo '<p>'._ENTER_EMAIL.'</p>';
+ echo '<input type="hidden" name="action" value="sendResetPasswordMail" />';
+ echo '<input type="hidden" name="toPolicy" value="'.$ADAT['toPolicy'].'" />';
+ echo '<input type="text" name="mail" value="'.$ADAT['mail'].'" class="email" placeholder="'._EMAIL.'" />';
+ echo '<input type="submit" value="'._RESET_PASSWORD.'" />';
+ echo '<p>'._FORGOT_USERACCOUNT_HELP.'</p>';
+
+ formEnd();
+
+ }
+
+ function putForgotThankYou() {
+
+ echo '<h1>'._SITE.'</h1>'."\n";
+ echo '<h2>'._GREETING.'</h2>'."\n";
+
+ formBegin(array('class'=>'preforgot'));
+ echo '<a href="'.href('index.php?page=auth&f=login').'">';
+ _mayorLogo();
+ echo '</a>';
+ echo '<p class="forgotDone">'._FORGOT_INFO.'</p>';
+ formEnd();
+
+ }
+
+ function putForgotDisabled() {
+ global $POLICIES,$AUTH;
+
+ echo '<h1>'._SITE.'</h1>'."\n";
+ echo '<h2>'._GREETING.'</h2>'."\n";
+ echo '<a href="'.href('index.php?page=auth&f=login').'">';
+ _mayorLogo();
+ echo '</a>';
+
+ formBegin(array('class'=>'preforgot'));
+
+ echo '<select class="pp" name="toPolicy" class="onChangeSubmit">'."\n";
+ echo '<option value="">'._FORGOT_DISABLED.'</option>';
+ $SEL = array($toPolicy => ' selected="selected" ');
+ for ($i=0; $i<count($POLICIES); $i++) {
+ $_policy = $POLICIES[$i];
+ $DIS = ($AUTH[$_policy]['enablePasswordReset']!==true) ? ' disabled = "disabled" ' : '';
+ if ($AUTH[$_policy]['authentication'] != 'none') {
+ echo '<option value="'.$_policy.'" '.$SEL[$_policy].$DIS.'>';
+ echo constant('_'.strtoupper($_policy).'_LOGIN');
+ echo '</option>'."\n";
+ }
+ }
+ echo '</select>'."\n";
+ echo '<input type="submit" value="'._KIVALASZT.'" />';
+ formEnd();
+
+ }
+
+ function putBackToLogin($ADAT) {
+
+ //echo '<div class="">';
+ echo '<p class="forgotDone"><a href="'.href('index.php?page=auth&f=login&userAccount='.$ADAT['userAccount'].'&toPolicy='.$ADAT['toPolicy']).'">'._BACK_TO_LOGIN.'</a></p>';
+ //echo '</div>';
+
+ }
+
+ function _mayorLogo() {
+ echo '<div class="loginlogo">';
+ //mayorLogoSvg(array('dot'=>'#bbff44','startColor'=>'cornflowerblue','stopColor'=>'lightgreen'));
+ mayorLogoSvg(array(
+ 'dot'=>'#C9CFE8',
+ 'startColor'=>'#0E396A',
+ 'stopColor'=>'#4B6B90',
+ ));
+ echo '</div>';
+ }
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-auth/html/login.phtml b/mayor-orig/www/skin/classic/module-auth/html/login.phtml
new file mode 100644
index 00000000..cac82b7e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-auth/html/login.phtml
@@ -0,0 +1,77 @@
+<?php
+
+ function putLoginForm($userAccount,$toPolicy,$toPSF='',$toSkin='') {
+ global $POLICIES, $AUTH, $sessionID;
+
+ // TODO IDEIGLENES OVERRIDE -- if ($toPolicy=='public') $toPSF='portal:portal:vmgNyiltnap';
+
+ /* reading data from SESSION */
+ if ($userAccount=='' && $_SESSION['lastCreatedAccount']!='')
+ $userAccount=$_SESSION['lastCreatedAccount'];
+
+ echo '<h1>'._SITE.'</h1>'."\n";
+ echo '<h2>'._GREETING.'</h2>'."\n";
+
+ if (is_array($AUTH[$toPolicy]['allowOnly']) && !in_array($userAccount,$AUTH[$toPolicy]['allowOnly'])) {
+ echo '<div style="text-align:center; background-color:#f06; border-radius: 5px; width:150px; margin:auto; color:white;">Korlátozott belépés!</div>';
+ }
+
+ // Caps-Lock
+ echo '<div id="warning"><div style="display:none;" id="capsLockWarning">'._CAPSLOCKWARNING.'</div></div>';
+
+ formBegin(array('method'=>'post',
+ 'class'=>'nagylogin',
+ 'action'=>'index.php?policy=public&page=auth&f=login&toPolicy='.$toPolicy.'&sessionID='.$sessionID ,
+ 'name'=>"loginablak"));
+
+// echo '<input type="hidden" name="action" value="login" />';
+ echo '<input type="hidden" name="action" value="mayorGlobalLogin" />';
+ echo '<input type="hidden" name="toPSF" value="'.$toPSF.'" />';
+
+ echo '<div class="loginlogo">';
+ _putsvg();
+ echo '</div>';
+
+ echo '<input type="text" id="focus" accesskey="l" tabindex="1" name="userAccount" value="'.$userAccount.'" maxlength="32" placeholder="'._USERNAME.'" />'."\n";
+ echo '<input type="password" id="userPassword" accesskey="p" tabindex="2" name="userPassword" maxlength="20" placeholder="'._PASSWORD.'" value="" />'."\n";
+
+
+ if (intval(_MAYORAUTHRESULT)>0 || (defined('_FORCE_LOGIN_POLICY_SELECT') && _FORCE_LOGIN_POLICY_SELECT===true)) {
+ echo '<select class="pp" name="policyOrderIndex">'."\n";
+ //$_SEL = array($toPolicy => ' selected="selected" ');
+ echo '<option value="0">'._LOGIN_ALL_AUTH_LEVEL.'</option>';
+ for ($i=0; $i<count($POLICIES); $i++) {
+ $_policy = $POLICIES[$i];
+ if ($AUTH[$_policy]['authentication'] != 'none') {
+ echo '<option value="'.($i+1).'" '.$_SEL[$_policy].'>';
+ echo constant('_'.strtoupper($_policy).'_LOGIN');
+ echo '</option>'."\n";
+ }
+ }
+ echo '</select>'."\n";
+ }
+
+ echo '<input type="submit" class="mayorButton" tabindex="3" name="button" value=" '. _LOGIN .' "
+ class="submit" />'."\n";
+ echo '<div class="loaderContainer"><div class="loader" style="display:none" ></div></div>';
+
+ formEnd();
+ //if ($AUTH[$toPolicy]['enablePasswordReset']===true) {
+ formBegin(array('class'=>'forgot'));
+ echo '<div id="forgotten"><a href="'.href('index.php?page=auth&f=forgotten&userAccount='.$userAccount.'&toPolicy='.$toPolicy).'">'._FORGOTTEN.'</a></div>';
+ formEnd();
+ //}
+ }
+
+ function putAlreadyLoggedIn() {
+ echo '<div style="margin:40px auto; width:200px; padding:10px; background-color: #eeeeee; border: solid 2px #ddd; border-radius:2px; text-align:center; color: cornflowerblue">';
+ echo '<span class="icon-ok-sign" style="float:left; line-height:18px;font-size:18px; color:lightgreen; "></span>';
+ echo _BELEPVE;
+ echo '</div>';
+ }
+
+ function _putsvg() {
+ mayorLogoSvg();
+ }
+
+?>