Addressed Copilot issues
这个提交包含在:
父节点
97e2115128
当前提交
5fe24614e1
共有 1 个文件被更改,包括 9 次插入 和 3 次删除
|
|
@ -121,17 +121,20 @@
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magnific-popup.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magnific-popup.min.js"></script>
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/magnific-popup.min.css" />
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/magnific-popup.min.css" />
|
||||||
<script> $(document).ready(function() { $('a').magnificPopup( { type:'image' } ); }); </script>
|
<script> $(document).ready(function() { $('a.photo').magnificPopup( { type:'image' } ); }); </script>
|
||||||
<?php
|
<?php
|
||||||
if (function_exists("imagecreatefromstring")) {
|
if (function_exists("imagecreatefromstring")) {
|
||||||
|
|
||||||
$folder_name = "images/eqsl_card_images";
|
$folder_name = "images/eqsl_card_images";
|
||||||
$desired_width=500;
|
$desired_width=500;
|
||||||
|
$thumb_generations = 100;
|
||||||
if (is_array($qslarray->result())) {
|
if (is_array($qslarray->result())) {
|
||||||
foreach ($qslarray->result() as $qsl) {
|
foreach ($qslarray->result() as $qsl) {
|
||||||
|
if ($thumb_generations >=0) {
|
||||||
$src = $folder_name.'/'.$qsl->image_file;
|
$src = $folder_name.'/'.$qsl->image_file;
|
||||||
$dest = $folder_name.'/_'.$qsl->image_file;
|
$dest = $folder_name.'/_'.$qsl->image_file;
|
||||||
if (file_exists($folder_name.'/_'.$qsl->image_file) == false) {
|
if (!file_exists($folder_name.'/_'.$qsl->image_file)) {
|
||||||
|
$thumb_generations--;
|
||||||
/* read the source image */
|
/* read the source image */
|
||||||
$data = file_get_contents( $src );
|
$data = file_get_contents( $src );
|
||||||
$source_image = imagecreatefromstring( $data );
|
$source_image = imagecreatefromstring( $data );
|
||||||
|
|
@ -154,6 +157,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
echo 'Gallery requires GD libraries to be installed <a href="https://www.php.net/manual/en/image.installation.php">https://www.php.net/manual/en/image.installation.php</a>';
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用