Ignore:
Timestamp:
10/18/12 18:05:27 (11 years ago)
Author:
eduardow
Message:

Ticket #3093 - Integrando API Rest (CELEPAR) - commit para o branches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/rest/setup/default_records.inc.php

    r6754 r7442  
    1515$oProc->query("INSERT INTO rest_client (client_id, client_secret) values (1, '$secret');"); 
    1616$dados = array(); 
    17 $oProc->query("select * from phpgw_config where config_app='phpgwapi'"); 
     17$oProc->query("SELECT * FROM phpgw_config WHERE config_app='phpgwapi'"); 
    1818while ($oProc->next_record()) 
    1919{ 
     
    3838$config['oauth']['client_secret'] = $secret; 
    3939 
     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 
    4048Config::writeIniFile($config , dirname(__FILE__) . '/../../prototype/config/REST.ini', true); 
    41      
    4249 
    4350?> 
Note: See TracChangeset for help on using the changeset viewer.