Mercurial > hg > extraction-interface
view config/config.php @ 97:c1bb174a22f3 extractapp
Topic synchronization with LGServices. Adaption for moving table from Gazetteer to LGService.
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 16 Feb 2016 15:07:43 +0100 |
parents | ce7e933b18b0 |
children | 6ba742b712b0 |
line wrap: on
line source
<?php $conf = new Config(); $conf->Configuration(); class Config { public function Configuration() { /** * Configuration for the system. * If it runs with LGService, set $AT_LOCAL to be true; * otherwise (runs on localhost), set it to be false. */ global $AT_LOCAL, $mysql_database, $mysql_server, $mysql_user, $mysql_password, $server_host, $lgserver_url, $systemNAME, $system_root_url; $AT_LOCAL = true; if (!$AT_LOCAL) { // host at localgazetteers-dev server //$mysql_database = "Gazetteer"; // move the functional tables from Gazetteer database to LGServices database $mysql_database = "LGServices"; $mysql_server = "localhost"; $mysql_user = "root"; $mysql_password = "admin"; $server_host = "http://localgazetteers.mpiwg-berlin.mpg.de/"; $lgserver_url = $server_host."LGServices/"; } else { // localhost //$mysql_database = "Gazetteer"; // move the functional tables from Gazetteer database to LGServices database $mysql_database = "LGServices"; $mysql_server = "localhost"; $mysql_user = "root"; $mysql_password = "root"; $server_host = "http://localhost:1080/localgazetteers-dev/"; $lgserver_url = "http://localhost:8080/LGServices/"; } $systemNAME = "interface"; $system_root_url = $server_host."extraction-interface"; } } ?>