custom headercolours
This commit is contained in:
		
							parent
							
								
									bdabb94448
								
							
						
					
					
						commit
						a1e7418f48
					
				
							
								
								
									
										26
									
								
								Update.bat
									
									
									
									
									
								
							
							
						
						
									
										26
									
								
								Update.bat
									
									
									
									
									
								
							| @ -8,6 +8,9 @@ CACLS config.php /e /p everyone:f | ||||
| CACLS Update.bat /e /p everyone:f | ||||
| CACLS replace.vbs /e /p everyone:f | ||||
| ICACLS .git /grant:r "NT AUTHORITY\NETWORKSERVICE":(OI)(CI)RXW /T | ||||
| ICACLS config.php /grant:r "NT AUTHORITY\NETWORKSERVICE":(OI)(CI)RXW /T | ||||
| ICACLS Update.bat /grant:r "NT AUTHORITY\NETWORKSERVICE":(OI)(CI)RXW /T | ||||
| ICACLS replace.vbs /grant:r "NT AUTHORITY\NETWORKSERVICE":(OI)(CI)RXW /T | ||||
| echo Permissions Updated | ||||
| 
 | ||||
| @ECHO OFF | ||||
| @ -241,6 +244,25 @@ findstr "KWorldEnabled" config.php >nul 2>&1 | ||||
| 	 goto END | ||||
|    :END | ||||
| 
 | ||||
|      rem widgetcolour | ||||
| findstr "widgetcolour" config.php >nul 2>&1 | ||||
|    if errorlevel 1 goto ONE | ||||
|    if errorlevel 0 goto ZERO | ||||
|    goto END | ||||
|    :ZERO | ||||
|      echo widgetcolour Already Updated | ||||
| 	 goto END | ||||
|    :ONE | ||||
|      echo ^<?php >>config.php | ||||
| 	 echo //// widgetcolour Settings >> config.php | ||||
| 	 echo $widgetcolour = "#000000"; >> config.php | ||||
| 	 echo //// >> config.php | ||||
| 	 echo ^?^> >> config.php | ||||
| 	 echo WidgetColour Updated | ||||
| 	 goto END | ||||
|    :END | ||||
|     | ||||
|     | ||||
|    rem Update Version | ||||
| findstr "localversion" config.php >nul 2>&1 | ||||
|    if errorlevel 1 goto ONE | ||||
| @ -261,8 +283,8 @@ findstr "localversion" config.php >nul 2>&1 | ||||
| 	 goto END | ||||
|    :END | ||||
|    :ONE | ||||
|      cscript replace.vbs "config.php" "2.0" "2.1" | ||||
|      echo Version Updated to 2.1 | ||||
|      cscript replace.vbs "config.php" "2.1" "2.2" | ||||
|      echo Version Updated to 2.2 | ||||
| 	 goto END | ||||
|    :END | ||||
|     | ||||
|  | ||||
| @ -28,7 +28,7 @@ | ||||
| require "configs_services.php"; | ||||
| 
 | ||||
| # Start a variable to contain Service Status.
 | ||||
| $serverStatus = "<table id='servicestable' width='190' border='0' cellspacing='0' cellpadding='1'><thead><tr onclick='togglebodyServices()' BGCOLOR='#0066FF'><th style='text-align: left;'><font color='white'>Service</font></th><th style='text-align: left;'><font color='white'>Status</font></th></tr></thead>"; | ||||
| $serverStatus = "<table id='servicestable' width='190' border='0' cellspacing='0' cellpadding='1'><thead><tr onclick='togglebodyServices()' ><th style='text-align: left;'><font color='white'>Service</font></th><th style='text-align: left;'><font color='white'>Status</font></th></tr></thead>"; | ||||
| 
 | ||||
| # Process all services montiored.
 | ||||
| foreach( $configs['servicesKloud'] as $serviceName => $servicePort ) | ||||
|  | ||||
| @ -12,7 +12,7 @@ | ||||
|     </script> | ||||
| </head>  | ||||
| <table width='275' cellspacing='0' cellpadding='1'> | ||||
|   <tr onclick="toggleNextRow(this)" BGCOLOR='#0066FF'> | ||||
|   <tr onclick="toggleNextRow(this)"> | ||||
|     <th style='text-align: left;'><font color='white'>Time</font></th> | ||||
|   </tr> | ||||
|   <tr> | ||||
|  | ||||
| @ -21,6 +21,8 @@ | ||||
| 	<br /> | ||||
| 	Custom Background Colour:<input class="color" name="backgroundcolor" value="<?php echo $custombackground ?>"</td> | ||||
| 	<br /> | ||||
| 	Widget Header Colour:<input class="color" name="widgetcolor" value="<?php echo $widgetcolour ?>"</td> | ||||
| 	<br /> | ||||
| 	<br /> | ||||
| 	KWorld Enabled:  <input name="kworldenabled" id="id" type="checkbox" <?php if($KWorldEnabled > "0")  echo "checked=checked; "; ?> /><br />
 | ||||
| 	<br /> | ||||
| @ -37,11 +39,11 @@ | ||||
| 	<br /> | ||||
| 	Show Version	:  <input name="showversion" id="id" type="checkbox" <?php if($showversion > "0")  echo "checked=checked; "; ?> /> (<?php echo $localversion ?>)<br />
 | ||||
| 	<br /> | ||||
| 	Widget Background:  <input name="widgetvisible" id="id" type="checkbox" <?php if($widgetbackgroud > "0")  echo "checked=checked; "; ?> /><br />
 | ||||
| 	Custom Widget Background:  <input name="customwidget" id="id" type="checkbox" <?php if($customwidgetbackgroud > "0")  echo "checked=checked; "; ?> /><br />
 | ||||
| 	Background Colour: <input class="color" name="widgetbackgroudcolour" value="<?php echo $widgetbackgroudcolour ?>"</td> | ||||
| 	Icon Background:  <input name="widgetvisible" id="id" type="checkbox" <?php if($widgetbackgroud > "0")  echo "checked=checked; "; ?> /><br />
 | ||||
| 	Custom Icon Background:  <input name="customwidget" id="id" type="checkbox" <?php if($customwidgetbackgroud > "0")  echo "checked=checked; "; ?> /><br />
 | ||||
| 	Custom Icon Background Colour: <input class="color" name="widgetbackgroudcolour" value="<?php echo $widgetbackgroudcolour ?>"</td> | ||||
| 	<br /> | ||||
| 	Reset Widgets	:  <input id="def_button" type="button" value="Set to Default" onclick="myfunction()"><br /> | ||||
| 	Reset Icon Positions	:  <input id="def_button" type="button" value="Set to Default" onclick="myfunction()"><br /> | ||||
| 	<br /> | ||||
|    <input type="submit"  name="submit" value="Update" /> | ||||
| </form> | ||||
|  | ||||
| @ -16,6 +16,7 @@ $widgetbackgroud1 = $_POST['widgetvisible']; | ||||
| $customwidgetbackgroud1 = $_POST['customwidget']; | ||||
| $widgetbackgroudcolour1 = $_POST['widgetbackgroudcolour']; | ||||
| $KWorldEnabled1 = $_POST['kworldenabled']; | ||||
| $widgetcolor1 = $_POST['widgetcolor']; | ||||
| 
 | ||||
| //
 | ||||
| $fl='../config.php';  | ||||
| @ -29,6 +30,7 @@ $content =   preg_replace( '/\$base = \"(.*?)\";/', '$base = "'.$yb.'";', $conte | ||||
| $content =   preg_replace( '/\$user = \"(.*?)\";/', '$user = "'.$user1.'";', $content); | ||||
| $content =   preg_replace( '/\$pass = \"(.*?)\";/', '$pass = "'.$pass1.'";', $content); | ||||
| $content =   preg_replace( '/\$custombackground = \"(.*?)\";/', '$custombackground = "#'.$backgroundcolor1.'";', $content); | ||||
| $content =   preg_replace( '/\$widgetcolour = \"(.*?)\";/', '$widgetcolour = "#'.$widgetcolor1.'";', $content); | ||||
|  // version Settings
 | ||||
|  if (empty($showversion1)) { | ||||
|     $content =   preg_replace( '/\$showversion = \"(.*?)\";/', '$showversion = "0";', $content); | ||||
|  | ||||
							
								
								
									
										13
									
								
								css/static.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								css/static.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,13 @@ | ||||
| <?php | ||||
|     header("Content-type: text/css; charset: UTF-8"); | ||||
| ?>
 | ||||
| <?php include '../config.php';?>
 | ||||
| 
 | ||||
| table,th,td { }  | ||||
| 
 | ||||
| tr { background-color:<?php echo $widgetcolour; ?>;
 | ||||
| 
 | ||||
| }  | ||||
| 
 | ||||
| </style> | ||||
| 
 | ||||
| @ -30,8 +30,8 @@ require_once 'DiskStatus.class.php'; | ||||
| } | ||||
| 
 | ||||
| ?>
 | ||||
|   <tr onclick="toggleNextRow(this)" BGCOLOR='#FFFFFF'> | ||||
|     <th style='text-align: left;'><font color='#0066FF'><?php echo $drive1;?>\<?= $freeSpaceC ?> (of <?= $totalSpaceC ?>)</font></th>
 | ||||
|   <tr onclick="toggleNextRow(this)" > | ||||
|     <th style='text-align: left; background-color:#FFFFFF;'><font color='#0066FF'><?php echo $drive1;?>\<?= $freeSpaceC ?> (of <?= $totalSpaceC ?>)</font></th>
 | ||||
|   </tr> | ||||
|   <tr class="hiddenRow"> | ||||
|             <td bgcolor='#FFFFFF'> | ||||
|  | ||||
| @ -31,7 +31,7 @@ require_once 'DiskStatus.class.php'; | ||||
| 
 | ||||
| ?>
 | ||||
|   <tr onclick="toggleNextRow(this)" BGCOLOR='#FFFFFF'> | ||||
|     <th style='text-align: left;'><font color='#0066FF'><?php echo $drive2;?>\<?= $freeSpaceC ?> (of <?= $totalSpaceC ?>)</font></th>
 | ||||
|     <th style='text-align: left; background-color:#FFFFFF;'><font color='#0066FF'><?php echo $drive2;?>\<?= $freeSpaceC ?> (of <?= $totalSpaceC ?>)</font></th>
 | ||||
|   </tr> | ||||
|   </tr> | ||||
|   <tr class="hiddenRow"> | ||||
|  | ||||
| @ -31,7 +31,7 @@ require_once 'DiskStatus.class.php'; | ||||
| 
 | ||||
| ?>
 | ||||
|   <tr onclick="toggleNextRow(this)" BGCOLOR='#FFFFFF'> | ||||
|     <th style='text-align: left;'><font color='#0066FF'><?php echo $drive3;?>\<?= $freeSpaceC ?> (of <?= $totalSpaceC ?>)</font></th>
 | ||||
|     <th style='text-align: left; background-color:#FFFFFF;'><font color='#0066FF'><?php echo $drive3;?>\<?= $freeSpaceC ?> (of <?= $totalSpaceC ?>)</font></th>
 | ||||
|   </tr> | ||||
|   <tr class="hiddenRow"> | ||||
|             <td bgcolor='#FFFFFF'> | ||||
|  | ||||
| @ -31,7 +31,7 @@ require_once 'DiskStatus.class.php'; | ||||
| 
 | ||||
| ?>
 | ||||
|   <tr onclick="toggleNextRow(this)" BGCOLOR='#FFFFFF'> | ||||
|     <th style='text-align: left;'><font color='#0066FF'><?php echo $drive4;?>\<?= $freeSpaceC ?> (of <?= $totalSpaceC ?>)</font></th>
 | ||||
|     <th style='text-align: left; background-color:#FFFFFF;'><font color='#0066FF'><?php echo $drive4;?>\<?= $freeSpaceC ?> (of <?= $totalSpaceC ?>)</font></th>
 | ||||
|   </tr> | ||||
|   <tr class="hiddenRow"> | ||||
|             <td bgcolor='#FFFFFF'> | ||||
|  | ||||
| @ -31,7 +31,7 @@ require_once 'DiskStatus.class.php'; | ||||
| 
 | ||||
| ?>
 | ||||
|   <tr onclick="toggleNextRow(this)" BGCOLOR='#FFFFFF'> | ||||
|     <th style='text-align: left;'><font color='#0066FF'><?php echo $drive5;?>\<?= $freeSpaceC ?> (of <?= $totalSpaceC ?>)</font></th>
 | ||||
|     <th style='text-align: left; background-color:#FFFFFF;'><font color='#0066FF'><?php echo $drive5;?>\<?= $freeSpaceC ?> (of <?= $totalSpaceC ?>)</font></th>
 | ||||
|   </tr> | ||||
|   <tr class="hiddenRow"> | ||||
|             <td bgcolor='#FFFFFF'> | ||||
|  | ||||
| @ -31,7 +31,7 @@ require_once 'DiskStatus.class.php'; | ||||
| 
 | ||||
| ?>
 | ||||
|   <tr onclick="toggleNextRow(this)" BGCOLOR='#FFFFFF'> | ||||
|     <th style='text-align: left;'><font color='#0066FF'><?php echo $drive6;?>\<?= $freeSpaceC ?> (of <?= $totalSpaceC ?>)</font></th>
 | ||||
|     <th style='text-align: left; background-color:#FFFFFF;'><font color='#0066FF'><?php echo $drive6;?>\<?= $freeSpaceC ?> (of <?= $totalSpaceC ?>)</font></th>
 | ||||
|   </tr> | ||||
|   <tr class="hiddenRow"> | ||||
|             <td bgcolor='#FFFFFF'> | ||||
|  | ||||
| @ -31,7 +31,7 @@ require_once 'DiskStatus.class.php'; | ||||
| 
 | ||||
| ?>
 | ||||
|   <tr onclick="toggleNextRow(this)" BGCOLOR='#FFFFFF'> | ||||
|     <th style='text-align: left;'><font color='#0066FF'><?php echo $drive7;?>\<?= $freeSpaceC ?> (of <?= $totalSpaceC ?>)</font></th>
 | ||||
|     <th style='text-align: left; background-color:#FFFFFF;'><font color='#0066FF'><?php echo $drive7;?>\<?= $freeSpaceC ?> (of <?= $totalSpaceC ?>)</font></th>
 | ||||
|   </tr> | ||||
|   <tr class="hiddenRow"> | ||||
|             <td bgcolor='#FFFFFF'> | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| <thead> | ||||
|   <tr onclick='togglebody()' BGCOLOR='#0066FF'> | ||||
|   <tr onclick='togglebody()'> | ||||
|     <th style='text-align: left;'><font color='white'>Drive Space</font></th> | ||||
|   </tr> | ||||
| </thead> | ||||
| @ -1,5 +1,6 @@ | ||||
| <html>  | ||||
| <head>  | ||||
| <link rel="stylesheet" type="text/css" href="../css/static.css" /> | ||||
|   <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.js" type="text/javascript"></script> | ||||
|     <style> | ||||
|         .hiddenRow { display: none; } | ||||
| @ -13,7 +14,7 @@ | ||||
| </head>  | ||||
| <?php include '../config.php';?>
 | ||||
| <table width='275' border='0' cellspacing='0' cellpadding='0'> | ||||
|   <tr onclick="toggleNextRow(this)" BGCOLOR='#0066FF'> | ||||
|   <tr onclick="toggleNextRow(this)"> | ||||
|     <th style='text-align: left;'><font color='white'>KKnowledge</font></th> | ||||
|   </tr> | ||||
|   <tr class="hiddenRow"> | ||||
|  | ||||
| @ -12,7 +12,7 @@ | ||||
|     </script> | ||||
| </head>  | ||||
| <table width='275' border='0' cellspacing='0' cellpadding='0'> | ||||
|   <tr onclick="toggleNextRow(this)" BGCOLOR='#0066FF'> | ||||
|   <tr onclick="toggleNextRow(this)" > | ||||
|     <th style='text-align: left;'><font color='white'>Latest Klips</font></th> | ||||
|   </tr> | ||||
|   <tr class="hiddenRow"> | ||||
|  | ||||
| @ -12,12 +12,12 @@ | ||||
|     </script> | ||||
| </head>  | ||||
| <table width='275' cellspacing='0' cellpadding='1'> | ||||
|   <tr onclick="toggleNextRow(this)" BGCOLOR='#0066FF'> | ||||
|   <tr onclick="toggleNextRow(this)"> | ||||
|     <th style='text-align: left;'><font color='white'>Konvos Status</font></th> | ||||
|   </tr> | ||||
|   <tr class="hiddenRow"> | ||||
|     <td BGCOLOR='#FFFFFF'> | ||||
| 	    <table id='konvostable' width='275' border='0' cellspacing='0' cellpadding='1'><thead><tr onclick='togglebodyServers()' BGCOLOR='#0066FF'><th style='text-align: left;'><font color='white'>User</font></th><th style='text-align: left;'><font color='white'>Status</font></th></tr></thead> | ||||
| 	    <table id='konvostable' width='275' border='0' cellspacing='0' cellpadding='1'><thead><tr onclick='togglebodyServers()' ><th style='text-align: left;'><font color='white'>User</font></th><th style='text-align: left;'><font color='white'>Status</font></th></tr></thead> | ||||
| 	<tbody><td BGCOLOR='#FFFFFF'>Karl</td><td BGCOLOR='#FFFFFF'><?php require "http://konvos.cf:5280/status/karl/html"; ?></td></tr>
 | ||||
| 	<tbody><td BGCOLOR='#FFFFFF'>Duly</td><td BGCOLOR='#FFFFFF'><?php require "http://konvos.cf:5280/status/duly/html"; ?></td></tr>
 | ||||
| 	<tbody><td BGCOLOR='#FFFFFF'>Darren</td><td BGCOLOR='#FFFFFF'><?php require "http://konvos.cf:5280/status/darren/html"; ?></td></tr>
 | ||||
|  | ||||
							
								
								
									
										1
									
								
								left.php
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								left.php
									
									
									
									
									
								
							| @ -4,6 +4,7 @@ | ||||
| <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | ||||
| <head> | ||||
| <link rel="stylesheet" type="text/css" href="css/white.css" /> | ||||
| <link rel="stylesheet" type="text/css" href="../css/static.php" /> | ||||
| <link rel="alternate stylesheet" type="text/css" media="screen" title="black" href="css/black.css" /> | ||||
| <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" /> | ||||
|  | ||||
							
								
								
									
										11
									
								
								right.php
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								right.php
									
									
									
									
									
								
							| @ -4,6 +4,7 @@ | ||||
| <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | ||||
| <head> | ||||
| <link rel="stylesheet" type="text/css" href="css/white.css" /> | ||||
| <link rel="stylesheet" type="text/css" href="../css/static.php" /> | ||||
| <link rel="alternate stylesheet" type="text/css" media="screen" title="black" href="css/black.css" /> | ||||
| <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" /> | ||||
| @ -105,11 +106,11 @@ if ($customfeed3visible > "0") { | ||||
| <table id='themetable' width='275' border="0" cellpadding="1" cellspacing="0"> | ||||
| 	<thead> | ||||
| 		<tr onclick='togglebodytheme()'> | ||||
| 			<td bgcolor="#0066FF" style="text-align: left;"><font color="white"><b>Theme</b></font></td> | ||||
| 			<td bgcolor="#0066FF"> </td> | ||||
| 			<td bgcolor="#0066FF"> </td> | ||||
| 			<td bgcolor="#0066FF"> </td> | ||||
| 			<td bgcolor="#0066FF"> </td> | ||||
| 			<td style="text-align: left;"><font color="white"><b>Theme</b></font></td> | ||||
| 			<td > </td> | ||||
| 			<td > </td> | ||||
| 			<td > </td> | ||||
| 			<td > </td> | ||||
| 		</tr> | ||||
| 	</thead>	 | ||||
| 		<tbody style= 'display:none' border="1"> | ||||
|  | ||||
| @ -29,7 +29,7 @@ require "ss_configs_servers.php"; | ||||
| 
 | ||||
| # Start a variable to contain Service Status.
 | ||||
| if ($serverstatusvisible > "0") { | ||||
|     $serverStatus = "<table id='serverstable' width='190' border='0' cellspacing='0' cellpadding='1'><thead><tr onclick='togglebodyServers()' BGCOLOR='#0066FF'><th style='text-align: left;'><font color='white'>Server</font></th><th style='text-align: left;'><font color='white'>Status</font></th></tr></thead>"; | ||||
|     $serverStatus = "<table id='serverstable' width='190' border='0' cellspacing='0' cellpadding='1'><thead><tr onclick='togglebodyServers()'><th style='text-align: left;'><font color='white'>Server</font></th><th style='text-align: left;'><font color='white'>Status</font></th></tr></thead>"; | ||||
|  } | ||||
| 	 | ||||
| # Process all services1 montiored.
 | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| <?php | ||||
| //// KLANDING VERSION | ||||
| $remoteversion = "2.1";  //  | ||||
| $remoteversion = "2.2";  //  | ||||
| ?> | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user