diff --git a/Update.bat b/Update.bat index 24e0cc6..c287431 100644 --- a/Update.bat +++ b/Update.bat @@ -140,4 +140,20 @@ findstr "konvoschat" config.php >nul 2>&1 goto END :END + rem Add custombackground +findstr "custombackground" config.php >nul 2>&1 + if errorlevel 1 goto ONE + if errorlevel 0 goto ZERO + goto END + :ZERO + echo custombackground Already Updated + goto END + :ONE + echo ^>config.php + echo $custombackground = ""; >> config.php + echo ^?^> >> config.php + echo custombackground Updated + goto END + :END + PAUSE \ No newline at end of file diff --git a/config/set1.php b/config/set1.php index 4779dc5..822a523 100644 --- a/config/set1.php +++ b/config/set1.php @@ -1,5 +1,9 @@ + +
+ + - + \ No newline at end of file + + \ No newline at end of file diff --git a/config/write1.php b/config/write1.php index 41e8229..349811c 100644 --- a/config/write1.php +++ b/config/write1.php @@ -10,6 +10,8 @@ $webclipfeedvisible1 = $_POST['webclipfeedvisible']; $konvoschat1 = $_POST['konvoschat']; $konvosvisible1 = $_POST['konvosvisible']; $kodivisible1 = $_POST['kodivisible']; +$backgroundcolor1 = $_POST['backgroundcolor']; + // $fl='../config.php'; @@ -22,6 +24,7 @@ $content = preg_replace( '/\$base = \"(.*?)\";/', '$base = "'.$yb.'";', $conte // User/Pass Update $content = preg_replace( '/\$user = \"(.*?)\";/', '$user = "'.$user1.'";', $content); $content = preg_replace( '/\$pass = \"(.*?)\";/', '$pass = "'.$pass1.'";', $content); +$content = preg_replace( '/\$custombackground = \"(.*?)\";/', '$custombackground = "#'.$backgroundcolor1.'";', $content); // clockvisible Settings if (empty($clockvisible1)) { $content = preg_replace( '/\$clockvisible = \"(.*?)\";/', '$clockvisible = "0";', $content); @@ -58,7 +61,7 @@ $content = preg_replace( '/\$pass = \"(.*?)\";/', '$pass = "'.$pass1.'";', $co } else { $content = preg_replace( '/\$kodivisible = \"(.*?)\";/', '$kodivisible = "1";', $content); } - /*write operation ->*/ $tmp =fopen($fl, "w"); fwrite($tmp, $content); fclose($tmp); + /*write operation ->*/ $tmp =fopen($fl, "w"); fwrite($tmp, $content); fclose($tmp); //sleep for 5 seconds diff --git a/css/custom.php b/css/custom.php index 5353311..d1f5b30 100644 --- a/css/custom.php +++ b/css/custom.php @@ -14,7 +14,7 @@ left: 0; width: 100%; /*Width of left frame div*/ height: 100%; overflow: hidden; /*Disable scrollbars. Set to "scroll" to enable*/ -background-color: ; +background-color: ; color: white; #000000; } diff --git a/left.php b/left.php index 42c1e81..22cad73 100644 --- a/left.php +++ b/left.php @@ -8,6 +8,7 @@ + Change background: -