Changeset 7442 for branches/2.4/rest
- Timestamp:
- 10/18/12 18:05:27 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/rest/setup/default_records.inc.php
r6754 r7442 15 15 $oProc->query("INSERT INTO rest_client (client_id, client_secret) values (1, '$secret');"); 16 16 $dados = array(); 17 $oProc->query(" select * from phpgw_config whereconfig_app='phpgwapi'");17 $oProc->query("SELECT * FROM phpgw_config WHERE config_app='phpgwapi'"); 18 18 while ($oProc->next_record()) 19 19 { … … 38 38 $config['oauth']['client_secret'] = $secret; 39 39 40 $serverID = "001"; 41 $config['ServersRest-'.$serverID]['serverID'] = $serverID; 42 $config['ServersRest-'.$serverID]['serverName'] = $_SERVER['HTTP_HOST']; 43 $config['ServersRest-'.$serverID]['serverDescription'] = 'Expresso - ' . $_SERVER['HTTP_HOST']; 44 $config['ServersRest-'.$serverID]['serverUrl'] = 'http://' . $_SERVER['HTTP_HOST'] . $dados['webserver_url']; 45 $config['ServersRest-'.$serverID]['serverContext'] = '/rest/'; 46 $config['ServersRest-'.$serverID]['serverStatus'] = 'true'; 47 40 48 Config::writeIniFile($config , dirname(__FILE__) . '/../../prototype/config/REST.ini', true); 41 42 49 43 50 ?>
Note: See TracChangeset
for help on using the changeset viewer.