5 Commits

Author SHA1 Message Date
Gitea Actions
5213bd4e6e Update manifest version to 2.0.4 [▶️] 2026-01-21 23:55:09 +00:00
8ab3f57894 update debug
All checks were successful
Build, Push, Publish / Build & Release (push) Successful in 27s
2026-01-21 20:54:54 -03:00
Gitea Actions
1431c72909 Update manifest version to 2.0.3 [▶️] 2026-01-21 23:52:06 +00:00
9f3e1b7017 update debug
All checks were successful
Build, Push, Publish / Build & Release (push) Successful in 27s
2026-01-21 20:51:50 -03:00
de13c42a13 fix dbug 2026-01-21 20:51:42 -03:00
2 changed files with 36 additions and 35 deletions

View File

@@ -1,5 +1,5 @@
{ {
"version": "2.0.2", "version": "2.0.4",
"author": "Ivan Carlos", "author": "Ivan Carlos",
"upstream_sha": "" "upstream_sha": ""
} }

View File

@@ -527,8 +527,8 @@ function icc_upload_and_shorten_do_page()
<p> <p>
<label><strong>Diagnostics:</strong></label><br /> <label><strong>Diagnostics:</strong></label><br />
<a href="javascript:void(0);" onclick="document.getElementById('icc_cleanup_form').submit();" class="button">Run Cleanup & Diagnostics Now</a> <a href="javascript:void(0);" onclick="document.getElementById(\'icc_cleanup_form\').submit();" class="button">Run Cleanup & Diagnostics Now</a>
<small> (Checks for 'icc_temp_' folders older than 24 hours and attempts to delete them)</small> <small> (Checks for \'icc_temp_\' folders older than 24 hours and attempts to delete them)</small>
</p> </p>
<p><input type="submit" value="Save Configuration" class="button-primary" /></p> <p><input type="submit" value="Save Configuration" class="button-primary" /></p>
@@ -673,9 +673,11 @@ function icc_upload_and_shorten_local_file_manager($dir, $url)
} }
} }
// Recursive directory removal }
function icc_rrmdir($dir)
{ // Recursive directory removal
function icc_rrmdir($dir)
{
if (is_dir($dir)) { if (is_dir($dir)) {
$objects = scandir($dir); $objects = scandir($dir);
foreach ($objects as $object) { foreach ($objects as $object) {
@@ -688,11 +690,11 @@ function icc_upload_and_shorten_local_file_manager($dir, $url)
} }
rmdir($dir); rmdir($dir);
} }
} }
// Cleanup Temp Folders // Cleanup Temp Folders
function icc_upload_and_shorten_cleanup_temp() function icc_upload_and_shorten_cleanup_temp()
{ {
$temp_dir = yourls_get_option('icc_upload_share_dir'); $temp_dir = yourls_get_option('icc_upload_share_dir');
if (!$temp_dir) if (!$temp_dir)
$temp_dir = sys_get_temp_dir(); $temp_dir = sys_get_temp_dir();
@@ -714,7 +716,6 @@ function icc_upload_and_shorten_local_file_manager($dir, $url)
} }
} }
} }
}
} }
// Check for AWS SDK // Check for AWS SDK