Ignore:
Timestamp:
Aug 22, 2010, 5:10:20 PM (11 years ago)
Author:
popeye
Message:

changements dûs à la 1.4

Location:
cpc/trunk/project/apps/frontend
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/config/cache.yml

    r2 r1265  
    11default:
    2   enabled:     off
     2  enabled:     false
    33  with_layout: false
    44  lifetime:    86400
  • cpc/trunk/project/apps/frontend/config/factories.yml

    r811 r1265  
    55      level:   err
    66      loggers: ~
     7
     8  mailer:
     9    param:
     10      delivery_strategy: realtime
    711
    812cli:
     
    2529      send_http_headers: false
    2630
     31  mailer:
     32    param:
     33      delivery_strategy: none
     34
     35dev:
     36  mailer:
     37    param:
     38      delivery_strategy: realtime
     39
    2740all:
    2841  routing:
     
    3144      generate_shortest_url:            true
    3245      extra_parameters_as_query_string: true
    33       cache:
    34         class: sfNoCache
     46      cache: null
    3547
     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:   ~
    3661#all:
    3762#  controller:
     
    86111#    param:
    87112#      source:               XLIFF
    88 #      debug:                off
     113#      debug:                false
    89114#      untranslated_prefix:  "[T]"
    90115#      untranslated_suffix:  "[/T]"
  • cpc/trunk/project/apps/frontend/config/filters.yml

    r514 r1265  
    77
    88cache:     ~
    9 common:    ~
     9common:
     10  class: sfCommonFilter
    1011execution: ~
  • cpc/trunk/project/apps/frontend/config/security.yml

    r2 r1265  
    11default:
    2   is_secure: off
     2  is_secure: false
  • cpc/trunk/project/apps/frontend/config/settings.yml

    r730 r1265  
    11prod:
    22  .settings:
    3     no_script_name:         on
    4     logging_enabled:        off
    5     compressed:             on
    6     check_lock:             on
     3    no_script_name:         true
     4    logging_enabled:        false
     5    compressed:             true
     6    check_lock:             true
    77    cache:                  on
    88dev:
    99  .settings:
    1010    error_reporting:        <?php echo (E_ALL | E_STRICT)."\n" ?>
    11     web_debug:              on
    12     cache:                  on
    13     no_script_name:         off
    14     etag:                   off
     11    web_debug:              true
     12    cache:                  true
     13    no_script_name:         false
     14    etag:                   false
    1515
    1616test:
    1717  .settings:
    1818    error_reporting:        <?php echo ((E_ALL | E_STRICT) ^ E_NOTICE)."\n" ?>
    19     cache:                  off
    20     web_debug:              off
    21     no_script_name:         off
    22     etag:                   off
     19    cache:                  false
     20    web_debug:              false
     21    no_script_name:         false
     22    etag:                   false
    2323
    2424all:
     
    3333    # Cache settings
    3434    cache:                  on
    35     lazy_cache_key:         on        # Delays creation of a cache key until after checking whether an action or partial is
     35    lazy_cache_key:         true        # Delays creation of a cache key until after checking whether an action or partial is
    3636    enabled_modules:  [default, xsPChartPlugin, sfDoctrineActAsTaggablePlugin, sfFeed2Plugin]
    3737#all:
     
    5151#  .settings:
    5252#    # 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.
    5858#
    5959#    # Routing settings
    60 #    no_script_name:         off       # Enable the front controller name in generated URLs
     60#    no_script_name:         false       # Enable the front controller name in generated URLs
    6161#
    6262#    # Validation settings, used for error generation by the Validation helper
     
    6767#
    6868#    # Cache settings
    69 #    cache:                  off       # Enable the template cache
    70 #    etag:                   on        # Enable etag handling
    71 #    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)
    7272#
    7373#    # Logging and debugging settings
    74 #    web_debug:              off       # Enable the web debug toolbar
     74#    web_debug:              false       # Enable the web debug toolbar
    7575#    error_reporting:        <?php echo (E_PARSE | E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR | E_USER_ERROR)."\n" ?> # Determines which events are logged.
    7676#
     
    9191#
    9292#    # Miscellaneous
    93 #    strip_comments:         on         # Remove comments in core framework classes as defined in the core_compile.yml
     93#    strip_comments:         true         # Remove comments in core framework classes as defined in the core_compile.yml
    9494#    max_forwards:           5
    9595#
    9696#    # Logging
    97 #    logging_enabled:        on
     97#    logging_enabled:        true
    9898#
    9999#    # i18n
  • cpc/trunk/project/apps/frontend/config/view.yml

    r828 r1265  
    1414  javascripts:    [jquery-1.3.2.min.js]
    1515
    16   has_layout:     on
     16  has_layout:     true
    1717  layout:         layout
  • cpc/trunk/project/apps/frontend/lib/myUser.class.php

    r842 r1265  
    3939  public static function SignIn($login, $password, $remember, $action)
    4040  {
    41     sfLoader::loadHelpers(array('Url'));
     41    sfProjectConfiguration::getActive()->loadHelpers(array('Url'));
     42       
    4243    $reset_mdp = '<a href="'.url_for('@reset_mdp').'">Mot de passe oublié ?</a>';
    4344   
  • cpc/trunk/project/apps/frontend/modules/amendement/config/cache.yml

    r743 r1265  
    11all:
    2    enabled: on
     2   enabled: true
    33   lifetime: 86400
    44_pagerAmendements:
    5    enabled: off
     5   enabled: false
  • cpc/trunk/project/apps/frontend/modules/commentaire/actions/actions.class.php

    r1213 r1265  
    1616    $redirect_url = array('Intervention' => '@intervention?id=', 'Amendement' => '@amendement_id?id=', 'QuestionEcrite' => '@question_id?id=', 'ArticleLoi' => '@loi_article_id?id=', 'Alinea'=> '@loi_alinea?id=');
    1717    $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       
    1919    $this->type = $request->getParameter('type');
    2020    $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']);
    2324    $this->unique_form = $request->getParameter('unique_form');
    2425
     
    3233      return $this->redirect($redirect_url[$this->type].$this->id);
    3334    }
    34                
    35     $values = $request->getParameter('commentaire');
    3635
    3736    /** On logue l'utilisateur si il a donné un login et mot de passe correct sinon creation du form et template**/
     
    3938    /** Pas loggué on s'assure que quelqu'un n'a pas trouvé notre hack */
    4039    $_GET['isAuthenticated'] = $isAuthenticated;
    41     if ($request->getParameter('commentaire[login]') && $request->getParameter('commentaire[password]')) {
     40    if (isset($values['login']) && isset($values['password'])) {
    4241      if (!($citoyen_id = myUser::SignIn($values['login'],
    4342$values['password'], false, $this))) {
  • cpc/trunk/project/apps/frontend/modules/intervention/config/cache.yml

    r740 r1265  
    11all:
    2   enabled: on
     2  enabled: true
    33  lifetime: 86400
    44show:
    5   enabled: off
     5  enabled: false
    66_pagerInterventions:
    7   enabled: off
     7  enabled: false
  • cpc/trunk/project/apps/frontend/modules/loi/config/cache.yml

    r985 r1265  
    11all:
    2   enabled: on
     2  enabled: true
    33  lifetime: 86400
    44loi:
    5   enabled: off
     5  enabled: false
    66section:
    7   enabled: off
     7  enabled: false
  • cpc/trunk/project/apps/frontend/modules/parlementaire/config/cache.yml

    r725 r1265  
    11all:
    22  lifetime: 86400
    3   enabled: on
     3  enabled: false
    44rss:
    55  lifetime: 3600
  • cpc/trunk/project/apps/frontend/modules/parlementaire/templates/topSuccess.php

    r1195 r1265  
    5454<div height="500px" style="height: 500px;overflow: scroll; overflow: auto;">
    5555<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]]; ?>"><?php
     56<?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
    5757     if (preg_match('/\./', $t[$i]['value'])) {
    5858       printf('%02d', $t[$i]['value']);
  • cpc/trunk/project/apps/frontend/modules/plot/config/cache.yml

    r729 r1265  
    11all:
    2   enabled: on
     2  enabled: true
    33  lifetime: 86400
  • cpc/trunk/project/apps/frontend/modules/presence/config/cache.yml

    r1022 r1265  
    11all:
    22  lifetime: 86400
    3   enabled: on
     3  enabled: true
  • cpc/trunk/project/apps/frontend/modules/questions/config/cache.yml

    r742 r1265  
    11all:
    2    enabled: on
     2   enabled: true
    33   lifetime: 86400
    44_pagerQuestions:
    5    enabled: off
     5   enabled: false
  • cpc/trunk/project/apps/frontend/modules/tag/config/cache.yml

    r729 r1265  
    11all:
    2    enable: on
     2   enable: true
    33   lifetime: 86400
Note: See TracChangeset for help on using the changeset viewer.