php8 related changes
This commit is contained in:
parent
3d9d8e1f72
commit
d53346d724
|
|
@ -6,7 +6,7 @@
|
||||||
* @param string $className
|
* @param string $className
|
||||||
* @return null
|
* @return null
|
||||||
*/
|
*/
|
||||||
function __autoload($className)
|
function __autoload_trackdirect($className)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (file_exists(ROOT . '/includes/' . strtolower($className) . '.class.php')) {
|
if (file_exists(ROOT . '/includes/' . strtolower($className) . '.class.php')) {
|
||||||
|
|
@ -22,3 +22,4 @@ function __autoload($className)
|
||||||
error_log(sprintf('Could not find class %s', $className));
|
error_log(sprintf('Could not find class %s', $className));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
spl_autoload_register('__autoload_trackdirect');
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ if (!defined('ROOT')) {
|
||||||
date_default_timezone_set("UTC");
|
date_default_timezone_set("UTC");
|
||||||
|
|
||||||
ini_set("error_reporting", "true");
|
ini_set("error_reporting", "true");
|
||||||
error_reporting(E_ALL|E_STRCT);
|
error_reporting(E_ALL|E_STRICT);
|
||||||
|
|
||||||
ini_set("display_errors", "false");
|
ini_set("display_errors", "false");
|
||||||
}
|
}
|
||||||
|
|
@ -11,9 +11,17 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
class gd_gradient_alpha {
|
class gd_gradient_alpha {
|
||||||
|
public $image;
|
||||||
|
public $width;
|
||||||
|
public $height;
|
||||||
|
public $direction;
|
||||||
|
public $alphastart;
|
||||||
|
public $alphaend;
|
||||||
|
public $step;
|
||||||
|
public $color;
|
||||||
|
|
||||||
// Constructor. Creates, fills and returns an image
|
// Constructor. Creates, fills and returns an image
|
||||||
function gd_gradient_alpha($w,$h,$d,$rgb,$as,$ae,$step=0) {
|
function __construct($w,$h,$d,$rgb,$as,$ae,$step=0) {
|
||||||
$this->width = $w;
|
$this->width = $w;
|
||||||
$this->height = $h;
|
$this->height = $h;
|
||||||
$this->direction = $d;
|
$this->direction = $d;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue