$config = array( 'segment' => array( 'width' => 75, 'height' => 46, 'x' => 10, 'y' => 10, ), 'segment' => array( 'width' => 150, 'height' => 93, 'x' => 5, 'y' => 5, ), 'segment' => array( 'width' => 250, 'height' => 156, 'x' => 3, 'y' => 3, ), 'levels' => array( 0 => 'map-0.jpg', 1 => 'map-1.jpg', 2 => 'map-2.jpg', 3 => 'map-3.jpg', # 4 => 'map-4.jpg', ), 'path' => array( 'maps' => '/home/www/oleg.milantiev.com/map/map/', 'map' => '/home/www/oleg.milantiev.com/map/map/map.jpg', 'cache' => '/home/www/oleg.milantiev.com/map/cache/', ), 'url' => array( 'cache' => '/map/cache/', 'categoryIcons' => '/map/icons/category/', ), 'cache' => false, 'cache' => true, 'format' => 'jpg', 'db' => array( 'host' => 'localhost', 'user' => 'oleg_milantiev', 'pass' => 'nthvbyfnjh', 'db' => 'oleg_milantiev', 'prefix' => 'map_', ), 'objects' => array( 'limit' => 100, 'iconSize' => 40, ), ); $conn = mysql_connect($config['db']['host'], $config['db']['user'], $config['db']['pass']); if (!$conn) { die('mysql error: ' . mysql_error()); } mysql_select_db($config['db']['db'], $conn);
|
Up | |
Left Add |
Right | |
Down |