Changeset 468
- Timestamp:
- 09/04/10 09:03:45 (17 months ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
config/core.php (modified) (8 diffs)
-
controllers/podcasts_controller.php (modified) (1 diff)
-
controllers/styles_controller.php (modified) (2 diffs)
-
models/style.php (modified) (3 diffs)
-
views/elements/quote.ctp (modified) (1 diff)
-
views/layouts/portal.ctp (modified) (3 diffs)
-
views/podcasts/rss/index.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/config/core.php
r461 r468 79 79 * 80 80 */ 81 //Configure::write('Cache.check', true);81 # Configure::write('Cache.check', True); 82 82 83 83 /** … … 85 85 * differentiating error logging and debugging. Currently PHP supports LOG_DEBUG. 86 86 */ 87 define('LOG_ERROR', 2);87 define('LOG_ERROR', 2); 88 88 89 89 /** … … 101 101 * 102 102 */ 103 Configure::write('Session.save', 'cake');103 Configure::write('Session.save', 'php'); 104 104 /** 105 105 * The model name to be used for the session model. … … 109 109 * The model name set here should *not* be used elsewhere in your application. 110 110 */ 111 Configure::write('Session.model', 'Session');111 #Configure::write('Session.model', 'Session'); 112 112 113 113 /** … … 123 123 * [Note: Session.table is deprecated as of CakePHP 1.3] 124 124 */ 125 Configure::write('Session.table', 'cake_sessions');125 #Configure::write('Session.table', 'cake_sessions'); 126 126 127 127 /** … … 130 130 * 'Session.save' must be set to 'database' in order to utilize this constant. 131 131 */ 132 Configure::write('Session.database', 'default');132 #Configure::write('Session.database', 'default'); 133 133 134 134 /** … … 141 141 * Actual value depends on 'Security.level' setting. 142 142 */ 143 Configure::write('Session.timeout', '360 00');143 Configure::write('Session.timeout', '360'); 144 144 145 145 /** … … 166 166 * 'Security.level' is set to 'high'. 167 167 */ 168 Configure::write('Security.level', 'low');168 Configure::write('Security.level', 'low'); 169 169 170 170 /** -
trunk/controllers/podcasts_controller.php
r465 r468 98 98 'order' => 'Podcast.created DESC', 99 99 'contain' => False, 100 'limit' => 30);100 'limit' => 40); 101 101 $podcasts = $this->Podcast->find('all', $params); 102 102 $this->set(compact('podcasts')); -
trunk/controllers/styles_controller.php
r386 r468 16 16 17 17 /** ADMIN METHODS **/ 18 /** 19 * 20 * @access public 21 * @return void 22 */ 18 23 public function admin_listing() 19 24 { 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; 26 31 } 27 32 33 /** 34 * 35 * @access public 36 * @return void 37 */ 28 38 public function admin_edit() 29 39 { … … 31 41 if ( isset($this->data['Style'])): 32 42 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'); 34 46 endif; 35 47 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'))); 37 49 $this->data = $this->Style->read(); 38 50 endif; 39 51 } 40 52 53 /** 54 * 55 * @access public 56 * @return void 57 */ 41 58 public function admin_add() 42 59 { 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'); 46 63 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; 59 71 } 60 72 } 61 # ? > 73 # ? > EOF -
trunk/models/style.php
r382 r468 13 13 { 14 14 public $name = 'Style'; 15 16 15 17 16 /** … … 24 23 'message' => 'Must be at least four characters long', 25 24 'allowEmpty' => False, 25 'on' => 'create', # but not in update 26 26 'required' => True ), 27 27 'style' => array('rule' => array('minLength', 10), … … 31 31 ); 32 32 } 33 # ? > 33 34 # ? > EOF -
trunk/views/elements/quote.ctp
r392 r468 5 5 <i>'. $val['Quote']['author'] . '</i> <br /> 6 6 Blogger: '.$this->Html->link($val['User']['username'], '/blog/'.$val['User']['username']), 7 array('style'=>'margin:5px auto;padding:3px;border-bottom:1px dotted gray')); 8 ?> 7 array('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 9 9 <meta name="google-site-verification" content="5PeM5GACl_SgMW-cBD6lCelwSwRtGOg_Gx8vBqhi6z0" /> 10 10 <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'> 11 12 <link rel="shortcut icon" href="/img/static/favicon.ico" /> 12 13 <meta name="description" content="Hacktivismo Portal" /> … … 21 22 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 22 23 <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" />24 24 </head> 25 25 <body> … … 29 29 </script> 30 30 <?php 31 echo $this->element('themes_top'); 31 echo $this->element('themes_top'); 32 32 echo $this->element('header'); 33 33 ?> -
trunk/views/podcasts/rss/index.ctp
r467 r468 11 11 'title' => __('Most Recent Posts', True), 12 12 'link' => $this->Html->url('/blog/'.$user['User']['username'], True), 13 'description' => __( "Most recent posts.", True),13 'description' => __('MonoNeurona.org::Most recent posts', True), 14 14 'language' => 'en-us')); 15 15 foreach ($podcasts as $pod):
Note: See TracChangeset
for help on using the changeset viewer.
