Mercurial > hg > extraction-interface
comparison config/config.php @ 77:97c1e5102a22 extractapp
New: export table for a file from LGService
| author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
|---|---|
| date | Thu, 16 Apr 2015 14:53:22 +0200 |
| parents | 6676ca451dcc |
| children | 960ba96efce1 |
comparison
equal
deleted
inserted
replaced
| 76:c49192885290 | 77:97c1e5102a22 |
|---|---|
| 1 <?php | 1 <?php |
| 2 $conf = new Config(); | |
| 3 $conf->Configuration(); | |
| 2 | 4 |
| 3 $AT_LOCAL = false; | 5 class Config { |
| 4 | 6 |
| 5 if (!$AT_LOCAL) { | 7 public function Configuration() { |
| 6 // host at localgazetteers-dev server | 8 /** |
| 7 $mysql_database = "Gazetteer"; | 9 * Configuration for the system. |
| 8 $mysql_server = "localhost"; | 10 * If it runs with LGService, set $AT_LOCAL to be true; |
| 9 $mysql_user = "root"; | 11 * otherwise (runs on localhost), set it to be false. |
| 10 $mysql_password = "admin"; | 12 */ |
| 11 $server_host = "http://localgazetteers-dev/"; | |
| 12 $lgserver_url = $server_host."LGServices/"; | |
| 13 | 13 |
| 14 } else { | 14 global $AT_LOCAL, $mysql_database, $mysql_server, $mysql_user, $mysql_password, $server_host, $lgserver_url, |
| 15 // localhost | 15 $systemNAME, $system_root_url; |
| 16 $mysql_database = "Gazetteers"; | 16 |
| 17 $mysql_server = "localhost"; | 17 $AT_LOCAL = false; |
| 18 $mysql_user = "root"; | 18 |
| 19 $mysql_password = "root"; | 19 if (!$AT_LOCAL) { |
| 20 $server_host = "http://localhost:1080/localgazetteers-dev/"; | 20 // host at localgazetteers-dev server |
| 21 $lgserver_url = "http://localgazetteers-dev/LGServices/"; | 21 $mysql_database = "Gazetteer"; |
| 22 $mysql_server = "localhost"; | |
| 23 $mysql_user = "root"; | |
| 24 $mysql_password = "admin"; | |
| 25 $server_host = "http://localgazetteers-dev/"; | |
| 26 $lgserver_url = $server_host."LGServices/"; | |
| 27 | |
| 28 } else { | |
| 29 // localhost | |
| 30 $mysql_database = "Gazetteers"; | |
| 31 $mysql_server = "localhost"; | |
| 32 $mysql_user = "root"; | |
| 33 $mysql_password = "root"; | |
| 34 $server_host = "http://localhost:1080/localgazetteers-dev/"; | |
| 35 $lgserver_url = "http://localgazetteers-dev/LGServices/"; | |
| 36 } | |
| 37 | |
| 38 $systemNAME = "interface"; | |
| 39 $system_root_url = $server_host."extraction-interface"; | |
| 40 | |
| 41 } | |
| 42 | |
| 22 } | 43 } |
| 23 | |
| 24 $systemNAME = "interface"; | |
| 25 $system_root_url = $server_host."extraction-interface"; | |
| 26 | |
| 27 ?> | 44 ?> |
