add a json export script
[lifetype/.git] / summary.php
1 <?php
2
3     if (!defined( "PLOG_CLASS_PATH" )) {
4         define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
5     }
6
7     include_once( PLOG_CLASS_PATH."class/bootstrap.php" );     
8     lt_include( PLOG_CLASS_PATH."class/summary/controller/summarycontroller.class.php" );
9     lt_include( PLOG_CLASS_PATH."class/net/http/httpvars.class.php" );
10     lt_include( PLOG_CLASS_PATH."class/misc/version.class.php" );
11     lt_include( PLOG_CLASS_PATH."class/data/validator/usernamevalidator.class.php" );
12         lt_include( PLOG_CLASS_PATH."class/net/http/subdomains.class.php" );
13         lt_include( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" );        
14         lt_include( PLOG_CLASS_PATH."class/dao/userinfo.class.php" );   
15
16         define( "SUMMARY_DEFAULT_BLOGS_PER_PAGE", 25 );
17         
18     //
19     // a security check, or else people might forget to remove the wizard.php script
20     //
21     if( is_readable( "wizard.php")) {
22         lt_include( PLOG_CLASS_PATH."install/installation.class.php" );
23         Installation::check();
24     }
25     
26         // check if the url is coming for a subdomain because if it is... we should
27         // redirect to index.php because it is not coming to us!
28         $config =& Config::getConfig();
29         if( $config->getValue( "subdomains_enabled") && Subdomains::isSubdomainUrl()) {
30         $indexPage = $config->getValue( "script_name", "index.php" );
31                 lt_include( PLOG_CLASS_PATH.$indexPage );
32                 die();
33         }
34         
35         // initialiaze the session
36         SessionManager::init();         
37         
38     //// main part ////
39     $controller = new SummaryController();
40     $controller->process( HttpVars::getRequest());
41 ?>