Changeset 2166
- Timestamp:
- 11/25/10 21:09:57 (18 months ago)
- Location:
- trunk
- Files:
-
- 4 modified
-
base/scripts/upgrade-v0.15.sql (modified) (1 diff)
-
hosting/conf/param.php.dist (modified) (1 diff)
-
site/cache.php (modified) (1 diff)
-
site/gshhstiles.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/scripts/upgrade-v0.15.sql
r2119 r2166 28 28 #On mets à standard tous les _boats_ admins 29 29 UPDATE users SET class = 'standard' WHERE class = 'admin'; 30 31 #Meilleure indexation de races 32 ALTER TABLE `races` ADD INDEX filter (started, deptime, closetime); -
trunk/hosting/conf/param.php.dist
r1766 r2166 42 42 //define("MAIL_PREFIX", "VLM_".SERVER_NAME); 43 43 44 44 //TILES PREFS - DEFINE ONLY IF YOUR VLM INSTANCE HAS NOT PROPER TILES_G BINARY 45 //define("TILES_SOURCE_SERVER", "http://testing.virtual-loup-de-mer.org"); 45 46 46 47 ?> -
trunk/site/cache.php
r2130 r2166 2 2 function headeranddie($h) { 3 3 header("Cache-Control: no-cache"); // no cache for dummy answer 4 //header("Status: 302 Moved Temporarily", false, 302);4 header("Status: 302 Moved Temporarily", false, 302); 5 5 header("Location: $h"); 6 6 exit(); -
trunk/site/gshhstiles.php
r2129 r2166 7 7 $force = get_cgi_var('force', 'no'); 8 8 9 if ( $tilez < 0 && $tilez > 20 ) die(" bad z index");9 if ( $tilez < 0 && $tilez > 20 ) die("Bad z index"); 10 10 $sizetile = pow(2, $tilez); 11 11 $tilex = $tilex % $sizetile; … … 20 20 if ( ( ! file_exists($original) ) || ($force == 'yes') ) { 21 21 if (!is_dir($originaldir)) mkdir($originaldir, 0777, True); 22 $execcmd = sprintf("%s %d %d %d %s %s", TILES_G_PATH, pow(2, $tilez), $tilex, $tiley, GSHHS_CLIPPED_FILENAME, $original); 23 shell_exec($execcmd); 22 if (defined("TILES_SOURCE_SERVER")) { 23 copy(sprintf("%s/%s", TILES_SOURCE_SERVER, $original), $original); 24 } else { 25 $execcmd = sprintf("%s %d %d %d %s %s", TILES_G_PATH, pow(2, $tilez), $tilex, $tiley, GSHHS_CLIPPED_FILENAME, $original); 26 shell_exec($execcmd); 27 } 24 28 } 25 29 header("Content-Type: image/png");
