Revert "refactor global array"

This reverts commit 370ccbdb74.
This commit is contained in:
Michael Kaufmann
2018-12-22 08:15:31 +01:00
parent c800e89414
commit 7e39a7bc60
220 changed files with 2244 additions and 2227 deletions

View File

@@ -3,7 +3,7 @@ $header
<header>
<h2>
<img src="templates/{$theme}/assets/img/icons/lock_big.png" alt="" />&nbsp;
{\Froxlor\I18N\Lang::getAll()['login']['2fa']}
{$lng['login']['2fa']}
</h2>
</header>
@@ -11,29 +11,29 @@ $header
<if \Froxlor\User::getAll()['type_2fa']=='0'>
<form method="post"
action="{$linker->getLink(array('section' => 'index', 'page' => $page, 'action' => 'add'))}">
<p>{\Froxlor\I18N\Lang::getAll()['2fa']['2fa_overview_desc']}</p>
<p>{$lng['2fa']['2fa_overview_desc']}</p>
<br> <select id="type_2fa" name="type_2fa" class="small">{$type_select}
</select>&nbsp;<input type="submit" class="submit"
value="{\Froxlor\I18N\Lang::getAll()['2fa']['2fa_add']}" name="add" />
value="{$lng['2fa']['2fa_add']}" name="add" />
</form>
</if>
<if \Froxlor\User::getAll()['type_2fa']=='1'>
<form method="post"
action="{$linker->getLink(array('section' => 'index', 'page' => $page, 'action' => 'delete'))}">
<p>{\Froxlor\I18N\Lang::getAll()['2fa']['2fa_email_desc']}</p>
<p>{$lng['2fa']['2fa_email_desc']}</p>
<br> <input type="submit" class="cancel"
value="{\Froxlor\I18N\Lang::getAll()['2fa']['2fa_delete']}" name="delete" />
value="{$lng['2fa']['2fa_delete']}" name="delete" />
</form>
</if>
<if \Froxlor\User::getAll()['type_2fa']=='2'>
<form method="post"
action="{$linker->getLink(array('section' => 'index', 'page' => $page, 'action' => 'delete'))}">
<p>{\Froxlor\I18N\Lang::getAll()['2fa']['2fa_ga_desc']}</p>
<p>{$lng['2fa']['2fa_ga_desc']}</p>
<br> <img src="{$ga_qrcode}" alt="QRCode" /><br>
<br> <input type="submit" class="cancel"
value="{\Froxlor\I18N\Lang::getAll()['2fa']['2fa_delete']}" name="delete" />
value="{$lng['2fa']['2fa_delete']}" name="delete" />
</form>
</if>