Changeset 247
- Timestamp:
- 02/22/08 17:22:12 (11 months ago)
- Location:
- trunk/app
- Files:
-
- 38 modified
-
controllers/acquaintances_controller.php (modified) (1 diff)
-
controllers/answers_controller.php (modified) (1 diff)
-
controllers/categories_controller.php (modified) (1 diff)
-
controllers/catfaqs_controller.php (modified) (1 diff)
-
controllers/catforums_controller.php (modified) (2 diffs)
-
controllers/catglossaries_controller.php (modified) (1 diff)
-
controllers/colleges_controller.php (modified) (3 diffs)
-
controllers/comments_controller.php (modified) (2 diffs)
-
controllers/confirms_controller.php (modified) (1 diff)
-
controllers/ecourses_controller.php (modified) (2 diffs)
-
controllers/faqs_controller.php (modified) (2 diffs)
-
controllers/forums_controller.php (modified) (2 diffs)
-
controllers/galleries_controller.php (modified) (2 diffs)
-
controllers/glossaries_controller.php (modified) (2 diffs)
-
controllers/groups_controller.php (modified) (2 diffs)
-
controllers/helps_controller.php (modified) (2 diffs)
-
controllers/images_controller.php (modified) (1 diff)
-
controllers/lessons_controller.php (modified) (2 diffs)
-
controllers/medias_controller.php (modified) (2 diffs)
-
controllers/news_controller.php (modified) (1 diff)
-
controllers/newsletters_controller.php (modified) (2 diffs)
-
controllers/podcasts_controller.php (modified) (2 diffs)
-
controllers/pollrows_controller.php (modified) (2 diffs)
-
controllers/polls_controller.php (modified) (2 diffs)
-
controllers/questions_controller.php (modified) (2 diffs)
-
controllers/quotes_controller.php (modified) (2 diffs)
-
controllers/shares_controller.php (modified) (1 diff)
-
controllers/subjects_controller.php (modified) (2 diffs)
-
controllers/tests_controller.php (modified) (2 diffs)
-
controllers/themeblogs_controller.php (modified) (2 diffs)
-
controllers/themes_controller.php (modified) (2 diffs)
-
controllers/topics_controller.php (modified) (3 diffs)
-
controllers/treasures_controller.php (modified) (2 diffs)
-
controllers/users_controller.php (modified) (1 diff)
-
controllers/vclassrooms_controller.php (modified) (2 diffs)
-
controllers/webquests_controller.php (modified) (2 diffs)
-
views/elements/admin_menu.ctp (modified) (1 diff)
-
views/layouts/admin.ctp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/acquaintances_controller.php
r202 r247 2 2 /** 3 3 * Karamelo eLearning Platform 4 * Manuel Montoya 2002-20075 * GPL manuel<a t>mononeurona.org4 * Chipotle Software 2002-2008 5 * GPL manuel<arroba>mononeurona<punto>org 6 6 */ 7 7 uses('sanitize'); -
trunk/app/controllers/answers_controller.php
r193 r247 2 2 /** 3 3 * Karamelo E-Learning Platform 4 * Manuel Montoya 2002-20074 * Chipotle Software 2002-2008 5 5 * GPL manuel<at>mononeurona<punto>org 6 6 */ 7 7 //File: /app/controllers/quotes_controller.php 8 8 9 uses('Sanitize'); 10 9 11 class AnswersController extends AppController 10 12 { 11 public $helpers = array('Form', 'Ajax'); 13 public $helpers = array('Ajax'); 14 15 public function isAuthorized() 16 { 17 if ($this->action == 'delete') 18 { 19 if ($this->Auth->user('group_id') == 1) 20 { 21 return true; 22 } else { 23 return false; 24 } 25 } 26 27 return true; 28 } 12 29 13 30 /*** -
trunk/app/controllers/categories_controller.php
r31 r247 2 2 /** 3 3 * Karamelo E-Learning Platform 4 * Manuel Montoya 2002-20074 * Chipotle Software 2002-2008 5 5 * GPL manuel<at>mononeurona.org 6 6 */ 7 7 8 8 uses('sanitize'); 9 loadModel('User'); 10 loadModel('Category'); 9 11 10 12 11 class CategoriesController extends AppController 13 12 { 14 public $helpers = array('Ajax' , 'Form');13 public $helpers = array('Ajax'); 15 14 16 15 public $displayField = 'Blog'; 17 16 18 public function index($order = null) 19 { 17 public function isAuthorized() 18 { 19 if ($this->action == 'delete') 20 { 21 if ($this->Auth->user('group_id') == 1) 22 { 23 return true; 24 } else { 25 return false; 26 } 27 } 28 29 return true; 30 } 31 32 public function index($order = null) 33 { 20 34 $this->layout = 'admin'; 21 35 $this->pageTitle = 'Categories'; -
trunk/app/controllers/catfaqs_controller.php
r142 r247 2 2 /** 3 3 * Karamelo E-Learning Platform 4 * Manuel Montoya 2002-20075 * GPLv3 manuel<at>mononeurona .org4 * Chipotle Software 2002-2008 5 * GPLv3 manuel<at>mononeurona<punto>org 6 6 */ 7 7 8 8 uses('sanitize'); 9 loadModel('Group');10 9 11 10 class CatfaqsController extends AppController 12 11 { 13 public $helpers = array('Ajax', ' Form', 'User', 'Gags');12 public $helpers = array('Ajax', 'User', 'Gags'); 14 13 15 14 public $components = array('Edublog'); 16 15 17 public $displayField = 'title'; 18 16 public function isAuthorized() 17 { 18 if ($this->action == 'delete') 19 { 20 if ($this->Auth->user('group_id') == 1) 21 { 22 return true; 23 } else { 24 return false; 25 } 26 } 27 28 return true; 29 } 30 19 31 public function view($catfaq_id, $user_id) 20 32 { -
trunk/app/controllers/catforums_controller.php
r65 r247 1 1 <?php 2 2 /** 3 * Chipotle Software 4 * Manuel Montoya 2002-200 73 * Chipotle Software TM 4 * Manuel Montoya 2002-2008 5 5 * GPL v3 manuel<at>mononeurona<punto>org 6 6 */ … … 10 10 class CatforumsController extends AppController 11 11 { 12 public $helpers = array('Javascript', 'Ajax', 'Form', 'Gags', 'Time');12 public $helpers = array('Ajax', 'Gags', 'Time'); 13 13 14 public $components = array('Security', 'Edublog'); 15 16 public function display($username, $user_id) 17 { 14 public $components = array('Edublog'); 15 16 public function isAuthorized() 17 { 18 if ($this->action == 'delete') 19 { 20 if ($this->Auth->user('group_id') == 1) 21 { 22 return true; 23 } else { 24 return false; 25 } 26 } 27 28 return true; 29 } 30 31 public function display($username, $user_id) 32 { 18 33 $this->pageTitle = $username .'\'s Forums'; 19 34 -
trunk/app/controllers/catglossaries_controller.php
r89 r247 2 2 /** 3 3 * Chipotle Software 4 * Manuel Montoya 2002-200 74 * Manuel Montoya 2002-2008 5 5 * GPL manuel<at>mononeurona<dot>org 6 6 */ 7 7 8 8 uses('sanitize'); 9 loadModel('Group');10 9 11 10 class CatglossariesController extends AppController 12 11 { 13 public $helpers = array('Ajax', ' Form', 'User', 'Gags');12 public $helpers = array('Ajax', 'User', 'Gags'); 14 13 15 14 public $components = array('Edublog'); 16 15 16 public function isAuthorized() 17 { 18 if ($this->action == 'delete') 19 { 20 if ($this->Auth->user('group_id') == 1) 21 { 22 return true; 23 } else { 24 return false; 25 } 26 } 27 28 return true; 29 } 30 17 31 public function display($username) 18 32 { -
trunk/app/controllers/colleges_controller.php
r177 r247 2 2 /** 3 3 * Karamelo E-Learning Platform 4 * Manuel Montoya 2002-200 75 * GPL License manuel<at>mononeurona .org6 * Chipotle Software 4 * Manuel Montoya 2002-2008 5 * GPL License manuel<at>mononeurona<punto>org 6 * Chipotle Software TM 7 7 */ 8 8 … … 11 11 class CollegesController extends AppController { 12 12 13 public $helpers = array('Ajax', 'F orm', 'Fck', 'Time', 'Gags', 'Session');13 public $helpers = array('Ajax', 'Fck', 'Time', 'Gags'); 14 14 15 public $components = array('Portal', 'Mypagination', 'Security', 'Session'); 16 17 public function about() 15 public $components = array('Portal'); 16 17 public function isAuthorized() 18 { 19 if ($this->action == 'delete') 20 { 21 if ($this->Auth->user('group_id') == 1) 22 { 23 return true; 24 } else { 25 return false; 26 } 27 } 28 29 return true; 30 } 31 32 public function view() 18 33 { 19 34 $this->layout = 'portal'; … … 25 40 $this->set('data', $this->College->find($conditions, $fields)); 26 41 27 $this->set('Element', $this->Portal->statics()); // Charge Portal components aka Sidebars42 //$this->set('Element', $this->Portal->statics()); // Charge Portal components aka Sidebars 28 43 } 29 44 -
trunk/app/controllers/comments_controller.php
r156 r247 2 2 /** 3 3 * Karamelo E-Learning Platform 4 * Manuel Montoya 2002-200 75 * Chipotle Software 6 * GPLv3 manuel<a t>mononeurona.org4 * Manuel Montoya 2002-2008 5 * Chipotle Software TM 6 * GPLv3 manuel<arroba>mononeurona<punto>org 7 7 */ 8 8 9 //loadModel('User');10 9 uses('sanitize'); 11 10 … … 15 14 16 15 public $helpers = array('Fck', 'News', 'Time', 'Gags', 'Session'); 16 17 public function isAuthorized() 18 { 19 if ($this->action == 'delete') 20 { 21 if ($this->Auth->user('group_id') == 1) 22 { 23 return true; 24 } else { 25 return false; 26 } 27 } 28 29 return true; 30 } 17 31 18 32 public function view($username=null, $entry_id=null) -
trunk/app/controllers/confirms_controller.php
r183 r247 2 2 /** 3 3 * Karamelo E-Learning Platform 4 * Manuel Montoya 2002-20075 * GPL manuel<at>mononeurona.org4 * Chipotle Software 2002-2008 5 * GPLv3 manuel<at>mononeurona<punto>org 6 6 */ 7 7 //File: /app/controllers/users_controller.php 8 8 9 9 uses('sanitize'); 10 loadModel('User');11 10 12 11 class ConfirmsController extends AppController 13 12 { 13 public function isAuthorized() 14 { 15 if ($this->action == 'delete') 16 { 17 if ($this->Auth->user('group_id') == 1) 18 { 19 return true; 20 } else { 21 return false; 22 } 23 } 24 25 return true; 26 } 14 27 15 public function signup($secret = null)16 {28 public function signup($secret = null) 29 { 17 30 $this->pageTitle = 'Active User Account'; 18 31 -
trunk/app/controllers/ecourses_controller.php
r203 r247 1 1 <?php 2 2 /** 3 *Karamelo E-Learning Platform4 * Manuel Montoya 2002-20075 * GPLLicense manuel<at>mononeurona.org6 * Chipotle Software 3 * Karamelo E-Learning Platform 4 * Manuel Montoya 2002-2008 5 * GPLv3 License manuel<at>mononeurona.org 6 * Chipotle Software TM 7 7 */ 8 8 uses('sanitize'); … … 10 10 class EcoursesController extends AppController 11 11 { 12 public $helpers = array('Fck', 'Gags'); 13 14 public $components = array('Pagination'); 12 15 13 public $helpers = array('Form', 'Fck', 'Gags'); 14 15 public $components = array('Security', 'Mypagination'); 16 16 public function isAuthorized() 17 { 18 if ($this->action == 'delete') 19 { 20 if ($this->Auth->user('group_id') == 1) 21 { 22 return true; 23 } else { 24 return false; 25 } 26 } 27 28 return true; 29 } 30 17 31 /**** 18 32 ===== ADMIN SECTION ========== -
trunk/app/controllers/faqs_controller.php
r135 r247 2 2 /* 3 3 * Karamelo E-Learning Platform 4 * Chipotle Software 2002-200 74 * Chipotle Software 2002-2008 5 5 * GPLv3 manuel<ARROBA>mononeurona<PUNTO>org 6 6 */ … … 10 10 class FaqsController extends AppController 11 11 { 12 public $helpers = array('Ajax', ' Form', 'User', 'Fck', 'Gags');12 public $helpers = array('Ajax', 'User', 'Fck', 'Gags'); 13 13 14 public function isAuthorized() 15 { 16 if ($this->action == 'delete') 17 { 18 if ($this->Auth->user('group_id') == 1) 19 { 20 return true; 21 } else { 22 return false; 23 } 24 } 25 26 return true; 27 } 28 14 29 public function index($order = null) 15 30 { -
trunk/app/controllers/forums_controller.php
r163 r247 1 1 <?php 2 2 /** 3 * Chipotle Software 4 * Manuel Montoya 2002-200 75 * GPL manuel<at>mononeurona<dot>org3 * Chipotle Software TM 4 * Manuel Montoya 2002-2008 5 * GPLv3 manuel<at>mononeurona<dot>org 6 6 */ 7 7 … … 10 10 class ForumsController extends AppController 11 11 { 12 public $helpers = array('Javascript', 'Ajax', ' Form', 'Time');12 public $helpers = array('Javascript', 'Ajax', 'Time'); 13 13 14 public $components = array(' Security', 'Edublog');14 public $components = array('Edublog'); 15 15 16 public function isAuthorized() 17 { 18 if ($this->action == 'delete') 19 { 20 if ($this->Auth->user('group_id') == 1) 21 { 22 return true; 23 } else { 24 return false; 25 } 26 } 27 return true; 28 } 29 16 30 public function display($title, $username, $user_id, $forum_id) 17 31 { -
trunk/app/controllers/galleries_controller.php
r69 r247 2 2 /** 3 3 * Karamelo E-Learning Platform 4 * Manuel Montoya 2002-200 75 * Chipotle Software 4 * Manuel Montoya 2002-2008 5 * Chipotle Software TM 6 6 * GPLv3 manuel<at>mononeurona.org 7 7 */ … … 11 11 class GalleriesController extends AppController 12 12 { 13 public $helpers = array('Ajax', 'Form', 'User', 'Gags'); 14 15 public function index($id = null) 16 { 13 public $helpers = array('Ajax', 'User', 'Gags'); 14 15 public function isAuthorized() 16 { 17 if ($this->action == 'delete') 18 { 19 if ($this->Auth->user('group_id') == 1) 20 { 21 return true; 22 } else { 23 return false; 24 } 25 } 26 27 return true; 28 } 29 30 public function index($id = null) 31 { 17 32 $this->pageTitle = 'View Active Users'; 18 33 $this->set('data', $this->User->findAll()); 19 34 $this->set('color', 'blue'); 20 }35 } 21 36 22 public function listview() 23 { 24 37 public function listview() 38 { 25 39 $this->layout = 'popup'; 26 40 -
trunk/app/controllers/glossaries_controller.php
r72 r247 2 2 /** 3 3 * Karamelo E-Learning Platform 4 * Manuel Montoya 2002-200 74 * Manuel Montoya 2002-2008 5 5 * GPL manuel<at>mononeurona.org 6 6 */ … … 10 10 class GlossariesController extends AppController 11 11 { 12 public $helpers = array('Ajax', 'Form', 'User', 'Fck', 'Gags');12 public $helpers = array('Ajax', 'User', 'Fck', 'Gags'); 13 13 14 public $components = array('Edublog'); 15 14 public $components = array('Edublog'); 15 16 public function isAuthorized() 17 { 18 if ($this->action == 'delete') 19 { 20 if ($this->Auth->user('group_id') == 1) 21 { 22 return true; 23 } else { 24 return false; 25 } 26 } 27 28 return true; 29 } 16 30 17 31 public function display($username) -
trunk/app/controllers/groups_controller.php
r216 r247 2 2 /** 3 3 * Karamelo E-Learning Platform 4 * Manuel Montoya 2002-200 75 * Chipotle Software GPLv3 manuel<a t>mononeurona.org4 * Manuel Montoya 2002-2008 5 * Chipotle Software GPLv3 manuel<arroba>mononeurona<punto>org 6 6 */ 7 7 … … 10 10 class GroupsController extends AppController 11 11 { 12 public $helpers = array('Ajax', 'Form', 'Gags'); 13 12 public $helpers = array('Ajax', 'Gags'); 13 14 public function isAuthorized() 15 { 16 if ($this->action == 'delete') 17 { 18 if ($this->Auth->user('group_id') == 1) 19 { 20 return true; 21 } else { 22 return false; 23 } 24 } 25 26 return true; 27 } 28 14 29 /** 15 30 === ADMIN METHODS === -
trunk/app/controllers/helps_controller.php
r183 r247 1 1 <?php 2 2 /** 3 * Chipotle Software 4 * Manuel Montoya 2002-200 75 * GPL manuel<at>mononeurona<dot>org3 * Chipotle Software TM 4 * Manuel Montoya 2002-2008 5 * GPLv3 manuel<at>mononeurona<dot>org 6 6 */ 7 7 … … 10 10 class HelpsController extends AppController 11 11 { 12 public $helpers = array('Javascript', 'Ajax', 'Form', 'Fck', 'Gags');12 public $helpers = array('Javascript', 'Ajax', 'Fck', 'Gags'); 13 13 14 public $components = array('Portal', 'Edublog'); 15 16 public function tour() 17 { 14 public $components = array('Portal', 'Edublog'); 15 16 public function isAuthorized() 17  
