Changeset 17928
- Timestamp:
- 07/23/14 11:06:08 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/showlog/index.php
r16466 r17928 297 297 { 298 298 header('WWW-Authenticate: Basic realm="SmartFACT++"'); 299 header('HTTP/1. 0401 Unauthorized');299 header('HTTP/1.1 401 Unauthorized'); 300 300 return; 301 301 } … … 303 303 $rc = login(); 304 304 if ($rc!="") 305 return header('HTTP/1. 0401 '.$rc);305 return header('HTTP/1.1 401 '.$rc); 306 306 307 307 $refresh = isset($_GET['refresh']) ? $_GET['refresh'] : -1; … … 315 315 316 316 if (!strpos($prg, "/")===false || !strpos($dir, "/")===false) 317 return header('HTTP/1.0 403 Access forbidden.'); 317 { 318 header('HTTP/1.1 403 Access forbidden.'); 319 print("HTTP/1.1 403 Access forbidden.\n"); 320 return; 321 } 318 322 319 323 if (empty($_GET['dir'])) … … 332 336 $size = filesize($filename); 333 337 if ($size>30000000) // 30MB 334 return header('HTTP/1.0 403 File too large.'); 338 { 339 header('HTTP/1.1 403 File too large.'); 340 print("File too large.\n"); 341 return; 342 } 335 343 336 344 // FIXME: Reading the file line by line avoids any danger that … … 338 346 $file = file($filename); 339 347 if ($file===false) 340 return header('HTTP/1.0 403 Access forbidden.'); 348 { 349 header('HTTP/1.1 403 Access forbidden.'); 350 print("Access forbidden.\n"); 351 return; 352 } 341 353 342 354 $max = 10000; … … 392 404 <li><a href="?log=fscctrl">fscctrl</a></li> 393 405 <li><a href="?log=ftmctrl">ftmctrl</a></li> 406 <li><a href="?log=gcn">gcn</a></li> 407 <li><a href="?log=gpsctrl">gpsctrl</a></li> 394 408 <li><a href="?log=lidctrl">lidctrl</a></li> 395 409 <li><a href="?log=magiclidar">magiclidar</a></li> … … 399 413 <li><a href="?log=ratecontrol">ratecontrol</a></li> 400 414 <li><a href="?log=ratescan">ratescan</a></li> 415 <li><a href="?log=sqmctrl">sqmctrl</a></li> 401 416 <li><a href="?log=temperature">temperature</a></li> 402 417 <li><a href="?log=timecheck">timecheck</a></li>
Note:
See TracChangeset
for help on using the changeset viewer.