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.

23 lines
534B

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