Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7b0b9c9337
Fetching contributors…

Cannot retrieve contributors at this time

64 lines (55 sloc) 3.031 kb
<?php
/* @var Composer\Autoload\ClassLoader $loader */
if (!$loader = include __DIR__.'/../vendor/autoload.php') {
$nl = PHP_SAPI === 'cli' ? PHP_EOL : '<br />';
echo "$nl$nl";
if (is_writable(dirname(__DIR__)) && $installer = @file_get_contents('http://getcomposer.org/installer')) {
echo 'You must set up the project dependencies.'.$nl;
$installerPath = dirname(__DIR__).'/install-composer.php';
file_put_contents($installerPath, $installer);
echo 'The composer installer has been downloaded in '.$installerPath.$nl;
die('Run the following commands in '.dirname(__DIR__).':'.$nl.$nl.
'php install-composer.php'.$nl.
'php composer.phar install'.$nl);
}
die('You must set up the project dependencies.'.$nl.
'Run the following commands in '.dirname(__DIR__).':'.$nl.$nl.
'curl -s http://getcomposer.org/installer | php'.$nl.
'php composer.phar install'.$nl);
}
use Doctrine\Common\Annotations\AnnotationRegistry;
// intl
if (!function_exists('intl_get_error_code')) {
require_once __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php';
$loader->add('', __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs');
}
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
// Swiftmailer needs a special autoloader to allow
// the lazy loading of the init file (which is expensive)
//require_once __DIR__.'/../vendor/swiftmailer/swiftmailer/lib/classes/Swift.php';
//Swift::registerAutoload(__DIR__.'/../vendor/swiftmailer/swiftmailer/lib/swift_init.php');
require_once __DIR__.'/../vendor/hard/Smarty/Smarty.class.php';
require_once __DIR__.'/../src/legacy/i18n/ZGettextFunctions.php';
$loader->add('Zikula_', __DIR__.'/../src/legacy');
$loader->add('Zikula', __DIR__.'/../src');
$loader->add('Zend_', __DIR__. '/../vendor/hard');
$loader->add('AdminModule', __DIR__. '/../web/system');
$loader->add('BlocksModule', __DIR__. '/../web/system');
$loader->add('CategoriesModule', __DIR__. '/../web/system');
$loader->add('ErrorsModule', __DIR__. '/../web/system');
$loader->add('ExtensionsModule', __DIR__. '/../web/system');
$loader->add('GroupsModule', __DIR__. '/../web/system');
$loader->add('MailerModule', __DIR__. '/../web/system');
$loader->add('PageLockModule', __DIR__. '/../web/system');
$loader->add('PermissionsModule', __DIR__. '/../web/system');
$loader->add('SearchModule', __DIR__. '/../web/system');
$loader->add('SecurityCenterModule', __DIR__. '/../web/system');
$loader->add('SettingsModule', __DIR__. '/../web/system');
$loader->add('ThemeModule', __DIR__. '/../web/system');
$loader->add('UsersModule', __DIR__. '/../web/system');
$loader->add('Andreas08Theme', __DIR__. '/../web/themes');
require_once __DIR__.'/../src/Zikula/Bundle/CoreBundle/Resources/stubs/ZikulaAutoload.php';
ZikulaAutoload::initialize($loader);
if (file_exists(__DIR__.'bootstrap.php.cache')) {
include __DIR__.'bootstrap.php.cache';
}
Jump to Line
Something went wrong with that request. Please try again.