]> git.mxchange.org Git - friendica.git/blob - index.php
Fix Attach model store() and storeFile()
[friendica.git] / index.php
1 <?php
2 /**
3  * @file index.php
4  * Friendica
5  */
6
7 use Friendica\App;
8 use Friendica\Util\LoggerFactory;
9
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
14 require __DIR__ . '/vendor/autoload.php';
15
16 $logger = LoggerFactory::create('app');
17
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(__DIR__, $logger, false);
21
22 $a->runFrontend();