mirror of https://github.com/dnomd343/tgbot
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							59 lines
						
					
					
						
							1.2 KiB
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							59 lines
						
					
					
						
							1.2 KiB
						
					
					
				
								<?php
							 | 
						|
								
							 | 
						|
								require_once 'models/tgDC.php';
							 | 
						|
								require_once 'models/ipInfo.php';
							 | 
						|
								require_once 'models/cfopPic.php';
							 | 
						|
								require_once 'models/kmsCheck.php';
							 | 
						|
								require_once 'models/ntpCheck.php';
							 | 
						|
								require_once 'models/whoisQuery.php';
							 | 
						|
								
							 | 
						|
								$cmds = array( // 命令列表
							 | 
						|
								    'ip',
							 | 
						|
								    'dc',
							 | 
						|
								    'kms',
							 | 
						|
								    'ntp',
							 | 
						|
								    'cfop',
							 | 
						|
								    'whois'
							 | 
						|
								);
							 | 
						|
								
							 | 
						|
								function route($cmd, $rawParam) { // 命令请求路由
							 | 
						|
								    switch ($cmd) {
							 | 
						|
								        case 'ip':
							 | 
						|
								            ipInfo($rawParam);
							 | 
						|
								            break;
							 | 
						|
								        case 'dc':
							 | 
						|
								            tgDC($rawParam);
							 | 
						|
								            break;
							 | 
						|
								        case 'kms':
							 | 
						|
								            kmsCheck($rawParam);
							 | 
						|
								            break;
							 | 
						|
								        case 'ntp':
							 | 
						|
								            ntpCheck($rawParam);
							 | 
						|
								            break;
							 | 
						|
								        case 'cfop':
							 | 
						|
								            cfopPic($rawParam);
							 | 
						|
								            break;
							 | 
						|
								        case 'whois':
							 | 
						|
								            whoisQuery($rawParam);
							 | 
						|
								            break;
							 | 
						|
								    }
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								function routeCallback($cmd, $rawParam) { // 回调请求路由
							 | 
						|
								    switch ($cmd) {
							 | 
						|
								        case 'ip':
							 | 
						|
								            ipInfoCallback($rawParam);
							 | 
						|
								            break;
							 | 
						|
								        case 'kms':
							 | 
						|
								            kmsCheckCallback($rawParam);
							 | 
						|
								            break;
							 | 
						|
								        case 'ntp':
							 | 
						|
								            ntpCheckCallback($rawParam);
							 | 
						|
								            break;
							 | 
						|
								        case 'cfop':
							 | 
						|
								            cfopPicCallback($rawParam);
							 | 
						|
								            break;
							 | 
						|
								    }
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								?>
							 | 
						|
								
							 |