Changeset 255
- Timestamp:
- 04/10/08 00:09:09 (9 months ago)
- Files:
-
- trunk/Framework/Module/Home.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Framework/Module/Home.php
r228 r255 6 6 * Framework_Module_Home 7 7 * 8 * @author Bill Shupp <hostmaster@shupp.org> 9 * @copyright Bill Shupp <hostmaster@shupp.org> 10 * @package ToasterAdmin 11 * @subpackage Module 12 * @filesource 8 * PHP Version 5.1.0+ 9 * 10 * @category Mail 11 * @package ToasterAdmin 12 * @subpackage Module 13 * @author Bill Shupp <hostmaster@shupp.org> 14 * @copyright 2007-2008 Bill Shupp <hostmaster@shupp.org> 15 * @license GPL 2.0 {@link http://www.gnu.org/licenses/gpl.txt} 16 * @link http://trac.merchbox.com/trac/toasteradmin 13 17 */ 14 18 … … 16 20 * Framework_Module_Home 17 21 * 18 * @author Bill Shupp <hostmaster@shupp.org> 19 * @package ToasterAdmin 20 * @subpackage Module 22 * Simple redirect home class based on privileges 23 * 24 * @category Mail 25 * @package ToasterAdmin 26 * @subpackage Module 27 * @author Bill Shupp <hostmaster@shupp.org> 28 * @copyright 2007-2008 Bill Shupp <hostmaster@shupp.org> 29 * @license GPL 2.0 {@link http://www.gnu.org/licenses/gpl.txt} 30 * @link http://trac.merchbox.com/trac/toasteradmin 21 31 */ 22 32 class Framework_Module_Home extends ToasterAdmin_Common … … 37 47 $domain = $this->session->domain; 38 48 if ($this->user->isDomainAdmin($domain)) { 39 header("Location: ./?module=Domains&class=Menu&domain=" . urlencode($domain)); 49 header("Location: ./?module=Domains&class=Menu&domain=" 50 . urlencode($domain)); 40 51 return; 41 52 } else { 42 header("Location: ./?module=Accounts&class=Modify&domain=" . urlencode($domain) . '&account=' . urlencode($this->session->user) . '&event=modifyAccount'); 53 header("Location: ./?module=Accounts&class=Modify&domain=" 54 . urlencode($domain) . '&account=' . urlencode($this->session->user) 55 . '&event=modifyAccount'); 43 56 return; 44 57 }
