diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-17 17:40:45 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-17 17:40:45 +0000 |
commit | 130e26983aedac1e4bb9f26d6a82c629248075e8 (patch) | |
tree | db8d5b860a3a81649f8576f1fb16cde1c08725f0 /modules/user/helpers/user_event.php | |
parent | 2abe82f106ecf68d40df5dee40876edd06ff5f60 (diff) |
Add initialization to the user module to put the user and group_ids
into the session, for easy access. This cuts down the number of
queries when we're loading images through file_proxy.php
Diffstat (limited to 'modules/user/helpers/user_event.php')
-rw-r--r-- | modules/user/helpers/user_event.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/user/helpers/user_event.php b/modules/user/helpers/user_event.php new file mode 100644 index 00000000..2d1ce171 --- /dev/null +++ b/modules/user/helpers/user_event.php @@ -0,0 +1,27 @@ +<?php defined("SYSPATH") or die("No direct script access."); +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2008 Bharat Mediratta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ +class user_event_Core { + /** + * Initialization. + */ + public static function gallery_ready() { + user::load_user(); + } +} |