image.php

来自「a short sketch about linux syntex lines.」· PHP 代码 · 共 16 行

PHP
16
字号
<?php
/*
*/
class Image{
	private static $image;
	public static function reSize($filename, $width, $height){
		if (is_resource(self::$image)===false){
			$config = $GLOBALS['config'];
			self::$image = new Easy_Image();
			self::$image->dir = ROOT;
			self::$image->basedir = $config['basedir'];
			self::$image->imageresize = $config['iamgeresize'];
		return self::$image->reSize($filename, $width, $height);
		}
	}
}?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?