瀏覽代碼

Add Universal Two Factor support

Also create seperate account security options page

This commit requires a new database table
undefined
spaghetti 7 年之前
committed by Tomochin
父節點
當前提交
31dae13a41
共有 3 個檔案被更改,包括 9 行新增4 行删除
  1. +3
    -3
      design/privateheader.php
  2. +1
    -1
      design/publicheader.php
  3. +5
    -0
      static/styles/global.css

+ 3
- 3
design/privateheader.php 查看文件

@@ -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 查看文件

@@ -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 查看文件

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

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

.hidden {
display: none;
}

Loading…
取消
儲存