Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 8ab78563d1
Fetching contributors…

Cannot retrieve contributors at this time

59 lines (55 sloc) 2.607 kb
<?php
/*********************************************************************************
* Zurmo is a customer relationship management program developed by
* Zurmo, Inc. Copyright (C) 2012 Zurmo Inc.
*
* Zurmo is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY ZURMO, ZURMO DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* Zurmo is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact Zurmo, Inc. with a mailing address at 113 McHenry Road Suite 207,
* Buffalo Grove, IL 60089, USA. or at email address contact@zurmo.com.
********************************************************************************/
require_once('version.php');
require_once('roots.php');
// Debug is used per instance.
if (is_file(INSTANCE_ROOT . '/protected/config/debug.php'))
{
$debug = INSTANCE_ROOT . '/protected/config/debug.php';
}
else
{
$debug = INSTANCE_ROOT . '/protected/config/debugDIST.php';
}
// Runtime path is used per instance.
$runtimePath = INSTANCE_ROOT . '/protected/runtime';
// The config is used per instance.
$config = INSTANCE_ROOT . '/protected/config/main.php';
// Yii is used from the common source.
$yii = COMMON_ROOT . '/../yii/framework/yii.php';
// WebApplication is used from the common source.
$webApplication = COMMON_ROOT . '/protected/extensions/zurmoinc/framework/components/WebApplication.php';
require_once($debug);
require_once($yii);
require_once($webApplication);
$webApplication = Yii::createApplication('WebApplication', $config);
if (file_exists($runtimePath))
{
$webApplication->setRuntimePath($runtimePath);
}
$webApplication->run();
exit;
?>
Jump to Line
Something went wrong with that request. Please try again.