Changeset 3403771
- Timestamp:
- 11/27/2025 05:06:47 AM (2 months ago)
- Location:
- gotmls
- Files:
-
- 4 edited
- 20 copied
-
tags/4.23.85 (copied) (copied from gotmls/trunk)
-
tags/4.23.85/images/GOTMLS-Loading.gif (copied) (copied from gotmls/trunk/images/GOTMLS-Loading.gif)
-
tags/4.23.85/images/index.php (copied) (copied from gotmls/trunk/images/index.php) (5 diffs)
-
tags/4.23.85/index.php (copied) (copied from gotmls/trunk/index.php) (4 diffs)
-
tags/4.23.85/languages/gotmls-de_DE.mo (copied) (copied from gotmls/trunk/languages/gotmls-de_DE.mo)
-
tags/4.23.85/languages/gotmls-de_DE.po (copied) (copied from gotmls/trunk/languages/gotmls-de_DE.po)
-
tags/4.23.85/languages/gotmls-es_AR.mo (copied) (copied from gotmls/trunk/languages/gotmls-es_AR.mo)
-
tags/4.23.85/languages/gotmls-es_AR.po (copied) (copied from gotmls/trunk/languages/gotmls-es_AR.po)
-
tags/4.23.85/languages/gotmls-fr_FR.mo (copied) (copied from gotmls/trunk/languages/gotmls-fr_FR.mo)
-
tags/4.23.85/languages/gotmls-fr_FR.po (copied) (copied from gotmls/trunk/languages/gotmls-fr_FR.po)
-
tags/4.23.85/languages/gotmls-hu_HU.mo (copied) (copied from gotmls/trunk/languages/gotmls-hu_HU.mo)
-
tags/4.23.85/languages/gotmls-hu_HU.po (copied) (copied from gotmls/trunk/languages/gotmls-hu_HU.po)
-
tags/4.23.85/languages/gotmls-tr.mo (copied) (copied from gotmls/trunk/languages/gotmls-tr.mo)
-
tags/4.23.85/languages/gotmls-tr.po (copied) (copied from gotmls/trunk/languages/gotmls-tr.po)
-
tags/4.23.85/readme.txt (copied) (copied from gotmls/trunk/readme.txt) (3 diffs)
-
tags/4.23.85/safe-load/index.php (copied) (copied from gotmls/trunk/safe-load/index.php)
-
tags/4.23.85/safe-load/session.php (copied) (copied from gotmls/trunk/safe-load/session.php)
-
tags/4.23.85/safe-load/trace.php (copied) (copied from gotmls/trunk/safe-load/trace.php) (1 diff)
-
tags/4.23.85/safe-load/wp-login.php (copied) (copied from gotmls/trunk/safe-load/wp-login.php)
-
tags/4.23.85/safe-load/wp-settings.php (copied) (copied from gotmls/trunk/safe-load/wp-settings.php)
-
trunk/images/index.php (modified) (5 diffs)
-
trunk/index.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/safe-load/trace.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gotmls/tags/4.23.85/images/index.php
r3379118 r3403771 3 3 * GOTMLS Plugin Global Variables and Functions 4 4 * @package GOTMLS 5 * @since 4.23.8 35 * @since 4.23.85 6 6 */ 7 7 … … 992 992 if (1 == $time) 993 993 $unit = substr($unit, 0, -1); 994 if ($time) 995 $GLOBALS["GOTMLS"]["scan"]["title"] .= " ran for $time $unit"; 994 if ($time) { 995 $issues = ""; 996 if (isset($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"]) && is_array($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"])) { 997 foreach ($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"] as $clas => $found) { 998 if ($issues) 999 $issues .= " and "; 1000 else 1001 $issues .= " with "; 1002 $issues .= count($found)." $clas"; 1003 } 1004 } 1005 $GLOBALS["GOTMLS"]["scan"]["title"] .= " and finished $issues in $time $unit"; 1006 } 996 1007 } else 997 1008 $GLOBALS["GOTMLS"]["scan"]["title"] .= " was not finished!"; … … 1043 1054 $values["post_author"] = GOTMLS_get_current_user_id(0); 1044 1055 $values["post_modified"] = date("Y-m-d H:i:s", (int) microtime(true)); 1056 $values["post_status"] = 'private'; 1045 1057 if (!(isset($GLOBALS["GOTMLS"]["scan"]["log"]["settings"]) && is_array($GLOBALS["GOTMLS"]["scan"]["log"]["settings"])) && isset($GLOBALS["GOTMLS"]["tmp"]["settings_array"])) 1046 1058 $GLOBALS["GOTMLS"]["scan"]["log"]["settings"] = $GLOBALS["GOTMLS"]["tmp"]["settings_array"]; … … 1055 1067 $values["post_name"] = $GLOBALS["GOTMLS"]["scan"]["key"]; 1056 1068 $scan_log["inserted"] = $wpdb->insert($wpdb->posts, $values); 1069 } 1070 if (isset($GLOBALS["GOTMLS"]["scan"]["log"]["scan"]["finish"]) && is_numeric($GLOBALS["GOTMLS"]["scan"]["log"]["scan"]["finish"]) && GOTMLS_strlen($scanlog_key = preg_replace('/[^0-9a-f]++]i/', "", $GLOBALS["GOTMLS"]["scan"]["key"])) == 32) { 1071 if (isset($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"]) && is_array($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"]) && count($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"]) && ($gotmls_results_ID = $wpdb->get_var($wpdb->prepare("SELECT `ID` FROM `$wpdb->posts` WHERE `post_type` = 'gotmls_results' AND `post_name` = %s", $scanlog_key)))) { 1072 $wpdb->delete($wpdb->postmeta, ["post_id" => $gotmls_results_ID]); 1073 foreach ($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"] as $clas => $found) { 1074 $wpdb->insert($wpdb->postmeta, ["post_id" => $gotmls_results_ID, "meta_key" => $clas, "meta_value" => json_encode($found)]); 1075 } 1076 } 1057 1077 } 1058 1078 } … … 1580 1600 $li_js = "/*-->*"."/"; 1581 1601 $imageF = explode(".", $imageFile."."); 1582 if ($className != "scanned") 1602 if ($className != "scanned") { 1583 1603 $li_js .= "\n$className++;\ndivx=document.getElementById('found_$className');\nif (divx) {\n\tvar newli = document.createElement('li');\n\tnewli.innerHTML='<img src=\"".GOTMLS_strip4java(GOTMLS_images_path.$imageFile).'.gif" height=16 width=16 alt="'.$GOTMLS_image_alt[$imageF[0]].'" style="float: left;" id="'.$imageFile."_$fileName64\">".GOTMLS_strip4java($link, true).$fileNameJS.($link?"</a>';\n\tdivx.display='block":"")."';\n\tdivx.appendChild(newli);\n}"; 1584 elseif ($GLOBALS["GOTMLS"]["scan"]["log"]["settings"]["scan_depth"] == 1) { 1604 if (substr($className, 0, 3) != "dir" && substr($className, 0, 4) != "skip") { 1605 if (!(isset($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"]) && is_array($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"]))) 1606 $GLOBALS["GOTMLS"]["scan"]["log"]["file_results"] = array(); 1607 if (isset($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"]["$className"]) && is_array($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"]["$className"])) 1608 $GLOBALS["GOTMLS"]["scan"]["log"]["file_results"]["$className"][] = "$fileName"; 1609 else 1610 $GLOBALS["GOTMLS"]["scan"]["log"]["file_results"]["$className"] = array("$fileName"); 1611 } 1612 } elseif ($GLOBALS["GOTMLS"]["scan"]["log"]["settings"]["scan_depth"] == 1) { 1585 1613 if (isset($GLOBALS["GOTMLS"]["tmp"]["file_scan"]["errors"]) && is_array($GLOBALS["GOTMLS"]["tmp"]["file_scan"]["errors"]) && count($GLOBALS["GOTMLS"]["tmp"]["file_scan"]["errors"])) 1586 1614 $text = preg_replace('/[\r\n]/', " ", print_r($GLOBALS["GOTMLS"]["tmp"]["file_scan"]["errors"],1)); -
gotmls/tags/4.23.85/index.php
r3379118 r3403771 11 11 License: GPLv3 or later 12 12 License URI: https://www.gnu.org/licenses/gpl-3.0.html#license-text 13 Version: 4.23.8 313 Version: 4.23.85 14 14 Requires PHP: 5.6 15 15 Requires CP: 1.1.1 … … 303 303 $mt = array_pop($option_names); 304 304 if (GOTMLS_strlen($mt) && is_numeric($mt)) { 305 $insert = array("post_name" => md5($mt), "post_content" => json_encode($GOTMLS_scanlog), "post_author" => GOTMLS_get_current_user_id(0), "post_type" => 'gotmls_results', "post_ date_gmt" => date("Y-m-d H:i:s", (int) $mt), "post_parent" => $parent);305 $insert = array("post_name" => md5($mt), "post_content" => json_encode($GOTMLS_scanlog), "post_author" => GOTMLS_get_current_user_id(0), "post_type" => 'gotmls_results', "post_status" => 'private', "post_date_gmt" => date("Y-m-d H:i:s", (int) $mt), "post_parent" => $parent); 306 306 if (isset($GOTMLS_scanlog["scan"]["type"]) && GOTMLS_strlen($GOTMLS_scanlog["scan"]["type"])) 307 307 $insert["post_title"] = GOTMLS_sanitize($GOTMLS_scanlog["scan"]["type"]); … … 344 344 if ($prs && is_array($prs) && count($prs)) { 345 345 $scans = 0; 346 $upDate_status = ""; 346 347 $PreScan = '<ul class="GOTMLS-scanlog GOTMLS-sidebar-links">'."\n<li>"; 347 348 foreach ($prs as $row) { 348 349 $LastScan .= $PreScan.GOTMLS_sanitize($row["post_title"]); 350 if ($row["post_status"] == "publish") 351 $upDate_status = 'private'; 349 352 if ($scans) 350 353 $PreScan = '<a href="'.GOTMLS_script_URI.'&GOTMLS_clear_history='.$row["post_name"].'&'.$GOTMLS_nonce.'">[clear history below this entry]</a></li>'."\n<li>"; … … 353 356 $scans++; 354 357 } 358 if ($upDate_status) 359 $wpdb->update($wpdb->posts, array("post_status" => "$upDate_status"), array("post_type" => 'gotmls_results', "post_status" => 'publish')); 355 360 $LastScan .= '</li></ul>'; 356 361 } else -
gotmls/tags/4.23.85/readme.txt
r3379118 r3403771 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html#license-text 10 Version: 4.23.8 311 Stable tag: 4.23.8 310 Version: 4.23.85 11 Stable tag: 4.23.85 12 12 Requires at least: 3.3 13 13 Tested up to: 6.8.3 … … 100 100 101 101 == Changelog == 102 103 = 4.23.85 = 104 * Fixed the post_status field on custom post type for scan results and added log of all scan errors to the post_meta. 102 105 103 106 = 4.23.83 = … … 516 519 == Upgrade Notice == 517 520 521 = 4.23.85 = 522 Fixed the post_status field on custom post type for scan results and added log of all scan errors to the post_meta. 523 518 524 = 4.23.83 = 519 525 Fixed missing capability check on admin-ajax API, changed URLs for better compatibility with HTTPS and HTTP websites, and checked code for compatibility with WordPress 6.8.3. -
gotmls/tags/4.23.85/safe-load/trace.php
r3379118 r3403771 5 5 */ 6 6 7 define("GOTMLS_Version", '4.23.8 3');7 define("GOTMLS_Version", '4.23.85'); 8 8 define("GOTMLS_SAFELOAD_DIR", dirname(__FILE__)."/"); 9 9 define("GOTMLS_CHMOD_FILE", 0644); -
gotmls/trunk/images/index.php
r3379118 r3403771 3 3 * GOTMLS Plugin Global Variables and Functions 4 4 * @package GOTMLS 5 * @since 4.23.8 35 * @since 4.23.85 6 6 */ 7 7 … … 992 992 if (1 == $time) 993 993 $unit = substr($unit, 0, -1); 994 if ($time) 995 $GLOBALS["GOTMLS"]["scan"]["title"] .= " ran for $time $unit"; 994 if ($time) { 995 $issues = ""; 996 if (isset($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"]) && is_array($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"])) { 997 foreach ($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"] as $clas => $found) { 998 if ($issues) 999 $issues .= " and "; 1000 else 1001 $issues .= " with "; 1002 $issues .= count($found)." $clas"; 1003 } 1004 } 1005 $GLOBALS["GOTMLS"]["scan"]["title"] .= " and finished $issues in $time $unit"; 1006 } 996 1007 } else 997 1008 $GLOBALS["GOTMLS"]["scan"]["title"] .= " was not finished!"; … … 1043 1054 $values["post_author"] = GOTMLS_get_current_user_id(0); 1044 1055 $values["post_modified"] = date("Y-m-d H:i:s", (int) microtime(true)); 1056 $values["post_status"] = 'private'; 1045 1057 if (!(isset($GLOBALS["GOTMLS"]["scan"]["log"]["settings"]) && is_array($GLOBALS["GOTMLS"]["scan"]["log"]["settings"])) && isset($GLOBALS["GOTMLS"]["tmp"]["settings_array"])) 1046 1058 $GLOBALS["GOTMLS"]["scan"]["log"]["settings"] = $GLOBALS["GOTMLS"]["tmp"]["settings_array"]; … … 1055 1067 $values["post_name"] = $GLOBALS["GOTMLS"]["scan"]["key"]; 1056 1068 $scan_log["inserted"] = $wpdb->insert($wpdb->posts, $values); 1069 } 1070 if (isset($GLOBALS["GOTMLS"]["scan"]["log"]["scan"]["finish"]) && is_numeric($GLOBALS["GOTMLS"]["scan"]["log"]["scan"]["finish"]) && GOTMLS_strlen($scanlog_key = preg_replace('/[^0-9a-f]++]i/', "", $GLOBALS["GOTMLS"]["scan"]["key"])) == 32) { 1071 if (isset($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"]) && is_array($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"]) && count($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"]) && ($gotmls_results_ID = $wpdb->get_var($wpdb->prepare("SELECT `ID` FROM `$wpdb->posts` WHERE `post_type` = 'gotmls_results' AND `post_name` = %s", $scanlog_key)))) { 1072 $wpdb->delete($wpdb->postmeta, ["post_id" => $gotmls_results_ID]); 1073 foreach ($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"] as $clas => $found) { 1074 $wpdb->insert($wpdb->postmeta, ["post_id" => $gotmls_results_ID, "meta_key" => $clas, "meta_value" => json_encode($found)]); 1075 } 1076 } 1057 1077 } 1058 1078 } … … 1580 1600 $li_js = "/*-->*"."/"; 1581 1601 $imageF = explode(".", $imageFile."."); 1582 if ($className != "scanned") 1602 if ($className != "scanned") { 1583 1603 $li_js .= "\n$className++;\ndivx=document.getElementById('found_$className');\nif (divx) {\n\tvar newli = document.createElement('li');\n\tnewli.innerHTML='<img src=\"".GOTMLS_strip4java(GOTMLS_images_path.$imageFile).'.gif" height=16 width=16 alt="'.$GOTMLS_image_alt[$imageF[0]].'" style="float: left;" id="'.$imageFile."_$fileName64\">".GOTMLS_strip4java($link, true).$fileNameJS.($link?"</a>';\n\tdivx.display='block":"")."';\n\tdivx.appendChild(newli);\n}"; 1584 elseif ($GLOBALS["GOTMLS"]["scan"]["log"]["settings"]["scan_depth"] == 1) { 1604 if (substr($className, 0, 3) != "dir" && substr($className, 0, 4) != "skip") { 1605 if (!(isset($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"]) && is_array($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"]))) 1606 $GLOBALS["GOTMLS"]["scan"]["log"]["file_results"] = array(); 1607 if (isset($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"]["$className"]) && is_array($GLOBALS["GOTMLS"]["scan"]["log"]["file_results"]["$className"])) 1608 $GLOBALS["GOTMLS"]["scan"]["log"]["file_results"]["$className"][] = "$fileName"; 1609 else 1610 $GLOBALS["GOTMLS"]["scan"]["log"]["file_results"]["$className"] = array("$fileName"); 1611 } 1612 } elseif ($GLOBALS["GOTMLS"]["scan"]["log"]["settings"]["scan_depth"] == 1) { 1585 1613 if (isset($GLOBALS["GOTMLS"]["tmp"]["file_scan"]["errors"]) && is_array($GLOBALS["GOTMLS"]["tmp"]["file_scan"]["errors"]) && count($GLOBALS["GOTMLS"]["tmp"]["file_scan"]["errors"])) 1586 1614 $text = preg_replace('/[\r\n]/', " ", print_r($GLOBALS["GOTMLS"]["tmp"]["file_scan"]["errors"],1)); -
gotmls/trunk/index.php
r3379118 r3403771 11 11 License: GPLv3 or later 12 12 License URI: https://www.gnu.org/licenses/gpl-3.0.html#license-text 13 Version: 4.23.8 313 Version: 4.23.85 14 14 Requires PHP: 5.6 15 15 Requires CP: 1.1.1 … … 303 303 $mt = array_pop($option_names); 304 304 if (GOTMLS_strlen($mt) && is_numeric($mt)) { 305 $insert = array("post_name" => md5($mt), "post_content" => json_encode($GOTMLS_scanlog), "post_author" => GOTMLS_get_current_user_id(0), "post_type" => 'gotmls_results', "post_ date_gmt" => date("Y-m-d H:i:s", (int) $mt), "post_parent" => $parent);305 $insert = array("post_name" => md5($mt), "post_content" => json_encode($GOTMLS_scanlog), "post_author" => GOTMLS_get_current_user_id(0), "post_type" => 'gotmls_results', "post_status" => 'private', "post_date_gmt" => date("Y-m-d H:i:s", (int) $mt), "post_parent" => $parent); 306 306 if (isset($GOTMLS_scanlog["scan"]["type"]) && GOTMLS_strlen($GOTMLS_scanlog["scan"]["type"])) 307 307 $insert["post_title"] = GOTMLS_sanitize($GOTMLS_scanlog["scan"]["type"]); … … 344 344 if ($prs && is_array($prs) && count($prs)) { 345 345 $scans = 0; 346 $upDate_status = ""; 346 347 $PreScan = '<ul class="GOTMLS-scanlog GOTMLS-sidebar-links">'."\n<li>"; 347 348 foreach ($prs as $row) { 348 349 $LastScan .= $PreScan.GOTMLS_sanitize($row["post_title"]); 350 if ($row["post_status"] == "publish") 351 $upDate_status = 'private'; 349 352 if ($scans) 350 353 $PreScan = '<a href="'.GOTMLS_script_URI.'&GOTMLS_clear_history='.$row["post_name"].'&'.$GOTMLS_nonce.'">[clear history below this entry]</a></li>'."\n<li>"; … … 353 356 $scans++; 354 357 } 358 if ($upDate_status) 359 $wpdb->update($wpdb->posts, array("post_status" => "$upDate_status"), array("post_type" => 'gotmls_results', "post_status" => 'publish')); 355 360 $LastScan .= '</li></ul>'; 356 361 } else -
gotmls/trunk/readme.txt
r3379118 r3403771 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html#license-text 10 Version: 4.23.8 311 Stable tag: 4.23.8 310 Version: 4.23.85 11 Stable tag: 4.23.85 12 12 Requires at least: 3.3 13 13 Tested up to: 6.8.3 … … 100 100 101 101 == Changelog == 102 103 = 4.23.85 = 104 * Fixed the post_status field on custom post type for scan results and added log of all scan errors to the post_meta. 102 105 103 106 = 4.23.83 = … … 516 519 == Upgrade Notice == 517 520 521 = 4.23.85 = 522 Fixed the post_status field on custom post type for scan results and added log of all scan errors to the post_meta. 523 518 524 = 4.23.83 = 519 525 Fixed missing capability check on admin-ajax API, changed URLs for better compatibility with HTTPS and HTTP websites, and checked code for compatibility with WordPress 6.8.3. -
gotmls/trunk/safe-load/trace.php
r3379118 r3403771 5 5 */ 6 6 7 define("GOTMLS_Version", '4.23.8 3');7 define("GOTMLS_Version", '4.23.85'); 8 8 define("GOTMLS_SAFELOAD_DIR", dirname(__FILE__)."/"); 9 9 define("GOTMLS_CHMOD_FILE", 0644);
Note: See TracChangeset
for help on using the changeset viewer.