Ignore:
Timestamp:
Apr 3, 2010, 11:39:13 PM (14 years ago)
Author:
Eric
Message:

[nbc_HistoryIPExcluder]

  • Piwigo 2.1 compliance
  • Multiple database support
  • Improving the display of plugin's name
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/nbc_HistoryIPExcluder/trunk/admin/HIPE_admin.php

    r5162 r5615  
    44
    55load_language('plugin.lang', HIPE_PATH);
     6
     7// +-----------------------------------------------------------------------+
     8// |                      Getting plugin version                           |
     9// +-----------------------------------------------------------------------+
     10$plugin =  HIPE_infos(HIPE_PATH);
     11$version = $plugin['version'];
     12$name = $plugin['name'];
    613
    714
     
    7683  $subresult = pwg_query($query);
    7784
    78   while ($subrow = mysql_fetch_array($subresult))
     85  while ($subrow = pwg_db_fetch_assoc($subresult))
    7986  {
    8087    $template->assign(
     
    116123  $subresult = pwg_query($query);
    117124
    118   while ($subrow = mysql_fetch_array($subresult))
     125  while ($subrow = pwg_db_fetch_assoc($subresult))
    119126  {
    120127    $template->assign(
     
    149156  $subresult = pwg_query($query);
    150157
    151   while ($subrow = mysql_fetch_array($subresult))
     158  while ($subrow = pwg_db_fetch_assoc($subresult))
    152159  {
    153160    $template->assign(
     
    182189  $subresult = pwg_query($query);
    183190
    184   while ($subrow = mysql_fetch_array($subresult))
     191  while ($subrow = pwg_db_fetch_assoc($subresult))
    185192  {
    186193    $template->assign(
     
    201208$template->assign(
    202209  array(
    203     'HIPE_F_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=plugin&section=HistoryIPExcluder%2Fadmin%2FHIPE_admin.php',
     210    'HIPE_VERSION' => $version,
     211    'HIPE_NAME'    => $name,
     212    'HIPE_PATH'    => HIPE_PATH,
    204213    'IPs_EXCLUDED' => implode("\n", $conf_HIPE),
    205214  )
Note: See TracChangeset for help on using the changeset viewer.