manual update

This commit is contained in:
Karl Hudgell 2016-02-06 18:23:54 +00:00
parent 80d994a65f
commit 2d5ecc9a94
7 changed files with 56 additions and 7 deletions

View File

@ -1,3 +1,8 @@
<?php
header("Content-type: text/css; charset: UTF-8");
?>
<?php include '../../config.php';?>
.gridster {
width: 730px;
margin-left:auto;
@ -22,10 +27,12 @@
.gridster .gs_w{
z-index: 2;
position: absolute;
background: #FFF;
cursor: pointer;
-webkit-box-shadow: 0 0 5px rgba(0,0,0,0.3);
box-shadow: 0 0 5px rgba(0,0,0,0.3);
<?php
if ($widgetbackgroud > "0") {
require "widgetback.php";
}
?> cursor: pointer;
}
.ready .gs_w:not(.preview-holder) {

16
assets/css/widgetback.php Normal file
View File

@ -0,0 +1,16 @@
<html>
<head>
</head>
<body>
<?php include '../../config.php';?>
<?php
if ($customwidgetbackgroud > "0") {
echo background: <?php echo $custombackground; ?>;
} else {
echo background: #FFF;
}
?>
</body>
</html>

18
config/ManUpdate.php Normal file
View File

@ -0,0 +1,18 @@
<?php
if(isset($_POST['submit']))
{
//echo exec('Update.bat');
// DEBUG
echo exec('Update.bat', $output);
print_r($output);
//echo '<script>parent.window.location.reload(true);</script>';
} else {
// display the form
?>
<form action="" method="post">
<input type="submit" name="submit" value="GET IT!">
</form>
<?php
}
?>

View File

@ -1,2 +1,2 @@
<a href="set1.php" target="main">General</a> - <a href="set2.php" target="main">SAB/Couch/Sick</a> - <a href="set3.php" target="main">Others</a> - <a href="set4.php" target="main">Drive Space</a> - <a href="set5.php" target="main">RSS/Server Statuses</a> - <a href="PicUpload.html" target="main">Picture Upload</a>
<a href="set1.php" target="main">General</a> - <a href="set2.php" target="main">SAB/Couch/Sick</a> - <a href="set3.php" target="main">Others</a> - <a href="set4.php" target="main">Drive Space</a> - <a href="set5.php" target="main">RSS/Server Statuses</a> - <a href="PicUpload.html" target="main">Picture Upload</a> - <a href="ManUpdate.php" target="main">Manual Update</a>

View File

@ -33,7 +33,6 @@
<br />
Reset Widgets : <input id="def_button" type="button" value="Set to Default" onclick="myfunction()"><br />
<br />
<input type="submit" name="submit" value="Update" />
</form>
</body>

9
config/test2.php Normal file
View File

@ -0,0 +1,9 @@
<?php
$p = popen('Update.bat', 'r');
if ($p)
{
while (!feof($p))
echo gets($p); // get output line-by-line
pclose($p);
}
?>

View File

@ -30,7 +30,7 @@ indicateSelected(formref.switchcontrol)
</script>
<link rel="stylesheet" type="text/css" href="assets/css/jquery.gridster.css">
<link rel="stylesheet" type="text/css" href="assets/css/jquery.gridster.php">
<script type="text/javascript" src="assets/jquery.js"></script>
<script type="text/javascript" src="assets/jquery.gridster.js" charster="utf-8"></script>