Vergleich inc/class_graph.php - 1.8.12 - 1.8.30

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 88Zeile 88
		// Setup initial graph layout

// Check for GD >= 2, create base image

		// Setup initial graph layout

// Check for GD >= 2, create base image

		if(gd_version() >= 2)


		$gd_version = gd_version();
if($gd_version >= 2)

		{
$this->im = imagecreatetruecolor($this->img_width, $this->img_height);
}

		{
$this->im = imagecreatetruecolor($this->img_width, $this->img_height);
}

		else

		elseif (!empty($gd_version))

		{
$this->im = imagecreate($this->img_width, $this->img_height);
}

		{
$this->im = imagecreate($this->img_width, $this->img_height);
}

Zeile 100Zeile 101
		// No GD support, die.
if(!$this->im)
{

		// No GD support, die.
if(!$this->im)
{

			return;

			throw new Exception('No GD support');

		}

if(function_exists("imageantialias"))

		}

if(function_exists("imageantialias"))

Zeile 122Zeile 123
			$y_value = $this->inside_y+(($this->inside_height/4)*$i);
imageline($this->im, $this->inside_x, $y_value, $inside_end_x, $y_value, $this->color(185, 185, 185));
}

			$y_value = $this->inside_y+(($this->inside_height/4)*$i);
imageline($this->im, $this->inside_x, $y_value, $inside_end_x, $y_value, $this->color(185, 185, 185));
}

 
	}

/**
* Check if GD support is enabled and this class can be used.
*
* @return bool True if the class can be used.
*/
public static function can_use()
{
$gd_version = gd_version();

return !empty($gd_version);

	}

/**

	}

/**