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.
		
		
		
		
		
			
		
			
				
					27 lines
				
				606 B
			
		
		
			
		
	
	
					27 lines
				
				606 B
			| 
								 
											2 years ago
										 
									 | 
							
								<?php
							 | 
						||
| 
								 | 
							
								use function Hestiacp\quoteshellarg\quoteshellarg;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								include $_SERVER["DOCUMENT_ROOT"] . "/inc/main.php";
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								$TAB = "WEB";
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								$v_domain = quoteshellarg($_GET["domain"]);
							 | 
						||
| 
								 | 
							
								$type = "access";
							 | 
						||
| 
								 | 
							
								if ($_GET["type"] == "access") {
							 | 
						||
| 
								 | 
							
									$type = "access";
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								if ($_GET["type"] == "error") {
							 | 
						||
| 
								 | 
							
									$type = "error";
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								// Header
							 | 
						||
| 
								 | 
							
								include $_SERVER["DOCUMENT_ROOT"] . "/templates/pages/list_weblog.php";
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								exec(HESTIA_CMD . "v-list-web-domain-" . $type . "log $user " . $v_domain, $output, $return_var);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								if ($return_var == 0) {
							 | 
						||
| 
								 | 
							
									foreach ($output as $file) {
							 | 
						||
| 
								 | 
							
										echo htmlentities($file) . "\n";
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								echo "</pre>\n</body>\n</html>\n";
							 |