Changeset 268

Show
Ignore:
Timestamp:
04/11/08 00:26:47 (9 months ago)
Author:
shupp
Message:

CS fixes for Main_IPMaps

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Framework/Module/Main/IPMaps.php

    r248 r268  
    44 * Framework_Module_Main_IPMaps  
    55 *  
    6  * @uses      ToasterAdmin_Auth_System 
    7  * @package   ToasterAdmin 
    8  * @author    Bill Shupp <hostmaster@shupp.org>  
    9  * @copyright 2007 Bill Shupp 
    10  * @license   GPL 2.0  {@link http://www.gnu.org/licenses/gpl.txt} 
    11  * @link      http://trac.merchbox.com/trac/toasteradmin 
     6 * PHP Version 5.1.0+ 
     7 *  
     8 * @uses       ToasterAdmin_Auth_System 
     9 * @category   Mail 
     10 * @package    ToasterAdmin 
     11 * @subpackage Module 
     12 * @author     Bill Shupp <hostmaster@shupp.org>  
     13 * @copyright  2007-2008 Bill Shupp 
     14 * @license    GPL 2.0  {@link http://www.gnu.org/licenses/gpl.txt} 
     15 * @link       http://trac.merchbox.com/trac/toasteradmin 
    1216 */ 
    1317 
     
    1721 * Modify IP Maps 
    1822 *  
    19  * @uses      ToasterAdmin_Auth_System 
    20  * @package   ToasterAdmin 
    21  * @author    Bill Shupp <hostmaster@shupp.org>  
    22  * @copyright 2007 Bill Shupp 
    23  * @license   GPL 2.0  {@link http://www.gnu.org/licenses/gpl.txt} 
    24  * @link      http://trac.merchbox.com/trac/toasteradmin 
     23 * @uses       ToasterAdmin_Auth_System 
     24 * @category   Mail 
     25 * @package    ToasterAdmin 
     26 * @subpackage Module 
     27 * @author     Bill Shupp <hostmaster@shupp.org>  
     28 * @copyright  2007-2008 Bill Shupp 
     29 * @license    GPL 2.0  {@link http://www.gnu.org/licenses/gpl.txt} 
     30 * @link       http://trac.merchbox.com/trac/toasteradmin 
    2531 */ 
    2632class Framework_Module_Main_IPMaps extends ToasterAdmin_Auth_System 
     
    5056    { 
    5157        $rawList = $this->user->showIPMap(); 
    52         $count = 0; 
    53         $maps  = array(); 
     58        $count   = 0; 
     59        $maps    = array(); 
    5460        foreach ($rawList as $ip => $domains) { 
    55             $maps[$count]['ip'] = $ip; 
     61            $maps[$count]['ip']      = $ip; 
    5662            $maps[$count]['domains'] = explode(", ", $domains); 
    5763            $count++; 
     
    8894     * @return void 
    8995     */ 
    90     public function deleteNow() { 
     96    public function deleteNow() 
     97    { 
    9198        if (empty($_REQUEST['domain']) || empty($_REQUEST['ip'])) { 
    9299            throw new Framework_Exception(_("Error: missing domain or ip")); 
     
    131138        } 
    132139        try { 
    133             $this->user->addIPMap($form->getElementValue('ip'), $form->getElementValue('domain')); 
     140            $this->user->addIPMap($form->getElementValue('ip'), 
     141                $form->getElementValue('domain')); 
    134142        } catch (Net_Vpopmaild_Exception $e) { 
    135143            $this->setData('message', _('Error adding IP Map')); 
     
    166174    } 
    167175 
     176    /** 
     177     * _renderForm  
     178     *  
     179     * Render form for display 
     180     *  
     181     * @param object $form HTML_QuickForm object 
     182     *  
     183     * @access private 
     184     * @return void 
     185     */ 
    168186    private function _renderForm($form) 
    169187    {