Changeset 2216 for trunk/admin.php


Ignore:
Timestamp:
Feb 27, 2008, 3:31:51 AM (17 years ago)
Author:
rvelices
Message:
  • first smarty use ... (in admin.php and admin plugins page)
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        77upgrade65.log
        88fstats
         9_data
  • trunk/admin.php

    r2144 r2216  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
     5// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    77// | file          : $Id$
     
    7878$template->set_filenames(array('admin' => 'admin.tpl'));
    7979
    80 $template->assign_vars(
     80$template->assign(
    8181  array(
    8282    'U_SITE_MANAGER'=> $link_start.'site_manager',
     
    103103    'U_RETURN'=> make_index_url(),
    104104    'U_ADMIN'=> PHPWG_ROOT_PATH.'admin.php',
     105    'TAG_INPUT_ENABLED' =>
     106      ((is_adviser()) ? 'disabled="disabled" onclick="return false;"' : ''),
    105107    )
    106108  );
    107109if ($conf['ws_access_control']) // Do we need to display ws_checker
    108110{
    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' );
    115112}
    116113
     
    131128  );
    132129
    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);
    137131
    138132include(PHPWG_ROOT_PATH.'admin/'.$page['page'].'.php');
     
    146140if (count($page['errors']) != 0)
    147141{
    148   foreach ($page['errors'] as $error)
    149   {
    150     $template->assign_block_vars('errors.error',array('ERROR'=>$error));
    151   }
     142  $template->assign('errors', $page['errors']);
    152143}
    153144
    154145if (count($page['infos']) != 0)
    155146{
    156   foreach ($page['infos'] as $info)
    157   {
    158     $template->assign_block_vars('infos.info',array('INFO'=>$info));
    159   }
     147  $template->assign('infos', $page['infos']);
    160148}
    161149
    162150include(PHPWG_ROOT_PATH.'include/page_header.php');
    163 $template->parse('admin');
     151$template->pparse('admin');
    164152
    165153// +-----------------------------------------------------------------------+
Note: See TracChangeset for help on using the changeset viewer.