Changeset 4599 for trunk/modules/users/controller/users.admin.php
- Timestamp:
- 08/27/10 23:01:58 (21 months ago)
- File:
-
- 1 edited
-
trunk/modules/users/controller/users.admin.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/users/controller/users.admin.php
r4506 r4599 22 22 * 23 23 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 24 *25 24 * @author Jens-André Koch <vain@clansuite.com> 26 25 * @copyright Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 27 *28 26 * @link http://www.clansuite.com 29 * @link http://gna.org/projects/clansuite30 27 * 31 28 * @version SVN: $Id: menueditor.module.php 2095 2008-06-11 23:44:20Z vain $ … … 33 30 34 31 //Security Handler 35 if(defined('IN_CS') == false)32 if(defined('IN_CS') === false) 36 33 { 37 34 die('Clansuite not loaded. Direct Access forbidden.'); … … 45 42 * @subpackage Users 46 43 */ 47 class Clansuite_Module_Users_Admin extends Clansuite_Module_Controller implements Clansuite_Module_Interface44 class Clansuite_Module_Users_Admin extends Clansuite_Module_Controller 48 45 { 49 public function initializeModule( Clansuite_HttpRequest $request, Clansuite_HttpResponse $response)46 public function initializeModule() 50 47 { 51 48 parent::initModel('users'); … … 75 72 76 73 // SmartyColumnSort -- Easy sorting of html table columns. 77 include ROOT_LIBRARIES . '/smarty/libs/SmartyColumnSort.class.php' );74 include ROOT_LIBRARIES . '/smarty/libs/SmartyColumnSort.class.php'; 78 75 // A list of database columns to use in the table. 79 76 $columns = array( 'u.user_id', 'u.nick', 'u.email', 'u.timestamp', 'u.joined'); … … 199 196 $this->redirect( 'index.php?mod=users&sub=admin&action=show_all', 3, _( 'The selected user(s) were deleted.' )); 200 197 } 201 198 202 199 /** 203 200 * Action for displaying the Settings of a Module Users … … 207 204 # Set Pagetitle and Breadcrumbs 208 205 Clansuite_Breadcrumb::add( _('Settings'), '/index.php?mod=users&sub=admin&action=settings'); 209 206 210 207 $settings = array(); 211 208 212 209 $settings['form'] = array( 'name' => 'users_settings', 213 210 'method' => 'POST', 214 211 'action' => WWW_ROOT.'/index.php?mod=users&sub=admin&action=settings_update'); 215 212 216 213 $settings['users'][] = array( 'id' => 'items_lastregisteredusers', 217 214 'name' => 'items_lastregisteredusers', … … 220 217 'formfieldtype' => 'text', 221 218 'value' => $this->getConfigValue('items_lastregisteredusers', '4')); 222 219 223 220 include ROOT_CORE . '/viewhelper/formgenerator.core.php'; 224 221 $form = new Clansuite_Array_Formgenerator($settings); 225 222 226 223 $form->addElement('submitbutton')->setName('Save'); 227 224 $form->addElement('resetbutton'); 228 225 229 226 # assign the html of the form to the view 230 227 $this->getView()->assign('form', $form->render()); 231 228 232 $this->display(); 233 } 234 229 $this->display(); 230 } 231 235 232 public function action_admin_settings_update() 236 { 233 { 237 234 # Set Pagetitle and Breadcrumbs 238 235 Clansuite_Breadcrumb::add( _('Update'), '/index.php?mod=users&sub=settings&action=update'); … … 242 239 243 240 # Get Configuration from Injector 244 $config = $this-> injector->instantiate('Clansuite_Config');245 241 $config = $this->getInjector()->instantiate('Clansuite_Config'); 242 246 243 # write config 247 244 $config->confighandler->writeConfig( ROOT_MOD . 'users/users.config.php', $data);
Note: See TracChangeset
for help on using the changeset viewer.
