mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 02:31:45 -05:00
Added theme support in popup windows
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright 2005-2016, Lime Technology
|
||||
* Copyright 2012-2016, Bergware International.
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -10,18 +10,21 @@
|
||||
* all copies or substantial portions of the Software.
|
||||
*/
|
||||
?>
|
||||
<?
|
||||
$docroot = $docroot ?: $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
||||
require_once "$docroot/webGui/include/Markdown.php";
|
||||
require_once "$docroot/webGui/include/Wrappers.php";
|
||||
|
||||
$webgui = parse_plugin_cfg('dynamix',true);
|
||||
?>
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<link type="text/css" rel="stylesheet" href="/webGui/styles/default-fonts.css">
|
||||
<link type="text/css" rel="stylesheet" href="/webGui/styles/default-white.css">
|
||||
<link type="text/css" rel="stylesheet" href="/webGui/styles/default-<?=$webgui['display']['theme']?>.css">
|
||||
</head>
|
||||
<body style="margin:14px 10px">
|
||||
<body style="margin:14px 10px;font-size:12px">
|
||||
<?
|
||||
$docroot = $docroot ?: @$_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
||||
|
||||
require_once "$docroot/webGui/include/Markdown.php";
|
||||
|
||||
$file = $_GET['file'];
|
||||
if (file_exists($file) && strpos(realpath($file), '/tmp/plugins/') === 0 && substr($file, -4) == '.txt') echo Markdown(file_get_contents($file)); else echo Markdown("*No release notes available!*");
|
||||
?>
|
||||
|
||||
@@ -3,8 +3,8 @@ Title="Info"
|
||||
Icon="info.png"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2016, Lime Technology
|
||||
* Copyright 2012-2016, Bergware International.
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -16,6 +16,6 @@ Icon="info.png"
|
||||
?>
|
||||
<script>
|
||||
function InfoButton() {
|
||||
openBox('/webGui/include/SystemInformation.php?more=<?=isset($display['sysinfo'])?$display['sysinfo']:''?>','System Information',490,430);
|
||||
openBox('/webGui/include/SystemInformation.php?more=<?=isset($display['sysinfo'])?$display['sysinfo']:''?>','System Information',600,460);
|
||||
}
|
||||
</script>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?PHP
|
||||
/* Copyright 2005-2016, Lime Technology
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -10,9 +10,12 @@
|
||||
*/
|
||||
?>
|
||||
<?
|
||||
$docroot = $docroot ?: @$_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
||||
$docroot = $docroot ?: $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
||||
require_once "$docroot/webGui/include/Wrappers.php";
|
||||
|
||||
$var = parse_ini_file('state/var.ini');
|
||||
$unraid = parse_ini_file('/etc/unraid-version');
|
||||
$webgui = parse_plugin_cfg('dynamix',true);
|
||||
$keyfile = trim(base64_encode(@file_get_contents($var['regFILE'])));
|
||||
|
||||
if (array_key_exists('getdiagnostics', $_GET)) {
|
||||
@@ -25,21 +28,21 @@ if (array_key_exists('getdiagnostics', $_GET)) {
|
||||
}
|
||||
?>
|
||||
<link type="text/css" rel="stylesheet" href="/webGui/styles/default-fonts.css">
|
||||
<link type="text/css" rel="stylesheet" href="/webGui/styles/default-white.css">
|
||||
<link type="text/css" rel="stylesheet" href="/webGui/styles/default-<?=$webgui['display']['theme']?>.css">
|
||||
<style>
|
||||
#spinner_image{position:fixed;left:46%;top:46%;width:16px;height:16px;display:none;}
|
||||
#control_panel{position:fixed;left:5px;right:5px;top:0;padding-top:8px;line-height:24px;white-space:nowrap;}
|
||||
.four{text-align:center;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;}
|
||||
.four label:first-child{margin-left:0;}
|
||||
.four label{margin-left:2%;cursor:pointer;}
|
||||
.allpanels{display:none;position:absolute;left:15px;right:15px;top:40px;bottom:25px;overflow:auto;margin-top:15px;}
|
||||
#spinner_image{position:fixed;left:46%;top:46%;width:16px;height:16px;display:none}
|
||||
#control_panel{position:fixed;left:5px;right:5px;top:0;padding-top:8px;line-height:24px;white-space:nowrap}
|
||||
.four{text-align:center;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}
|
||||
.four label:first-child{margin-left:0}
|
||||
.four label{margin-left:2%;cursor:pointer}
|
||||
.allpanels{display:none;position:absolute;left:15px;right:15px;top:40px;bottom:25px;overflow:auto;margin-top:15px}
|
||||
#footer_panel{position:fixed;left:5px;right:5px;bottom:0;height:30px;line-height:10px;text-align:center}
|
||||
textarea{width:100%;height:250px;margin:10px 0}
|
||||
input[type=button]{margin-right:0;float:right}
|
||||
input[type=email]{margin-top:8px;float:left}
|
||||
</style>
|
||||
<body>
|
||||
<div style="margin-top:0;font-size:12px;line-height:30px;color:#303030;margin-left:5px;margin-right:5px">
|
||||
<div style="margin-top:0;font-size:12px;line-height:30px;margin-left:5px;margin-right:5px">
|
||||
<div id="control_panel" class="four">
|
||||
<label for="optOnlinePoll"><input type="radio" name="mode" id="optOnlinePoll" value="onlinepoll" checked="checked" /> Online Poll</label>
|
||||
<label for="optFeatureRequest"><input type="radio" name="mode" id="optFeatureRequest" value="featurerequest"/> Feature Request</label>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright 2005-2016, Lime Technology
|
||||
* Copyright 2012-2016, Bergware International.
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -11,6 +11,10 @@
|
||||
*/
|
||||
?>
|
||||
<?
|
||||
$docroot = $docroot ?: $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
||||
require_once "$docroot/webGui/include/Wrappers.php";
|
||||
|
||||
$webgui = parse_plugin_cfg('dynamix',true);
|
||||
$month = [' Jan '=>'-01-',' Feb '=>'-02-',' Mar '=>'-03-',' Apr '=>'-04-',' May '=>'-05-',' Jun '=>'-06-',' Jul '=>'-07-',' Aug '=>'-08-',' Sep '=>'-09-',' Oct '=>'-10-',' Nov '=>'-11-',' Dec '=>'-12-'];
|
||||
|
||||
function plus($val, $word, $last) {
|
||||
@@ -30,10 +34,10 @@ function my_duration($time) {
|
||||
<html lang="en">
|
||||
<head>
|
||||
<link type="text/css" rel="stylesheet" href="/webGui/styles/default-fonts.css">
|
||||
<link type="text/css" rel="stylesheet" href="/webGui/styles/default-white.css">
|
||||
<link type="text/css" rel="stylesheet" href="/webGui/styles/default-<?=$webgui['display']['theme']?>.css">
|
||||
</head>
|
||||
<body>
|
||||
<table class='share_status' style='margin-top:0'><thead><tr><td>Date</td><td>Duration</td><td>Speed</td><td>Status</td><td>Errors</td></tr></thead><tbody>
|
||||
<table class='share_status' style='margin-top:0;font-size:12px'><thead><tr><td>Date</td><td>Duration</td><td>Speed</td><td>Status</td><td>Errors</td></tr></thead><tbody>
|
||||
<?
|
||||
$log = '/boot/config/parity-checks.log'; $list = [];
|
||||
if (file_exists($log)) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?PHP
|
||||
/* Copyright 2005-2016, Lime Technology
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -10,11 +10,15 @@
|
||||
*/
|
||||
?>
|
||||
<?
|
||||
$docroot = $docroot ?: $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
||||
require_once "$docroot/webGui/include/Wrappers.php";
|
||||
|
||||
$var = parse_ini_file('state/var.ini');
|
||||
$webgui = parse_plugin_cfg('dynamix',true);
|
||||
$keyfile = base64_encode(file_get_contents($var['regFILE']));
|
||||
?>
|
||||
<link type="text/css" rel="stylesheet" href="/webGui/styles/default-fonts.css">
|
||||
<link type="text/css" rel="stylesheet" href="/webGui/styles/default-white.css">
|
||||
<link type="text/css" rel="stylesheet" href="/webGui/styles/default-<?=$webgui['display']['theme']?>.css">
|
||||
<script src="/webGui/javascript/dynamix.js"></script>
|
||||
<script>
|
||||
function replaceKey(email, guid, keyfile) {
|
||||
@@ -49,7 +53,7 @@ function replaceKey(email, guid, keyfile) {
|
||||
}
|
||||
</script>
|
||||
<body>
|
||||
<div style="margin-top:20px;font-size:12px;line-height:30px;color:#303030;margin-left:40px;">
|
||||
<div style="margin-top:20px;font-size:12px;line-height:30px;margin-left:40px">
|
||||
<div id="status_panel"></div>
|
||||
<form markdown="1" id="input_form">
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright 2005-2016, Lime Technology
|
||||
* Copyright 2012-2016, Bergware International.
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
* Copyright 2012, Andrew Hamer-Adams, http://www.pixeleyes.co.nz.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
@@ -12,16 +12,18 @@
|
||||
*/
|
||||
?>
|
||||
<?
|
||||
$docroot = $docroot ?: $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
||||
require_once "$docroot/webGui/include/Wrappers.php";
|
||||
|
||||
$var = parse_ini_file('state/var.ini');
|
||||
$webgui = parse_plugin_cfg('dynamix',true);
|
||||
?>
|
||||
<link type="text/css" rel="stylesheet" href="/webGui/styles/default-fonts.css">
|
||||
<link type="text/css" rel="stylesheet" href="/webGui/styles/default-white.css">
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="/webGui/styles/default-<?=$webgui['display']['theme']?>.css">
|
||||
<style>
|
||||
span.key{width:82px;display:inline-block;font-weight:bold;}
|
||||
div.box{margin-top:8px;font-size:12px;line-height:30px;color:#303030;margin-left:40px;}
|
||||
span.key{width:92px;display:inline-block;font-weight:bold}
|
||||
div.box{margin-top:8px;line-height:30px;margin-left:40px;font-size:12px}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
// server uptime & update period
|
||||
var uptime = <?=strtok(exec("cat /proc/uptime"),' ')?>;
|
||||
@@ -38,7 +40,6 @@ function updateTime() {
|
||||
setTimeout(updateTime, 1000);
|
||||
}
|
||||
</script>
|
||||
|
||||
<body onLoad="updateTime()">
|
||||
<div class="box">
|
||||
<div><span class="key">Model:</span>
|
||||
@@ -175,10 +176,10 @@ foreach ($sPorts as $port) {
|
||||
echo $openssl_ver;
|
||||
?></div>
|
||||
<div><span class="key">Uptime:</span> <span id="uptime"></span></div>
|
||||
<div><span class="key"></span>
|
||||
<div style="margin-top:24px;margin-bottom:12px"><span class="key"></span>
|
||||
<input type="button" value="Close" onclick="top.Shadowbox.close()">
|
||||
<?if ($_GET['more']):?>
|
||||
<a href="<?=htmlspecialchars($_GET['more'])?>" class="button" target="_parent">More</a>
|
||||
<a href="<?=htmlspecialchars($_GET['more'])?>" class="button" style="text-decoration:none" target="_parent">More</a>
|
||||
<?endif;?>
|
||||
</div></div>
|
||||
</body>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?PHP
|
||||
/* Copyright 2005-2016, Lime Technology
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -10,10 +10,14 @@
|
||||
*/
|
||||
?>
|
||||
<?
|
||||
$docroot = $docroot ?: $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
||||
require_once "$docroot/webGui/include/Wrappers.php";
|
||||
|
||||
$var = parse_ini_file('state/var.ini');
|
||||
$webgui = parse_plugin_cfg('dynamix',true);
|
||||
?>
|
||||
<link type="text/css" rel="stylesheet" href="/webGui/styles/default-fonts.css">
|
||||
<link type="text/css" rel="stylesheet" href="/webGui/styles/default-white.css">
|
||||
<link type="text/css" rel="stylesheet" href="/webGui/styles/default-<?=$webgui['display']['theme']?>.css">
|
||||
<script src="/webGui/javascript/dynamix.js"></script>
|
||||
<script>
|
||||
function registerTrial(email, guid) {
|
||||
@@ -48,7 +52,7 @@ function registerTrial(email, guid) {
|
||||
}
|
||||
</script>
|
||||
<body>
|
||||
<div style="margin-top:20px;font-size:12px;line-height:30px;color:#303030;margin-left:40px;">
|
||||
<div style="margin-top:20px;font-size:12px;line-height:30px;margin-left:40px">
|
||||
<div id="status_panel"></div>
|
||||
<form markdown="1" id="trial_form">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user