- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippMonitor/raw/ipp.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/ippMonitor/raw/ipp.php
r24759 r27840 17 17 echo "Username: <input type=\"text\" name=\"username\"><br>\n"; 18 18 } 19 echo 'Password: <input type=" text" name="password"><br>', "\n";19 echo 'Password: <input type="password" name="password"><br>', "\n"; 20 20 echo '<input type="submit" name="login" value="login">', "\n"; 21 21 echo '</form>', "\n\n"; … … 283 283 if (! $project) { $project = "none"; } 284 284 285 $file = fopen ($source, "r"); 286 285 // these are defined in site.php 286 global $DBHOST; 287 global $WWWHOST; 288 289 echo "<p style=\"font-size:50%\">host: $WWWHOST, db: $DBHOST</p>\n"; 287 290 echo "<table class=page cellspacing=10px><tr><td valign=top>\n"; 288 291 echo "<table class=menu cellspacing=0px>\n"; 289 292 293 menulines ($source, $root, $append, $project); 294 295 echo '</table></td><td class="body" valign=top>', "\n\n"; 296 } 297 298 function menulines ($source, $root, $append, $project) { 299 300 $file = fopen ($source, "r"); 301 302 // loop over the lines in the file and generate lines in the menu 290 303 while ($line = fgetcsv ($file, 1024, "|")) { 304 if (ereg ('^[:blank:]*#', $line[0])) continue; 305 if (count($line) < 2) continue; 306 307 if (count($line) == 2) { 308 $value = trim($line[0]); 309 if ($value == "input") { 310 $value = trim($line[1]); 311 menulines ($value, $root, $append, $project); 312 } 313 continue; 314 } 291 315 if (count($line) != 5) continue; 292 if (ereg ('^[:blank:]*#', $line[0])) continue;293 316 294 317 $type = trim($line[2]); … … 330 353 } 331 354 fclose ($file); 332 echo '</table></td><td class="body" valign=top>', "\n\n";333 355 } 334 356 … … 427 449 } 428 450 if ($value == "") { return $where; } 451 452 global $restricted; 453 $restricted = 1; 454 429 455 if ($where) { 430 456 $where = $where . " AND"; … … 644 670 // expect image supplied with key=name 645 671 // this function should define matching hidden inputs in the form 646 function insert_image ($rule ) {672 function insert_image ($rule, $size) { 647 673 648 674 if ($_SERVER[REQUEST_METHOD] == 'GET') { … … 659 685 660 686 if ($basename && $camera && $rule) { 661 echo "<img src=\"getimage.php?name=$basename&rule=$rule&camera=$camera&class_id=$class_id\">\n"; 687 echo "<a href=\"showimage.php?name=$basename&rule=$rule&camera=$camera&class_id=$class_id\">\n"; 688 echo "<img $size src=\"getimage.php?name=$basename&rule=$rule&camera=$camera&class_id=$class_id\">\n"; 689 echo "</a>\n"; 662 690 } 663 691 }
Note:
See TracChangeset
for help on using the changeset viewer.
