64 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			64 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php include 'config.php';?>
 | |
| 
 | |
| <?php
 | |
| /*
 | |
| * Script: Server Status
 | |
| * Author: Martin Dixon
 | |
| * From: Tutorial-Resource.com
 | |
| * URL: www.tutorial-resource.com
 | |
| * Version: 1.0
 | |
| * License: Free
 | |
| */
 | |
| /********
 | |
| DO NOT EDIT THESE CONFIG LINES.
 | |
| */
 | |
| $configs = array();
 | |
| $configs['services'] = array();
 | |
| /********
 | |
| DO NOT EDIT THESE CONFIG LINES.
 | |
| ********/
 | |
| 
 | |
| 
 | |
| 
 | |
| # You may edit these configs.
 | |
| $configs['server_ip'] = "$base"; // The Servers URL or IP to check.
 | |
| 
 | |
| # For services simply add new lines with the Name and port number.
 | |
| if ($torrentvisible > "0") {
 | |
| $configs['services']["$torrentname"] = $torrentport;
 | |
| } 
 | |
| 
 | |
| if ($sabvisible > "0") {
 | |
| $configs['services']["$sabname"] = $sabport;
 | |
| }
 | |
| 
 | |
| if ($sickvisible > "0") {
 | |
| $configs['services']["$sickname"] = $sickport;
 | |
| }
 | |
| 
 | |
| if ($cpadultsvisible > "0") {
 | |
| $configs['services']["$couchname"] = $cpadults;
 | |
| }
 | |
| 
 | |
| if ($cpkidsvisible > "0") {
 | |
| $configs['services']["$cpkidsname"] = $cpkids;
 | |
| }
 | |
| 
 | |
| if ($ftpvisible > "0") {
 | |
| $configs['services']["$ftpname"] = $ftpport;
 | |
| }
 | |
| 
 | |
| if ($madsonicvisible > "0") {
 | |
| $configs['services']["$madsonicname"] = $madsonicport;
 | |
| }
 | |
| 
 | |
| if ($plexvisible > "0") {
 | |
|     $configs['services']["$plexname"] = $plexport;
 | |
|  } 
 | |
| 
 | |
| if ($squeezevisible > "0") {
 | |
|     $configs['services']["$squeezename"] = $squeezeport;
 | |
|  } 
 | |
| 
 | |
| 
 | |
| ?>
 |