Changeset 405

Show
Ignore:
Timestamp:
04/16/08 04:03:49 (9 months ago)
Author:
aarkerio
Message:

Comment on new

Location:
trunk/app
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/controllers/components/captcha.php

    r401 r405  
    2424    public function render() 
    2525    { 
    26       if ( !vendor('kcaptcha/kcaptcha')) 
     26      if ( ! App::import('Vendor', 'kcaptcha/kcaptcha') ) 
    2727      { 
    2828       die('Problem in captcha component'); 
  • trunk/app/controllers/discussions_controller.php

    r404 r405  
    2020 public $helpers    = array('Ajax', 'Time', 'Gags'); 
    2121     
    22  public $components = array('Captcha'); 
     22  //public $components = array('Captcha'); 
    2323 
    2424 public function beforeFilter()  
    2525 { 
    26     $this->Auth->allow(array('captcha', 'agregar', 'rss')); 
     26    $this->Auth->allow(array('captcha', 'agregar', 'renka')); 
    2727    parent::beforeFilter(); 
    2828 } 
     
    8585   
    8686 /* == PRIVATE == **/ 
    87  private function _sendEmail($user_id, $new_id) 
     87 private function __sendEmail($user_id, $new_id) 
    8888 {   
    8989   $User = new User; 
     
    114114            return false; 
    115115    } 
     116 } 
     117 
     118 public function renka() 
     119 { 
     120   $this->layout = 'portal'; 
     121   //return $this->Captcha->render(); 
    116122 } 
    117123 
  • 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(' / ');  
    65 
    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'); 
    108?> 
    119<fieldset> 
    1210  <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)); 
    2116  ?> 
    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'); ?>