diff --git a/ManUpdate.php b/ManUpdate.php new file mode 100644 index 0000000..51cbb35 --- /dev/null +++ b/ManUpdate.php @@ -0,0 +1,18 @@ + parent.window.location.reload(true);'; + +} else { +// display the form +?> +
+ \ No newline at end of file diff --git a/Update.bat b/Update.bat index c7b1a3f..f5647ca 100644 --- a/Update.bat +++ b/Update.bat @@ -199,7 +199,27 @@ findstr "headvisible" config.php >nul 2>&1 echo Headphones Updated goto END :END - + + rem Add widget +findstr "widgetbackgroud" config.php >nul 2>&1 + if errorlevel 1 goto ONE + if errorlevel 0 goto ZERO + goto END + :ZERO + echo Custom Widget Already Updated + goto END + :ONE + echo ^>config.php + echo //// Widget Settings >> config.php + echo $widgetbackgroud = "0"; >> config.php + echo $customwidgetbackgroud = "0"; >> config.php + echo $widgetbackgroudcolour = ""; >> config.php + echo //// >> config.php + echo ^?^> >> config.php + echo Custom Widget Updated + goto END + :END + rem Update Version findstr "localversion" config.php >nul 2>&1 if errorlevel 1 goto ONE diff --git a/assets/css/jquery.gridster.css b/assets/css/jquery.gridster.php similarity index 91% rename from assets/css/jquery.gridster.css rename to assets/css/jquery.gridster.php index 46f467f..cec87bb 100644 --- a/assets/css/jquery.gridster.css +++ b/assets/css/jquery.gridster.php @@ -1,3 +1,8 @@ + + + .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); + "0") { + require "widgetback.php"; + } +?> cursor: pointer; + } .ready .gs_w:not(.preview-holder) { diff --git a/assets/css/widgetback.php b/assets/css/widgetback.php new file mode 100644 index 0000000..1ba572e --- /dev/null +++ b/assets/css/widgetback.php @@ -0,0 +1,11 @@ + + + "0") { + echo "background: $widgetbackgroudcolour;"; +} else { + echo "background: #FFF;"; +} +?> +?> + diff --git a/config/menu.php b/config/menu.php index 8443184..46046bb 100644 --- a/config/menu.php +++ b/config/menu.php @@ -1,2 +1,2 @@ -General - SAB/Couch/Sick - Others - Drive Space - RSS/Server Statuses - Picture Upload +General - SAB/Couch/Sick - Others - Drive Space - RSS/Server Statuses - Picture Upload - Manual Update diff --git a/config/set1.php b/config/set1.php index 94abbd0..7f599cc 100644 --- a/config/set1.php +++ b/config/set1.php @@ -11,6 +11,8 @@