Imported fixed OGS asset server

Fiddled with terrain data
ogs-cs@151
gareth 2007-03-01 02:26:44 +00:00
parent 20652ddef8
commit daf909409a
2 changed files with 6 additions and 5 deletions

View File

@ -4,13 +4,13 @@
// The asset server's relative URL to the root of the webserver // The asset server's relative URL to the root of the webserver
// If you place this at http://servername/assets then this would be set to /assets/index.php // If you place this at http://servername/assets then this would be set to /assets/index.php
// wikipedia style URLs need to be implemented - and will be (en.wikipedia.org/wiki/blabla rather than en.wikipedia.org/wiki/index.php?something=bla or en.wikipedia.org/wiki.php/bla) // wikipedia style URLs need to be implemented - and will be (en.wikipedia.org/wiki/blabla rather than en.wikipedia.org/wiki/index.php?something=bla or en.wikipedia.org/wiki.php/bla)
$asset_home = "/ogs/assetserver/index.php/"; $asset_home = "/ogs/assetserver/";
// The key we expect from sims // The key we expect from sims
$sim_recvkey = "rtrgrgrgrgr894898f998re98rf989fds"; $sim_recvkey = "1234";
// The path where the asset repository is stored, this should be readable by the webserver but NOT in the document root // The path where the asset repository is stored, this should be readable by the webserver but NOT in the document root
// The default below is BAD for production use and intended to be simply generic - change it or risk copyright theft // The default below is BAD for production use and intended to be simply generic - change it or risk copyright theft
// greater than you could ever imagine, alternatively use .htaccess or other mechanisms. // greater than you could ever imagine, alternatively use .htaccess or other mechanisms.
$asset_repos = "/var/www/htdocs/ogs/assetserver/assets"; $asset_repos = "/usr/local/sites/osgrid.org/web/ogs/assetserver/assets";
?> ?>

View File

@ -5,6 +5,7 @@ include("assetserver_config.inc.php");
// Parse out the parameters from the URL // Parse out the parameters from the URL
$params = str_replace($asset_home,'', $_SERVER['REQUEST_URI']); $params = str_replace($asset_home,'', $_SERVER['REQUEST_URI']);
$params = str_replace("index.php/","",$params);
$params = split('/',$params); $params = split('/',$params);
// Die if the key doesn't match // Die if the key doesn't match