Revision 1529
Added by Luisehahne almost 14 years ago
| users.php | ||
|---|---|---|
| 3 | 3 |
* |
| 4 | 4 |
* @category admin |
| 5 | 5 |
* @package users |
| 6 |
* @author WebsiteBaker Project |
|
| 7 |
* @copyright 2004-2009, Ryan Djurovich |
|
| 6 |
* @author Ryan Djurovich, WebsiteBaker Project |
|
| 8 | 7 |
* @copyright 2009-2011, Website Baker Org. e.V. |
| 9 | 8 |
* @link http://www.websitebaker2.org/ |
| 10 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
| ... | ... | |
| 43 | 42 |
$results = $database->query("SELECT * FROM `".TABLE_PREFIX."users` WHERE `user_id` = '".$user_id."'");
|
| 44 | 43 |
$user = $results->fetchRow(); |
| 45 | 44 |
|
| 46 |
// Setup template object |
|
| 47 |
$template = new Template(THEME_PATH.'/templates'); |
|
| 45 |
// Setup template object, parse vars to it, then parse it |
|
| 46 |
$ThemePath = realpath(WB_PATH.$admin->correct_theme_source('users_form.htt'));
|
|
| 47 |
// Create new template object |
|
| 48 |
$template = new Template($ThemePath); |
|
| 49 |
// $template->debug = true; |
|
| 48 | 50 |
$template->set_file('page', 'users_form.htt');
|
| 49 | 51 |
$template->set_block('page', 'main_block', 'main');
|
| 50 | 52 |
$template->set_var( array( |
Also available in: Unified diff
add new backend theme handling (Tks to Stefek)