Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
763 B

  1. <?php
  2. /**
  3. * @file index.php
  4. * Friendica
  5. */
  6. use Friendica\App;
  7. use Friendica\Core\Config;
  8. use Friendica\Factory;
  9. use Friendica\Util\BasePath;
  10. if (!file_exists(__DIR__ . '/vendor/autoload.php')) {
  11. die('Vendor path not found. Please execute "bin/composer.phar --no-dev install" on the command line in the web root.');
  12. }
  13. require __DIR__ . '/vendor/autoload.php';
  14. $basedir = BasePath::create(__DIR__, $_SERVER);
  15. $configLoader = new Config\ConfigCacheLoader($basedir);
  16. $config = Factory\ConfigFactory::createCache($configLoader);
  17. $logger = Factory\LoggerFactory::create('index', $config);
  18. // We assume that the index.php is called by a frontend process
  19. // The value is set to "true" by default in App
  20. $a = new App($config, $logger, false);
  21. $a->runFrontend();