Changeset 40737 for trunk/dvodist/www-util/ipp.php
- Timestamp:
- May 14, 2019, 2:55:11 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/dvodist/www-util/ipp.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dvodist/www-util/ipp.php
r36076 r40737 56 56 // loop over the lines in the file and generate lines in the menu 57 57 while ($line = fgetcsv ($file, 1024, "|")) { 58 if ( ereg ('^[:blank:]*#', $line[0])) continue;58 if (preg_match ('/^\s*#/', $line[0])) continue; 59 59 if (count($line) < 2) continue; 60 60 … … 81 81 82 82 // append additional elements if needed 83 $link = "$base"; 83 84 if ($append) { 84 85 $link = "$base" . "?" . $append; 85 } else {86 $link = "$base";87 86 } 88 87 89 88 // prepend the rootdir if needed (reference to /) 90 if ( $link[0] == '/') {89 if (substr($link, 0, 1) == "/") { 91 90 $link = $root . $link; 92 91 } 93 92 94 93 // hi-lite the current page (use select-style, not style) 95 $thisname = $_SERVER[ SCRIPT_NAME];94 $thisname = $_SERVER['SCRIPT_NAME']; 96 95 $page = $root . $base; 97 96 if ($page == $thisname) { … … 147 146 // loop over the lines in the file and generate lines in the menu 148 147 while ($line = fgetcsv ($file, 1024, ":")) { 149 if ( ereg ('^[:blank:]*#', $line[0])) continue;148 if (preg_match ('/^\s*#/', $line[0])) continue; 150 149 if (count($line) < 2) continue; 151 150 … … 205 204 $inline = trim ($inlist[$i], "@ \t"); 206 205 $line = explode (":", $inline); 207 if ( ereg ('^[:blank:]*#', $line[0])) continue;206 if (preg_match ('/^\s*#/', $line[0])) continue; 208 207 if (count($line) < 2) continue; 209 208
Note:
See TracChangeset
for help on using the changeset viewer.
