Changeset 2806
- Timestamp:
- 11/13/08 18:51:49 (8 weeks ago)
- Location:
- trunk/htdocs
- Files:
-
- 2 modified
-
index.php (modified) (1 diff)
-
system/classes/adminhandler.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htdocs/index.php
r2764 r2806 192 192 header( 'Content-Type: text/html;charset=utf-8' ); 193 193 194 // setup some initial stacks195 AdminHandler::setup_stacks();196 197 194 /** 198 195 * Include all the active plugins. -
trunk/htdocs/system/classes/adminhandler.php
r2801 r2806 60 60 // Create an instance of the active public theme so that its plugin functions are implemented 61 61 $this->active_theme = Themes::create(); 62 63 // setup the stacks for javascript in the admin - it's a method so a plugin can call it externally 64 self::setup_stacks(); 62 65 } 63 66 … … 71 74 $theme_dir = Plugins::filter( 'admin_theme_dir', Site::get_dir( 'admin_theme', TRUE ) ); 72 75 $this->theme = Themes::create( 'admin', 'RawPHPEngine', $theme_dir ); 73 74 // Add some default js 75 $this->setup_stacks(); 76 76 77 // Add some default stylesheets 77 78 Stack::add('admin_stylesheet', array(Site::get_url('admin_theme') . '/css/admin.css', 'screen'), 'admin'); 78 79 79 // Add some default template variables80 // Add some default template variables 80 81 $this->set_admin_template_vars( $this->theme ); 81 82 $this->theme->admin_type = $type; … … 676 677 { 677 678 extract( $this->handler_vars ); 678 679 679 680 $wsse = Utils::WSSE( $nonce, $timestamp ); 680 681 if ( $PasswordDigest != $wsse['digest'] ) { 681 682 Utils::redirect( URL::get( 'admin', 'page=users' ) ); 682 683 } 683 684 684 685 // Keep track of whether we actually need to update any fields 685 686 $update = FALSE; 686 687 $results = array( 'page' => 'user' ); 687 688 $currentuser = User::identify(); 688 689 689 690 $fields = array( 'user_id' => 'id', 'delete' => NULL, 'username' => 'username', 'displayname' => 'displayname', 'email' => 'email', 'imageurl' => 'imageurl', 'pass1' => NULL, 'locale_tz' => 'locale_tz', 'locale_date_format' => 'locale_date_format', 'locale_time_format' => 'locale_time_format' ); 690 691 $fields = Plugins::filter( 'adminhandler_post_user_fields', $fields ); … … 2328 2329 { 2329 2330 $this->theme->wsse = Utils::WSSE(); /* @TODO: What the heck is this doing here? */ 2330 2331 2331 2332 $this->theme->tags = Tags::get(); 2332 2333 $this->theme->max = Tags::max_count(); 2333 2334 2334 2335 $this->display( 'tags' ); 2335 2336 } … … 2577 2578 return false; 2578 2579 } 2579 2580 2580 2581 /** 2581 2582 * Setup the default admin javascript stack here so that it can be called
