Changeset 1265
- Timestamp:
- Aug 22, 2010, 5:10:20 PM (11 years ago)
- Location:
- cpc/trunk/project
- Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/apps/frontend/config/cache.yml
r2 r1265 1 1 default: 2 enabled: off2 enabled: false 3 3 with_layout: false 4 4 lifetime: 86400 -
cpc/trunk/project/apps/frontend/config/factories.yml
r811 r1265 5 5 level: err 6 6 loggers: ~ 7 8 mailer: 9 param: 10 delivery_strategy: realtime 7 11 8 12 cli: … … 25 29 send_http_headers: false 26 30 31 mailer: 32 param: 33 delivery_strategy: none 34 35 dev: 36 mailer: 37 param: 38 delivery_strategy: realtime 39 27 40 all: 28 41 routing: … … 31 44 generate_shortest_url: true 32 45 extra_parameters_as_query_string: true 33 cache: 34 class: sfNoCache 46 cache: null 35 47 48 mailer: 49 class: sfMailer 50 param: 51 logging: %SF_LOGGING_DISABLED% 52 charset: %SF_CHARSET% 53 transport: 54 class: Swift_SmtpTransport 55 param: 56 host: localhost 57 port: 25 58 encryption: ~ 59 username: ~ 60 password: ~ 36 61 #all: 37 62 # controller: … … 86 111 # param: 87 112 # source: XLIFF 88 # debug: off113 # debug: false 89 114 # untranslated_prefix: "[T]" 90 115 # untranslated_suffix: "[/T]" -
cpc/trunk/project/apps/frontend/config/filters.yml
r514 r1265 7 7 8 8 cache: ~ 9 common: ~ 9 common: 10 class: sfCommonFilter 10 11 execution: ~ -
cpc/trunk/project/apps/frontend/config/security.yml
r2 r1265 1 1 default: 2 is_secure: off2 is_secure: false -
cpc/trunk/project/apps/frontend/config/settings.yml
r730 r1265 1 1 prod: 2 2 .settings: 3 no_script_name: on4 logging_enabled: off5 compressed: on6 check_lock: on3 no_script_name: true 4 logging_enabled: false 5 compressed: true 6 check_lock: true 7 7 cache: on 8 8 dev: 9 9 .settings: 10 10 error_reporting: <?php echo (E_ALL | E_STRICT)."\n" ?> 11 web_debug: on12 cache: on13 no_script_name: off14 etag: off11 web_debug: true 12 cache: true 13 no_script_name: false 14 etag: false 15 15 16 16 test: 17 17 .settings: 18 18 error_reporting: <?php echo ((E_ALL | E_STRICT) ^ E_NOTICE)."\n" ?> 19 cache: off20 web_debug: off21 no_script_name: off22 etag: off19 cache: false 20 web_debug: false 21 no_script_name: false 22 etag: false 23 23 24 24 all: … … 33 33 # Cache settings 34 34 cache: on 35 lazy_cache_key: on# Delays creation of a cache key until after checking whether an action or partial is35 lazy_cache_key: true # Delays creation of a cache key until after checking whether an action or partial is 36 36 enabled_modules: [default, xsPChartPlugin, sfDoctrineActAsTaggablePlugin, sfFeed2Plugin] 37 37 #all: … … 51 51 # .settings: 52 52 # # Optional features. Deactivating unused features boots performance a bit. 53 # use_database: on# Enable database manager. Set to off if you don't use a database.54 # i18n: off# Enable interface translation. Set to off if your application should not be translated.55 # check_symfony_version: off# Enable check of symfony version for every request. Set to on to have symfony clear the cache automatically when the framework is upgraded. Set to off if you always clear the cache after an upgrade.56 # compressed: off# Enable PHP response compression. Set to on to compress the outgoing HTML via the PHP handler.57 # check_lock: off# Enable the application lock system triggered by the clear-cache and disable tasks. Set to on to have all requests to disabled applications redirected to the $sf_symfony_lib_dir/exception/data/unavailable.php page.53 # use_database: true # Enable database manager. Set to off if you don't use a database. 54 # i18n: false # Enable interface translation. Set to off if your application should not be translated. 55 # check_symfony_version: false # Enable check of symfony version for every request. Set to on to have symfony clear the cache automatically when the framework is upgraded. Set to off if you always clear the cache after an upgrade. 56 # compressed: false # Enable PHP response compression. Set to on to compress the outgoing HTML via the PHP handler. 57 # check_lock: false # Enable the application lock system triggered by the clear-cache and disable tasks. Set to on to have all requests to disabled applications redirected to the $sf_symfony_lib_dir/exception/data/unavailable.php page. 58 58 # 59 59 # # Routing settings 60 # no_script_name: off# Enable the front controller name in generated URLs60 # no_script_name: false # Enable the front controller name in generated URLs 61 61 # 62 62 # # Validation settings, used for error generation by the Validation helper … … 67 67 # 68 68 # # Cache settings 69 # cache: off# Enable the template cache70 # etag: on# Enable etag handling71 # lazy_cache_key: off# Delays creation of a cache key until after checking whether an action or partial is cacheable (defaults to false for backward compatibility)69 # cache: false # Enable the template cache 70 # etag: true # Enable etag handling 71 # lazy_cache_key: false # Delays creation of a cache key until after checking whether an action or partial is cacheable (defaults to false for backward compatibility) 72 72 # 73 73 # # Logging and debugging settings 74 # web_debug: off# Enable the web debug toolbar74 # web_debug: false # Enable the web debug toolbar 75 75 # error_reporting: <?php echo (E_PARSE | E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR | E_USER_ERROR)."\n" ?> # Determines which events are logged. 76 76 # … … 91 91 # 92 92 # # Miscellaneous 93 # strip_comments: on# Remove comments in core framework classes as defined in the core_compile.yml93 # strip_comments: true # Remove comments in core framework classes as defined in the core_compile.yml 94 94 # max_forwards: 5 95 95 # 96 96 # # Logging 97 # logging_enabled: on97 # logging_enabled: true 98 98 # 99 99 # # i18n -
cpc/trunk/project/apps/frontend/config/view.yml
r828 r1265 14 14 javascripts: [jquery-1.3.2.min.js] 15 15 16 has_layout: on16 has_layout: true 17 17 layout: layout -
cpc/trunk/project/apps/frontend/lib/myUser.class.php
r842 r1265 39 39 public static function SignIn($login, $password, $remember, $action) 40 40 { 41 sfLoader::loadHelpers(array('Url')); 41 sfProjectConfiguration::getActive()->loadHelpers(array('Url')); 42 42 43 $reset_mdp = '<a href="'.url_for('@reset_mdp').'">Mot de passe oublié ?</a>'; 43 44 -
cpc/trunk/project/apps/frontend/modules/amendement/config/cache.yml
r743 r1265 1 1 all: 2 enabled: on2 enabled: true 3 3 lifetime: 86400 4 4 _pagerAmendements: 5 enabled: off5 enabled: false -
cpc/trunk/project/apps/frontend/modules/commentaire/actions/actions.class.php
r1213 r1265 16 16 $redirect_url = array('Intervention' => '@intervention?id=', 'Amendement' => '@amendement_id?id=', 'QuestionEcrite' => '@question_id?id=', 'ArticleLoi' => '@loi_article_id?id=', 'Alinea'=> '@loi_alinea?id='); 17 17 $about = array('Intervention' => "Suite aux propos d", 'Amendement' => "Au sujet d'un amendement déposé", 'QuestionEcrite' => "A propos d'une question écrite d"); 18 18 19 19 $this->type = $request->getParameter('type'); 20 20 $this->id = $request->getParameter('id'); 21 22 $this->commentaire = myTools::clearHtml($request->getParameter('commentaire[commentaire]')); 21 22 $values = $request->getParameter('commentaire'); 23 $this->commentaire = myTools::clearHtml($values['commentaire']); 23 24 $this->unique_form = $request->getParameter('unique_form'); 24 25 … … 32 33 return $this->redirect($redirect_url[$this->type].$this->id); 33 34 } 34 35 $values = $request->getParameter('commentaire');36 35 37 36 /** On logue l'utilisateur si il a donné un login et mot de passe correct sinon creation du form et template**/ … … 39 38 /** Pas loggué on s'assure que quelqu'un n'a pas trouvé notre hack */ 40 39 $_GET['isAuthenticated'] = $isAuthenticated; 41 if ( $request->getParameter('commentaire[login]') && $request->getParameter('commentaire[password]')) {40 if (isset($values['login']) && isset($values['password'])) { 42 41 if (!($citoyen_id = myUser::SignIn($values['login'], 43 42 $values['password'], false, $this))) { -
cpc/trunk/project/apps/frontend/modules/intervention/config/cache.yml
r740 r1265 1 1 all: 2 enabled: on2 enabled: true 3 3 lifetime: 86400 4 4 show: 5 enabled: off5 enabled: false 6 6 _pagerInterventions: 7 enabled: off7 enabled: false -
cpc/trunk/project/apps/frontend/modules/loi/config/cache.yml
r985 r1265 1 1 all: 2 enabled: on2 enabled: true 3 3 lifetime: 86400 4 4 loi: 5 enabled: off5 enabled: false 6 6 section: 7 enabled: off7 enabled: false -
cpc/trunk/project/apps/frontend/modules/parlementaire/config/cache.yml
r725 r1265 1 1 all: 2 2 lifetime: 86400 3 enabled: on3 enabled: false 4 4 rss: 5 5 lifetime: 3600 -
cpc/trunk/project/apps/frontend/modules/parlementaire/templates/topSuccess.php
r1195 r1265 54 54 <div height="500px" style="height: 500px;overflow: scroll; overflow: auto;"> 55 55 <table><?php $cpt = 0; foreach($tops as $t) { $cpt++;?><tr<?php if ($cpt %2) echo ' class="tr_odd"'?>><td class="<?php echo $class['parl']; ?>"><a name="<?php echo $t[0]['slug']; ?>" href="<?php echo url_for('@parlementaire?slug='.$t[0]['slug']); ?>"></a> 56 <? echo link_to($t[0]['nom'], '@parlementaire?slug='.$t[0]['slug']); ?></td><?php for($i = 1 ; $i < count($t) ; $i++) { ?><td<?php echo $t[$i]['style']; ?> class="<?php echo $class[$ktop[$i]]; ?>"><?php56 <?php echo link_to($t[0]['nom'], '@parlementaire?slug='.$t[0]['slug']); ?></td><?php for($i = 1 ; $i < count($t) ; $i++) { ?><td<?php echo $t[$i]['style']; ?> class="<?php echo $class[$ktop[$i]]; ?>"><?php 57 57 if (preg_match('/\./', $t[$i]['value'])) { 58 58 printf('%02d', $t[$i]['value']); -
cpc/trunk/project/apps/frontend/modules/plot/config/cache.yml
r729 r1265 1 1 all: 2 enabled: on2 enabled: true 3 3 lifetime: 86400 -
cpc/trunk/project/apps/frontend/modules/presence/config/cache.yml
r1022 r1265 1 1 all: 2 2 lifetime: 86400 3 enabled: on3 enabled: true -
cpc/trunk/project/apps/frontend/modules/questions/config/cache.yml
r742 r1265 1 1 all: 2 enabled: on2 enabled: true 3 3 lifetime: 86400 4 4 _pagerQuestions: 5 enabled: off5 enabled: false -
cpc/trunk/project/apps/frontend/modules/tag/config/cache.yml
r729 r1265 1 1 all: 2 enable: on2 enable: true 3 3 lifetime: 86400 -
cpc/trunk/project/lib/form/doctrine/ChangeMotdepasseForm.class.php
r960 r1265 1 1 <?php 2 class ChangeMotdepasseForm extends sfForm2 class ChangeMotdepasseForm extends BaseForm 3 3 { 4 4 public function configure() -
cpc/trunk/project/lib/form/doctrine/CommentaireForm.class.php
r804 r1265 30 30 if (!sfContext::getInstance()->getUser()->isAuthenticated() || !$_GET['isAuthenticated']) 31 31 { 32 $this->widgetSchema['nom'] = new sfWidgetFormInput ();33 $this->widgetSchema['email'] = new sfWidgetFormInput ();34 $this->widgetSchema['login'] = new sfWidgetFormInput ();32 $this->widgetSchema['nom'] = new sfWidgetFormInputText(); 33 $this->widgetSchema['email'] = new sfWidgetFormInputText(); 34 $this->widgetSchema['login'] = new sfWidgetFormInputText(); 35 35 $this->widgetSchema['password'] = new sfWidgetFormInputPassword(); 36 36 -
cpc/trunk/project/lib/form/doctrine/DateForm.class.php
r460 r1265 1 1 <?php 2 2 3 class DateForm extends sfForm3 class DateForm extends BaseForm 4 4 { 5 5 public function configure() -
cpc/trunk/project/lib/form/doctrine/EditUserForm.class.php
r878 r1265 29 29 $this->widgetSchema['naissance'] = new sfWidgetFormDate(array('format' => '%day%/%month%/%year%', 'years' => $liste_annees)); 30 30 31 $this->widgetSchema['url_site'] = new sfWidgetFormInput ();31 $this->widgetSchema['url_site'] = new sfWidgetFormInputText(); 32 32 $this->validatorSchema['url_site'] = new sfValidatorUrl(array('required' => false), array('invalid' => 'l\'url doit être de la forme "http://www.monsite.fr"')); 33 33 -
cpc/trunk/project/lib/form/doctrine/InscriptionForm.class.php
r893 r1265 1 1 <?php 2 class InscriptionForm extends sfForm2 class InscriptionForm extends BaseForm 3 3 { 4 4 public function configure() … … 8 8 #$this->widgetSchema->setOption('form_formatter', 'list'); 'unique_error' => '"%value%" existe déjà', 9 9 10 $this->widgetSchema['login'] = new sfWidgetFormInput ();10 $this->widgetSchema['login'] = new sfWidgetFormInputText(); 11 11 $this->validatorSchema['login'] = new sfValidatorString(array('required' => true, 'min_length' => 4, 'max_length' => 40), array('invalid' => 'Ce nom d\'utilisateur existe déjà.', 12 12 'required' => 'Indiquez le nom d\'utilisateur souhaité', … … 14 14 'max_length' => '"%value%" est trop long (%max_length% caractères maximum).')); 15 15 16 $this->widgetSchema['email'] = new sfWidgetFormInput ();16 $this->widgetSchema['email'] = new sfWidgetFormInputText(); 17 17 $this->validatorSchema['email'] = new sfValidatorEmail(array('required' => true), array('invalid' => 'Adresse email invalide.', 'required' => 'Indiquez votre adresse email', )); 18 18 -
cpc/trunk/project/lib/form/doctrine/MotdepasseForm.class.php
r960 r1265 1 1 <?php 2 class MotdepasseForm extends sfForm2 class MotdepasseForm extends BaseForm 3 3 { 4 4 public function configure() -
cpc/trunk/project/lib/form/doctrine/ResetMotdepasseForm.class.php
r960 r1265 1 1 <?php 2 class ResetMotdepasseForm extends sfForm2 class ResetMotdepasseForm extends BaseForm 3 3 { 4 4 public function configure() … … 6 6 $this->widgetSchema->setNameFormat('reset[%s]'); 7 7 8 $this->widgetSchema['login'] = new sfWidgetFormInput ();8 $this->widgetSchema['login'] = new sfWidgetFormInputText(); 9 9 $this->validatorSchema['login'] = new sfValidatorString(array('required' => true), array('required' => 'Champ obligatoire')); 10 10 11 $this->widgetSchema['code'] = new sfWidgetFormInput ();11 $this->widgetSchema['code'] = new sfWidgetFormInputText(); 12 12 $this->validatorSchema['code'] = new sfValidatorString(array('required' => true), array('required' => 'Vous devez recopier le code de sécurité')); 13 13 -
cpc/trunk/project/lib/form/doctrine/SigninForm.class.php
r797 r1265 1 1 <?php 2 class SigninForm extends sfForm2 class SigninForm extends BaseForm 3 3 { 4 4 public function configure() 5 5 { 6 6 $this->setWidgets(array( 7 'login' => new sfWidgetFormInput (),7 'login' => new sfWidgetFormInputText(), 8 8 'password' => new sfWidgetFormInputPassword(), 9 9 'remember' => new sfWidgetFormInputCheckbox() -
cpc/trunk/project/lib/form/doctrine/UploadAvatarForm.class.php
r638 r1265 1 1 <?php 2 class UploadAvatarForm extends sfForm2 class UploadAvatarForm extends BaseForm 3 3 { 4 4 public function configure() -
cpc/trunk/project/lib/model/doctrine/myTools.class.php
r1257 r1265 87 87 88 88 public static function clearHtml($s, $authorized_tags = '<strong><i><b><a><em>') { 89 sfLoader::loadHelpers(array('Url')); 89 sfProjectConfiguration::getActive()->loadHelpers(array('Url')); 90 90 91 if ($authorized_tags) 91 92 $s = strip_tags($s, $authorized_tags.'<depute>'); -
cpc/trunk/project/test/bootstrap/unit.php
r2 r1265 3 3 /* 4 4 * This file is part of the symfony package. 5 * (c) 2004-2006Fabien Potencier <fabien.potencier@symfony-project.com>5 * (c) Fabien Potencier <fabien.potencier@symfony-project.com> 6 6 * 7 7 * For the full copyright and license information, please view the LICENSE … … 11 11 $_test_dir = realpath(dirname(__FILE__).'/..'); 12 12 13 require_once(dirname(__FILE__).'/../../config/ProjectConfiguration.class.php'); 14 $configuration = new ProjectConfiguration(realpath($_test_dir.'/..')); 15 include($configuration->getSymfonyLibDir().'/vendor/lime/lime.php'); 13 // configuration 14 require_once dirname(__FILE__).'/../../config/ProjectConfiguration.class.php'; 15 $configuration = ProjectConfiguration::hasActive() ? ProjectConfiguration::getActive() : new ProjectConfiguration(realpath($_test_dir.'/..')); 16 17 // autoloader 18 $autoload = sfSimpleAutoload::getInstance(sfConfig::get('sf_cache_dir').'/project_autoload.cache'); 19 $autoload->loadConfiguration(sfFinder::type('file')->name('autoload.yml')->in(array( 20 sfConfig::get('sf_symfony_lib_dir').'/config/config', 21 sfConfig::get('sf_config_dir'), 22 ))); 23 $autoload->register(); 24 25 // lime 26 include $configuration->getSymfonyLibDir().'/vendor/lime/lime.php'; -
cpc/trunk/project/web/css/xneth/style.css
r1257 r1265 6 6 background: #e4e4e1 url('images/mosaique.gif') repeat; 7 7 } 8 /* Bulle ajax commentaires */ 8 9 .coms_loi_txt { 9 10 color: #158EAF;
Note: See TracChangeset
for help on using the changeset viewer.