Parcourir la source

Add Universal Two Factor support

Also create seperate account security options page

This commit requires a new database table
undefined
spaghetti il y a 7 ans
committed by Tomochin
Parent
révision
42f19babec
3 fichiers modifiés avec 9 ajouts et 4 suppressions
  1. +3
    -3
      design/privateheader.php
  2. +1
    -1
      design/publicheader.php
  3. +5
    -0
      static/styles/global.css

+ 3
- 3
design/privateheader.php Voir le fichier

@@ -533,12 +533,12 @@ if (!empty($Alerts) || !empty($ModBar)) { ?>
<?
}
if (!empty($ModBar)) { ?>
<div class="alertbar blend">
<?=implode(' | ', $ModBar); echo "\n"?>
<div class="alertbar modbar">
<?=implode(' ', $ModBar); echo "\n"?>
</div>
<? }
if (check_perms('site_debug') && !apcu_exists('DBKEY')) { ?>
<div class="alertbar" style="color: white; background: #B53939;">
<div class="alertbar error">
Warning: <a href="tools.php?action=database_key">no DB key</a>
</div>
<? } ?>


+ 1
- 1
design/publicheader.php Voir le fichier

@@ -11,7 +11,7 @@ define('FOOTER_FILE',SERVER_ROOT.'/design/publicfooter.php');
<link rel="shortcut icon" href="favicon.ico?v=<?=md5_file('favicon.ico');?>" />
<link href="<?=STATIC_SERVER ?>styles/public/style.css?v=<?=filemtime(SERVER_ROOT.'/static/styles/public/style.css')?>" rel="stylesheet" type="text/css" />
<?
$Scripts = ['jquery', 'global', 'ajax.class', 'cookie.class', 'storage.class', 'public'];
$Scripts = ['jquery', 'global', 'ajax.class', 'cookie.class', 'storage.class', 'public', 'u2f'];
foreach($Scripts as $Script) {
if (($ScriptStats = G::$Cache->get_value("script_stats_$Script")) === false || $ScriptStats['mtime'] != filemtime(SERVER_ROOT.STATIC_SERVER."functions/$Script.js")) {
$ScriptStats['mtime'] = filemtime(SERVER_ROOT.STATIC_SERVER."functions/$Script.js");


+ 5
- 0
static/styles/global.css Voir le fichier

@@ -934,6 +934,11 @@ input[type="search"] {
max-width: 100%;
}

#publickey {
width: initial;
font-family: monospace;
}

.hidden {
display: none;
}

Chargement…
Annuler
Enregistrer