Changeset 32
- Timestamp:
- 07/09/08 14:10:53 (5 months ago)
- Files:
-
- hashbin/trunk (modified) (1 prop)
- hashbin/trunk/apps/main/config/config.php (deleted)
- hashbin/trunk/apps/main/config/factories.yml (modified) (1 diff)
- hashbin/trunk/apps/main/config/filters.yml (modified) (2 diffs)
- hashbin/trunk/apps/main/config/i18n.yml (deleted)
- hashbin/trunk/apps/main/config/logging.yml (deleted)
- hashbin/trunk/apps/main/config/mainConfiguration.class.php (added)
- hashbin/trunk/apps/main/config/settings.yml (modified) (3 diffs)
- hashbin/trunk/apps/main/modules/snippet/actions/actions.class.php (modified) (1 diff)
- hashbin/trunk/apps/main/templates/layout.php (modified) (1 diff)
- hashbin/trunk/config/ProjectConfiguration.class.php (added)
- hashbin/trunk/config/propel.ini (modified) (2 diffs)
- hashbin/trunk/config/schema.yml (deleted)
- hashbin/trunk/lib/vendor (modified) (1 prop)
- hashbin/trunk/symfony (modified) (2 diffs)
- hashbin/trunk/test/bootstrap/functional.php (modified) (2 diffs)
- hashbin/trunk/test/bootstrap/unit.php (modified) (1 diff)
- hashbin/trunk/web/index.php (modified) (2 diffs)
- hashbin/trunk/web/sf (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
hashbin/trunk
- Property svn:ignore set to
ipcheck.php
- Property svn:ignore set to
hashbin/trunk/apps/main/config/factories.yml
r2 r32 1 prod: 2 logger: 3 class: sfNoLogger 4 param: 5 level: err 6 loggers: ~ 1 7 cli: 2 8 controller: hashbin/trunk/apps/main/config/filters.yml
r2 r32 1 1 rendering: ~ 2 web_debug: ~3 2 security: ~ 4 3 … … 8 7 cache: ~ 9 8 common: ~ 10 flash: ~11 9 execution: ~ hashbin/trunk/apps/main/config/settings.yml
r2 r32 1 1 prod: 2 2 .settings: 3 logging_enabled: off 3 4 no_script_name: on 4 5 … … 6 7 .settings: 7 8 # E_ALL | E_STRICT = 4095 8 error_reporting: 40959 error_reporting: <?php echo (E_ALL | E_STRICT)."\n" ?> 9 10 web_debug: on 10 11 cache: on … … 15 16 .settings: 16 17 # E_ALL | E_STRICT & ~E_NOTICE = 2047 17 error_reporting: 204718 error_reporting: <?php echo ((E_ALL | E_STRICT) ^ E_NOTICE)."\n" ?> 18 19 cache: off 19 20 web_debug: off hashbin/trunk/apps/main/modules/snippet/actions/actions.class.php
r25 r32 29 29 if ( strlen($code) < 10 ) 30 30 { 31 $this-> setFlash('error', 'Your paste is too short');31 $this->getUser()->setFlash('error', 'Your paste is too short'); 32 32 $this->redirect('@homepage'); 33 33 } hashbin/trunk/apps/main/templates/layout.php
r2 r32 19 19 <div id="contentTop"><div class="corner left" style="background: url(/images/ctopleft.gif)"></div><div class="corner right" style="background: url(/images/ctopright.gif)"></div><div class="floatfix"></div></div> 20 20 <div id="contentMargin"> 21 <?php echo $sf_ data->getRaw('sf_content')?>21 <?php echo $sf_content ?> 22 22 23 23 <div style="margin: 10px 80px; padding: 16px; text-align: center; background-color:#fff; border: 3px double #aaa;"> hashbin/trunk/config/propel.ini
r2 r32 26 26 27 27 ; builder settings 28 propel.builder.peer.class = addon.propel.builder.SfPeerBuilder29 propel.builder.object.class = addon.propel.builder.SfObjectBuilder28 propel.builder.peer.class = plugins.sfPropelPlugin.lib.propel.builder.SfPeerBuilder 29 propel.builder.object.class = plugins.sfPropelPlugin.lib.propel.builder.SfObjectBuilder 30 30 31 propel.builder.objectstub.class = addon.propel.builder.SfExtensionObjectBuilder32 propel.builder.peerstub.class = addon.propel.builder.SfExtensionPeerBuilder33 propel.builder.objectmultiextend.class = addon.propel.builder.SfMultiExtendObjectBuilder34 propel.builder.mapbuilder.class = addon.propel.builder.SfMapBuilderBuilder31 propel.builder.objectstub.class = plugins.sfPropelPlugin.lib.propel.builder.SfExtensionObjectBuilder 32 propel.builder.peerstub.class = plugins.sfPropelPlugin.lib.propel.builder.SfExtensionPeerBuilder 33 propel.builder.objectmultiextend.class = plugins.sfPropelPlugin.lib.propel.builder.SfMultiExtendObjectBuilder 34 propel.builder.mapbuilder.class = plugins.sfPropelPlugin.lib.propel.builder.SfMapBuilderBuilder 35 35 propel.builder.interface.class = propel.engine.builder.om.php5.PHP5InterfaceBuilder 36 36 propel.builder.node.class = propel.engine.builder.om.php5.PHP5NodeBuilder … … 43 43 44 44 propel.builder.AddBehaviors = false 45 46 propel.defaultTimeStampFormat = Y-m-d H:i:s 47 propel.defaultTimeFormat = H:i:s 48 propel.defaultDateFormat = Y-m-d hashbin/trunk/lib/vendor
- Property svn:externals changed from
doctrine http://svn.phpdoctrine.org/branches/0.10/lib
to
doctrine http://svn.phpdoctrine.org/branches/0.10/lib
symfony http://svn.symfony-project.com/branches/1.1
- Property svn:externals changed from
hashbin/trunk/symfony
r2 r32 4 4 /* 5 5 * This file is part of the symfony package. 6 * (c) 2004-2006Fabien Potencier <fabien.potencier@symfony-project.com>6 * (c) Fabien Potencier <fabien.potencier@symfony-project.com> 7 7 * 8 8 * For the full copyright and license information, please view the LICENSE … … 11 11 12 12 chdir(dirname(__FILE__)); 13 include('config/config.php'); 14 include($sf_symfony_data_dir.'/bin/symfony.php'); 13 require_once(dirname(__FILE__).'/config/ProjectConfiguration.class.php'); 14 $configuration = new ProjectConfiguration(); 15 include($configuration->getSymfonyLibDir().'/command/cli.php'); hashbin/trunk/test/bootstrap/functional.php
r2 r32 4 4 * This file is part of the symfony package. 5 5 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> 6 * 6 * 7 7 * For the full copyright and license information, please view the LICENSE 8 8 * file that was distributed with this source code. … … 14 14 $traces = debug_backtrace(); 15 15 $caller = $traces[0]; 16 $app = array_pop(explode(DIRECTORY_SEPARATOR, dirname($caller['file']))); 16 17 $dirPieces = explode(DIRECTORY_SEPARATOR, dirname($caller['file'])); 18 $app = array_pop($dirPieces); 17 19 } 18 20 19 // define symfony constant 20 define('SF_ROOT_DIR', realpath(dirname(__FILE__).'/../..')); 21 define('SF_APP', $app); 22 define('SF_ENVIRONMENT', 'test'); 23 define('SF_DEBUG', true); 24 25 // initialize symfony 26 require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php'); 21 require_once dirname(__FILE__).'/../../config/ProjectConfiguration.class.php'; 22 $configuration = ProjectConfiguration::getApplicationConfiguration($app, 'test', isset($debug) ? $debug : true); 23 sfContext::createInstance($configuration); 27 24 28 25 // remove all cache 29 sfToolkit::clearDirectory(sfConfig::get('sf_ cache_dir'));26 sfToolkit::clearDirectory(sfConfig::get('sf_app_cache_dir')); hashbin/trunk/test/bootstrap/unit.php
r2 r32 10 10 11 11 $_test_dir = realpath(dirname(__FILE__).'/..'); 12 define('SF_ROOT_DIR', realpath($_test_dir.'/..'));13 12 14 // symfony directories 15 include(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php'); 16 17 require_once($sf_symfony_lib_dir.'/vendor/lime/lime.php'); 13 require_once(dirname(__FILE__).'/../../config/ProjectConfiguration.class.php'); 14 $configuration = new ProjectConfiguration(realpath($_test_dir.'/..')); 15 include($configuration->getSymfonyLibDir().'/vendor/lime/lime.php'); hashbin/trunk/web/index.php
r26 r32 1 1 <?php 2 $authorized_ips = array('127.0.0.1', '172.16.0.1', '62.240.242.149');3 4 define('SF_ROOT_DIR', realpath(dirname(__FILE__).'/..'));5 define('SF_APP', 'main');6 7 2 $host = explode('.', $_SERVER['HTTP_HOST']); 8 3 … … 10 5 define('SF_DOMAIN', implode('.', $host)); 11 6 12 if (substr($subdomain, -4) == '-dev' && in_array($_SERVER['REMOTE_ADDR'], $authorized_ips))7 if (substr($subdomain, -4) == '-dev' && file_exists($_ipcheckFileName = dirname(__FILE__).'/../ipcheck.php') && is_readable($_ipcheckFileName) && include($_ipcheckFileName)) 13 8 { 14 define('SF_ENVIRONMENT', 'dev');15 define('SF_DEBUG', true);9 $env = 'dev'; 10 $debug = true; 16 11 define('SF_SUBDOMAIN', substr($subdomain, 0, -4)); 17 12 } 18 13 else 19 14 { 20 define('SF_ENVIRONMENT', 'prod');21 define('SF_DEBUG', false);15 $env = 'prod'; 16 $debug = false; 22 17 define('SF_SUBDOMAIN', $subdomain); 23 18 } 24 19 25 unset($host); 26 unset($subdomain); 20 unset($host, $subdomain); 27 21 28 require_once( SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');22 require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php'); 29 23 30 sfContext::getInstance()->getController()->dispatch(); 24 $configuration = ProjectConfiguration::getApplicationConfiguration('main', $env, $debug); 25 sfContext::createInstance($configuration)->dispatch(); 26 hashbin/trunk/web/sf
r2 r32 1 link /usr/share/pear/data/symfony/web/sf1 link ../lib/vendor/symfony/data/web/sf/
