Login   Register  
PHP Classes
elePHPant
Icontem

File: jApi_server/jApi_config.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Bijaya Kumar Behera  >  jApi RPC  >  jApi_server/jApi_config.php  >  Download  
File: jApi_server/jApi_config.php
Role: Configuration script
Content type: text/plain
Description: config file
Class: jApi RPC
Handle client and server API calls
Author: By
Last change:
Date: 2013-09-20 00:15
Size: 1,241 bytes
 

Contents

Class file image Download
<?php

  define
('jApi_class_path'jApi_root jApi_ds 'jApi_libs' );
  
define('jApi_plugin_dir'jApi_root jApi_ds  );
  
define('jApi_sess_path'jApi_root jApi_ds 'tmp' jApi_ds );
  
define('jApi_account_path'jApi_root  jApi_ds .  'jApi_accounts' );
  
  
//
  
define('jApi_output''json' );
  
define('jApi_content_disposition'false );
  
define('jApi_cookie_name''API_jssseion' );
  
define('jApi_cache'false  );
  
define('jApi_security_salt''jAPI'  );

  
  
// Setup all your clients a/c here
  
$jApi_rules['jApi-12-4858'] = array(
                              
'referer' => 'http://localhost/jApi_client/',
                                         
'cookie_name' => 'jAPI_session',
                                         
'output' =>'json',
                                         
'callback' => 'callback',
                                         
'cache'    => false ,
                                         
'security_salt' => 'jAPI',
                              
'content_disposition' => false,
                              
'auth_ip' => array('192.168.1.6''::1'),
                              
'auth_url' => 'http://localhost/jApi_client/jApi_verify.php'  
                          
);
  
//
  
require_once (jApi_class_path '/'  'jApi_class.php' );