Changeset 873 for trunk/Modules/SpeedTest/SpeedTest.php
- Timestamp:
- Apr 6, 2020, 11:17:40 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/SpeedTest/SpeedTest.php
r738 r873 39 39 function Show() 40 40 { 41 if (count($this->System->PathItems) > 1)41 if (count($this->System->PathItems) > 1) 42 42 { 43 if ($this->System->PathItems[1] == 'download.php') return($this->ShowDownload());44 //else if ($this->System->PathItems[1] == 'rss') return($this->ShowRSS());45 else return (PAGE_NOT_FOUND);46 } else return ($this->ShowMain());43 if ($this->System->PathItems[1] == 'download.php') return ($this->ShowDownload()); 44 //else if ($this->System->PathItems[1] == 'rss') return ($this->ShowRSS()); 45 else return (PAGE_NOT_FOUND); 46 } else return ($this->ShowMain()); 47 47 } 48 48 … … 62 62 63 63 ## Redirect immediately to download.php if auto_start = 1 64 if ($config->{'general'}->{'auto_start'}) {64 if ($config->{'general'}->{'auto_start'}) { 65 65 Header("Location: ".$config['general']['base_url']."/download.php"); 66 66 exit; … … 77 77 <body>'; 78 78 79 if (file_exists("header.html")) {79 if (file_exists("header.html")) { 80 80 ## Include "header.html" for a custom header, if the file exists 81 81 include("header.html"); … … 86 86 $Output .= '<div id="speedtest_content">'; 87 87 88 if (file_exists("welcome.html")) {88 if (file_exists("welcome.html")) { 89 89 ## Include "welcome.html" for a custom welcome page, if the file exists 90 90 include("welcome.html"); … … 107 107 </div>'; 108 108 109 if (file_exists("footer.html")) {109 if (file_exists("footer.html")) { 110 110 ## Include "footer.html" for a custom footer, if the file exists 111 111 include("footer.html"); … … 114 114 print "</center>\n"; 115 115 } 116 return ($Output);116 return ($Output); 117 117 } 118 118 }
Note:
See TracChangeset
for help on using the changeset viewer.