X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=encode.php;h=9aa09a68c661e5d21c20bd434db9efbb473d5b20;hb=423f31ad0add74bbb6066d3c9f760ad0a5580cda;hp=273d0264682593ad05ac949e7e84fd329c377630;hpb=f22b600c925131bb767db73d77dc595f18a1406a;p=wfpl.git diff --git a/encode.php b/encode.php index 273d026..9aa09a6 100644 --- a/encode.php +++ b/encode.php @@ -342,4 +342,31 @@ function enc_evenodd($values, $name) { } } -?> +function enc_image_src($str) { + list($src, $width, $height, $a, $b, $c) = explode(' ', $str); + return $src; +} + +function enc_image_width($str) { + list($src, $width, $height, $a, $b, $c) = explode(' ', $str); + return $width; +} + +function enc_image_height($str) { + list($src, $width, $height, $a, $b, $c) = explode(' ', $str); + return $height; +} + +function enc_thumb_src($str) { + list($a, $b, $c, $src, $width, $height) = explode(' ', $str); + return $src; +} + +function enc_thumb_width($str) { + list($a, $b, $c, $src, $width, $height) = explode(' ', $str); + return $width; +} +function enc_thumb_height($str) { + list($a, $b, $c, $src, $width, $height) = explode(' ', $str); + return $height; +}