Changeset 5499


Ignore:
Timestamp:
03/31/10 16:28:46 (10 years ago)
Author:
repie38
Message:

Test for get_file_contents() existence

File:
1 edited

Legend:

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

    r5486 r5499  
    22/* 
    33Plugin Name: Random Header 
    4 Version: 2.0.d 
     4Version: 2.0.e 
    55Description: Random Header allow you to show in the header a random picture from the choosen categorie, as a normal image, or as a background 
    66Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=188 
     
    1010 
    1111if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 
    12 DEFINE('RH_VERSION','v2.0.d'); 
     12DEFINE('RH_VERSION','v2.0.e'); 
    1313define('RH_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); 
    1414 
    15 function get_file_contents($url, $totalTries = 5) 
     15if (! function_exists('get_file_contents')) { 
     16  function get_file_contents($url, $totalTries = 5) 
    1617         { 
    1718                $Tries = 0; 
     
    2526                 return $contents; 
    2627         } 
     28} 
    2729 
    2830class RandomHeader 
Note: See TracChangeset for help on using the changeset viewer.