Changeset 7788 for trunk/src/inc
- Timestamp:
- Apr 16, 2010, 2:15:06 PM (15 years ago)
- Location:
- trunk/src/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/inc/ErrorHandler.php
r7725 r7788 30 30 * Returns: true (Just so the internal PHP error handler is nog executed) 31 31 */ 32 function NodeErrorHandler( int $errno, string $errstr, string $errfile, int $errline, array $errcontext) {32 function NodeErrorHandler($errno, $errstr, $errfile, $errline) { 33 33 switch ($errno) { 34 34 case E_ERROR: … … 80 80 } 81 81 82 set_exception_handler('NodeErrorHandler'); 82 set_error_handler('NodeErrorHandler'); 83 ?> -
trunk/src/inc/KMLFile.class.php
r7777 r7788 297 297 $this->NetworkList->add($network); 298 298 299 // TODO: For this project we'll use random numbers. 300 // In a following project this can be adjusted 301 $bandwithMax = rand(0, 200); 302 $bandwithUsage = rand(0, $bandwithMax); 303 299 304 $data = ' 300 305 <Data name="netmaskDecimal"> … … 336 341 <Data name="hosts"> 337 342 <value>' . $network->numberHosts . '</value> 343 </Data> 344 <Data name="bandwidthMax"> 345 <value>' . $bandwithMax . '</value> 346 </Data> 347 <Data name="bandwidthUsage"> 348 <value>' . $bandwithUsage . '</value> 338 349 </Data>'; 339 350
Note:
See TracChangeset
for help on using the changeset viewer.