Location: PHPKode > projects > WeatherOffice > weatherOffice-1.0/jpgraphSetup.php
<?php
////////////////////////////////////////////////////
//
// WeatherOffice
//
// http://www.sourceforge.net/projects/weatheroffice
//
// Copyright (C) 04/2007 Mathias Zuckermann &
//			 Bernhard Heibler
//
// See COPYING for license info
//
////////////////////////////////////////////////////

function phpnum()
{
   $version = explode('.',phpversion());
   return (int) $version[0];
}

if(phpnum() == 5)
  $jpgraphPath="./jpgraph_php5";
else
  $jpgraphPath="./jpgraph_php4";
        
$oldIncludePath=get_cfg_var('include_path');
$newIncludePath=$jpgraphPath . PATH_SEPARATOR . $oldIncludePath;
ini_set('include_path',$newIncludePath);

include("jpgraph.php");
include("jpgraph_line.php");
include("jpgraph_date.php");
include("jpgraph_polar.php");
include ("weatherInclude.php");

?>
Return current item: WeatherOffice