Skip to content

Commit

Permalink
Moved to new repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
nevdelap committed Jul 22, 2011
0 parents commit e11cd4e
Show file tree
Hide file tree
Showing 1,533 changed files with 149,321 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .hgeol
@@ -0,0 +1,11 @@
[patterns]
**.js = native
**.css = native
**.php = native
**.txt = native

[repository]
native = LF

[eol]
only-consistent = False
16 changes: 16 additions & 0 deletions .hgignore
@@ -0,0 +1,16 @@
app/assets
developer/api/html
error_log
protected/data
protected/runtime
redbean
yii
syntax: glob
app/protected/tests/unit/timeit.dat
app/protected/tests/unit/results.txt
glob:testresults/functional/
app/protected/tests/unit/update
glob:demodata.sql
.buildpath
.project
.settings/org.eclipse.php.core.prefs
1 change: 1 addition & 0 deletions .hgtags
@@ -0,0 +1 @@
cfd267742e7bbf84edfac150411266198df440b2 unstable
674 changes: 674 additions & 0 deletions License.txt

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions app/index.php
@@ -0,0 +1,48 @@
<?php
/*********************************************************************************
* Zurmo is a customer relationship management program developed by
* Zurmo, Inc. Copyright (C) 2011 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.
$debug = INSTANCE_ROOT . '/protected/config/debug.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);
$webApplication->setRuntimePath($runtimePath);
$webApplication->run();
exit;
?>
1 change: 1 addition & 0 deletions app/protected/.htaccess
@@ -0,0 +1 @@
deny from all
261 changes: 261 additions & 0 deletions app/protected/config/common.php
@@ -0,0 +1,261 @@
<?php
/*********************************************************************************
* Zurmo is a customer relationship management program developed by
* Zurmo, Inc. Copyright (C) 2011 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.
********************************************************************************/

$common_config = array(
'basePath' => COMMON_ROOT . DIRECTORY_SEPARATOR . 'protected',
'name' => 'ZurmoCRM',
'defaultController' => 'home/default',
'sourceLanguage' => 'en',

'behaviors' => array(
'onBeginRequest' => array(
'class' => 'application.modules.zurmo.components.BeginRequestBehavior'
),
'onEndRequest' => array(
'class' => 'application.modules.zurmo.components.EndRequestBehavior'
)
),

'components' => array(
'assetManager' => array(
'basePath' => INSTANCE_ROOT . DIRECTORY_SEPARATOR . 'assets/',
),
'browser' => array(
'class' => 'application.extensions.zurmoinc.framework.components.Browser',
),
'clientScript' => array(
'class' => 'ClientScript',
),
'cache' => array(
'class' => 'CMemCache',
'servers' => $memcacheServers,
),
'currencyHelper' => array(
'class' => 'application.modules.zurmo.components.ZurmoCurrencyHelper',
'baseCode' => 'USD',
),
'db' => array(
'emulatePrepare' => true,
'charset' => 'utf8',
),
'errorHandler' => array(
'errorAction' => 'zurmo/default/error',
),
'format' => array(
'class' => 'application.extensions.zurmoinc.framework.components.Formatter',
),
'fusioncharts' => array(
'class' => 'application.extensions.fusioncharts.fusionCharts',
),
'languageHelper' => array(
'class' => 'application.modules.zurmo.components.ZurmoLanguageHelper',
),
'log' => array(
'class' => 'CLogRouter',
'routes' => array(
array(
'class' => 'CFileLogRoute',
'levels' => 'error, warning',
),
),
),
'pagination' => array(
'class' => 'application.modules.zurmo.components.ZurmoPaginationHelper',
'listPageSize' => 10,
'subListPageSize' => 5,
'modalListPageSize' => 5,
'massEditProgressPageSize' => 5,
'autoCompleteListPageSize' => 5,
),
'performance' => array(
'class' => 'application.extensions.zurmoinc.framework.components.PerformanceMeasurement',
),
'sanitizer' => array(
'class' => 'application.extensions.esanitizer.ESanitizer',
'sanitizeGet' => false, //off for now
'sanitizePost' => false, //off for now
'sanitizeCookie' => false, //off for now
),
'themeManager' => array(
'basePath' => INSTANCE_ROOT . DIRECTORY_SEPARATOR . 'themes',
),
'timeZoneHelper' => array(
'class' => 'application.modules.zurmo.components.ZurmoTimeZoneHelper',
'timeZone' => 'America/Chicago',
),
'request' => array(
'enableCsrfValidation' => true,
'enableCookieValidation' => false, //keep off until we can fix it on linux/windows servers.
),
'user' => array(
'allowAutoLogin' => true,
'class' => 'WebUser',
'loginUrl' => array('zurmo/default/login'),
),
'widgetFactory' => array(
'widgets' => array(
'EJuiDateTimePicker' => array(
'cssFile' => false,
),
'JuiDatePicker' => array(
'cssFile' => false,
),
'CJuiDialog' => array(
'cssFile' => false,
),
'CJuiProgressBar' => array(
'cssFile' => false,
),
'CJuiAutoComplete' => array(
'cssFile' => false,
),
'JuiSortable' => array(
'cssFile' => false,
),
),
),
),

'import' => array(
'application.extensions.zurmoinc.framework.adapters.*',
'application.extensions.zurmoinc.framework.adapters.columns.*',
'application.extensions.zurmoinc.framework.adapters.dataproviders.*',
'application.extensions.zurmoinc.framework.configuration.*',
'application.extensions.zurmoinc.framework.components.*',
'application.extensions.zurmoinc.framework.controllers.*',
'application.extensions.zurmoinc.framework.dataproviders.*',
'application.extensions.zurmoinc.framework.elements.*',
'application.extensions.zurmoinc.framework.elements.actions.*',
'application.extensions.zurmoinc.framework.elements.derived.*',
'application.extensions.zurmoinc.framework.exceptions.*',
'application.extensions.zurmoinc.framework.forms.*',
'application.extensions.zurmoinc.framework.interfaces.*',
'application.extensions.zurmoinc.framework.models.*',
'application.extensions.zurmoinc.framework.models.validators.*',
'application.extensions.zurmoinc.framework.modules.*',
'application.extensions.zurmoinc.framework.portlets.*',
'application.extensions.zurmoinc.framework.portlets.rules.*',
'application.extensions.zurmoinc.framework.utils.*',
'application.extensions.zurmoinc.framework.views.*',
'application.extensions.zurmoinc.framework.widgets.*',
),

'modules' => array(
'accounts',
'activities',
'configuration',
'contacts',
'designer',
'home',
'import',
'install',
'leads',
'meetings',
'notes',
'opportunities',
'rssReader',
'tasks',
'zurmo' => array(
'modules' => array(
'groups' => array('class' => 'zurmo.modules.GroupsModule'),
'roles' => array('class' => 'zurmo.modules.RolesModule'),
),
),
'users',
'worldClock',
),

'params' => array(
'redBeanVersion' => '1.3',
'yiiVersion' => '1.1.7',
'supportedLanguages' => array(
'en' => 'English',
'es' => 'Spanish',
'it' => 'Italian',
'fr' => 'French',
'de' => 'German',
),
),
'preload' => array(
'browser',
'sanitizer'
),
);

// THIS IS LIKELY TO BE A PERFORMANCE ISSUE, SEARCHING SO MANY DIRECTORIES. TO BE INVESTIGATED.
// Add aliases here that are likely to be useful in any module.
foreach ($common_config['modules'] as $index => $moduleName)
{
//This is to handle nested modules in the config above.
if (is_array($moduleName))
{
$moduleName = $index;
}
$common_config['import'][] = "application.modules.$moduleName.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.adapters.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.adapters.columns.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.dataproviders.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.elements.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.elements.actions.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.elements.actions.security.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.elements.derived.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.components.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.controllers.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.controllers.filters.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.exceptions.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.forms.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.forms.attributes.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.interfaces.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.models.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.modules.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.rules.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.rules.policies.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.tests.unit.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.tests.unit.files.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.tests.unit.models.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.tests.unit.walkthrough.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.utils.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.utils.charts.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.views.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.views.attributetypes.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.views.charts.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.views.related.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.$moduleName.widgets.*"; // Not Coding Standard
}

// Add aliases here that are likely to only be specific to a particular module.

$common_config['import'][] = "application.modules.designer.rules.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.designer.rules.elements.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.designer.elements.layoutsettings.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.designer.forms.attributes.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.install.serviceHelpers.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.zurmo.elements.security.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.zurmo.utils.security.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.zurmo.views.currency.*"; // Not Coding Standard
$common_config['import'][] = "application.modules.zurmo.views.security.*"; // Not Coding Standard
return $common_config;
?>

0 comments on commit e11cd4e

Please sign in to comment.