Reddit/Import.php
[web.Reddit] / index.php
1 <?php
2
3
4 ini_set('display_errors',1);
5
6 ini_set('include_path', 
7     dirname(__FILE__). ':' . 
8     dirname(__FILE__).'/pear:' . 
9     dirname(__FILE__).'/pearfix:' . 
10     ini_get('include_path'));
11
12 define('DB_DATAOBJECT_NO_OVERLOAD', true);
13
14 require_once 'HTML/FlexyFramework.php';
15
16
17 new HTML_FlexyFramework( array(
18     'project'=> 'Reddit',
19 //        'appName' => 'SupportHK',
20 //        'appNameShort' => 'supporthk',
21     'database' => 'mysql://root:@localhost/reddit', // local only
22     
23
24     'version' => '0.1',
25     'Pman' => array(
26         'storedir' => '/home/hydra'
27     ),
28     'locale' => 'en',//this is for the session
29     'DB_DataObject' => array(
30         'class_location' => implode(PATH_SEPARATOR, array(
31                 dirname(__FILE__). '/Pman/Reddit/DataObjects',
32                 //dirname(__FILE__). '/Pman/Core/DataObjects',
33                 //dirname(__FILE__). '/Pman/Cms/DataObjects',
34                 //dirname(__FILE__). '/Pman/Crm/DataObjects',
35         )),
36         'class_prefix' => 'Pman_Reddit_DataObjects_'
37         
38     ),
39     'siteBaseURL' => 'http://'.$_SERVER['HTTP_HOST'].'/'.basename(__FILE__),         
40       
41     //?? used where - CMS?
42     /*'SiteName' => array(
43         'fullName' => 'Campaign',
44         'shortName' => 'campaign',
45     ),
46      */
47     'Pman_Cms' => array(
48         'view_name' => 'Desktop', 
49     ),
50     
51     'Pman_Crm' => array(
52         'server_baseurl' => 'http://'.$_SERVER['HTTP_HOST'].'/'.basename(__FILE__),
53     ),
54     
55 //        'Mail' => array(
56 //            'host' => '192.168.254.2',
57 //        ),
58 //      
59 //     
60     
61     'HTML_Template_Flexy' => array(
62         'locale' => 'en',   //set a language for template engine
63         //'debug' => 1,
64     //    'DB_DataObject_translator' => 'cms_templatestr',
65 //            'forceCompile' => true,
66         'site_prefix' => 'desktop', // the site prefix for template engine e.g. desktop/master.html
67 //            'templateDir' => dirname(__FILE__) . '/Petition/mobile_templates',
68 //            'url_rewrite' => 'images/:/web.Petition/Petition/mobile_templates/images/',
69     ),
70     'Pman_Images' => array(
71         'sizes' => array(
72             '300','50', '750', '1140', '560', '768', '600', '340', '250'
73         )
74     ),
75     
76 ));
77
78
79