Changeset 7325 for sandbox


Ignore:
Timestamp:
09/28/12 11:29:58 (11 years ago)
Author:
alexandrecorreia
Message:

Ticket #3093 - Dentro do arquivo REST.ini, será criada a conf para este serviço.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.4.3-expresso-rest/rest/setup/default_records.inc.php

    r6528 r7325  
    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.