custom backgound
This commit is contained in:
parent
40b3039218
commit
820c3d5045
16
Update.bat
16
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 ^<?php >>config.php
|
||||
echo $custombackground = ""; >> config.php
|
||||
echo ^?^> >> config.php
|
||||
echo custombackground Updated
|
||||
goto END
|
||||
:END
|
||||
|
||||
PAUSE
|
@ -1,5 +1,9 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<script type="text/javascript" src="../jscolor/jscolor.js"></script>
|
||||
</head>
|
||||
<?php include '../config.php';?>
|
||||
|
||||
<body>
|
||||
<form action="write1.php" method="post">
|
||||
Your Name: <input type="text" value="<?php echo $yourname ?>" name="YN" /><br />
|
||||
Server Address: <input type="text" value="<?php echo $base ?>" name="YB" /><br />
|
||||
@ -7,6 +11,8 @@
|
||||
Username: <input type="text" value="<?php echo $user ?>" name="user" /><br />
|
||||
Password: <input type="text" value="<?php echo $pass ?>" name="pass" /><br />
|
||||
<br />
|
||||
Custom Background Colour:<input class="color" name="backgroundcolor" value="<?php echo $custombackground ?>"</td>
|
||||
<br />
|
||||
<br />
|
||||
Services Widget Enabled: <input name="servicesvisible" id="id" type="checkbox" <?php if($servicesvisible > "0") echo "checked=checked; "; ?> /><br />
|
||||
Clock Widget Enabled: <input name="clockvisible" id="id" type="checkbox" <?php if($clockvisible > "0") echo "checked=checked; "; ?> /><br />
|
||||
@ -19,4 +25,5 @@
|
||||
<br />
|
||||
|
||||
<input type="submit" name="submit" value="Update" />
|
||||
</form>
|
||||
</form>
|
||||
</body>
|
@ -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
|
||||
|
||||
|
@ -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: <?php echo $CustBack; ?>;
|
||||
background-color: <?php echo $custombackground; ?>;
|
||||
color: white; #000000;
|
||||
}
|
||||
|
||||
|
1
left.php
1
left.php
@ -8,6 +8,7 @@
|
||||
<link rel="alternate stylesheet" type="text/css" media="screen" title="white" href="css/white.css" />
|
||||
<link rel="alternate stylesheet" type="text/css" media="screen" title="blue" href="css/blue.css" />
|
||||
<link rel="alternate stylesheet" type="text/css" media="screen" title="red" href="css/red.css" />
|
||||
<link rel="alternate stylesheet" type="text/css" media="screen" title="custom" href="css/custom.php" />
|
||||
<script type="text/javascript">
|
||||
window.onload=function(){
|
||||
var formref=document.getElementById("switchform")
|
||||
|
1
main.php
1
main.php
@ -7,6 +7,7 @@
|
||||
<link rel="alternate stylesheet" type="text/css" media="screen" title="white" href="css/white.css" />
|
||||
<link rel="alternate stylesheet" type="text/css" media="screen" title="blue" href="css/blue.css" />
|
||||
<link rel="alternate stylesheet" type="text/css" media="screen" title="red" href="css/red.css" />
|
||||
<link rel="alternate stylesheet" type="text/css" media="screen" title="custom" href="css/custom.php" />
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="css/converse.min.css">
|
||||
<script src="builds/converse.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
@ -109,6 +109,7 @@ if ($customfeed3visible > "0") {
|
||||
<td bgcolor="#0066FF"> </td>
|
||||
<td bgcolor="#0066FF"> </td>
|
||||
<td bgcolor="#0066FF"> </td>
|
||||
<td bgcolor="#0066FF"> </td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style= 'display:none'>
|
||||
@ -117,11 +118,8 @@ if ($customfeed3visible > "0") {
|
||||
<td bgcolor="#ffffff"><a href="javascript:chooseStyle('black', 60)" onclick="parent.left.location.reload(); parent.main.location.reload()">Black</a></td>
|
||||
<td bgcolor="#ffffff"><a href="javascript:chooseStyle('blue', 60)" onclick="parent.left.location.reload(); parent.main.location.reload()">Blue</a></td>
|
||||
<td bgcolor="#ffffff"><a href="javascript:chooseStyle('red', 60)" onclick="parent.left.location.reload(); parent.main.location.reload()">Red</a></td>
|
||||
<td bgcolor="#ffffff"><a href="javascript:chooseStyle('custom', 60)" onclick="parent.left.location.reload(); parent.main.location.reload()">Custom</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" bgcolor="#ffffff"><script type="text/javascript" src="jscolor/jscolor.js"></script>Change background: <input class="color" NAME="CustColor"</td>
|
||||
<td bgcolor="#ffffff"><a href="right.php" onclick="parent.left.location.reload(); parent.main.location.reload()">Red</a></td> </tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<?php
|
||||
|
Loading…
x
Reference in New Issue
Block a user