相關圖片_PHP

來源:互聯網
上載者:User
關鍵字 圖片 相關 array .str_repeat images
$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 "


"; foreach($images as $k=>$v) echo " "; echo "
$v[0]
";
}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);
}
?>
  • 相關文章

    聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.