Changeset 2216 for trunk/admin.php
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 7 7 upgrade65.log 8 8 fstats 9 _data
-
- Property svn:ignore
-
trunk/admin.php
r2144 r2216 3 3 // | PhpWebGallery - a PHP based picture gallery | 4 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-200 7PhpWebGallery Team - http://phpwebgallery.net |5 // | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | file : $Id$ … … 78 78 $template->set_filenames(array('admin' => 'admin.tpl')); 79 79 80 $template->assign _vars(80 $template->assign( 81 81 array( 82 82 'U_SITE_MANAGER'=> $link_start.'site_manager', … … 103 103 'U_RETURN'=> make_index_url(), 104 104 'U_ADMIN'=> PHPWG_ROOT_PATH.'admin.php', 105 'TAG_INPUT_ENABLED' => 106 ((is_adviser()) ? 'disabled="disabled" onclick="return false;"' : ''), 105 107 ) 106 108 ); 107 109 if ($conf['ws_access_control']) // Do we need to display ws_checker 108 110 { 109 $template->assign_block_vars( 110 'web_services', 111 array( 112 'U_WS_CHECKER'=> $link_start.'ws_checker', 113 ) 114 ); 111 $template->assign('U_WS_CHECKER', $link_start.'ws_checker' ); 115 112 } 116 113 … … 131 128 ); 132 129 133 foreach ($plugin_menu_links as $menu_item) 134 { 135 $template->assign_block_vars('plugin_menu.menu_item', $menu_item); 136 } 130 $template->assign('plugin_menu_items', $plugin_menu_links); 137 131 138 132 include(PHPWG_ROOT_PATH.'admin/'.$page['page'].'.php'); … … 146 140 if (count($page['errors']) != 0) 147 141 { 148 foreach ($page['errors'] as $error) 149 { 150 $template->assign_block_vars('errors.error',array('ERROR'=>$error)); 151 } 142 $template->assign('errors', $page['errors']); 152 143 } 153 144 154 145 if (count($page['infos']) != 0) 155 146 { 156 foreach ($page['infos'] as $info) 157 { 158 $template->assign_block_vars('infos.info',array('INFO'=>$info)); 159 } 147 $template->assign('infos', $page['infos']); 160 148 } 161 149 162 150 include(PHPWG_ROOT_PATH.'include/page_header.php'); 163 $template->p arse('admin');151 $template->pparse('admin'); 164 152 165 153 // +-----------------------------------------------------------------------+
Note: See TracChangeset
for help on using the changeset viewer.