14 |
@unlink($src); |
@unlink($src); |
15 |
} |
} |
16 |
|
|
17 |
function PicSize($pic) { |
function PicSize($pic, $dir = "") { |
|
global $syspicdir; |
|
18 |
$ret = array(0, 0); |
$ret = array(0, 0); |
19 |
if ($pic) { |
if ($pic) { |
20 |
@$size = GetImageSize($syspicdir."/".$pic); |
if (!$dir) { |
21 |
|
global $syspicdir; |
22 |
|
$dir = $syspicdir; |
23 |
|
} |
24 |
|
@$size = GetImageSize($dir."/".$pic); |
25 |
$ret = array($size[0], $size[1]); |
$ret = array($size[0], $size[1]); |
26 |
} |
} |
27 |
return $ret; |
return $ret; |
28 |
} |
} |
29 |
|
|
30 |
$isEdit = stristr($PHP_SELF, "/edit/") ? true : false; |
$isEdit = stristr($PHP_SELF, "/edit/") ? true : false; |
31 |
$isMed = false; /* */ |
$isMed = stristr($PHP_SELF, "/med/") ? true : false; |
32 |
header("Content-Type: text/html; charset=ISO-8859-2"); |
header("Content-Type: text/html; charset=ISO-8859-2"); |
33 |
?> |
?> |