Changeset 51
- Timestamp:
- 07/18/07 01:52:32 (18 months ago)
- Location:
- trunk/app
- Files:
-
- 5 modified
-
controllers/podcasts_controller.php (modified) (4 diffs)
-
models/podcast.php (modified) (1 diff)
-
models/user.php (modified) (1 diff)
-
views/helps/admin_display.thtml (modified) (1 diff)
-
views/podcasts/admin_add.thtml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/podcasts_controller.php
r50 r51 16 16 public $helpers = array('Html', 'Javascript', 'Ajax', 'Form', 'User', 'Gags'); 17 17 18 public $components = array('Portal', 'Security' );18 public $components = array('Portal', 'Security', 'Mypagination'); 19 19 20 20 public function index($username=null, $entry_id=null) … … 91 91 } 92 92 93 /***********====ADMIN SECTION==== ***/93 /***********====ADMIN SECTION==== *************/ 94 94 95 95 public function admin_listing() … … 119 119 $this->Sanitize = new Sanitize; 120 120 121 $this->Sanitize->cleanArray($this->data ); //Hopefully this is enough121 $this->Sanitize->cleanArray($this->data["Podcast"]); 122 122 123 123 /* SUBMITTED INFORMATION - use what you need … … 228 228 /** delete the temporary uploaded file **/ 229 229 unlink($podfile); 230 } 231 else 232 { 233 $this->set('subjects', $this->Podcast->Subject->generateList(null, 'title')); 230 234 } 231 235 -
trunk/app/models/podcast.php
r15 r51 1 1 <?php 2 /** MM GPLv3 **/ 2 /** 3 Chipotle Software MM GPLv3 4 2002-2007 5 **/ 6 3 7 class Podcast extends AppModel { 4 public $name = 'Podcast';5 8 6 public $belongsTo = 'User'; 9 10 public $belongsTo = array( 11 "User" => array( 12 "className" => "User" 13 ), 14 "Subject" => array( 15 "className" => "Subject" 16 ) 17 ); 18 19 20 public $validate = array( 21 'login' => '/[a-z0-9\_\-]{3,}$/i', 22 'password' => VALID_NOT_EMPTY, 23 'username' => VALID_NOT_EMPTY, 24 'email' => VALID_EMAIL 25 ); 7 26 } 8 27 ?> -
trunk/app/models/user.php
r8 r51 4 4 class User extends AppModel { 5 5 6 // Its always good practice to include this variable.7 public $name = 'User';8 6 public $belongsTo = array( 9 7 "Group" => array( -
trunk/app/views/helps/admin_display.thtml
r43 r51 1 1 2 <div class="title_section"> Centauro Help</div>2 <div class="title_section">Karamelo Help</div> 3 3 4 4 <div> -
trunk/app/views/podcasts/admin_add.thtml
r50 r51 38 38 echo "<br />"; 39 39 40 echo $html->selectTag('Podcast/subject_id', $ optionElements, null, null, null, false);40 echo $html->selectTag('Podcast/subject_id', $subjects, null, null, null, false); 41 41 ?> 42 42
