Changeset 405
- Timestamp:
- 04/16/08 04:03:49 (9 months ago)
- Location:
- trunk/app
- Files:
-
- 3 modified
-
controllers/components/captcha.php (modified) (1 diff)
-
controllers/discussions_controller.php (modified) (3 diffs)
-
views/catglossaries/admin_edit.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/components/captcha.php
r401 r405 24 24 public function render() 25 25 { 26 if ( ! vendor('kcaptcha/kcaptcha'))26 if ( ! App::import('Vendor', 'kcaptcha/kcaptcha') ) 27 27 { 28 28 die('Problem in captcha component'); -
trunk/app/controllers/discussions_controller.php
r404 r405 20 20 public $helpers = array('Ajax', 'Time', 'Gags'); 21 21 22 public $components = array('Captcha');22 //public $components = array('Captcha'); 23 23 24 24 public function beforeFilter() 25 25 { 26 $this->Auth->allow(array('captcha', 'agregar', 'r ss'));26 $this->Auth->allow(array('captcha', 'agregar', 'renka')); 27 27 parent::beforeFilter(); 28 28 } … … 85 85 86 86 /* == PRIVATE == **/ 87 private function _ sendEmail($user_id, $new_id)87 private function __sendEmail($user_id, $new_id) 88 88 { 89 89 $User = new User; … … 114 114 return false; 115 115 } 116 } 117 118 public function renka() 119 { 120 $this->layout = 'portal'; 121 //return $this->Captcha->render(); 116 122 } 117 123 -
trunk/app/views/catglossaries/admin_edit.ctp
r270 r405 1 <div> 2 <?php echo $html->addCrumb('Control Tools', '/admin/entries/start'); ?> 3 <?php echo $html->addCrumb('Glossaries', '/admin/catglossaries/listing'); ?> 4 <?php echo $html->getCrumbs(' / '); ?> 5 </div> 1 <?php 2 echo $html->addCrumb('Control Tools', '/admin/entries/start'); 3 echo $html->addCrumb('Glossaries', '/admin/catglossaries/listing'); 4 echo $html->getCrumbs(' / '); 6 5 7 <?php 8 echo $html->formTag('/admin/catglossaries/edit','post'); 9 echo $html->hidden('Catglossary/id'); 6 echo $form->create('Catglossary'); 7 echo $form->hidden('Catglossary.id'); 10 8 ?> 11 9 <fieldset> 12 10 <legend>Edit Category</legend> 13 <?php 14 echo $form->labelTag( 'Catglossary/title', 'Title:' ); 15 echo $html->input('Catglossary/title', array("size" => 30, "maxlength" => 90)); 16 echo $html->tagErrorMsg('Catglossary/title', 'A FAQ title is required.'); 17 18 echo $form->labelTag('Catglossary/description', 'Description:' ); 19 echo $html->textarea('Catglossary/description', array("cols" => 40, "row" => 20)); 20 echo $html->tagErrorMsg('Catglossary/description', 'A category description is required.'); 11 <?php 12 echo $form->input('Catglossary.title', array("size" => 30, "maxlength" => 90)); 13 14 echo $form->label('Catglossary.description', 'Description:' ); 15 echo $form->textarea('Catglossary.description', array("cols" => 40, "row" => 20)); 21 16 ?> 22 <br /><br /> 23 <div style="clear:both"></div> 24 <?php echo $form->labelTag( 'Catglossary/status', 'Activate Category Glossary:' );?><br /> 25 <?php echo $html->checkbox('Catglossary/status'); ?><br /> 26 <br /><br /> 27 <div style="clear:both"></div> 28 <br /> 29 <?php echo $html->submit('Save') ?> 30 </fieldset> 31 </form> 17 18 <?php echo $form->label( 'Catglossary.status', 'Enabled:' );?><br /> 19 <?php echo $form->checkbox('Catglossary.status', array('status'=>1)); ?><br /> 20 21 <br /></fieldset> 22 <?php echo $form->end('Save'); ?>
