web/common.php
changeset 0 4eba9c11703f
child 207 621fa6caec0c
equal deleted inserted replaced
-1:000000000000 0:4eba9c11703f
       
     1 <?php
       
     2 
       
     3 /**
       
     4  * If you haven't edited php.ini to add the Zend Framework and the
       
     5  * Zend Framework Incubator to the PHP include_path, then do so here.
       
     6  * Don't use mine!
       
     7  */
       
     8 set_include_path(
       
     9     '/path/to/zf/trunk/library'
       
    10     . PATH_SEPARATOR . '/path/to/zf/incubator/library'
       
    11     . PATH_SEPARATOR . get_include_path()
       
    12 );
       
    13 
       
    14 /**
       
    15  * Make sure Zend_Oauth's Consumer is loaded
       
    16  */
       
    17 require_once 'Zend/Oauth/Consumer.php';
       
    18 
       
    19 /**
       
    20  * Start up the ol' session engine
       
    21  */
       
    22 session_start();
       
    23 
       
    24 /**
       
    25  * Include the configuration data for our OAuth Client (array $configuration)
       
    26  */
       
    27 include_once './config.php';
       
    28 
       
    29 /**
       
    30  * Setup an instance of the Consumer for use
       
    31  */
       
    32 $consumer = new Zend_Oauth_Consumer($configuration);