equal
deleted
inserted
replaced
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 '../lib' |
|
10 . PATH_SEPARATOR . get_include_path() |
|
11 ); |
|
12 |
|
13 /** |
|
14 * Make sure Zend_Oauth's Consumer is loaded |
|
15 */ |
|
16 require_once '../lib/Zend/Oauth/Consumer.php'; |
|
17 |
|
18 /** |
|
19 * Start up the ol' session engine |
|
20 */ |
|
21 session_start(); |
|
22 |
|
23 /** |
|
24 * Include the configuration data for our OAuth Client (array $configuration) |
|
25 */ |
|
26 include_once './config.php'; |
|
27 |
|
28 /** |
|
29 * Setup an instance of the Consumer for use |
|
30 */ |
|
31 $consumer = new Zend_Oauth_Consumer($configuration); |
|