Changeset 3091731
- Timestamp:
- 05/23/2024 06:48:04 PM (21 months ago)
- Location:
- user-activity-log/trunk
- Files:
-
- 6 edited
-
js/admin_script.js (modified) (1 diff)
-
languages/user-activity-log.pot (modified) (11 diffs)
-
readme.txt (modified) (2 diffs)
-
user-functions.php (modified) (10 diffs)
-
user-settings-menu.php (modified) (3 diffs)
-
user_activity_log.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
user-activity-log/trunk/js/admin_script.js
r3030112 r3091731 230 230 ); 231 231 232 jQuery('.check-column.ual-check-user > input[type="checkbox"][name="usersID[]"]').change(function(){ 233 if ( jQuery('.check-column.ual-check-user > input[type="checkbox"][name="usersID[]"]:checked').length != jQuery('.check-column.ual-check-user > input[type="checkbox"][name="usersID[]"]').length){ 234 jQuery(this).parents("table").find('.check-column[scope="col"] > input[type="checkbox"]').prop('checked', 0); 235 } 236 }); 237 238 jQuery('.check-column.ual-check-user > input[type="checkbox"][name="rolesID[]"]').change(function(){ 239 if ( jQuery('.check-column.ual-check-user > input[type="checkbox"][name="rolesID[]"]:checked').length != jQuery('.check-column.ual-check-user > input[type="checkbox"][name="rolesID[]"]').length){ 240 jQuery(this).parents("table").find('.check-column[scope="col"] > input[type="checkbox"]').prop('checked', 0); 241 } 242 }); 243 232 244 jQuery('select[name="logs_failed_login"]').on('change', function() { 233 245 if( 'no' == jQuery(this).val() ) { -
user-activity-log/trunk/languages/user-activity-log.pot
r3069545 r3091731 3 3 msgstr "" 4 4 "Project-Id-Version: User Activity Log\n" 5 "POT-Creation-Date: 2024-0 4-12 15:23+0530\n"5 "POT-Creation-Date: 2024-05-23 15:22+0530\n" 6 6 "PO-Revision-Date: 2017-04-10 13:06+0530\n" 7 7 "Last-Translator: \n" … … 25 25 26 26 #: promo-notice.php:127 user_activity_log.php:169 user_activity_log.php:271 27 #: user_activity_log.php:273 user_activity_log.php:276 user_activity_log.php:60 527 #: user_activity_log.php:273 user_activity_log.php:276 user_activity_log.php:604 28 28 msgid "User Activity Log" 29 29 msgstr "" … … 51 51 msgstr "" 52 52 53 #: user-functions.php:12 73user-settings-menu.php:22 user_activity_log.php:27653 #: user-functions.php:1288 user-settings-menu.php:22 user_activity_log.php:276 54 54 msgid "Settings" 55 55 msgstr "" 56 56 57 #: user-functions.php:13 0857 #: user-functions.php:1323 58 58 msgid "User Activity Log Plugin" 59 59 msgstr "" 60 60 61 #: user-functions.php:13 1061 #: user-functions.php:1325 62 62 msgid "Live Documentation" 63 63 msgstr "" 64 64 65 #: user-functions.php:13 1465 #: user-functions.php:1329 66 66 msgid "Want more user activity log features?" 67 67 msgstr "" 68 68 69 #: user-functions.php:13 1669 #: user-functions.php:1331 70 70 msgid "Upgrade to PRO" 71 71 msgstr "" 72 72 73 #: user-functions.php:13 2073 #: user-functions.php:1335 74 74 msgid "Live Preview" 75 75 msgstr "" 76 76 77 #: user-functions.php:13 2177 #: user-functions.php:1336 78 78 msgid "Dismiss This Notice" 79 79 msgstr "" 80 80 81 #: user-functions.php:14 06user-settings-menu.php:64581 #: user-functions.php:1421 user-settings-menu.php:645 82 82 msgid "IP address" 83 83 msgstr "" 84 84 85 #: user-functions.php:14 0785 #: user-functions.php:1422 86 86 msgid "Network" 87 87 msgstr "" 88 88 89 #: user-functions.php:14 0889 #: user-functions.php:1423 90 90 msgid "City" 91 91 msgstr "" 92 92 93 #: user-functions.php:14 0993 #: user-functions.php:1424 94 94 msgid "Region" 95 95 msgstr "" 96 96 97 #: user-functions.php:14 1097 #: user-functions.php:1425 98 98 msgid "Country" 99 99 msgstr "" 100 100 101 #: user-functions.php:14 11101 #: user-functions.php:1426 102 102 msgid "Select Logs to delete" 103 103 msgstr "" 104 104 105 #: user-functions.php:15 74105 #: user-functions.php:1589 106 106 msgid "Latest User Activity Logs" 107 107 msgstr "" 108 108 109 #: user-functions.php:15 76109 #: user-functions.php:1591 110 110 msgid " User Activity Logs Stats" 111 111 msgstr "" 112 112 113 #: user-functions.php:1 598113 #: user-functions.php:1613 114 114 msgctxt "stats: date in rows per day chart" 115 115 msgid "M j" 116 116 msgstr "" 117 117 118 #: user-functions.php:16 79 user_activity_log.php:859 user_activity_log.php:873119 #: user_activity_log.php:1 503118 #: user-functions.php:1694 user_activity_log.php:856 user_activity_log.php:870 119 #: user_activity_log.php:1496 120 120 msgid "Date" 121 121 msgstr "" 122 122 123 #: user-functions.php:16 80 user_activity_log.php:860 user_activity_log.php:874123 #: user-functions.php:1695 user_activity_log.php:857 user_activity_log.php:871 124 124 msgid "Author" 125 125 msgstr "" 126 126 127 #: user-functions.php:16 81127 #: user-functions.php:1696 128 128 msgid "Activity" 129 129 msgstr "" 130 130 131 #: user-functions.php:17 31131 #: user-functions.php:1746 132 132 msgid "No Log found." 133 133 msgstr "" 134 134 135 #: user-functions.php:19 74135 #: user-functions.php:1989 136 136 msgid "" 137 137 "If you have a moment, please let us know why you are deactivating. We would " … … 139 139 msgstr "" 140 140 141 #: user-functions.php:19 80141 #: user-functions.php:1995 142 142 msgid "I am going to upgrade to PRO version" 143 143 msgstr "" 144 144 145 #: user-functions.php: 1985145 #: user-functions.php:2000 146 146 msgid "The plugin suddenly stopped working" 147 147 msgstr "" 148 148 149 #: user-functions.php: 1990149 #: user-functions.php:2005 150 150 msgid "The plugin was not working" 151 151 msgstr "" 152 152 153 #: user-functions.php: 1995153 #: user-functions.php:2010 154 154 msgid "Found other better plugin than this plugin" 155 155 msgstr "" 156 156 157 #: user-functions.php:20 00157 #: user-functions.php:2015 158 158 msgid "The plugin broke my site completely" 159 159 msgstr "" 160 160 161 #: user-functions.php:20 05161 #: user-functions.php:2020 162 162 msgid "No any reason" 163 163 msgstr "" 164 164 165 #: user-functions.php:20 10165 #: user-functions.php:2025 166 166 msgid "Other" 167 167 msgstr "" 168 168 169 #: user-functions.php:20 16user_activity_log.php:375169 #: user-functions.php:2031 user_activity_log.php:375 170 170 msgid "" 171 171 "By clicking this button, you agree with the storage and handling of your data " … … 173 173 msgstr "" 174 174 175 #: user-functions.php:20 20175 #: user-functions.php:2035 176 176 msgid "Submit" 177 177 msgstr "" 178 178 179 #: user-functions.php:20 22 user-functions.php:2030179 #: user-functions.php:2037 user-functions.php:2045 180 180 msgid "Deactivate" 181 181 msgstr "" 182 182 183 #: user-functions.php:20 25183 #: user-functions.php:2040 184 184 msgid "Cancel" 185 185 msgstr "" 186 186 187 #: user-functions.php:20 26187 #: user-functions.php:2041 188 188 msgid "Deactivate User Activity Log" 189 189 msgstr "" 190 190 191 #: user-functions.php:20 28user_activity_log.php:380191 #: user-functions.php:2043 user_activity_log.php:380 192 192 msgid "Skip" 193 193 msgstr "" 194 194 195 #: user-functions.php:20 35195 #: user-functions.php:2050 196 196 msgid "Would you like to give us a chance to help you?" 197 197 msgstr "" 198 198 199 #: user-functions.php:20 37199 #: user-functions.php:2052 200 200 msgid "Create a support ticket" 201 201 msgstr "" … … 247 247 248 248 #: user-settings-menu.php:182 user-settings-menu.php:184 249 #: user_activity_log.php:79 5 user_activity_log.php:797249 #: user_activity_log.php:792 user_activity_log.php:794 250 250 msgid "Search" 251 251 msgstr "" … … 270 270 msgstr "" 271 271 272 #: user-settings-menu.php:205 user_activity_log.php:75 9272 #: user-settings-menu.php:205 user_activity_log.php:756 273 273 msgid "Filter" 274 274 msgstr "" 275 275 276 #: user-settings-menu.php:208 user_activity_log.php:80 4276 #: user-settings-menu.php:208 user_activity_log.php:801 277 277 msgid "item" 278 278 msgid_plural "items" … … 281 281 282 282 #: user-settings-menu.php:227 user-settings-menu.php:436 283 #: user_activity_log.php:82 5 user_activity_log.php:982283 #: user_activity_log.php:822 user_activity_log.php:979 284 284 msgid "Go to the first page" 285 285 msgstr "" 286 286 287 287 #: user-settings-menu.php:233 user-settings-menu.php:442 288 #: user_activity_log.php:828 user_activity_log.php:985 289 msgid "Go to the previous page" 290 msgstr "" 291 292 #: user-settings-menu.php:236 user-settings-menu.php:445 288 293 #: user_activity_log.php:831 user_activity_log.php:988 289 msgid "Go to the previous page"290 msgstr ""291 292 #: user-settings-menu.php:236 user-settings-menu.php:445293 #: user_activity_log.php:834 user_activity_log.php:991294 294 msgid "Current page" 295 295 msgstr "" 296 296 297 #: user-settings-menu.php:236 user_activity_log.php:83 4298 #: user_activity_log.php:9 91297 #: user-settings-menu.php:236 user_activity_log.php:831 298 #: user_activity_log.php:988 299 299 msgid "of" 300 300 msgstr "" 301 301 302 302 #: user-settings-menu.php:244 user-settings-menu.php:453 303 #: user_activity_log.php:8 42 user_activity_log.php:999303 #: user_activity_log.php:839 user_activity_log.php:996 304 304 msgid "Go to the next page" 305 305 msgstr "" 306 306 307 307 #: user-settings-menu.php:250 user-settings-menu.php:459 308 #: user_activity_log.php:84 8 user_activity_log.php:1005308 #: user_activity_log.php:845 user_activity_log.php:1002 309 309 msgid "Go to the last page" 310 310 msgstr "" … … 312 312 #: user-settings-menu.php:270 user-settings-menu.php:281 313 313 #: user-settings-menu.php:359 user-settings-menu.php:366 314 #: user_activity_log.php:85 8 user_activity_log.php:872314 #: user_activity_log.php:855 user_activity_log.php:869 315 315 msgid "No." 316 316 msgstr "" … … 329 329 330 330 #: user-settings-menu.php:338 user-settings-menu.php:403 331 #: user_activity_log.php:9 52331 #: user_activity_log.php:949 332 332 msgid "No record found." 333 333 msgstr "" … … 721 721 msgstr "" 722 722 723 #: user_activity_log.php:61 5723 #: user_activity_log.php:614 724 724 msgid "All Hooks" 725 725 msgstr "" 726 726 727 #: user_activity_log.php:617 728 msgid "wp_login" 729 msgstr "" 730 727 731 #: user_activity_log.php:618 728 msgid "wp_login"729 msgstr ""730 731 #: user_activity_log.php:619732 732 msgid "wp_login_failed" 733 733 msgstr "" 734 734 735 #: user_activity_log.php:63 3735 #: user_activity_log.php:632 736 736 msgid "All Favorite/Unfavorite" 737 737 msgstr "" 738 738 739 #: user_activity_log.php:63 6 user_activity_log.php:772739 #: user_activity_log.php:635 user_activity_log.php:769 740 740 msgid "Favorite" 741 741 msgstr "" 742 742 743 #: user_activity_log.php:63 7 user_activity_log.php:773743 #: user_activity_log.php:636 user_activity_log.php:770 744 744 msgid "Unfavorite" 745 745 msgstr "" 746 746 747 #: user_activity_log.php:6 50747 #: user_activity_log.php:649 748 748 msgid "All Countries" 749 749 msgstr "" 750 750 751 #: user_activity_log.php:65 9751 #: user_activity_log.php:658 752 752 msgid "All IPs" 753 753 msgstr "" 754 754 755 #: user_activity_log.php:67 6755 #: user_activity_log.php:675 756 756 msgid "All Time" 757 757 msgstr "" 758 758 759 #: user_activity_log.php:678 760 msgid "Today" 761 msgstr "" 762 759 763 #: user_activity_log.php:679 760 msgid " Today"764 msgid "Yesterday" 761 765 msgstr "" 762 766 763 767 #: user_activity_log.php:680 764 msgid " Yesterday"768 msgid "Week" 765 769 msgstr "" 766 770 767 771 #: user_activity_log.php:681 768 msgid " Week"772 msgid "This Month" 769 773 msgstr "" 770 774 771 775 #: user_activity_log.php:682 772 msgid " ThisMonth"776 msgid "Last 1 Month" 773 777 msgstr "" 774 778 775 779 #: user_activity_log.php:683 776 msgid "Last 1Month"780 msgid "Last 2 Month" 777 781 msgstr "" 778 782 779 783 #: user_activity_log.php:684 780 msgid "Last 2Month"784 msgid "Last 3 Month" 781 785 msgstr "" 782 786 783 787 #: user_activity_log.php:685 784 msgid "Last 3Month"788 msgid "Last 6 Month" 785 789 msgstr "" 786 790 787 791 #: user_activity_log.php:686 788 msgid " Last 6 Month"792 msgid "This Year" 789 793 msgstr "" 790 794 791 795 #: user_activity_log.php:687 792 msgid "This Year"793 msgstr ""794 795 #: user_activity_log.php:688796 796 msgid "Last Year" 797 797 msgstr "" 798 798 799 #: user_activity_log.php:70 2799 #: user_activity_log.php:701 800 800 msgid "All Roles" 801 801 msgstr "" 802 802 803 #: user_activity_log.php:72 1803 #: user_activity_log.php:720 804 804 msgid "All Users" 805 805 msgstr "" 806 806 807 #: user_activity_log.php:7 41807 #: user_activity_log.php:739 808 808 msgid "All Types" 809 809 msgstr "" 810 810 811 #: user_activity_log.php:764 812 msgid "Select bulk action" 813 msgstr "" 814 811 815 #: user_activity_log.php:767 812 msgid "Select bulk action"813 msgstr ""814 815 #: user_activity_log.php:770816 816 msgid "Bulk Actions" 817 817 msgstr "" 818 818 819 #: user_activity_log.php:7 71819 #: user_activity_log.php:768 820 820 msgid "Delete Permanently" 821 821 msgstr "" 822 822 823 #: user_activity_log.php:77 5823 #: user_activity_log.php:772 824 824 msgid "Apply" 825 825 msgstr "" 826 826 827 #: user_activity_log.php:782 828 msgid "Export Logs (CSV)" 829 msgstr "" 830 827 831 #: user_activity_log.php:785 828 msgid "Export Logs (CSV)"829 msgstr ""830 831 #: user_activity_log.php:788832 832 msgid "Export Logs (JSON)" 833 833 msgstr "" 834 834 835 #: user_activity_log.php:79 6835 #: user_activity_log.php:793 836 836 msgid "User, Role, Action" 837 837 msgstr "" 838 838 839 #: user_activity_log.php:859 user_activity_log.php:873 840 #: user_activity_log.php:1492 841 msgid "IP Address" 842 msgstr "" 843 844 #: user_activity_log.php:861 user_activity_log.php:875 845 msgid "Type" 846 msgstr "" 847 839 848 #: user_activity_log.php:862 user_activity_log.php:876 849 msgid "Action" 850 msgstr "" 851 852 #: user_activity_log.php:863 user_activity_log.php:877 853 #: user_activity_log.php:1505 854 msgid "Description" 855 msgstr "" 856 857 #: user_activity_log.php:1023 858 msgid "Help to improve this plugin!" 859 msgstr "" 860 861 #: user_activity_log.php:1025 862 msgid "Enjoyed this plugin?" 863 msgstr "" 864 865 #: user_activity_log.php:1026 866 msgid "You can help by" 867 msgstr "" 868 869 #: user_activity_log.php:1028 870 msgid " rating this plugin on wordpress.org" 871 msgstr "" 872 873 #: user_activity_log.php:1033 874 msgid "Downloads" 875 msgstr "" 876 877 #: user_activity_log.php:1045 878 msgid "User Activity Log Pro" 879 msgstr "" 880 881 #: user_activity_log.php:1049 882 msgid "Supports 15 plugins" 883 msgstr "" 884 885 #: user_activity_log.php:1050 886 msgid "Exclude activity logs for particular users" 887 msgstr "" 888 889 #: user_activity_log.php:1051 890 msgid "Add detail logs for WooCommerce products " 891 msgstr "" 892 893 #: user_activity_log.php:1052 894 msgid "Add Support of WooCommerce Coupon" 895 msgstr "" 896 897 #: user_activity_log.php:1053 898 msgid "Export logs in CSV, JSON Format" 899 msgstr "" 900 901 #: user_activity_log.php:1054 902 msgid "View Detail logs(Old/New comparison)" 903 msgstr "" 904 905 #: user_activity_log.php:1055 906 msgid "Delete Logs" 907 msgstr "" 908 909 #: user_activity_log.php:1056 910 msgid "Favorite/Unfavorite Logs" 911 msgstr "" 912 913 #: user_activity_log.php:1057 914 msgid "Password Security" 915 msgstr "" 916 917 #: user_activity_log.php:1058 918 msgid "Role selection option for display logs" 919 msgstr "" 920 921 #: user_activity_log.php:1059 922 msgid "Hook Selection option to monitor activity" 923 msgstr "" 924 925 #: user_activity_log.php:1060 926 msgid "Add Custom event to track the logs" 927 msgstr "" 928 929 #: user_activity_log.php:1061 930 msgid "External database integration and migration" 931 msgstr "" 932 933 #: user_activity_log.php:1062 934 msgid "List currently logged in users" 935 msgstr "" 936 937 #: user_activity_log.php:1064 938 msgid "Buy Now only at " 939 msgstr "" 940 941 #: user_activity_log.php:1068 942 msgid "Buy Now on Codecanyon" 943 msgstr "" 944 945 #: user_activity_log.php:1074 946 msgid "Need Support?" 947 msgstr "" 948 949 #: user_activity_log.php:1076 950 msgid "Check out the" 951 msgstr "" 952 953 #: user_activity_log.php:1077 954 msgid "FAQs" 955 msgstr "" 956 957 #: user_activity_log.php:1078 958 msgid "and" 959 msgstr "" 960 961 #: user_activity_log.php:1079 962 msgid "Support Forums" 963 msgstr "" 964 965 #: user_activity_log.php:1084 966 msgid "Share & Follow Us" 967 msgstr "" 968 969 #: user_activity_log.php:1171 970 msgid "Documentation" 971 msgstr "" 972 973 #: user_activity_log.php:1172 974 msgid "Upgrade" 975 msgstr "" 976 977 #: user_activity_log.php:1479 978 msgid "Sr No." 979 msgstr "" 980 981 #: user_activity_log.php:1482 982 msgid "Author Name" 983 msgstr "" 984 985 #: user_activity_log.php:1485 986 msgid "Author Role" 987 msgstr "" 988 989 #: user_activity_log.php:1488 990 msgid "Author E-mail" 991 msgstr "" 992 840 993 #: user_activity_log.php:1499 841 msgid "IP Address"842 msgstr ""843 844 #: user_activity_log.php:864 user_activity_log.php:878845 msgid "Type"846 msgstr ""847 848 #: user_activity_log.php:865 user_activity_log.php:879849 msgid "Action"850 msgstr ""851 852 #: user_activity_log.php:866 user_activity_log.php:880853 #: user_activity_log.php:1512854 msgid "Description"855 msgstr ""856 857 #: user_activity_log.php:1026858 msgid "Help to improve this plugin!"859 msgstr ""860 861 #: user_activity_log.php:1028862 msgid "Enjoyed this plugin?"863 msgstr ""864 865 #: user_activity_log.php:1029866 msgid "You can help by"867 msgstr ""868 869 #: user_activity_log.php:1031870 msgid " rating this plugin on wordpress.org"871 msgstr ""872 873 #: user_activity_log.php:1036874 msgid "Downloads"875 msgstr ""876 877 #: user_activity_log.php:1048878 msgid "User Activity Log Pro"879 msgstr ""880 881 #: user_activity_log.php:1052882 msgid "Supports 15 plugins"883 msgstr ""884 885 #: user_activity_log.php:1053886 msgid "Exclude activity logs for particular users"887 msgstr ""888 889 #: user_activity_log.php:1054890 msgid "Add detail logs for WooCommerce products "891 msgstr ""892 893 #: user_activity_log.php:1055894 msgid "Add Support of WooCommerce Coupon"895 msgstr ""896 897 #: user_activity_log.php:1056898 msgid "Export logs in CSV, JSON Format"899 msgstr ""900 901 #: user_activity_log.php:1057902 msgid "View Detail logs(Old/New comparison)"903 msgstr ""904 905 #: user_activity_log.php:1058906 msgid "Delete Logs"907 msgstr ""908 909 #: user_activity_log.php:1059910 msgid "Favorite/Unfavorite Logs"911 msgstr ""912 913 #: user_activity_log.php:1060914 msgid "Password Security"915 msgstr ""916 917 #: user_activity_log.php:1061918 msgid "Role selection option for display logs"919 msgstr ""920 921 #: user_activity_log.php:1062922 msgid "Hook Selection option to monitor activity"923 msgstr ""924 925 #: user_activity_log.php:1063926 msgid "Add Custom event to track the logs"927 msgstr ""928 929 #: user_activity_log.php:1064930 msgid "External database integration and migration"931 msgstr ""932 933 #: user_activity_log.php:1065934 msgid "List currently logged in users"935 msgstr ""936 937 #: user_activity_log.php:1067938 msgid "Buy Now only at "939 msgstr ""940 941 #: user_activity_log.php:1071942 msgid "Buy Now on Codecanyon"943 msgstr ""944 945 #: user_activity_log.php:1077946 msgid "Need Support?"947 msgstr ""948 949 #: user_activity_log.php:1079950 msgid "Check out the"951 msgstr ""952 953 #: user_activity_log.php:1080954 msgid "FAQs"955 msgstr ""956 957 #: user_activity_log.php:1081958 msgid "and"959 msgstr ""960 961 #: user_activity_log.php:1082962 msgid "Support Forums"963 msgstr ""964 965 #: user_activity_log.php:1087966 msgid "Share & Follow Us"967 msgstr ""968 969 #: user_activity_log.php:1174970 msgid "Documentation"971 msgstr ""972 973 #: user_activity_log.php:1175974 msgid "Upgrade"975 msgstr ""976 977 #: user_activity_log.php:1486978 msgid "Sr No."979 msgstr ""980 981 #: user_activity_log.php:1489982 msgid "Author Name"983 msgstr ""984 985 #: user_activity_log.php:1492986 msgid "Author Role"987 msgstr ""988 989 #: user_activity_log.php:1495990 msgid "Author E-mail"991 msgstr ""992 993 #: user_activity_log.php:1506994 994 msgid "Activity Type" 995 995 msgstr "" 996 996 997 #: user_activity_log.php:150 9997 #: user_activity_log.php:1502 998 998 msgid "Activity Hook" 999 999 msgstr "" -
user-activity-log/trunk/readme.txt
r3069308 r3091731 4 4 Tags: admin user log, user log, user, log, user activity, activity log, log user, record user activity, log user action, user action log, wordpress admin security, wordpress security, security, user tracking, user activity monitor, watch user, track user, track user activity, track activity. 5 5 Requires at least: 5.4 6 Tested up to: 6.5. 26 Tested up to: 6.5.3 7 7 Requires PHP: 7.0 8 Stable tag: 1.98 Stable tag: 2.0 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 139 139 == Changelog == 140 140 141 = 2.0 = 142 Release date: May 23, 2024 143 144 * Updated: Make compatible with WP 6.5.3 145 * Updated: Make compatible with PHP version 8.3.x 146 * Updated: Make compatible with Elementor version 3.x 147 * Fixed: Code Improvements 148 141 149 = 1.9 = 142 150 Release date: April 11, 2024 -
user-activity-log/trunk/user-functions.php
r3069308 r3091731 741 741 function ual_shook_transition_post_status( $post_id, $post ) { 742 742 global $old_post_data; 743 global $wpdb; 743 744 $old_post_data_detail = isset( $old_post_data['post_data'] ) ? $old_post_data['post_data'] : ''; 744 745 if ( isset( $old_post_data_detail ) && '' != $old_post_data_detail ) { … … 766 767 } elseif ( 'draft' === $old_status && 'publish' == $new_status && '0000-00-00 00:00:00' == $old_post_data['post_data']->post_date_gmt ) { 767 768 $action = $obj_type . ' created'; 768 } elseif ( 'trash' === $new_status ) { 769 } elseif ( 'publish' === $old_status && 'trash' != $new_status ) { 770 $action = $obj_type . ' updated'; 771 } elseif ( 'publish' === $old_status && 'publish' === $new_status ) { 772 $action = $obj_type . ' updated'; 773 } elseif ( 'publish' === $new_status && 'draft' != $old_status && '0000-00-00 00:00:00' === $old_post_data['post_data']->post_date_gmt ) { 774 $action = $obj_type . ' created'; 775 } elseif ( 'publish' === $old_status && 'draft' != $old_status ) { 769 776 $action = $obj_type . ' trashed'; 770 } elseif ( ' trash' === $old_status ) {777 } elseif ( 'publish' === $new_status && 'draft' != $old_status ) { 771 778 $action = $obj_type . ' restored'; 772 } elseif ( 'publish' === $old_status && 'draft' != $old_status ) {773 $action = $obj_type . ' updated';774 } elseif ( 'publish' === $new_status && 'draft' != $old_status ) {775 $action = $obj_type . ' created';776 } elseif ( 'publish' != $new_status && 'draft' == $old_status ) {777 $action = $obj_type . ' drafted';778 779 } else { 779 $action = $obj_type . ' updated';780 return; 780 781 } 781 782 foreach ( $roles as $role ) { … … 783 784 $action = $obj_type . ' is submit for review'; 784 785 } 786 } 787 $selctquery = $wpdb->get_results( "SELECT uactid,modified_date,post_id FROM {$wpdb->prefix}ualp_user_activity" . ' ORDER BY uactid DESC LIMIT 1' ); 788 $current_datetime = current_datetime()->format( 'Y-m-d H:i:s' ); 789 foreach ( $selctquery as $key => $value ) { 790 $lastentrydate = $value->modified_date; 791 $lastentrypostid = $value->post_id; 792 break; 793 } 794 if ( isset( $post_id ) && isset( $lastentrydate ) && $post_id == $lastentrypostid && $current_datetime == $lastentrydate ) { 795 return; 785 796 } 786 797 ual_get_activity_function( $action, $obj_type, $post_id, $post_title ); … … 1024 1035 return $instance; 1025 1036 } 1037 if ( $new_instance == $old_instance ) { 1038 return $instance; 1039 } 1026 1040 $action = 'widget updated'; 1027 1041 $obj_type = 'widget'; … … 1121 1135 $export_items = array(); 1122 1136 1123 if ($orders = get_posts(1137 $orders = get_posts( 1124 1138 array( 1125 1139 'post_type' => 'export_personal_data', … … 1129 1143 'meta_value' => $email_address, 1130 1144 ) 1131 ) ) { 1145 ); 1146 if ( $orders ) { 1132 1147 1133 1148 foreach ( (array) $orders as $order ) { … … 1194 1209 $iteration = (int) $iteration; 1195 1210 $items_removed = false; 1196 1197 if ( $orders = get_posts( 1211 $orders = get_posts( 1198 1212 array( 1199 1213 'post_type' => 'export_personal_data', … … 1203 1217 'meta_value' => $email_address, 1204 1218 ) 1205 ) ) { 1219 ); 1220 if ( $orders ) { 1206 1221 1207 1222 foreach ( (array) $orders as $order ) { … … 1756 1771 if ( 'users' == $display ) { 1757 1772 $enableusertemp = get_option( 'enable_user_list_temp', true ); 1758 if ( '' == $enableusertemp ) {1773 if ( '' == $enableusertemp || ! is_array( $enableusertemp ) ) { 1759 1774 $enableusertemp = array(); 1760 1775 } 1761 1776 if ( 'true' == $selected ) { 1762 if ( ! in_array( $enableuser, $enableusertemp ) ) {1777 if ( is_array( $enableusertemp ) && ! in_array( $enableuser, $enableusertemp ) ) { 1763 1778 array_push( $enableusertemp, $enableuser ); 1764 1779 } … … 2192 2207 if ( $get_ip_type ) { 2193 2208 if ( 'REMOTE_ADDR' == $get_ip_type ) { 2194 $ipaddress = $_SERVER['REMOTE_ADDR'];2209 $ipaddress = isset( $_SERVER['REMOTE_ADDR'] ) ? sanitize_text_field( wp_unslash( $_SERVER['REMOTE_ADDR'] ) ) : ''; 2195 2210 } elseif ( 'HTTP_X_FORWARDED_FOR' == $get_ip_type ) { 2196 $ipaddress = isset ( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ? $_SERVER['HTTP_X_FORWARDED_FOR']: '';2211 $ipaddress = isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) : ''; 2197 2212 } elseif ( 'HTTP_X_REAL_IP' == $get_ip_type ) { 2198 $ipaddress = $_SERVER['HTTP_X_REAL_IP'];2213 $ipaddress = isset( $_SERVER['HTTP_X_REAL_IP'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_X_REAL_IP'] ) ) : ''; 2199 2214 } else { 2200 $ipaddress = $_SERVER['REMOTE_ADDR'];2215 $ipaddress = sanitize_text_field( wp_unslash( $_SERVER['REMOTE_ADDR'] ) ); 2201 2216 } 2202 2217 } else { 2203 $ipaddress = $_SERVER['REMOTE_ADDR'];2218 $ipaddress = sanitize_text_field( wp_unslash( $_SERVER['REMOTE_ADDR'] ) ); 2204 2219 } 2205 2220 if ( filter_var( $ipaddress, FILTER_VALIDATE_IP ) ) { -
user-activity-log/trunk/user-settings-menu.php
r3069308 r3091731 88 88 $table_name = $wpdb->prefix . 'users'; 89 89 } 90 $select_query = $wpdb->prepare( "SELECT * from %1s LIMIT %d,%d", $table_name, $offset, $recordperpage);91 $total_items_query = $wpdb->prepare( "SELECT count(*) FROM %1s", $table_name );90 $select_query = $wpdb->prepare( 'SELECT * from %1s LIMIT %d,%d', $table_name, $offset, $recordperpage ); 91 $total_items_query = $wpdb->prepare( 'SELECT count(*) FROM %1s', $table_name ); 92 92 } else { 93 93 if ( function_exists( 'is_multisite' ) && is_multisite() ) { … … 143 143 $get_data = ''; 144 144 if ( 'users' == $display ) { 145 $get_user_data = $wpdb->get_results( $ select_query);146 $total_items = $wpdb->get_var( $ total_items_query, 0, 0 );145 $get_user_data = $wpdb->get_results( $wpdb->prepare( "SELECT * from {$wpdb->base_prefix}users WHERE user_login like %s or user_email like %s or display_name like %s LIMIT %d,%d", '%' . $wpdb->esc_like( $search ) . '%', '%' . $wpdb->esc_like( $search ) . '%', '%' . $wpdb->esc_like( $search ) . '%', $offset, $recordperpage ) ); 146 $total_items = $wpdb->get_var( $wpdb->prepare( "SELECT count(*) FROM {$wpdb->base_prefix}users WHERE user_login like %s or user_email like %s or display_name like %s", '%' . $wpdb->esc_like( $search ) . '%', '%' . $wpdb->esc_like( $search ) . '%', '%' . $wpdb->esc_like( $search ) . '%' ), 0, 0 ); 147 147 } else { 148 $get_data = $wpdb->get_results( $ select_query);149 $total_items = $wpdb->get_var( $ total_items_query, 0, 0 );148 $get_data = $wpdb->get_results( $wpdb->prepare( "SELECT distinct um.meta_value from %1s WHERE um.meta_key='%1scapabilities' LIMIT %d,%d", $table_name, $wpdb->prefix, $offset, $recordperpage ) ); 149 $total_items = $wpdb->get_var( $wpdb->prepare( "SELECT count(distinct um.meta_value) FROM %1susermeta as um WHERE um.meta_key='%1scapabilities'", $wpdb->base_prefix, $wpdb->prefix ), 0, 0 ); 150 150 } 151 151 … … 769 769 </td> 770 770 </tr> 771 <?php if ( 1 == $ual_allow_ip ) { ?>771 <?php if ( 1 == $ual_allow_ip ) { ?> 772 772 <tr class="ual_get_ips"> 773 773 <th><?php esc_html_e( 'How does User Activity Log get IPs', 'user-activity-log' ); ?></th> -
user-activity-log/trunk/user_activity_log.php
r3069545 r3091731 6 6 * Author: Solwin Infotech 7 7 * Author URI: https://www.solwininfotech.com/ 8 * Version: 1.98 * Version: 2.0 9 9 * Requires at least: 5.4 10 * Tested up to: 6.5. 210 * Tested up to: 6.5.3 11 11 * Copyright: Solwin Infotech 12 12 * License: GPLv2 or later … … 584 584 // query for display all the user activity data start. 585 585 if ( $wpdb->get_var( "SHOW TABLES LIKE '{$wpdb->prefix}ualp_user_activity'" ) ) { 586 $select_query = $wpdb->prepare( "SELECT * from {$wpdb->prefix}ualp_user_activity $where ORDER BY modified_date desc LIMIT %d,%d", $offset, $recordperpage ); 587 $get_data = $wpdb->get_results( $select_query ); 588 $total_items_query = $wpdb->prepare( "SELECT count(*) FROM {$wpdb->prefix}ualp_user_activity $where" ); 589 $total_items = $wpdb->get_var( $total_items_query, 0, 0 ); 586 $select_query = $wpdb->prepare( "SELECT * from {$wpdb->prefix}ualp_user_activity $where ORDER BY modified_date desc LIMIT %d,%d", $offset, $recordperpage ); 587 $get_data = $wpdb->get_results( $select_query ); 588 $total_items = $wpdb->get_var( "SELECT count(*) FROM {$wpdb->prefix}ualp_user_activity $where", 0, 0 ); 590 589 } 591 590 … … 721 720 <option selected value="0"><?php esc_html_e( 'All Users', 'user-activity-log' ); ?></option> 722 721 <?php 723 $username_query = $wpdb->prepare( "SELECT distinct user_name from {$wpdb->prefix}ualp_user_activity" ); 724 $get_username = $wpdb->get_results( $username_query ); 722 $get_username = $wpdb->get_results( "SELECT distinct user_name from {$wpdb->prefix}ualp_user_activity" ); 725 723 foreach ( $get_username as $username ) { 726 724 $user_name = $username->user_name; … … 741 739 <option selected value="0"><?php esc_html_e( 'All Types', 'user-activity-log' ); ?></option> 742 740 <?php 743 $object_type_query = $wpdb->prepare( "SELECT distinct object_type from {$wpdb->prefix}ualp_user_activity" ); 744 $get_type = $wpdb->get_results( $object_type_query ); 741 $get_type = $wpdb->get_results( "SELECT distinct object_type from {$wpdb->prefix}ualp_user_activity" ); 745 742 foreach ( $get_type as $type ) { 746 743 $object_type = $type->object_type; … … 1237 1234 wp_safe_redirect( admin_url( 'admin.php?page=user_action_log' ) ); 1238 1235 exit(); 1239 } else {1240 // wp_safe_redirect( admin_url( 'admin.php?page=user_welcome_page' ) );1241 // exit();1242 1236 } 1243 1237 } … … 1253 1247 global $wpdb; 1254 1248 if ( is_admin() && is_user_logged_in() && current_user_can( 'administrator' ) ) { 1255 if ( isset( $_GET['export'] ) && 'user_logs' == $_GET['export'] && isset( $_GET['export-nonce'] ) && wp_verify_nonce( $_GET['export-nonce'], 'export-action' ) ) {1249 if ( isset( $_GET['export'] ) && 'user_logs' == $_GET['export'] && isset( $_GET['export-nonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['export-nonce'] ) ), 'export-action' ) ) { 1256 1250 $userrole = ''; 1257 1251 $username = ''; … … 1422 1416 } 1423 1417 } 1424 $get_log_query = $wpdb->prepare( "SELECT * FROM {$wpdb->prefix}ualp_user_activity $where ORDER BY modified_date desc" ); 1425 $result_log_query = $wpdb->get_results( $get_log_query ); 1418 $result_log_query = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$wpdb->prefix}ualp_user_activity %1s ORDER BY modified_date desc", $where ) ); 1426 1419 $data_content = array(); 1427 1420 $c = 0; … … 1538 1531 header( 'Content-Disposition: attachment; filename="' . basename( $file_name ) . '"' ); 1539 1532 header( 'Content-Length: ' . $wp_filesystem->size( $file_name ) ); 1540 echo $wp_filesystem->get_contents( $file_name);1533 echo wp_kses( $wp_filesystem->get_contents( $file_name ), args_kses() ); 1541 1534 } 1542 1535 if ( ! function_exists( 'ual_csv_output' ) ) { … … 1558 1551 header( 'Content-type: application/csv' ); 1559 1552 header( 'Content-Disposition: attachment; filename="' . $filename . '"' ); 1560 echo $data;1553 echo wp_kses( $data, args_kses() ); 1561 1554 } 1562 1555 return $data;
Note: See TracChangeset
for help on using the changeset viewer.