Changes between Initial Version and Version 1 of Ticket #415


Ignore:
Timestamp:
Sep 20, 2007, 5:18:15 PM (17 years ago)
Author:
Nicolas
Comment:

Formatted code correctly.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #415

    • Property Owner changed from Rytis to davea
    • Property Component changed from Server - Web - Forums to Server - Other
  • Ticket #415 – Description

    initial v1  
    11Some php.ini files will cause the following errors to appear when viewing logs from in $PROJECT/html/ops/show_log.php
    22
     3{{{
    34Notice: Undefined index: f in /home/mweltin/projects/tsp/html/ops/show_log.php on line 11
    4 
    55Notice: Undefined index: s in /home/mweltin/projects/tsp/html/ops/show_log.php on line 12
    6 
    76Notice: Undefined index: l in /home/mweltin/projects/tsp/html/ops/show_log.php on line 13
    8 
    97Notice: Undefined variable: lines in /home/mweltin/projects/tsp/html/ops/show_log.php on line 38
    10 
     8}}}
    119By first testing for the variable with php's isset function the errors on lines 11-13 can be avoided.
    1210E.g.
    1311
    14 
     12{{{
    1513if( isset($_GET!["f"]) ){
    1614  $f = $_GET!["f"];
     
    2826  $l = 0;
    2927}
    30 
     28}}}
    3129Adding that code pushes the error from line 38 to 54, but I'm not sure what $lines is needed for.  My perl is not so good, and I was not sure what the grep_logs script would use that parameter for.
    3230