国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
852B

  1. <?php
  2. /**
  3. * 图集测试
  4. *
  5. * @version $Id: album_testhtml.php 1 8:26 2010年7月12日Z tianya $
  6. * @package DedeCMS.Administrator
  7. * @copyright Copyright (c) 2007 - 2018, DesDev, Inc.
  8. * @copyright Copyright (c) 2020, DedeBIZ.COM
  9. * @license https://www.dedebiz.com/license/v6
  10. * @link https://www.dedebiz.com
  11. */
  12. require_once(dirname(__FILE__)."/config.php");
  13. AjaxHead();
  14. $myhtml = UnicodeUrl2Gbk(stripslashes($myhtml));
  15. echo "<div class='coolbg61'>[<a href='#' onclick='javascript:HideObj(\"_myhtml\")'>关闭</a>]</div>\r\n";
  16. preg_match_all("/(src|SRC)=[\"|'| ]{0,}(http:\/\/(.*)\.(gif|jpg|jpeg|png))/isU", $myhtml, $img_array);
  17. $img_array = array_unique($img_array[2]);
  18. echo "<div class='coolbg62'><xmp>";
  19. echo "捕获的图片:\r\n";
  20. print_r($img_array);
  21. echo "</xmp></div>\r\n";