Changeset 4 for www/mapy/pokryti.php
- Timestamp:
- Jan 14, 2008, 9:48:39 PM (17 years ago)
- Location:
- www
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
www
-
Property svn:ignore
set to
config.php
php_script_error.log
-
Property svn:ignore
set to
-
www/mapy/pokryti.php
r1 r4 1 <? 2 include_once('../is/db.php'); 3 include_once('../is/error.php'); 4 DB_Init('localhost','root','','is'); 1 <?php 2 3 include_once('../global.php'); 5 4 6 5 $im = imagecreatefrompng("Mapa2.png"); … … 37 36 // Preload user list 38 37 $Users = array(); 39 DB_Select('users','*');40 while($Row = DB_Row()) $Users = array_merge($Users, array('i'.$Row['id'] => array('name' => $Row['name'], 'x' => $Row['PositionX'], 'y' => $Row['PositionY'])));38 $DbResult = $Database->select('users','*'); 39 while($Row = $DbResult->fetch_array()) $Users = array_merge($Users, array('i'.$Row['id'] => array('name' => $Row['name'], 'x' => $Row['PositionX'], 'y' => $Row['PositionY']))); 41 40 42 41 // Preload host list 43 42 $Hosts = array(); 44 DB_Select('hosts','*');45 while($Row = DB_Row()) $Hosts = array_merge($Hosts, array('i'.$Row['id'] => array('name' => $Row['name'], 'user' => $Row['user'], 'parent' => $Row['parent'], 'link_type' => $Row['link_type'])));43 $DbResult = $Database->select('hosts','*'); 44 while($Row = $DbResult->fetch_array()) $Hosts = array_merge($Hosts, array('i'.$Row['id'] => array('name' => $Row['name'], 'user' => $Row['user'], 'parent' => $Row['parent'], 'link_type' => $Row['link_type']))); 46 45 47 46 // Preload link color list 48 47 $LinkColors = array('i0' => 'FFFFFF'); 49 DB_Select('link_types','*');50 while($Row = DB_Row()) $LinkColors = array_merge($LinkColors, array('i'.$Row['id'] => $Row['color']));48 $DbResult = $Database->select('link_types','*'); 49 while($Row = $DbResult->fetch_array()) $LinkColors = array_merge($LinkColors, array('i'.$Row['id'] => $Row['color'])); 51 50 52 51 function UserPosition($ID)
Note:
See TracChangeset
for help on using the changeset viewer.