$images = array(
array(@#images/icon-page.gif@#,@#R0lGODlhEAAQAKIEAP///wAAAH9/f8jIyP///wAAAAAAAAAAACH5BAEAAAQALAAAAAAQABAAAAM9SBSh/jCAIKqtbTEwueeZ9Imjwohk6UjsiT7bpzoC2IJQLXsZbZ+4h243ye0sPcXQMygaZYPkynWCWK+OBAA7@#),
array(@#images/tree_I.gif@#,@#R0lGODlhEwAUALMAAHt7e/8A@#.str_repeat(@#/@#,57).@#yH5BAEAAAEALAAAAAATABQAAAQfMMhJq7Xg6s1n7mD4haQ2lqiXrtLJku4LxjJH1yYXAQA7@#),
array(@#images/tree_L.gif@#,@#R0lGODlhEwAUAPcAAAAAAHt7e4SEhP8A@#.str_repeat(@#/@#,1009).@#yH5BAEAAAMALAAAAAATABQAAAgvAAcIHEiwoEGDAQ4qXMhwYMKGECM+jEhR4cSKGB0OSMhxo8eMIEOKHEmypMmTAQEAOw==@#),
array(@#images/tree_T.gif@#,@#R0lGODlhEwAUAPcAAHt7e/8A@#.str_repeat(@#/@#,1017).@#yH5BAEAAAEALAAAAAATABQAAAg2AAMIHEiwoEGDAA4qXMhwYMKGECM+jEhR4cSKGB0GSMhxo8eMCy+CrChypESTGUuiZKhyYEAAADs=@#),
array(@#images/OpenFolder.gif@#,@#R0lGODlhEgASAJEAAP///29vbwAAAP///yH5BAUUAAMALAAAAAASABIAAAIunI+py+0mopxiCYBzrupqzSUeNgIhUqYWOZHB8B4puG50991ivlkU9QgKh8RHAQA7@#),
array(@#images/OpenFolder_L.gif@#,@#R0lGODlhEgASAPcAAAAAAP///21tbQ@#.str_repeat(@#A@#,1011).@#CH5BAEAAAMALAAAAAASABIAAAhPAAcIHChQAMGDCBMqPGhwocB/ECNK/JfwX4CLGDFSRGgxY8aNBzteFBkAJEGSKCuOlDjSYMOHHz+q1CiTo8eaIW9qrDhxosOfQIMKHTogIAA7@#),
array(@#images/OpenFolder_T.gif@#,@#R0lGODlhEgASAJEAAAAAAP///21tbf///yH5BAEAAAMALAAAAAASABIAAAIynG+Cy+2rngG0WtBA2JxjpnXdt4SbGZAIymandSrRNI6uZ4NiXu5edrlIEsNicWYcFgAAOw==@#),
array(@#images/CloseFolder.gif@#,@#R0lGODlhEgASAJEAAP///29vbwAAAP///yH5BAUUAAMALAAAAAASABIAAAIvnI+py+0mopxiCYBzrupqzSXeh4XISJqHR5XB8K7kZs1lbauQDegDBXwIh8TiowAAOw==@#),
array(@#images/CloseFolder_L.gif@#,@#R0lGODlhEgASAJEAAP///29vbwAAAP///yH5BAUUAAMALAAAAAASABIAAAIwnG+By+2rnhG0WtEE2JxjpnXdt4TiRiLmmR7hhSrRdHpZjd54S+/ZdZEIh8SicVAAADs=@#),
array(@#images/CloseFolder_T.gif@#,@#R0lGODlhEgASAJEAAP///29vbwAAAP///yH5BAUUAAMALAAAAAASABIAAAIxnG+By+2rnhG0WtEE2JxjpnXdt4TiRiLmmR7hhSrRdHpZjd54S+/ZdZEkhETirCgsAAA7@#),
array(@#images/FolderClose.gif@#,@#R0lGODdhEAAQAPf/AAAAAMa6Mf//Mf+qIf/zKf/vKf/rKf/nKf/jKf/fKf/bKf/XIf/TIf/PIf/LIf/HIf///w@#.str_repeat(@#A@#,955).@#CH5BAEAABAALAAAAAAQABAABwh5ACEIHEiwoMGDBwMoVAgAIYQAAiJGDNDQ4MKLGAMMEBiAAIECBgwcOIAgQQIFCwY07AhSJEmTKFOubDmy5MkFCxiofBiyJkycDBrsDODSZsygQlf6vJmzQQMHQ18yRergwVCjQJ1WtbpygNevYL9WBEC2rFmzDg8GBAA7@#),
array(@#images/FolderOpen.gif@#,@#R0lGODdhEAAQAPf/AAAAAMa6Mf/3Kf+qIf/zKf/vKf/rKf/nKf/jKf/fKf/bKf/XKf/TIf/PIf/LIf/HIf///w@#.str_repeat(@#A@#,955).@#CH5BAEAABAALAAAAAAQABAABwh4ACEIHEiwoMGDBwMoVIhQYAABECEGQPgwYsSFCx1a3HgRAISKHC0GAICxJEYBIwcQIFDAwIEDCBIoWDBSIQCVLV/GnMmg5kgIA1zClLmAQQMHA256HKCTqFEHD1J6BLqz6NEHUZNOHcC1q1euAKZCCEu2bNmGBwMCADs=@#)
);
if(! isset($_GET[@#id@#])) {
echo "<table border>";
foreach($images as $k=>$v)
echo "<tr><td>$v[0]</td><td><img src=@#?id=$k@#></td></tr>";
echo "</td></tr></table>";
}else {
echo base64_decode($images[$_GET][@#id@#]][1]);
}
if(0) // 1 写入文件,请保证目录存在且可写
foreach($images as $v) {
$fp = fopen($v[0],"wb");
fwrite($fp,base64_decode($v[1]));
fclose($fp);
}
?>
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/