Changeset 468


Ignore:
Timestamp:
09/04/10 09:03:45 (17 months ago)
Author:
aarkerio
Message:

Update some bugs

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/config/core.php

    r461 r468  
    7979 * 
    8080 */ 
    81         //Configure::write('Cache.check', true); 
     81 # Configure::write('Cache.check', True); 
    8282 
    8383/** 
     
    8585 * differentiating error logging and debugging. Currently PHP supports LOG_DEBUG. 
    8686 */ 
    87         define('LOG_ERROR', 2); 
     87  define('LOG_ERROR', 2); 
    8888 
    8989/** 
     
    101101 * 
    102102 */ 
    103         Configure::write('Session.save', 'cake'); 
     103   Configure::write('Session.save', 'php'); 
    104104/** 
    105105 * The model name to be used for the session model. 
     
    109109 * The model name set here should *not* be used elsewhere in your application. 
    110110 */ 
    111    Configure::write('Session.model', 'Session'); 
     111   #Configure::write('Session.model', 'Session'); 
    112112 
    113113/** 
     
    123123 * [Note: Session.table is deprecated as of CakePHP 1.3] 
    124124 */ 
    125    Configure::write('Session.table', 'cake_sessions'); 
     125   #Configure::write('Session.table', 'cake_sessions'); 
    126126 
    127127/** 
     
    130130 * 'Session.save' must be set to 'database' in order to utilize this constant. 
    131131 */ 
    132   Configure::write('Session.database', 'default'); 
     132  #Configure::write('Session.database', 'default'); 
    133133 
    134134/** 
     
    141141 * Actual value depends on 'Security.level' setting. 
    142142 */ 
    143   Configure::write('Session.timeout', '36000'); 
     143  Configure::write('Session.timeout', '360'); 
    144144 
    145145/** 
     
    166166 * 'Security.level' is set to 'high'. 
    167167 */ 
    168         Configure::write('Security.level', 'low'); 
     168  Configure::write('Security.level', 'low'); 
    169169 
    170170/** 
  • trunk/controllers/podcasts_controller.php

    r465 r468  
    9898                  'order'      => 'Podcast.created DESC', 
    9999                  'contain'    => False, 
    100                   'limit'      => 30); 
     100                  'limit'      => 40); 
    101101  $podcasts = $this->Podcast->find('all', $params); 
    102102  $this->set(compact('podcasts')); 
  • trunk/controllers/styles_controller.php

    r386 r468  
    1616 
    1717/** ADMIN METHODS **/ 
     18/** 
     19 * 
     20 * @access public 
     21 * @return void 
     22 */ 
    1823 public function admin_listing()  
    1924 {   
    20     $id    = $this->Style->field("id", array("user_id"=>$this->Auth->user('id')));   
    21     if ($id == null): 
    22        $this->redirect('/admin/styles/add'); 
    23     else:    
    24         $this->redirect('/admin/styles/edit/'); 
    25     endif; 
     25  $id  = $this->Style->field('id', array('user_id'=>$this->Auth->user('id')));   
     26  if ($id == null): 
     27      $this->redirect('/admin/styles/add'); 
     28  else:    
     29      $this->redirect('/admin/styles/edit/'); 
     30  endif; 
    2631 } 
    2732  
     33/** 
     34 * 
     35 * @access public 
     36 * @return void 
     37 */ 
    2838 public function admin_edit()  
    2939 {   
     
    3141   if ( isset($this->data['Style'])): 
    3242       if ( $this->Style->save($this->data) ): 
    33         $this->redirect('/admin/styles/listing'); 
     43           $this->msgFlash('Style saved', '/admin/styles/listing'); 
     44       else: 
     45           $this->msgFlash('Error saving!!', '/admin/styles/listing'); 
    3446       endif; 
    3547   else:  
    36        $this->Style->id  = $this->Style->field('id', array('user_id'=>$this->Auth->user('id')));      
     48       $this->Style->id  = $this->Style->field('id', array('user_id'=>$this->Auth->user('id'))); 
    3749       $this->data       = $this->Style->read(); 
    3850  endif; 
    3951 } 
    4052  
     53/** 
     54 * 
     55 * @access public 
     56 * @return void 
     57 */ 
    4158 public function admin_add()  
    4259 {   
    43    if ( isset($this->data["Style"])) 
    44    { 
    45     Sanitize::clean($this->data["Style"]); 
     60  if ( isset($this->data['Style'])): 
     61      $this->data['Style'] = Sanitize::clean($this->data['Style']); 
     62      $this->data['Style']['user_id'] = (int) $this->Auth->user('id'); 
    4663      
    47      $this->data["Style"]["user_id"] = $this->Auth->user('id'); 
    48       
    49      if ( $this->Style->save($this->data["Style"]) ) 
    50      { 
    51         $this->redirect('/admin/styles/edit'); 
    52      } 
    53    } 
    54    else 
    55    { 
    56         $this->layout ='admin'; 
    57         $this->set('style', $this->Style->field("style", array("user_id"=>1))); // the default blog style 
    58    } 
     64      if ( $this->Style->save($this->data) ): 
     65          $this->redirect('/admin/styles/edit'); 
     66      endif; 
     67  else: 
     68      $this->layout ='admin'; 
     69      $this->set('style', $this->Style->field("style", array("user_id"=>1))); // the default blog style 
     70  endif; 
    5971 } 
    6072} 
    61 # ? > 
     73# ? > EOF 
  • trunk/models/style.php

    r382 r468  
    1313{ 
    1414  public $name = 'Style'; 
    15   
    1615 
    1716/** 
     
    2423                                               'message'    => 'Must be at least four characters long', 
    2524                                               'allowEmpty' => False, 
     25                                               'on'         => 'create', # but not in update 
    2626                                               'required'   => True ), 
    2727                             'style'  => array('rule'       => array('minLength', 10), 
     
    3131                          ); 
    3232} 
    33 # ? > 
     33 
     34# ? > EOF 
  • trunk/views/elements/quote.ctp

    r392 r468  
    55<i>'. $val['Quote']['author'] . '</i> <br />  
    66Blogger: '.$this->Html->link($val['User']['username'], '/blog/'.$val['User']['username']),  
    7 array('style'=>'margin:5px auto;padding:3px;border-bottom:1px dotted gray')); 
    8 ?> 
     7array('style'=>'margin:3px auto;padding:3px;font-size:13pt;border-bottom:1px dotted gray;font-family: \'Lobster\', arial, serif;')); 
     8 
     9# ? > EOF 
  • trunk/views/layouts/portal.ctp

    r461 r468  
    99<meta name="google-site-verification" content="5PeM5GACl_SgMW-cBD6lCelwSwRtGOg_Gx8vBqhi6z0" /> 
    1010<meta name="keywords" content="linux, openbsd, programming, cakephp, Django, ruby, python" /> 
     11<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'> 
    1112<link rel="shortcut icon" href="/img/static/favicon.ico" /> 
    1213<meta name="description" content="Hacktivismo Portal" /> 
     
    2122<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    2223<link rel="alternate" type="application/rss+xml" title="Quicks RSS 2.0" href="http://feeds.feedburner.com/DespabilandoLaMononeurona" /> 
    23 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    2424</head> 
    2525<body> 
     
    2929</script> 
    3030<?php  
    31 echo $this->element('themes_top');  
     31echo $this->element('themes_top'); 
    3232echo $this->element('header');  
    3333?> 
  • trunk/views/podcasts/rss/index.ctp

    r467 r468  
    1111                                'title'       => __('Most Recent Posts', True), 
    1212                                'link'        => $this->Html->url('/blog/'.$user['User']['username'], True), 
    13                                 'description' => __("Most recent posts.", True), 
     13                                'description' => __('MonoNeurona.org::Most recent posts', True), 
    1414                                'language'    => 'en-us')); 
    1515foreach ($podcasts as $pod): 
Note: See TracChangeset for help on using the changeset viewer.