Changeset 9147


Ignore:
Timestamp:
02/10/11 13:48:53 (9 years ago)
Author:
cljosse
Message:

[whois_online] Bug on version.

Location:
extensions/whois_online
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/whois_online/main.inc.php

    r9145 r9147  
    2323/* 
    2424Plugin Name: Whois online 
    25 Version: 2.1.e 
     25Version: 2.2.0 
    2626Description: Who is online? 
    2727Plugin URI: http://piwigo.org/ext/extension_view.php?eid=279 
     
    3737define('WHOIS_ONLINE_PATH' , PHPWG_PLUGINS_PATH . WHOIS_ONLINE_DIR . '/'); 
    3838 
    39   
    40                 $path = WHOIS_ONLINE_PATH; 
    41           $plg_data = implode( '', file($path.'main.inc.php') ); 
    42           if (preg_match("|Version: (.*)|", $plg_data, $val)) 
    43           { 
    44             $Whois_online_ver = trim($val[1]); 
    45           }      
    46        
    47 define('WHOIS_ONLINE_VER', $Whois_online_ver);  
    4839 
    4940include_once(WHOIS_ONLINE_PATH.'online.php'); 
  • extensions/whois_online/online.php

    r6201 r9147  
    33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 
    44global $conf, $conf_whois, $prefixeTable; 
     5                $path = WHOIS_ONLINE_PATH; 
     6          $plg_data = implode( '', file($path.'main.inc.php') ); 
     7           if (preg_match("|Version: (.*)|", $plg_data, $val)) 
     8          { 
     9            $Whois_online_ver = trim($val[1]); 
     10          }      
     11       
     12define('WHOIS_ONLINE_VER', $Whois_online_ver);  
    513include_once(WHOIS_ONLINE_PATH.'include/wo_functions.inc.php'); 
    614 
    715define('ONLINE_LEVEL', (100+$conf_whois['Delete level'])/100); 
    816define('ONLINE_LIMIT', $conf_whois['Obsolete limit']); 
     17 
     18 
     19 
     20  
     21 
    922 
    1023/* Admin menus are always available */ 
Note: See TracChangeset for help on using the changeset viewer.