Changeset 3116686
- Timestamp:
- 07/11/2024 09:39:24 PM (20 months ago)
- Location:
- logdash-activity-log
- Files:
-
- 87 added
- 23 edited
-
tags/1.2 (added)
-
tags/1.2/.gitignore (added)
-
tags/1.2/LICENSE.txt (added)
-
tags/1.2/README.txt (added)
-
tags/1.2/assets (added)
-
tags/1.2/assets/build (added)
-
tags/1.2/assets/build/index.asset.php (added)
-
tags/1.2/assets/build/index.css (added)
-
tags/1.2/assets/build/index.css.map (added)
-
tags/1.2/assets/build/index.js (added)
-
tags/1.2/assets/build/index.js.map (added)
-
tags/1.2/assets/img (added)
-
tags/1.2/assets/img/icon-logdash-white.svg (added)
-
tags/1.2/assets/src (added)
-
tags/1.2/assets/src/index.js (added)
-
tags/1.2/assets/src/index.scss (added)
-
tags/1.2/composer.json (added)
-
tags/1.2/composer.lock (added)
-
tags/1.2/languages (added)
-
tags/1.2/languages/logdash-activity-log-es_ES.mo (added)
-
tags/1.2/languages/logdash-activity-log-es_ES.po (added)
-
tags/1.2/languages/logdash-activity-log.pot (added)
-
tags/1.2/logdash-activity-log.php (added)
-
tags/1.2/package-lock.json (added)
-
tags/1.2/package.json (added)
-
tags/1.2/src (added)
-
tags/1.2/src/API (added)
-
tags/1.2/src/API/Activation.php (added)
-
tags/1.2/src/API/DB.php (added)
-
tags/1.2/src/API/Event.php (added)
-
tags/1.2/src/API/EventMeta.php (added)
-
tags/1.2/src/API/RestEndpoints.php (added)
-
tags/1.2/src/Actions (added)
-
tags/1.2/src/Actions/RemoveExpiredLog.php (added)
-
tags/1.2/src/Actions/ResetLog.php (added)
-
tags/1.2/src/ActivityLog.php (added)
-
tags/1.2/src/Admin (added)
-
tags/1.2/src/Admin/EventsAdminPage.php (added)
-
tags/1.2/src/Admin/EventsListTable.php (added)
-
tags/1.2/src/Admin/InputTypes.php (added)
-
tags/1.2/src/Admin/Settings.php (added)
-
tags/1.2/src/EventCodes.php (added)
-
tags/1.2/src/EventInfo.php (added)
-
tags/1.2/src/EventTypes.php (added)
-
tags/1.2/src/Hooks (added)
-
tags/1.2/src/Hooks/Core.php (added)
-
tags/1.2/src/Hooks/Files.php (added)
-
tags/1.2/src/Hooks/HooksBase.php (added)
-
tags/1.2/src/Hooks/LearnDash.php (added)
-
tags/1.2/src/Hooks/Meta.php (added)
-
tags/1.2/src/Hooks/Plugins.php (added)
-
tags/1.2/src/Hooks/Posts.php (added)
-
tags/1.2/src/Hooks/Settings.php (added)
-
tags/1.2/src/Hooks/Taxonomies.php (added)
-
tags/1.2/src/Hooks/Themes.php (added)
-
tags/1.2/src/Hooks/Users.php (added)
-
tags/1.2/src/Template (added)
-
tags/1.2/src/Template/Meta (added)
-
tags/1.2/src/Template/Meta/After.php (added)
-
tags/1.2/src/Template/Meta/Before.php (added)
-
tags/1.2/src/Template/Meta/Label.php (added)
-
tags/1.2/src/Template/Meta/LabelInterface.php (added)
-
tags/1.2/src/Template/Meta/Specification.php (added)
-
tags/1.2/src/Template/Meta/SpecificationInterface.php (added)
-
tags/1.2/src/Template/Meta/View.php (added)
-
tags/1.2/vendor (added)
-
tags/1.2/vendor/autoload.php (added)
-
tags/1.2/vendor/composer (added)
-
tags/1.2/vendor/composer/ClassLoader.php (added)
-
tags/1.2/vendor/composer/InstalledVersions.php (added)
-
tags/1.2/vendor/composer/LICENSE (added)
-
tags/1.2/vendor/composer/autoload_classmap.php (added)
-
tags/1.2/vendor/composer/autoload_namespaces.php (added)
-
tags/1.2/vendor/composer/autoload_psr4.php (added)
-
tags/1.2/vendor/composer/autoload_real.php (added)
-
tags/1.2/vendor/composer/autoload_static.php (added)
-
tags/1.2/vendor/composer/installed.json (added)
-
tags/1.2/vendor/composer/installed.php (added)
-
tags/1.2/views (added)
-
tags/1.2/views/admin (added)
-
tags/1.2/views/admin/events.template.php (added)
-
tags/1.2/views/admin/settings.template.php (added)
-
tags/1.2/webpack.config.js (added)
-
trunk/README.txt (modified) (4 diffs)
-
trunk/assets/build/index.asset.php (modified) (1 diff)
-
trunk/assets/build/index.css (modified) (1 diff)
-
trunk/assets/build/index.css.map (modified) (1 diff)
-
trunk/assets/build/index.js (modified) (1 diff)
-
trunk/assets/build/index.js.map (modified) (1 diff)
-
trunk/assets/src/index.js (modified) (3 diffs)
-
trunk/assets/src/index.scss (modified) (1 diff)
-
trunk/composer.json (modified) (1 diff)
-
trunk/composer.lock (modified) (2 diffs)
-
trunk/languages/logdash-activity-log-es_ES.mo (modified) (previous)
-
trunk/languages/logdash-activity-log-es_ES.po (modified) (11 diffs)
-
trunk/languages/logdash-activity-log.pot (modified) (11 diffs)
-
trunk/logdash-activity-log.php (modified) (2 diffs)
-
trunk/src/API/Event.php (modified) (5 diffs)
-
trunk/src/Actions/RemoveExpiredLog.php (modified) (3 diffs)
-
trunk/src/ActivityLog.php (modified) (5 diffs)
-
trunk/src/Admin/EventsAdminPage.php (added)
-
trunk/src/Admin/EventsListTable.php (added)
-
trunk/src/Admin/Settings.php (modified) (1 diff)
-
trunk/src/EventCodes.php (modified) (2 diffs)
-
trunk/src/EventInfo.php (added)
-
trunk/src/EventTypes.php (modified) (1 diff)
-
trunk/src/Hooks/LearnDash.php (added)
-
trunk/src/Hooks/Posts.php (modified) (1 diff)
-
trunk/src/Hooks/Users.php (modified) (5 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
logdash-activity-log/trunk/README.txt
r3045030 r3116686 2 2 Contributors: deryck 3 3 Donate link: https://www.paypal.com/donate/?hosted_button_id=XHK37YBVVMP58 4 Tags: Activity Log, User Activity, User Log, Audit Log , Security, Tracking, WooCommerce, bbPress, GDPR,4 Tags: Activity Log, User Activity, User Log, Audit Log 5 5 Requires at least: 5.9.5 6 Tested up to: 6. 4.16 Tested up to: 6.6 7 7 Requires PHP: 7.4 8 Stable tag: 1. 1.48 Stable tag: 1.2 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 38 38 * __Files:__ such as uploads or every files, including plugins and themes and updates in WordPress theme or plugin editors. 39 39 * __Attachments:__ Uploads and updates for every attachment. 40 * __Posts, Pages and Custom Posts:__ such as title, content (with quick link to rollback revisions), status, taxonomies and many more. 41 * __Meta fields:__ such as every meta data associated to every post type and users. 40 * __Posts, Pages and Custom Posts:__ such as title, content (with quick link to rollback revisions), status, taxonomies and many more. 42 41 * __Settings:__ such as the Blog Title, Date format and every setting in WordPress. 43 42 * __Categories, Tags and Custom Taxonomies:__ such as creating, removing, updating and adding values to posts, pages and custom posts. … … 76 75 == Changelog == 77 76 77 = 1.1.5 = 78 * Enhanced log rotation process for better performance. 79 * Fixed issue that was overriding stored dates. 80 * Removed IP info through API; now accessible via link. 81 * Decluttered log records for improved readability. 82 78 83 = 1.1.4 = 79 84 * Addressed a security issue in the login failure process, preventing a potential exploit that could harm the website. This fix significantly enhances the overall safety and reliability of the plugin. … … 96 101 == Upgrade Notice == 97 102 103 = 1.1.5 = 104 * Enhanced log rotation process for better performance. 105 * Fixed issue that was overriding stored dates. 106 * Removed IP info through API; now accessible via link. 107 * Decluttered log records for improved readability. 108 109 = 1.1.4 = 110 * Addressed a security issue in the login failure process, preventing a potential exploit that could harm the website. This fix significantly enhances the overall safety and reliability of the plugin. 111 * Fixed some minor bugs that generated warnings in the logs. 112 98 113 = 1.1.3 = 99 114 * Performance improved while deleting old events -
logdash-activity-log/trunk/assets/build/index.asset.php
r2914549 r3116686 1 <?php return array('dependencies' => array( 'wp-element'), 'version' => '722510710f04bf5fdca3');1 <?php return array('dependencies' => array(), 'version' => 'ffa372b12ac9130d925d'); -
logdash-activity-log/trunk/assets/build/index.css
r2914549 r3116686 1 .tally-does-no-exist-yet{color:red}th#event_meta{width:30%}.event_meta.column-event_meta .actions{display:flex;gap:5px;margin:5px 0}.event_meta.column-event_meta .actions .action:nth-child(2n)::before{content:"|";color:#a7aaad;display:inline-block;margin-right:5px}.column-user_ip .ip-info-wrapper .label{display:flex;gap:4px;align-items:center;cursor:pointer}.column-user_ip .ip-info-wrapper .more{width:14px;height:14px}.column-user_ip .ip-info-wrapper .details{z-index:900;position:absolute;background-color:#fff;width:300px;padding:0;color:#333;cursor:text;border-radius:6px;box-shadow:0 0 12px rgba(0,0,0,.3);overflow:hidden}.column-user_ip .ip-info-wrapper .details h2{margin:0;padding:10px 20px;background:#1d2327;color:#ececed;font-size:16px}.column-user_ip .ip-info-wrapper .details ul{margin:10px 20px 20px 20px}.column-user_ip .ip-info-wrapper .details li{margin-bottom:4px}#toplevel_page_logdash_activity_log .wp-menu-image img{padding-top:7px}.value-more-link{margin-left:5px;border:1px solid #dedede;display:inline-block;padding:0 2px}.event_meta_container{display:flex;flex-direction:column;gap:8px}.event_meta_container .has_more .more{position:fixed;background:#fff;width:80%;max-width:900px;max-height:80%;padding:20px;left:50%;top:50%;transform:translate(-50%, -50%);z-index:9999;box-shadow:0 0 10px rgba(0,0,0,.5);overflow:scroll;border-radius:6px}.event_title{font-size:1em;font-weight:400;line-height:167%;margin:0}.event_title .before{color:red}.event_title .after{color:green}.event_title .before.has_more::after,.event_title .after.has_more::after{content:"..."}.event_title .before.has_more .more,.event_title .after.has_more .more{display:none}.event_details{max-height:0;overflow:hidden}.event_details.active{animation:showDetails 1s ease-in-out;max-height:600px}.event_details .event_lines{background:#fff;border:1px solid #ebebeb;border-radius:4px;padding:10px 12px}.event_details .event_line{margin-bottom:.2em;line-height:167%}.event_details .event_line_key{font-weight:700;white-space:nowrap;margin-right:4px}.event_details .event_line_key::after{content:":"}.event_details .before{color:red}.event_details .after{color:green}.event_details .before.has_more::after,.event_details .after.has_more::after{content:"..."}.event_details .before.has_more .more,.event_details .after.has_more .more{display:none}.event_actions{margin:0;display:flex;gap:4px}.event_actions .details{display:flex;gap:6px;align-items:center;cursor:pointer;min-width:54px}.event_actions .details i{font-style:normal;color:#2271b1}.event_actions .details .icon{transition:transform .3s}.event_actions .details .more{display:block}.event_actions .details .less{display:none}.event_actions .details.active .icon{transform:rotate(180deg)}.event_actions .details.active .more{display:none}.event_actions .details.active .less{display:block}.event_actions .action::before{content:"|";color:#a7aaad;display:inline-block;margin-right:5px}@keyframes showDetails{from{max-height:0}to{max-height:600px}} 1 .tally-does-no-exist-yet{color:red}th#event_meta{width:30%}.event_meta.column-event_meta .actions{display:flex;gap:5px;margin:5px 0}.event_meta.column-event_meta .actions .action:nth-child(2n)::before{content:"|";color:#a7aaad;display:inline-block;margin-right:5px}.column-user_ip .ip-info-wrapper .label{display:flex;gap:4px;align-items:center;cursor:pointer}.column-user_ip .ip-info-wrapper .more{width:14px;height:14px}.column-user_ip .ip-info-wrapper .details{z-index:900;position:absolute;background-color:#fff;width:300px;padding:0;color:#333;cursor:text;border-radius:6px;box-shadow:0 0 12px rgba(0,0,0,.3);overflow:hidden}.column-user_ip .ip-info-wrapper .details h2{margin:0;padding:10px 20px;background:#1d2327;color:#ececed;font-size:16px}.column-user_ip .ip-info-wrapper .details ul{margin:10px 20px 20px 20px}.column-user_ip .ip-info-wrapper .details li{margin-bottom:4px}#toplevel_page_logdash_activity_log .wp-menu-image img{padding-top:7px}.value-more-link{margin-left:5px;border:1px solid #dedede;display:inline-block;padding:0 2px}.event_meta_container{display:flex;flex-direction:column;gap:8px}.event_meta_container .has_more .more{position:fixed;background:#fff;width:80%;max-width:900px;max-height:80%;padding:20px;left:50%;top:50%;transform:translate(-50%, -50%);z-index:9999;box-shadow:0 0 10px rgba(0,0,0,.5);overflow:scroll;border-radius:6px}.event_title{font-size:1em;font-weight:400;line-height:167%;margin:0}.event_title .before{color:red}.event_title .after{color:green}.event_title .before.has_more::after,.event_title .after.has_more::after{content:"..."}.event_title .before.has_more .more,.event_title .after.has_more .more{display:none}.event_details{max-height:0;overflow:hidden}.event_details.active{animation:showDetails 1s ease-in-out;max-height:600px}.event_details .event_lines{background:#fff;border:1px solid #ebebeb;border-radius:4px;padding:10px 12px}.event_details .event_line{margin-bottom:.2em;line-height:167%}.event_details .event_line_key{font-weight:700;white-space:nowrap;margin-right:4px}.event_details .event_line_key::after{content:":"}.event_details .before{color:red}.event_details .after{color:green}.event_details .before.has_more::after,.event_details .after.has_more::after{content:"..."}.event_details .before.has_more .more,.event_details .after.has_more .more{display:none}.event_actions{margin:0;display:flex;gap:4px}.event_actions .details{display:flex;gap:6px;align-items:center;cursor:pointer;min-width:54px}.event_actions .details i{font-style:normal;color:#2271b1}.event_actions .details .icon{transition:transform .3s}.event_actions .details .more{display:block}.event_actions .details .less{display:none}.event_actions .details.active .icon{transform:rotate(180deg)}.event_actions .details.active .more{display:none}.event_actions .details.active .less{display:block}.event_actions .action::before{content:"|";color:#a7aaad;display:inline-block;margin-right:5px}@keyframes showDetails{from{max-height:0}to{max-height:600px}}select.ld-select+.select2-container .select2-selection--single{height:30px} 2 2 3 3 /*# sourceMappingURL=index.css.map*/ -
logdash-activity-log/trunk/assets/build/index.css.map
r2914549 r3116686 1 {"version":3,"file":"index.css","mappings":"AAAA,yBACE,UAGF,cACE,UAKA,uCACE,aACA,QACA,aAIE,qEACE,YACA,cACA,qBACA,iBAQN,wCACE,aACA,QACA,mBACA,eAOF,uCACE,WACA,YAGF,0CACE,YACA,kBACA,sBACA,YACA,UACA,WACA,YACA,kBACA,mCACA,gBAEA,6CACE,SACA,kBACA,mBACA,cACA,eAGF,6CACE,2BAGF,6CACE,kBAON,uDACE,gBAGF,iBACE,gBACA,yBACA,qBACA,cAGF,sBACE,aACA,sBACA,QAEA,sCACE,eACA,gBACA,UACA,gBACA,eACA,aACA,SACA,QACA,gCACA,aACA,mCACA,gBACA,kBAKJ,aACE,cACA,gBACA,iBACA,SAEA,qBACE,UAGF,oBACE,YAKA,yEACE,cAEF,uEACE,aAMN,eACE,aACA,gBAEA,sBACE,qCACA,iBAGF,4BACE,gBACA,yBACA,kBACA,kBAGF,2BACE,mBAGA,iBAGF,+BACE,gBACA,mBACA,iBAEA,sCACE,YAQJ,uBACE,UAGF,sBACE,YAKA,6EACE,cAEF,2EACE,aAMN,eACE,SACA,aACA,QAEA,wBACE,aACA,QACA,mBACA,eACA,eAEA,0BACE,kBACA,cAGF,8BACE,yBAGF,8BACE,cAGF,8BACE,aAKF,qCACE,yBAGF,qCACE,aAGF,qCACE,cAKJ,+BACE,YACA,cACA,qBACA,iBAKJ,uBACE,kBACA,qB ","sources":["webpack://logdash/./assets/src/index.scss"],"sourcesContent":[".tally-does-no-exist-yet {\n color: red;\n}\n\nth#event_meta {\n width: 30%\n}\n\n.event_meta.column-event_meta {\n\n .actions {\n display: flex;\n gap: 5px;\n margin: 5px 0;\n\n .action:nth-child(2n) {\n\n &::before {\n content: \"|\";\n color: #a7aaad;\n display: inline-block;\n margin-right: 5px;\n }\n }\n }\n}\n\n.column-user_ip .ip-info-wrapper {\n\n .label {\n display: flex;\n gap: 4px;\n align-items: center;\n cursor: pointer;\n }\n\n .ip {\n\n }\n\n .more {\n width: 14px;\n height: 14px;\n }\n\n .details {\n z-index: 900;\n position: absolute;\n background-color: white;\n width: 300px;\n padding: 0;\n color: #333;\n cursor: text;\n border-radius: 6px;\n box-shadow: 0 0 12px rgb(0 0 0 / 30%);\n overflow: hidden;\n\n h2 {\n margin: 0;\n padding: 10px 20px;\n background: #1d2327;\n color: #ececed;\n font-size: 16px;\n }\n\n ul {\n margin: 10px 20px 20px 20px;\n }\n\n li {\n margin-bottom: 4px;\n }\n }\n\n}\n\n\n#toplevel_page_logdash_activity_log .wp-menu-image img {\n padding-top: 7px;\n}\n\n.value-more-link {\n margin-left: 5px;\n border: 1px solid #dedede;\n display: inline-block;\n padding: 0 2px;\n}\n\n.event_meta_container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n\n .has_more .more {\n position: fixed;\n background: #fff;\n width: 80%;\n max-width: 900px;\n max-height: 80%;\n padding: 20px;\n left: 50%;\n top: 50%;\n transform: translate(-50%,-50%);\n z-index: 9999;\n box-shadow: 0 0 10px rgba(0,0,0,.5);\n overflow: scroll;\n border-radius: 6px;\n }\n}\n\n\n.event_title {\n font-size: 1em;\n font-weight: 400;\n line-height: 167%;\n margin: 0;\n\n .before {\n color: red;\n }\n\n .after {\n color: green;\n }\n\n .before.has_more,\n .after.has_more {\n &::after {\n content: \"...\";\n }\n .more {\n display: none;\n }\n }\n\n}\n\n.event_details {\n max-height: 0;\n overflow: hidden;\n\n &.active {\n animation: showDetails 1s ease-in-out;\n max-height: 600px;\n }\n\n .event_lines {\n background: #fff;\n border: 1px solid #ebebeb;\n border-radius: 4px;\n padding: 10px 12px;\n }\n\n .event_line {\n margin-bottom: 0.2em;\n //display: flex;\n //gap: 4px;\n line-height: 167%;\n }\n\n .event_line_key {\n font-weight: 700;\n white-space: nowrap;\n margin-right: 4px;\n\n &::after {\n content: \":\";\n }\n }\n\n .event_line_value {\n\n }\n\n .before {\n color: red;\n }\n\n .after {\n color: green;\n }\n\n .before.has_more,\n .after.has_more {\n &::after {\n content: \"...\";\n }\n .more {\n display: none;\n }\n }\n\n}\n\n.event_actions {\n margin: 0;\n display: flex;\n gap: 4px;\n\n .details {\n display: flex;\n gap: 6px;\n align-items: center;\n cursor: pointer;\n min-width: 54px;\n\n i {\n font-style: normal;\n color: #2271b1;\n }\n\n .icon {\n transition: transform .3s;\n }\n\n .more {\n display: block;\n }\n\n .less {\n display: none;\n }\n }\n\n .details.active {\n .icon {\n transform: rotate(180deg);\n }\n\n .more {\n display: none;\n }\n\n .less {\n display: block;\n }\n\n }\n\n .action::before {\n content: \"|\";\n color: #a7aaad;\n display: inline-block;\n margin-right: 5px;\n }\n\n}\n\n@keyframes showDetails {\n from { max-height: 0 }\n to { max-height: 600px }\n}"],"names":[],"sourceRoot":""}1 {"version":3,"file":"index.css","mappings":"AAAA,yBACE,UAGF,cACE,UAKA,uCACE,aACA,QACA,aAIE,qEACE,YACA,cACA,qBACA,iBAQN,wCACE,aACA,QACA,mBACA,eAOF,uCACE,WACA,YAGF,0CACE,YACA,kBACA,sBACA,YACA,UACA,WACA,YACA,kBACA,mCACA,gBAEA,6CACE,SACA,kBACA,mBACA,cACA,eAGF,6CACE,2BAGF,6CACE,kBAON,uDACE,gBAGF,iBACE,gBACA,yBACA,qBACA,cAGF,sBACE,aACA,sBACA,QAEA,sCACE,eACA,gBACA,UACA,gBACA,eACA,aACA,SACA,QACA,gCACA,aACA,mCACA,gBACA,kBAKJ,aACE,cACA,gBACA,iBACA,SAEA,qBACE,UAGF,oBACE,YAKA,yEACE,cAEF,uEACE,aAMN,eACE,aACA,gBAEA,sBACE,qCACA,iBAGF,4BACE,gBACA,yBACA,kBACA,kBAGF,2BACE,mBAGA,iBAGF,+BACE,gBACA,mBACA,iBAEA,sCACE,YAQJ,uBACE,UAGF,sBACE,YAKA,6EACE,cAEF,2EACE,aAMN,eACE,SACA,aACA,QAEA,wBACE,aACA,QACA,mBACA,eACA,eAEA,0BACE,kBACA,cAGF,8BACE,yBAGF,8BACE,cAGF,8BACE,aAKF,qCACE,yBAGF,qCACE,aAGF,qCACE,cAKJ,+BACE,YACA,cACA,qBACA,iBAKJ,uBACE,kBACA,qBAIF,+DACE,Y","sources":["webpack://logdash/./assets/src/index.scss"],"sourcesContent":[".tally-does-no-exist-yet {\n color: red;\n}\n\nth#event_meta {\n width: 30%\n}\n\n.event_meta.column-event_meta {\n\n .actions {\n display: flex;\n gap: 5px;\n margin: 5px 0;\n\n .action:nth-child(2n) {\n\n &::before {\n content: \"|\";\n color: #a7aaad;\n display: inline-block;\n margin-right: 5px;\n }\n }\n }\n}\n\n.column-user_ip .ip-info-wrapper {\n\n .label {\n display: flex;\n gap: 4px;\n align-items: center;\n cursor: pointer;\n }\n\n .ip {\n\n }\n\n .more {\n width: 14px;\n height: 14px;\n }\n\n .details {\n z-index: 900;\n position: absolute;\n background-color: white;\n width: 300px;\n padding: 0;\n color: #333;\n cursor: text;\n border-radius: 6px;\n box-shadow: 0 0 12px rgb(0 0 0 / 30%);\n overflow: hidden;\n\n h2 {\n margin: 0;\n padding: 10px 20px;\n background: #1d2327;\n color: #ececed;\n font-size: 16px;\n }\n\n ul {\n margin: 10px 20px 20px 20px;\n }\n\n li {\n margin-bottom: 4px;\n }\n }\n\n}\n\n\n#toplevel_page_logdash_activity_log .wp-menu-image img {\n padding-top: 7px;\n}\n\n.value-more-link {\n margin-left: 5px;\n border: 1px solid #dedede;\n display: inline-block;\n padding: 0 2px;\n}\n\n.event_meta_container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n\n .has_more .more {\n position: fixed;\n background: #fff;\n width: 80%;\n max-width: 900px;\n max-height: 80%;\n padding: 20px;\n left: 50%;\n top: 50%;\n transform: translate(-50%,-50%);\n z-index: 9999;\n box-shadow: 0 0 10px rgba(0,0,0,.5);\n overflow: scroll;\n border-radius: 6px;\n }\n}\n\n\n.event_title {\n font-size: 1em;\n font-weight: 400;\n line-height: 167%;\n margin: 0;\n\n .before {\n color: red;\n }\n\n .after {\n color: green;\n }\n\n .before.has_more,\n .after.has_more {\n &::after {\n content: \"...\";\n }\n .more {\n display: none;\n }\n }\n\n}\n\n.event_details {\n max-height: 0;\n overflow: hidden;\n\n &.active {\n animation: showDetails 1s ease-in-out;\n max-height: 600px;\n }\n\n .event_lines {\n background: #fff;\n border: 1px solid #ebebeb;\n border-radius: 4px;\n padding: 10px 12px;\n }\n\n .event_line {\n margin-bottom: 0.2em;\n //display: flex;\n //gap: 4px;\n line-height: 167%;\n }\n\n .event_line_key {\n font-weight: 700;\n white-space: nowrap;\n margin-right: 4px;\n\n &::after {\n content: \":\";\n }\n }\n\n .event_line_value {\n\n }\n\n .before {\n color: red;\n }\n\n .after {\n color: green;\n }\n\n .before.has_more,\n .after.has_more {\n &::after {\n content: \"...\";\n }\n .more {\n display: none;\n }\n }\n\n}\n\n.event_actions {\n margin: 0;\n display: flex;\n gap: 4px;\n\n .details {\n display: flex;\n gap: 6px;\n align-items: center;\n cursor: pointer;\n min-width: 54px;\n\n i {\n font-style: normal;\n color: #2271b1;\n }\n\n .icon {\n transition: transform .3s;\n }\n\n .more {\n display: block;\n }\n\n .less {\n display: none;\n }\n }\n\n .details.active {\n .icon {\n transform: rotate(180deg);\n }\n\n .more {\n display: none;\n }\n\n .less {\n display: block;\n }\n\n }\n\n .action::before {\n content: \"|\";\n color: #a7aaad;\n display: inline-block;\n margin-right: 5px;\n }\n\n}\n\n@keyframes showDetails {\n from { max-height: 0 }\n to { max-height: 600px }\n}\n\n\nselect.ld-select + .select2-container .select2-selection--single {\n height: 30px;\n}"],"names":[],"sourceRoot":""} -
logdash-activity-log/trunk/assets/build/index.js
r2914549 r3116686 1 !function(){"use strict"; var e={624:function(e,t,n){var s=n(307);t.Z=function(e){const[t,n]=(0,s.useState)(!1),[a,c]=(0,s.useState)(null),[r,o]=(0,s.useState)(null);return(0,s.createElement)("div",{onMouseLeave:()=>n(!1)},(0,s.createElement)("div",{onClick:function(){if(sessionStorage.getItem(e.address)){const t=sessionStorage.getItem(e.address);o(JSON.parse(t)),n(!0)}else fetch(wpApiSettings.root+"logdash/v1/ip/"+e.address,{method:"get",mode:"cors",headers:{"Access-Control-Allow-Origin":"*","X-WP-Nonce":wpApiSettings.nonce}}).then((e=>e.json())).then((e=>"200"!==e.code?Promise.reject(e.data.message):e)).then((t=>(o(t.data),sessionStorage.setItem(e.address,JSON.stringify(t.data)),t.data))).catch((e=>{c(e)})).finally((()=>n(!0)))},className:"label"},(0,s.createElement)("span",{className:"ip"},e.address),(0,s.createElement)("span",{className:"more"},(0,s.createElement)("svg",{viewBox:"0 0 512 512",width:14},(0,s.createElement)("path",{d:"M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24h80c13.3 0 24-10.7 24-24s-10.7-24-24-24h-8V248c0-13.3-10.7-24-24-24H216c-13.3 0-24 10.7-24 24s10.7 24 24 24h24v64H216zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"})))),t&&(0,s.createElement)("div",{className:"details"},(0,s.createElement)("h2",null,"Details for IP: ",e.address),a?(0,s.createElement)("ul",null,(0,s.createElement)("li",null,a)):(0,s.createElement)("ul",null,(0,s.createElement)("li",null,(0,s.createElement)("b",null,"City:")," ",r.city),(0,s.createElement)("li",null,(0,s.createElement)("b",null,"Country:")," ",r.country_name,", ",r.country_code),(0,s.createElement)("li",null,(0,s.createElement)("b",null,"Latitude:")," ",r.lat),(0,s.createElement)("li",null,(0,s.createElement)("b",null,"Longitude:")," ",r.lon),(0,s.createElement)("li",null,(0,s.createElement)("b",null,"Provider:")," ",r.isp))))}},307:function(e){e.exports=window.wp.element}},t={};function n(s){var a=t[s];if(void 0!==a)return a.exports;var c=t[s]={exports:{}};return e[s](c,c.exports,n),c.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e=n(307),t=n(624);const{render:s}=wp.element;document.querySelectorAll("td.user_ip").forEach((function(n){const a=n.querySelector(".ip-info[data-ip]"),c=n.querySelector(".ip-info-wrapper");if(null!==a){const n=a.getAttribute("data-ip");null!==n&&s((0,e.createElement)(t.Z,{address:n}),c)}})),document.addEventListener("DOMContentLoaded",(()=>{!function(){const e=document.querySelectorAll(".column-event_meta");e&&e.forEach((e=>{const t=e.querySelector(".event_actions"),n=e.querySelector(".event_details");if(t){const e=t.querySelector(".details");e&&e.addEventListener("click",(()=>{e.classList.contains("active")?(e.classList.remove("active"),n.classList.remove("active")):(e.classList.add("active"),n.classList.add("active"))}))}}))}(),function(){const t=document.getElementById("logdash_reset_log");function n(e,t){const n=document.getElementById("logdash_message");n.style.display="block",n.classList.remove("notice-error","notice-success","notice-warning","notice-info"),n.classList.add(t),n.querySelector("p").innerHTML=e}t&&(document.getElementById("logdash_message"),(0,e.createElement)("p"),t.addEventListener("click",(e=>{if(e.preventDefault(),!0===confirm(t.dataset.confirmMessage)){const e=t.getAttribute("href");fetch(e,{method:"post",body:"",headers:{Accept:"application/json","Content-Type":"application/json"}}).then((e=>e.json())).then((e=>{if("success"!==e.status)throw new Error(e.message);var t;t=e.message,console.log(t),n(t,"notice-success")})).catch((e=>{n(e,"notice-error")}))}})))}()}))}()}();1 !function(){"use strict";const{render:e}=wp.element;document.addEventListener("DOMContentLoaded",(()=>{!function(){const e=document.querySelectorAll(".column-event_meta");e&&e.forEach((e=>{const t=e.querySelector(".event_actions"),s=e.querySelector(".event_details");if(t){const e=t.querySelector(".details");e&&e.addEventListener("click",(()=>{e.classList.contains("active")?(e.classList.remove("active"),s.classList.remove("active")):(e.classList.add("active"),s.classList.add("active"))}))}}))}(),function(){const e=document.getElementById("logdash_reset_log");function t(e,t){const s=document.getElementById("logdash_message");s.style.display="block",s.classList.remove("notice-error","notice-success","notice-warning","notice-info"),s.classList.add(t),s.querySelector("p").innerHTML=e}e&&(document.getElementById("logdash_message"),document.createElement("p"),e.addEventListener("click",(s=>{if(s.preventDefault(),!0===confirm(e.dataset.confirmMessage)){const s=e.getAttribute("href");fetch(s,{method:"post",body:"",headers:{Accept:"application/json","Content-Type":"application/json"}}).then((e=>e.json())).then((e=>{if("success"!==e.status)throw new Error(e.message);var s;s=e.message,console.log(s),t(s,"notice-success")})).catch((e=>{t(e,"notice-error")}))}})))}()})),jQuery(document).ready((function(e){e("select.ld-select").select2()}))}(); 2 2 //# sourceMappingURL=index.js.map -
logdash-activity-log/trunk/assets/build/index.js.map
r2914549 r3116686 1 {"version":3,"file":"index.js","mappings":" iEAqFA,IAnFA,SAAmBA,GACf,MAAOC,EAASC,IAAcC,EAAAA,EAAAA,WAAS,IAChCC,EAAOC,IAAYF,EAAAA,EAAAA,UAAS,OAC5BG,EAASC,IAAcJ,EAAAA,EAAAA,UAAS,MA8DvC,OACIK,EAAAA,EAAAA,eAAA,OACIC,aAAcA,IAAMP,GAAW,KAC/BM,EAAAA,EAAAA,eAAA,OAAKE,QA/Db,WAGI,GAAIC,eAAeC,QAAQZ,EAAMa,SAAU,CAEvC,MAAMC,EAAgBH,eAAeC,QAAQZ,EAAMa,SACnDN,EAAWQ,KAAKC,MAAMF,IACtBZ,GAAW,EAEf,MAEIe,MAAMC,cAAcC,KAAO,iBAAmBnB,EAAMa,QAAS,CACzDO,OAAQ,MACRC,KAAM,OACNC,QAAS,CACL,8BAA+B,IAC/B,aAAcJ,cAAcK,SAG/BC,MAAKC,GAAYA,EAASC,SAC1BF,MAAKC,GACoB,QAAlBA,EAASE,KACFC,QAAQC,OAAOJ,EAASK,KAAKC,SAEjCN,IAEVD,MAAKC,IACFlB,EAAWkB,EAASK,MACpBnB,eAAeqB,QAAQhC,EAAMa,QAASE,KAAKkB,UAAUR,EAASK,OACvDL,EAASK,QAEnBI,OAAO9B,IACJC,EAASD,EAAM,IAElB+B,SAAQ,IAAMjC,GAAW,IAItC,EAyBmCkC,UAAW,UAClC5B,EAAAA,EAAAA,eAAA,QAAM4B,UAAW,MAAOpC,EAAMa,UAC9BL,EAAAA,EAAAA,eAAA,QAAM4B,UAAW,SAAQ5B,EAAAA,EAAAA,eAAA,OAAK6B,QAAQ,cAAcC,MAAO,KAAI9B,EAAAA,EAAAA,eAAA,QAC3D+B,EAAE,mTAETtC,IACGO,EAAAA,EAAAA,eAAA,OAAK4B,UAAW,YACZ5B,EAAAA,EAAAA,eAAA,UAAI,mBAAiBR,EAAMa,SA7BnCT,GAEII,EAAAA,EAAAA,eAAA,WACIA,EAAAA,EAAAA,eAAA,UAAKJ,KAKTI,EAAAA,EAAAA,eAAA,WACIA,EAAAA,EAAAA,eAAA,WAAIA,EAAAA,EAAAA,eAAA,SAAG,SAAS,IAAEF,EAAQkC,OAC1BhC,EAAAA,EAAAA,eAAA,WAAIA,EAAAA,EAAAA,eAAA,SAAG,YAAY,IAAEF,EAAQmC,aAAa,KAAInC,EAAQoC,eACtDlC,EAAAA,EAAAA,eAAA,WAAIA,EAAAA,EAAAA,eAAA,SAAG,aAAa,IAAEF,EAAQqC,MAC9BnC,EAAAA,EAAAA,eAAA,WAAIA,EAAAA,EAAAA,eAAA,SAAG,cAAc,IAAEF,EAAQsC,MAC/BpC,EAAAA,EAAAA,eAAA,WAAIA,EAAAA,EAAAA,eAAA,SAAG,aAAa,IAAEF,EAAQuC,OAsBlD,C,kBCnFAC,EAAOC,QAAUC,OAAW,GAAW,O,GCCnCC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaL,QAGrB,IAAID,EAASG,EAAyBE,GAAY,CAGjDJ,QAAS,CAAC,GAOX,OAHAO,EAAoBH,GAAUL,EAAQA,EAAOC,QAASG,GAG/CJ,EAAOC,OACf,CCrBAG,EAAoBK,EAAI,SAAST,GAChC,IAAIU,EAASV,GAAUA,EAAOW,WAC7B,WAAa,OAAOX,EAAgB,OAAG,EACvC,WAAa,OAAOA,CAAQ,EAE7B,OADAI,EAAoBX,EAAEiB,EAAQ,CAAEE,EAAGF,IAC5BA,CACR,ECNAN,EAAoBX,EAAI,SAASQ,EAASY,GACzC,IAAI,IAAIC,KAAOD,EACXT,EAAoBW,EAAEF,EAAYC,KAASV,EAAoBW,EAAEd,EAASa,IAC5EE,OAAOC,eAAehB,EAASa,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAG3E,ECPAV,EAAoBW,EAAI,SAASK,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,EAAO,E,iCCAtG,MAAM,OAACI,GAAUC,GAAGC,QAKpBC,SAASC,iBAAiB,cAAcC,SAAQ,SAAUC,GACtD,MAAMC,EAAWD,EAAKE,cAAc,qBAC9BC,EAAcH,EAAKE,cAAc,oBAEvC,GAAiB,OAAbD,EAAmB,CACnB,MAAMG,EAAKH,EAASI,aAAa,WAEtB,OAAPD,GACAV,GAAO/D,EAAAA,EAAAA,eAAC2E,EAAAA,EAAS,CAACtE,QAASoE,IAAOD,EAE1C,CACJ,IAEAN,SAASU,iBAAiB,oBAAoB,MAK9C,WAGI,MAAMC,EAAaX,SAASC,iBAAiB,sBAEzCU,GAEAA,EAAWT,SAASU,IAEhB,MAAMC,EAAeD,EAAKP,cAAc,kBAClCS,EAAeF,EAAKP,cAAc,kBAExC,GAAIQ,EAAc,CAEd,MAAME,EAAaF,EAAaR,cAAc,YAE1CU,GAEAA,EAAWL,iBAAiB,SAAS,KAE5BK,EAAWC,UAAUC,SAAS,WAI/BF,EAAWC,UAAUE,OAAO,UAC5BJ,EAAaE,UAAUE,OAAO,YAJ9BH,EAAWC,UAAUG,IAAI,UACzBL,EAAaE,UAAUG,IAAI,UAI/B,GAKZ,IAMZ,CAzCIC,GA2CJ,WAEI,MAAMC,EAAmBrB,SAASsB,eAAe,qBAqCjD,SAASC,EAAelE,EAASmE,GAC7B,MAAMC,EAAkBzB,SAASsB,eAAe,mBAEhDG,EAAgBC,MAAMC,QAAU,QAChCF,EAAgBT,UAAUE,OAAO,eAAgB,iBAAkB,iBAAkB,eACrFO,EAAgBT,UAAUG,IAAIK,GAC9BC,EAAgBpB,cAAc,KAAKuB,UAAYvE,CACnD,CA1CIgE,IAEwBrB,SAASsB,eAAe,oBAChCxF,EAAAA,EAAAA,eAAc,KAE9BuF,EAAiBX,iBAAiB,SAAUmB,IAIxC,GAFAA,EAAEC,kBAEuD,IAArDC,QAAQV,EAAiBW,QAAQC,gBAA0B,CAE3D,MAAMC,EAAMb,EAAiBb,aAAa,QAE1CjE,MAAM2F,EAAK,CACPxF,OAAQ,OACRyF,KAAM,GACNvF,QAAS,CACL,OAAU,mBACV,eAAgB,sBAErBE,MAAMC,GACEA,EAASC,SACjBF,MAAMsF,IACL,GAAmB,YAAfA,EAAIC,OACJ,MAAM,IAAIC,MAAMF,EAAI/E,SAoBxC,IAAwBA,IAlBW+E,EAAI/E,QAmBnCkF,QAAQC,IAAInF,GACZkE,EAAelE,EAAS,iBAnBZ,IACDG,OAAO9B,IAsBlB6F,EArByB7F,EAqBD,eArBO,GAE3B,KAsBZ,CAnGI+G,EAAU,G","sources":["webpack://logdash/./assets/src/IpDetails.jsx","webpack://logdash/external window [\"wp\",\"element\"]","webpack://logdash/webpack/bootstrap","webpack://logdash/webpack/runtime/compat get default export","webpack://logdash/webpack/runtime/define property getters","webpack://logdash/webpack/runtime/hasOwnProperty shorthand","webpack://logdash/./assets/src/index.js"],"sourcesContent":["import {useState} from '@wordpress/element';\n\nfunction IpDetails(props) {\n const [isShown, setIsShown] = useState(false);\n const [error, setError] = useState(null);\n const [details, setDetails] = useState(null);\n\n function loadAndShow() {\n\n\n if (sessionStorage.getItem(props.address)) {\n\n const storedDetails = sessionStorage.getItem(props.address);\n setDetails(JSON.parse(storedDetails));\n setIsShown(true);\n\n } else {\n\n fetch(wpApiSettings.root + 'logdash/v1/ip/' + props.address, {\n method: 'get',\n mode: 'cors',\n headers: {\n 'Access-Control-Allow-Origin': '*',\n 'X-WP-Nonce': wpApiSettings.nonce\n }\n })\n .then(response => response.json())\n .then(response => {\n if (response.code !== '200') {\n return Promise.reject(response.data.message);\n }\n return response;\n })\n .then(response => {\n setDetails(response.data);\n sessionStorage.setItem(props.address, JSON.stringify(response.data));\n return response.data;\n })\n .catch((error) => {\n setError(error);\n })\n .finally(() => setIsShown(true));\n\n }\n\n }\n\n function viewDetails() {\n if (error) {\n return (\n <ul>\n <li>{error}</li>\n </ul>\n )\n } else {\n return (\n <ul>\n <li><b>City:</b> {details.city}</li>\n <li><b>Country:</b> {details.country_name}, { details.country_code }</li>\n <li><b>Latitude:</b> {details.lat}</li>\n <li><b>Longitude:</b> {details.lon}</li>\n <li><b>Provider:</b> {details.isp}</li>\n </ul>\n )\n }\n }\n\n return (\n <div\n onMouseLeave={() => setIsShown(false)}>\n <div onClick={loadAndShow} className={'label'}>\n <span className={'ip'}>{props.address}</span>\n <span className={'more'}><svg viewBox=\"0 0 512 512\" width={14}><path\n d=\"M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24h80c13.3 0 24-10.7 24-24s-10.7-24-24-24h-8V248c0-13.3-10.7-24-24-24H216c-13.3 0-24 10.7-24 24s10.7 24 24 24h24v64H216zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z\"/></svg></span>\n </div>\n {isShown && (\n <div className={'details'}>\n <h2>Details for IP: {props.address}</h2>\n {viewDetails()}\n </div>\n )}\n </div>\n );\n}\n\nexport default IpDetails;","module.exports = window[\"wp\"][\"element\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","const {render} = wp.element; //we are using wp.element here!\nimport './index.scss'\n\nimport IpDetails from \"./IpDetails\";\n\ndocument.querySelectorAll('td.user_ip').forEach(function (item) {\n const linkItem = item.querySelector('.ip-info[data-ip]');\n const infoWrapper = item.querySelector('.ip-info-wrapper');\n\n if (linkItem !== null) {\n const ip = linkItem.getAttribute('data-ip');\n\n if (ip !== null) {\n render(<IpDetails address={ip}/>, infoWrapper);\n }\n }\n});\n\ndocument.addEventListener('DOMContentLoaded', () => {\n expandEventDetails();\n resetLog();\n});\n\nfunction expandEventDetails() {\n\n\n const eventCells = document.querySelectorAll('.column-event_meta');\n\n if (eventCells) {\n\n eventCells.forEach((cell) => {\n\n const eventActions = cell.querySelector('.event_actions');\n const eventDetails = cell.querySelector('.event_details');\n\n if (eventActions) {\n\n const detailsBtn = eventActions.querySelector('.details');\n\n if (detailsBtn) {\n\n detailsBtn.addEventListener('click', () => {\n\n if (!detailsBtn.classList.contains('active')) {\n detailsBtn.classList.add('active');\n eventDetails.classList.add('active');\n } else {\n detailsBtn.classList.remove('active');\n eventDetails.classList.remove('active');\n }\n\n })\n }\n\n }\n\n })\n\n }\n\n}\n\nfunction resetLog() {\n\n const reset_log_anchor = document.getElementById('logdash_reset_log');\n\n if (reset_log_anchor) {\n\n const message_element = document.getElementById('logdash_message');\n const message = createElement('p');\n\n reset_log_anchor.addEventListener('click', (e) => {\n\n e.preventDefault();\n\n if (confirm(reset_log_anchor.dataset.confirmMessage) === true) {\n\n const url = reset_log_anchor.getAttribute('href');\n\n fetch(url, {\n method: 'post',\n body: '',\n headers: {\n 'Accept': 'application/json',\n 'Content-Type': 'application/json'\n }\n }).then((response) => {\n return response.json()\n }).then((res) => {\n if (res.status !== 'success') {\n throw new Error(res.message);\n } else {\n displaySuccess(res.message);\n }\n }).catch((error) => {\n displayError(error);\n })\n }\n })\n }\n\n function displayMessage(message, type) {\n const message_element = document.getElementById('logdash_message');\n\n message_element.style.display = 'block';\n message_element.classList.remove('notice-error', 'notice-success', 'notice-warning', 'notice-info');\n message_element.classList.add(type);\n message_element.querySelector('p').innerHTML = message;\n }\n\n function displaySuccess(message) {\n console.log(message);\n displayMessage(message, 'notice-success');\n }\n\n function displayError(message) {\n displayMessage(message, 'notice-error');\n }\n\n}"],"names":["props","isShown","setIsShown","useState","error","setError","details","setDetails","createElement","onMouseLeave","onClick","sessionStorage","getItem","address","storedDetails","JSON","parse","fetch","wpApiSettings","root","method","mode","headers","nonce","then","response","json","code","Promise","reject","data","message","setItem","stringify","catch","finally","className","viewBox","width","d","city","country_name","country_code","lat","lon","isp","module","exports","window","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","render","wp","element","document","querySelectorAll","forEach","item","linkItem","querySelector","infoWrapper","ip","getAttribute","IpDetails","addEventListener","eventCells","cell","eventActions","eventDetails","detailsBtn","classList","contains","remove","add","expandEventDetails","reset_log_anchor","getElementById","displayMessage","type","message_element","style","display","innerHTML","e","preventDefault","confirm","dataset","confirmMessage","url","body","res","status","Error","console","log","resetLog"],"sourceRoot":""}1 {"version":3,"file":"index.js","mappings":"yBAAA,MAAM,OAACA,GAAUC,GAAGC,QAGpBC,SAASC,iBAAiB,oBAAoB,MAK9C,WAGI,MAAMC,EAAaF,SAASG,iBAAiB,sBAEzCD,GAEAA,EAAWE,SAASC,IAEhB,MAAMC,EAAeD,EAAKE,cAAc,kBAClCC,EAAeH,EAAKE,cAAc,kBAExC,GAAID,EAAc,CAEd,MAAMG,EAAaH,EAAaC,cAAc,YAE1CE,GAEAA,EAAWR,iBAAiB,SAAS,KAE5BQ,EAAWC,UAAUC,SAAS,WAI/BF,EAAWC,UAAUE,OAAO,UAC5BJ,EAAaE,UAAUE,OAAO,YAJ9BH,EAAWC,UAAUG,IAAI,UACzBL,EAAaE,UAAUG,IAAI,UAI/B,GAKZ,IAMZ,CAzCIC,GA2CJ,WAEI,MAAMC,EAAmBf,SAASgB,eAAe,qBAqCjD,SAASC,EAAeC,EAASC,GAC7B,MAAMC,EAAkBpB,SAASgB,eAAe,mBAEhDI,EAAgBC,MAAMC,QAAU,QAChCF,EAAgBV,UAAUE,OAAO,eAAgB,iBAAkB,iBAAkB,eACrFQ,EAAgBV,UAAUG,IAAIM,GAC9BC,EAAgBb,cAAc,KAAKgB,UAAYL,CACnD,CA1CIH,IAEwBf,SAASgB,eAAe,mBAChChB,SAASwB,cAAc,KAEvCT,EAAiBd,iBAAiB,SAAUwB,IAIxC,GAFAA,EAAEC,kBAEuD,IAArDC,QAAQZ,EAAiBa,QAAQC,gBAA0B,CAE3D,MAAMC,EAAMf,EAAiBgB,aAAa,QAE1CC,MAAMF,EAAK,CACPG,OAAQ,OACRC,KAAM,GACNC,QAAS,CACL,OAAU,mBACV,eAAgB,sBAErBC,MAAMC,GACEA,EAASC,SACjBF,MAAMG,IACL,GAAmB,YAAfA,EAAIC,OACJ,MAAM,IAAIC,MAAMF,EAAIrB,SAoBxC,IAAwBA,IAlBWqB,EAAIrB,QAmBnCwB,QAAQC,IAAIzB,GACZD,EAAeC,EAAS,iBAnBZ,IACD0B,OAAOC,IAsBlB5B,EArByB4B,EAqBD,eArBO,GAE3B,KAsBZ,CAnGIC,EAAU,IAsGdC,OAAO/C,UAAUgD,OAAM,SAASC,GAC5BA,EAAE,oBAAoBC,SAC1B,G","sources":["webpack://logdash/./assets/src/index.js"],"sourcesContent":["const {render} = wp.element; //we are using wp.element here!\nimport './index.scss'\n\ndocument.addEventListener('DOMContentLoaded', () => {\n expandEventDetails();\n resetLog();\n});\n\nfunction expandEventDetails() {\n\n\n const eventCells = document.querySelectorAll('.column-event_meta');\n\n if (eventCells) {\n\n eventCells.forEach((cell) => {\n\n const eventActions = cell.querySelector('.event_actions');\n const eventDetails = cell.querySelector('.event_details');\n\n if (eventActions) {\n\n const detailsBtn = eventActions.querySelector('.details');\n\n if (detailsBtn) {\n\n detailsBtn.addEventListener('click', () => {\n\n if (!detailsBtn.classList.contains('active')) {\n detailsBtn.classList.add('active');\n eventDetails.classList.add('active');\n } else {\n detailsBtn.classList.remove('active');\n eventDetails.classList.remove('active');\n }\n\n })\n }\n\n }\n\n })\n\n }\n\n}\n\nfunction resetLog() {\n\n const reset_log_anchor = document.getElementById('logdash_reset_log');\n\n if (reset_log_anchor) {\n\n const message_element = document.getElementById('logdash_message');\n const message = document.createElement('p');\n\n reset_log_anchor.addEventListener('click', (e) => {\n\n e.preventDefault();\n\n if (confirm(reset_log_anchor.dataset.confirmMessage) === true) {\n\n const url = reset_log_anchor.getAttribute('href');\n\n fetch(url, {\n method: 'post',\n body: '',\n headers: {\n 'Accept': 'application/json',\n 'Content-Type': 'application/json'\n }\n }).then((response) => {\n return response.json()\n }).then((res) => {\n if (res.status !== 'success') {\n throw new Error(res.message);\n } else {\n displaySuccess(res.message);\n }\n }).catch((error) => {\n displayError(error);\n })\n }\n })\n }\n\n function displayMessage(message, type) {\n const message_element = document.getElementById('logdash_message');\n\n message_element.style.display = 'block';\n message_element.classList.remove('notice-error', 'notice-success', 'notice-warning', 'notice-info');\n message_element.classList.add(type);\n message_element.querySelector('p').innerHTML = message;\n }\n\n function displaySuccess(message) {\n console.log(message);\n displayMessage(message, 'notice-success');\n }\n\n function displayError(message) {\n displayMessage(message, 'notice-error');\n }\n\n}\n\n\njQuery(document).ready(function($) {\n $('select.ld-select').select2();\n});"],"names":["render","wp","element","document","addEventListener","eventCells","querySelectorAll","forEach","cell","eventActions","querySelector","eventDetails","detailsBtn","classList","contains","remove","add","expandEventDetails","reset_log_anchor","getElementById","displayMessage","message","type","message_element","style","display","innerHTML","createElement","e","preventDefault","confirm","dataset","confirmMessage","url","getAttribute","fetch","method","body","headers","then","response","json","res","status","Error","console","log","catch","error","resetLog","jQuery","ready","$","select2"],"sourceRoot":""} -
logdash-activity-log/trunk/assets/src/index.js
r2914549 r3116686 1 1 const {render} = wp.element; //we are using wp.element here! 2 2 import './index.scss' 3 4 import IpDetails from "./IpDetails";5 6 document.querySelectorAll('td.user_ip').forEach(function (item) {7 const linkItem = item.querySelector('.ip-info[data-ip]');8 const infoWrapper = item.querySelector('.ip-info-wrapper');9 10 if (linkItem !== null) {11 const ip = linkItem.getAttribute('data-ip');12 13 if (ip !== null) {14 render(<IpDetails address={ip}/>, infoWrapper);15 }16 }17 });18 3 19 4 document.addEventListener('DOMContentLoaded', () => { … … 68 53 69 54 const message_element = document.getElementById('logdash_message'); 70 const message = createElement('p');55 const message = document.createElement('p'); 71 56 72 57 reset_log_anchor.addEventListener('click', (e) => { … … 119 104 120 105 } 106 107 108 jQuery(document).ready(function($) { 109 $('select.ld-select').select2(); 110 }); -
logdash-activity-log/trunk/assets/src/index.scss
r2914549 r3116686 251 251 to { max-height: 600px } 252 252 } 253 254 255 select.ld-select + .select2-container .select2-selection--single { 256 height: 30px; 257 } -
logdash-activity-log/trunk/composer.json
r2914549 r3116686 13 13 "email": "[email protected]" 14 14 } 15 ] 15 ], 16 "config": { 17 "platform": { 18 "php": "7.4.0" 19 } 20 } 16 21 } -
logdash-activity-log/trunk/composer.lock
r2914549 r3116686 5 5 "This file is @generated automatically" 6 6 ], 7 "content-hash": " 28e64b2400dfc7458184668d0de1f8ea",7 "content-hash": "6c718d8309afefe695e6171e08f2b8b9", 8 8 "packages": [], 9 9 "packages-dev": [], … … 15 15 "platform": [], 16 16 "platform-dev": [], 17 "platform-overrides": { 18 "php": "7.4.0" 19 }, 17 20 "plugin-api-version": "2.3.0" 18 21 } -
logdash-activity-log/trunk/languages/logdash-activity-log-es_ES.po
r2916051 r3116686 2 2 msgstr "" 3 3 "Project-Id-Version: LogDash Activity Log\n" 4 "POT-Creation-Date: 202 3-05-22 11:27-0400\n"5 "PO-Revision-Date: 202 3-05-22 11:28-0400\n"4 "POT-Creation-Date: 2024-07-09 14:44-0400\n" 5 "PO-Revision-Date: 2024-07-09 14:46-0400\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: \n" … … 11 11 "Content-Transfer-Encoding: 8bit\n" 12 12 "Plural-Forms: nplurals=2; plural=(n != 1);\n" 13 "X-Generator: Poedit 3. 3\n"13 "X-Generator: Poedit 3.4.4\n" 14 14 "X-Poedit-Basepath: ..\n" 15 15 "X-Poedit-Flags-xgettext: --add-comments=translators:\n" … … 24 24 "X-Poedit-SearchPathExcluded-2: node_modules\n" 25 25 26 #: src/Actions/ResetLog.php:43 26 #: src/Actions/RemoveExpiredLog.php:72 27 msgid "seconds" 28 msgstr "segundos" 29 30 #: src/Actions/ResetLog.php:46 27 31 msgid "There is an issue with reset request." 28 32 msgstr "Hay un problema con la solicitud de restablecimiento." 29 33 30 #: src/Actions/ResetLog.php:5 134 #: src/Actions/ResetLog.php:54 31 35 msgid "You are not authorized to perform this action." 32 36 msgstr "No estás autorizado para realizar esta acción." 33 37 34 #: src/Actions/ResetLog.php: 6238 #: src/Actions/ResetLog.php:77 35 39 #, php-format 36 40 msgid "Reset failed: (%s)" 37 41 msgstr "Reinicio fallido: (%s)" 38 42 39 #: src/Actions/ResetLog.php: 7043 #: src/Actions/ResetLog.php:85 40 44 msgid "All events were deleted." 41 45 msgstr "Se han eliminado todos los eventos." 42 46 43 #: src/Admin/Events Page.php:3247 #: src/Admin/EventsAdminPage.php:31 44 48 msgid "LogDash Activity Log Viewer" 45 49 msgstr "Visor de registros de actividad LogDash" 46 50 47 #: src/Admin/Events Page.php:3351 #: src/Admin/EventsAdminPage.php:32 48 52 msgid "LogDash" 49 53 msgstr "LogDash" 50 54 51 #: src/Admin/Events Page.php:4555 #: src/Admin/EventsAdminPage.php:45 52 56 msgid "Activity Log" 53 57 msgstr "Eventos" 54 58 55 #: src/Admin/Events Page.php:5059 #: src/Admin/EventsAdminPage.php:52 56 60 msgid "Users Per Page" 57 61 msgstr "Usuarios por página" 58 62 59 #: src/Admin/Events Page.php:65views/admin/events.template.php:1263 #: src/Admin/EventsAdminPage.php:67 views/admin/events.template.php:12 60 64 msgid "Search" 61 65 msgstr "Buscar" 62 66 63 #: src/Admin/Events Table.php:3067 #: src/Admin/EventsListTable.php:26 64 68 msgid "Code" 65 69 msgstr "Código" 66 70 67 #: src/Admin/Events Table.php:3171 #: src/Admin/EventsListTable.php:27 68 72 msgid "Date" 69 73 msgstr "Fecha" 70 74 71 #: src/Admin/EventsTable.php:32 src/Hooks/Users.php:311 src/Hooks/Users.php:362 75 #: src/Admin/EventsListTable.php:28 src/Hooks/Users.php:329 76 #: src/Hooks/Users.php:380 72 77 msgid "User" 73 78 msgstr "Usuario" 74 79 75 #: src/Admin/Events Table.php:3380 #: src/Admin/EventsListTable.php:29 76 81 msgid "IP" 77 82 msgstr "IP" 78 83 79 #: src/Admin/Events Table.php:3484 #: src/Admin/EventsListTable.php:30 80 85 msgid "Context" 81 86 msgstr "Contexto" 82 87 83 #: src/Admin/Events Table.php:3588 #: src/Admin/EventsListTable.php:31 84 89 msgid "Action" 85 90 msgstr "Acción" 86 91 87 #: src/Admin/Events Table.php:3692 #: src/Admin/EventsListTable.php:32 88 93 msgid "Meta " 89 94 msgstr "Meta " 90 95 91 #: src/Admin/Events Table.php:4296 #: src/Admin/EventsListTable.php:38 92 97 msgid "No events have been found that meet your search criteria." 93 98 msgstr "" 94 99 "No se han encontrado eventos que se ajusten a sus criterios de búsqueda." 95 100 96 #: src/Admin/Events Table.php:44101 #: src/Admin/EventsListTable.php:40 97 102 msgid "No events have been logged yet." 98 103 msgstr "Aún no se ha registrado ningún evento." 99 104 100 #: src/Admin/Events Table.php:318105 #: src/Admin/EventsListTable.php:333 101 106 #, php-format 102 107 msgid "Select %s" 103 108 msgstr "Seleccionar %s" 104 109 105 #: src/Admin/Events Table.php:348110 #: src/Admin/EventsListTable.php:367 106 111 msgid "All time" 107 112 msgstr "Todos" 108 113 109 #: src/Admin/Events Table.php:349114 #: src/Admin/EventsListTable.php:368 110 115 msgid "Today" 111 116 msgstr "Hoy" 112 117 113 #: src/Admin/Events Table.php:350118 #: src/Admin/EventsListTable.php:369 114 119 msgid "Yesterday" 115 120 msgstr "Ayer" 116 121 117 #: src/Admin/Events Table.php:351122 #: src/Admin/EventsListTable.php:370 118 123 msgid "Last Week" 119 124 msgstr "Semana pasada" 120 125 121 #: src/Admin/Events Table.php:352126 #: src/Admin/EventsListTable.php:371 122 127 msgid "Last Month" 123 128 msgstr "Mes pasado" 124 129 125 #: src/Admin/Events Table.php:379130 #: src/Admin/EventsListTable.php:398 126 131 msgid "All Roles" 127 132 msgstr "Todos los roles" 128 133 129 #: src/Admin/Events Table.php:396134 #: src/Admin/EventsListTable.php:415 130 135 msgid "All Users" 131 136 msgstr "Todos los usuarios" 132 137 133 #: src/Admin/Events Table.php:420138 #: src/Admin/EventsListTable.php:441 134 139 msgid "All Contexts" 135 140 msgstr "Todos" 136 141 137 #: src/Admin/Events Table.php:448142 #: src/Admin/EventsListTable.php:471 138 143 msgid "All Actions" 139 144 msgstr "Todas las acciones" 140 145 141 #: src/Admin/Events Table.php:462146 #: src/Admin/EventsListTable.php:485 142 147 msgid "Reset filter" 143 148 msgstr "Restablecer filtro" … … 164 169 msgstr "se borraron %s registros en %s" 165 170 166 #: src/Admin/Settings.php:95 171 #: src/Admin/Settings.php:91 172 #, php-format 173 msgid "and the execution time was %s" 174 msgstr "y el tiempo de ejecución fue de %s" 175 176 #: src/Admin/Settings.php:99 167 177 msgid "Store logs for" 168 178 msgstr "Almacenar registros para" 169 179 170 #: src/Admin/Settings.php:10 5180 #: src/Admin/Settings.php:109 171 181 msgid "days" 172 182 msgstr "días" 173 183 174 #: src/Admin/Settings.php:1 06184 #: src/Admin/Settings.php:110 175 185 msgid "" 176 186 "Specify the length of time you want to retain the activity log. If left " … … 182 192 "aunque no es recomendable." 183 193 184 #: src/Admin/Settings.php:1 17194 #: src/Admin/Settings.php:121 185 195 msgid "Delete Log Activities" 186 196 msgstr "Borrar actividades de registro" 187 197 188 #: src/Admin/Settings.php:1 26198 #: src/Admin/Settings.php:130 189 199 msgid "" 190 200 "Warning: Clicking this will delete all events from the database. Tables and " … … 194 204 "datos. Se mantendrán las tablas y la estructura." 195 205 196 #: src/Admin/Settings.php:1 27206 #: src/Admin/Settings.php:131 197 207 msgid "All data will be deleted. Are you sure do you want to continue?" 198 208 msgstr "Se borrarán todos los datos. ¿Está seguro de que desea continuar?" 199 209 200 #: src/EventCodes.php:1 15210 #: src/EventCodes.php:122 src/EventInfo.php:13 201 211 msgid "Default event." 202 212 msgstr "Evento por defecto." 203 213 204 #: src/EventCodes.php:1 17214 #: src/EventCodes.php:124 src/EventInfo.php:17 205 215 #, php-format 206 216 msgid "Updated WordPress from %s to %s" 207 217 msgstr "Actualizado WordPress de %s a %s" 208 218 209 #: src/EventCodes.php:1 18219 #: src/EventCodes.php:125 src/EventInfo.php:25 210 220 #, php-format 211 221 msgid "Downgraded WordPress from %s to %s" 212 222 msgstr "WordPress ha pasado de %s a %s" 213 223 214 #: src/EventCodes.php:1 19224 #: src/EventCodes.php:126 src/EventInfo.php:21 215 225 #, php-format 216 226 msgid "Reinstalled WordPress %s" 217 227 msgstr "Reinstalado WordPress %s" 218 228 219 #: src/EventCodes.php:12 1229 #: src/EventCodes.php:128 src/EventInfo.php:29 220 230 msgid "Plugin uploaded" 221 231 msgstr "Plugin cargado" 222 232 223 #: src/EventCodes.php:12 2233 #: src/EventCodes.php:129 src/EventInfo.php:33 224 234 msgid "Plugin downloaded" 225 235 msgstr "Plugin descargado" 226 236 227 #: src/EventCodes.php:1 23237 #: src/EventCodes.php:130 src/EventInfo.php:37 228 238 #, php-format 229 239 msgid "Installed %s %s plugin at %s" 230 240 msgstr "Plugin instalado %s %s en %s" 231 241 232 #: src/EventCodes.php:1 24242 #: src/EventCodes.php:131 src/EventInfo.php:41 233 243 #, php-format 234 244 msgid "Uninstalled %s %s plugin at %s" 235 245 msgstr "Desinstalado %s %s plugin en %s" 236 246 237 #: src/EventCodes.php:1 25247 #: src/EventCodes.php:132 src/EventInfo.php:45 238 248 #, php-format 239 249 msgid "Activated the plugin %s %s" 240 250 msgstr "Activado el plugin %s %s" 241 251 242 #: src/EventCodes.php:1 26252 #: src/EventCodes.php:133 243 253 #, php-format 244 254 msgid "Deactivated de plugin %s %s deactivated" 245 255 msgstr "Desactivado de plugin %s %s desactivado" 246 256 247 #: src/EventCodes.php:1 27257 #: src/EventCodes.php:134 src/EventInfo.php:53 248 258 #, php-format 249 259 msgid "Upgraded plugin %s to version %s" 250 260 msgstr "Actualizado plugin %s a la versión %s" 251 261 252 #: src/EventCodes.php:1 29262 #: src/EventCodes.php:136 src/EventInfo.php:57 253 263 #, php-format 254 264 msgid "Uploaded theme %s %s" 255 265 msgstr "Tema subido %s %s" 256 266 257 #: src/EventCodes.php:13 0267 #: src/EventCodes.php:137 src/EventInfo.php:61 258 268 #, php-format 259 269 msgid "Downloaded theme %s %s" 260 270 msgstr "Tema descargado %s %s" 261 271 262 #: src/EventCodes.php:13 1272 #: src/EventCodes.php:138 src/EventInfo.php:65 263 273 #, php-format 264 274 msgid "Installed theme %s %s" 265 275 msgstr "Tema instalado %s %s" 266 276 267 #: src/EventCodes.php:13 2277 #: src/EventCodes.php:139 src/EventInfo.php:69 268 278 #, php-format 269 279 msgid "Uninstalled theme %s %s" 270 280 msgstr "Tema desinstalado %s %s" 271 281 272 #: src/EventCodes.php:1 33282 #: src/EventCodes.php:140 src/EventInfo.php:73 273 283 #, php-format 274 284 msgid "Activated theme %s %s" 275 285 msgstr "Tema activado %s %s" 276 286 277 #: src/EventCodes.php:1 34287 #: src/EventCodes.php:141 src/EventInfo.php:77 278 288 #, php-format 279 289 msgid "Deactivated theme %s %s" 280 290 msgstr "Tema desactivado %s %s" 281 291 282 #: src/EventCodes.php:1 35292 #: src/EventCodes.php:142 src/EventInfo.php:81 283 293 #, php-format 284 294 msgid "Upgraded theme %s to version %s" 285 295 msgstr "Actualizado el tema %s a la versión %s" 286 296 287 #: src/EventCodes.php:1 37297 #: src/EventCodes.php:144 src/EventInfo.php:85 288 298 #, php-format 289 299 msgid "User %s logged in." 290 300 msgstr "Usuario %s conectado." 291 301 292 #: src/EventCodes.php:1 38302 #: src/EventCodes.php:145 src/EventInfo.php:89 293 303 #, php-format 294 304 msgid "User %s logged out." 295 305 msgstr "Usuario %s desconectado." 296 306 297 #: src/EventCodes.php:1 39307 #: src/EventCodes.php:146 src/EventInfo.php:93 298 308 #, php-format 299 309 msgid "Failed login attempt for %s." 300 310 msgstr "Intento de inicio de sesión fallido para %s." 301 311 302 #: src/EventCodes.php:14 0312 #: src/EventCodes.php:147 src/EventInfo.php:97 303 313 #, php-format 304 314 msgid "All %s user sessions were closed." 305 315 msgstr "Se han cerrado todas las sesiones de usuario %s." 306 316 307 #: src/EventCodes.php:14 1317 #: src/EventCodes.php:148 src/EventInfo.php:101 308 318 #, php-format 309 319 msgid "User %s created." 310 320 msgstr "Usuario %s creado." 311 321 312 #: src/EventCodes.php:14 2322 #: src/EventCodes.php:149 src/EventInfo.php:105 313 323 #, php-format 314 324 msgid "User %s deleted." 315 325 msgstr "Usuario %s eliminado." 316 326 317 #: src/EventCodes.php:1 43327 #: src/EventCodes.php:150 src/EventInfo.php:109 318 328 #, php-format 319 329 msgid "User %s profile updated." 320 330 msgstr "Perfil del usuario %s actualizado." 321 331 322 #: src/EventCodes.php:1 44332 #: src/EventCodes.php:151 src/EventInfo.php:113 323 333 #, php-format 324 334 msgid "Meta field %s updated from %s to %s for %s." 325 335 msgstr "Meta campo %s actualizado de %s a %s para %s." 326 336 327 #: src/EventCodes.php:1 45337 #: src/EventCodes.php:152 src/EventInfo.php:117 328 338 #, php-format 329 339 msgid "Email updated from %s to %s for user %s" 330 340 msgstr "Email actualizado de %s a %s para el usuario %s" 331 341 332 #: src/EventCodes.php:1 46342 #: src/EventCodes.php:153 src/EventInfo.php:121 333 343 msgid "User login updated." 334 344 msgstr "Inicio de sesión de usuario actualizado." 335 345 336 #: src/EventCodes.php:1 47346 #: src/EventCodes.php:154 src/EventInfo.php:125 337 347 #, php-format 338 348 msgid "Password updated for %s." 339 349 msgstr "Contraseña actualizada para %s." 340 350 341 #: src/EventCodes.php:1 48351 #: src/EventCodes.php:155 src/EventInfo.php:129 342 352 #, php-format 343 353 msgid "User %s nice name updated." 344 354 msgstr "Usuario %s bonito nombre actualizado." 345 355 346 #: src/EventCodes.php:1 49356 #: src/EventCodes.php:156 src/EventInfo.php:133 347 357 #, php-format 348 358 msgid "User url updated from %s to %s for %s." 349 359 msgstr "Url de usuario actualizada de %s a %s para %s." 350 360 351 #: src/EventCodes.php:15 0361 #: src/EventCodes.php:157 src/EventInfo.php:137 352 362 #, php-format 353 363 msgid "User %s status updated." 354 364 msgstr "Estado del usuario %s actualizado." 355 365 356 #: src/EventCodes.php:15 1366 #: src/EventCodes.php:158 src/EventInfo.php:141 357 367 #, php-format 358 368 msgid "Changed display name from %s to %s for %s." 359 369 msgstr "Cambiado el nombre de pantalla de %s a %s para %s." 360 370 361 #: src/EventCodes.php:15 2371 #: src/EventCodes.php:159 src/EventInfo.php:145 362 372 #, php-format 363 373 msgid "User %s role updated." 364 374 msgstr "Rol del usuario %s actualizado." 365 375 366 #: src/EventCodes.php:1 54376 #: src/EventCodes.php:161 src/EventInfo.php:149 367 377 #, php-format 368 378 msgid "Setting %s created." 369 379 msgstr "Configuración %s creada." 370 380 371 #: src/EventCodes.php:1 55381 #: src/EventCodes.php:162 src/EventInfo.php:153 372 382 #, php-format 373 383 msgid "Setting %s updated from %s to %s." 374 384 msgstr "Ajuste %s actualizado de %s a %s." 375 385 376 #: src/EventCodes.php:1 56386 #: src/EventCodes.php:163 src/EventInfo.php:157 377 387 #, php-format 378 388 msgid "Setting %s deleted." 379 389 msgstr "Ajuste %s borrado." 380 390 381 #: src/EventCodes.php:1 58391 #: src/EventCodes.php:165 src/EventInfo.php:161 382 392 #, php-format 383 393 msgid "Uploaded file %s to %s." 384 394 msgstr "Archivo subido %s a %s." 385 395 386 #: src/EventCodes.php:1 59396 #: src/EventCodes.php:166 src/EventInfo.php:165 387 397 #, php-format 388 398 msgid "Deleted file %s from %s." 389 399 msgstr "Archivo %s borrado de %s." 390 400 391 #: src/EventCodes.php:16 0401 #: src/EventCodes.php:167 src/EventInfo.php:169 392 402 msgid "Attachment updated." 393 403 msgstr "Adjunto actualizado." 394 404 395 #: src/EventCodes.php:16 1405 #: src/EventCodes.php:168 src/EventInfo.php:173 396 406 #, php-format 397 407 msgid "Modified the file %s with plugin editor." 398 408 msgstr "Modificado el archivo %s con el editor de plugins." 399 409 400 #: src/EventCodes.php:16 2410 #: src/EventCodes.php:169 src/EventInfo.php:177 401 411 #, php-format 402 412 msgid "Modified the file %s with theme editor." 403 413 msgstr "Modificado el archivo %s con el editor de temas." 404 414 405 #: src/EventCodes.php:1 64415 #: src/EventCodes.php:171 src/EventInfo.php:181 406 416 #, php-format 407 417 msgid "Opened %s with title %s in the editor." 408 418 msgstr "Abierto %s con título %s en el editor." 409 419 410 #: src/EventCodes.php:1 65420 #: src/EventCodes.php:172 src/EventInfo.php:185 411 421 #, php-format 412 422 msgid "Created post %s." 413 423 msgstr "Post creado %s." 414 424 415 #: src/EventCodes.php:1 66425 #: src/EventCodes.php:173 src/EventInfo.php:189 416 426 msgid "Post updated." 417 427 msgstr "Contenido actualizado." 418 428 419 #: src/EventCodes.php:1 67429 #: src/EventCodes.php:174 src/EventInfo.php:193 420 430 #, php-format 421 431 msgid "Updated the status of %s post to %s." 422 432 msgstr "Actualizado el estado del post %s a %s." 423 433 424 #: src/EventCodes.php:1 68434 #: src/EventCodes.php:175 src/EventInfo.php:197 425 435 #, php-format 426 436 msgid "Updated title of post %s from %s to %s." 427 437 msgstr "Actualizado el título del post %s de %s a %s." 428 438 429 #: src/EventCodes.php:1 69439 #: src/EventCodes.php:176 src/EventInfo.php:201 430 440 #, php-format 431 441 msgid "Updated content for post %s." 432 442 msgstr "Contenido actualizado para el post %s." 433 443 434 #: src/EventCodes.php:17 0444 #: src/EventCodes.php:177 src/EventInfo.php:205 435 445 #, php-format 436 446 msgid "Categories updated from %s to %s in post %s." 437 447 msgstr "Categorías actualizadas de %s a %s en el post %s." 438 448 439 #: src/EventCodes.php:17 1449 #: src/EventCodes.php:178 src/EventInfo.php:209 440 450 #, php-format 441 451 msgid "Tags updated from %s to %s in post %s." 442 452 msgstr "Etiquetas actualizadas de %s a %s en el post %s." 443 453 444 #: src/EventCodes.php:17 2454 #: src/EventCodes.php:179 src/EventInfo.php:213 445 455 #, php-format 446 456 msgid "Taxonomies updated from %s to %s in post %s." 447 457 msgstr "Taxonomías actualizadas de %s a %s en el post %s." 448 458 449 #: src/EventCodes.php:1 73459 #: src/EventCodes.php:180 src/EventInfo.php:217 450 460 #, php-format 451 461 msgid "Author updated from %s to %s in post %s" 452 462 msgstr "Autor actualizado de %s a %s en el post %s" 453 463 454 #: src/EventCodes.php:1 74464 #: src/EventCodes.php:181 src/EventInfo.php:221 455 465 #, php-format 456 466 msgid "Updated publish date from %s to %s for post %s" 457 467 msgstr "Actualizada la fecha de publicación de %s a %s para el post %s" 458 468 459 #: src/EventCodes.php:1 75469 #: src/EventCodes.php:182 src/EventInfo.php:225 460 470 #, php-format 461 471 msgid "URL updated from %s to %s in post %s" 462 472 msgstr "URL actualizada de %s a %s en el post %s" 463 473 464 #: src/EventCodes.php:1 76474 #: src/EventCodes.php:183 src/EventInfo.php:229 465 475 #, php-format 466 476 msgid "Excerpt updated from %s to %s in post %s" 467 477 msgstr "Extracto actualizado de %s a %s en el post %s" 468 478 469 #: src/EventCodes.php:1 77479 #: src/EventCodes.php:184 src/EventInfo.php:233 470 480 #, php-format 471 481 msgid "Parent assigned to %s for post %s" 472 482 msgstr "Padre asignado a %s para el post %s" 473 483 474 #: src/EventCodes.php:1 78484 #: src/EventCodes.php:185 src/EventInfo.php:237 475 485 #, php-format 476 486 msgid "Updated menu order from %s to %s in Post %s" 477 487 msgstr "Actualizado el orden del menú de %s a %s en Post %s" 478 488 479 #: src/EventCodes.php:1 79489 #: src/EventCodes.php:186 src/EventInfo.php:261 480 490 #, php-format 481 491 msgid "Updated featured thumbnail to %s for %s." 482 492 msgstr "Actualizada la miniatura destacada a %s para %s." 483 493 484 #: src/EventCodes.php:18 0494 #: src/EventCodes.php:187 src/EventInfo.php:265 485 495 #, php-format 486 496 msgid "Added featured thumbnail %s for post %s." 487 497 msgstr "Añadida miniatura destacada %s para el post %s." 488 498 489 #: src/EventCodes.php:18 1499 #: src/EventCodes.php:188 src/EventInfo.php:269 490 500 #, php-format 491 501 msgid "Removed featured post thumbnail %s for post %s." 492 502 msgstr "Eliminada miniatura de entrada destacada %s para entrada %s." 493 503 494 #: src/EventCodes.php:18 2504 #: src/EventCodes.php:189 src/EventInfo.php:245 495 505 #, php-format 496 506 msgid "Permanently Deleted post %s." 497 507 msgstr "Puesto borrado permanentemente %s." 498 508 499 #: src/EventCodes.php:1 83509 #: src/EventCodes.php:190 src/EventInfo.php:241 500 510 #, php-format 501 511 msgid "Moved post %s to trash." 502 512 msgstr "Movido el post %s a la papelera." 503 513 504 #: src/EventCodes.php:1 84514 #: src/EventCodes.php:191 src/EventInfo.php:249 505 515 #, php-format 506 516 msgid "Restored post %s from trash." 507 517 msgstr "Puesto %s restaurado de la papelera." 508 518 509 #: src/EventCodes.php:1 85519 #: src/EventCodes.php:192 src/EventInfo.php:253 510 520 #, php-format 511 521 msgid "Published post %s." 512 522 msgstr "Puesto publicado %s." 513 523 514 #: src/EventCodes.php:1 86524 #: src/EventCodes.php:193 src/EventInfo.php:257 515 525 #, php-format 516 526 msgid "Post %s set as scheduled for %s." 517 527 msgstr "Puesto %s fijado como programado para %s." 518 528 519 #: src/EventCodes.php:1 87529 #: src/EventCodes.php:194 src/EventInfo.php:273 520 530 #, php-format 521 531 msgid "Post %s template set as %s." 522 532 msgstr "Plantilla de post %s establecida como %s." 523 533 524 #: src/EventCodes.php:1 88534 #: src/EventCodes.php:195 src/EventInfo.php:277 525 535 #, php-format 526 536 msgid "Modified post %s visibility from %s to %s." 527 537 msgstr "Modificada la visibilidad del post %s de %s a %s." 528 538 529 #: src/EventCodes.php:1 89539 #: src/EventCodes.php:196 src/EventInfo.php:281 530 540 #, php-format 531 541 msgid "Set the post %s as sticky." 532 542 msgstr "Establece el post %s como pegajoso." 533 543 534 #: src/EventCodes.php:19 0544 #: src/EventCodes.php:197 src/EventInfo.php:285 535 545 #, php-format 536 546 msgid "Removed the post %s from sticky" 537 547 msgstr "Eliminado el post %s de sticky" 538 548 539 #: src/EventCodes.php:19 1549 #: src/EventCodes.php:198 src/EventInfo.php:289 540 550 #, php-format 541 551 msgid "Enabled comments for post %s." 542 552 msgstr "Comentarios habilitados para el post %s." 543 553 544 #: src/EventCodes.php:19 2554 #: src/EventCodes.php:199 src/EventInfo.php:293 545 555 #, php-format 546 556 msgid "Disabled comments for post %s." 547 557 msgstr "Comentarios deshabilitados para el post %s." 548 558 549 #: src/EventCodes.php: 193559 #: src/EventCodes.php:200 src/EventInfo.php:297 550 560 #, php-format 551 561 msgid "Enabled pings and trackbacks for post %s." 552 562 msgstr "Habilitados pings y trackbacks para el post %s." 553 563 554 #: src/EventCodes.php: 194564 #: src/EventCodes.php:201 src/EventInfo.php:301 555 565 #, php-format 556 566 msgid "Disabled pings and trackbacks for post %s." 557 567 msgstr "Pings y trackbacks desactivados para el post %s." 558 568 559 #: src/EventCodes.php: 195569 #: src/EventCodes.php:202 src/EventInfo.php:305 560 570 #, php-format 561 571 msgid "Post %s has taken over." 562 572 msgstr "El post %s ha tomado el relevo." 563 573 564 #: src/EventCodes.php: 196574 #: src/EventCodes.php:203 src/EventInfo.php:309 565 575 #, php-format 566 576 msgid "Created meta field %s with value %s in %s." 567 577 msgstr "Creado meta campo %s con valor %s en %s." 568 578 569 #: src/EventCodes.php: 197579 #: src/EventCodes.php:204 src/EventInfo.php:313 570 580 #, php-format 571 581 msgid "Updated meta field %s from %s to %s in %s." 572 582 msgstr "Actualizado el meta campo %s de %s a %s en %s." 573 583 574 #: src/EventCodes.php: 198584 #: src/EventCodes.php:205 src/EventInfo.php:317 575 585 msgid "Post meta field has been deleted." 576 586 msgstr "Se ha eliminado el campo Post meta." 577 587 578 #: src/EventCodes.php:20 0588 #: src/EventCodes.php:207 src/EventInfo.php:321 579 589 #, php-format 580 590 msgid "Created category %s." 581 591 msgstr "Categoría creada %s." 582 592 583 #: src/EventCodes.php:20 1593 #: src/EventCodes.php:208 src/EventInfo.php:325 584 594 #, php-format 585 595 msgid "Deleted category %s." 586 596 msgstr "Categoría eliminada %s." 587 597 588 #: src/EventCodes.php:20 2598 #: src/EventCodes.php:209 src/EventInfo.php:329 589 599 #, php-format 590 600 msgid "Updated %s from %s (%s) to %s (%s)." 591 601 msgstr "Actualizado %s de %s (%s) a %s (%s)." 592 602 593 #: src/EventCodes.php:2 04603 #: src/EventCodes.php:211 src/EventInfo.php:333 594 604 #, php-format 595 605 msgid "Created term %s in %s." 596 606 msgstr "Creado término %s en %s." 597 607 598 #: src/EventCodes.php:2 05608 #: src/EventCodes.php:212 src/EventInfo.php:337 599 609 #, php-format 600 610 msgid "Delete term %s in %s." 601 611 msgstr "Borrar término %s en %s." 602 612 603 #: src/EventCodes.php:2 06613 #: src/EventCodes.php:213 src/EventInfo.php:341 604 614 #, php-format 605 615 msgid "Updated tag %s from %s (%s) to %s (%s)." 606 616 msgstr "Actualizada la etiqueta %s de %s (%s) a %s (%s)." 607 617 608 #: src/EventCodes.php:2 08618 #: src/EventCodes.php:215 src/EventInfo.php:345 609 619 #, php-format 610 620 msgid "Created term %s in taxonomy %s." 611 621 msgstr "Creado término %s en taxonomía %s." 612 622 613 #: src/EventCodes.php:2 09623 #: src/EventCodes.php:216 src/EventInfo.php:349 614 624 #, php-format 615 625 msgid "Deleted term %s in taxonomy %s." 616 626 msgstr "Término %s suprimido en la taxonomía %s." 617 627 618 #: src/EventCodes.php:21 0628 #: src/EventCodes.php:217 src/EventInfo.php:353 619 629 #, php-format 620 630 msgid "Updated taxonomy %s from %s (%s) to %s (%s)." 621 631 msgstr "Actualizada la taxonomía %s de %s (%s) a %s (%s)." 632 633 #: src/EventCodes.php:219 634 #, php-format 635 msgid "Completed %s." 636 msgstr "Completado %s." 637 638 #: src/EventCodes.php:220 639 #, no-php-format 640 msgid "% changed to uncompleted." 641 msgstr "% ccolgado a incompleto." 642 643 #: src/EventCodes.php:221 644 #, php-format 645 msgid "Enrolled to %s" 646 msgstr "Usuario inscrito en %s" 647 648 #: src/EventCodes.php:222 649 #, php-format 650 msgid "Unenrolled to %s" 651 msgstr "No inscripto en %s" 652 653 #: src/EventCodes.php:223 654 #, php-format 655 msgid "Added to %s" 656 msgstr "Añadido a %s" 657 658 #: src/EventCodes.php:224 659 #, php-format 660 msgid "Removed from %s" 661 msgstr "Eliminado de %s" 662 663 #: src/EventInfo.php:49 664 #, php-format 665 msgid "Deactivated the plugin %s %s" 666 msgstr "Desactivado el plugin %s %s" 667 668 #: src/EventTypes.php:30 669 msgid "Created" 670 msgstr "Creado" 671 672 #: src/EventTypes.php:31 673 msgid "Modified" 674 msgstr "Modificado" 675 676 #: src/EventTypes.php:32 677 msgid "Login" 678 msgstr "Iniciar sesión" 679 680 #: src/EventTypes.php:33 681 msgid "Logout" 682 msgstr "Cerrar sesión" 683 684 #: src/EventTypes.php:34 685 msgid "Failed Login" 686 msgstr "Inicio de sesión fallido" 687 688 #: src/EventTypes.php:35 689 msgid "Trashed" 690 msgstr "Borrado" 691 692 #: src/EventTypes.php:36 693 msgid "Deleted" 694 msgstr "Eliminado" 695 696 #: src/EventTypes.php:37 697 msgid "Restored" 698 msgstr "Restaurado" 699 700 #: src/EventTypes.php:38 701 msgid "Activated" 702 msgstr "Activado" 703 704 #: src/EventTypes.php:39 705 msgid "Deactivated" 706 msgstr "Desactivado" 707 708 #: src/EventTypes.php:40 709 msgid "Upgraded" 710 msgstr "Actualizado" 711 712 #: src/EventTypes.php:41 713 msgid "Installed" 714 msgstr "Instalado" 715 716 #: src/EventTypes.php:42 717 msgid "Uploaded" 718 msgstr "Subido" 719 720 #: src/EventTypes.php:43 721 msgid "Opened" 722 msgstr "Abierto" 723 724 #: src/EventTypes.php:44 src/Hooks/LearnDash.php:118 725 msgid "Completed" 726 msgstr "Completado" 727 728 #: src/EventTypes.php:45 729 msgid "Uncompleted" 730 msgstr "Marcado como incompleto" 731 732 #: src/EventTypes.php:46 733 msgid "Enrolled" 734 msgstr "Matriculado" 735 736 #: src/EventTypes.php:47 737 msgid "Unenrolled" 738 msgstr "Matricula eliminada" 739 740 #: src/EventTypes.php:48 741 msgid "Added" 742 msgstr "Añadido" 743 744 #: src/EventTypes.php:49 745 msgid "Removed" 746 msgstr "Eliminado" 622 747 623 748 #: src/Hooks/Core.php:32 … … 645 770 msgstr "Nueva Version" 646 771 647 #: src/Hooks/Core.php:87 src/Hooks/Files.php:190 src/Hooks/ Meta.php:191648 #: src/Hooks/ Plugins.php:211 src/Hooks/Posts.php:702 src/Hooks/Settings.php:249649 #: src/Hooks/ Taxonomies.php:203 src/Hooks/Themes.php:184650 #: src/Hooks/ Users.php:414772 #: src/Hooks/Core.php:87 src/Hooks/Files.php:190 src/Hooks/LearnDash.php:156 773 #: src/Hooks/Meta.php:192 src/Hooks/Plugins.php:211 src/Hooks/Posts.php:702 774 #: src/Hooks/Settings.php:249 src/Hooks/Taxonomies.php:203 775 #: src/Hooks/Themes.php:184 src/Hooks/Users.php:432 651 776 msgid "User Agent" 652 msgstr "Agente de usuario"777 msgstr "Agente / Navegador" 653 778 654 779 #: src/Hooks/Files.php:143 src/Hooks/Posts.php:408 … … 692 817 msgstr "Ruta temática" 693 818 819 #: src/Hooks/LearnDash.php:115 src/Hooks/Meta.php:149 src/Hooks/Posts.php:434 820 #: src/Hooks/Posts.php:445 src/Hooks/Posts.php:462 src/Hooks/Posts.php:478 821 #: src/Hooks/Posts.php:499 src/Hooks/Posts.php:511 src/Hooks/Posts.php:524 822 #: src/Hooks/Posts.php:539 src/Hooks/Posts.php:554 src/Hooks/Posts.php:569 823 #: src/Hooks/Posts.php:584 src/Hooks/Posts.php:607 src/Hooks/Posts.php:622 824 #: src/Hooks/Posts.php:636 src/Hooks/Posts.php:649 src/Hooks/Posts.php:670 825 #: src/Hooks/Posts.php:685 826 msgid "Post ID" 827 msgstr "ID de contenido" 828 829 #: src/Hooks/LearnDash.php:116 src/Hooks/Meta.php:150 src/Hooks/Posts.php:435 830 #: src/Hooks/Posts.php:446 src/Hooks/Posts.php:463 src/Hooks/Posts.php:479 831 #: src/Hooks/Posts.php:500 src/Hooks/Posts.php:512 src/Hooks/Posts.php:525 832 #: src/Hooks/Posts.php:540 src/Hooks/Posts.php:555 src/Hooks/Posts.php:570 833 #: src/Hooks/Posts.php:585 src/Hooks/Posts.php:608 src/Hooks/Posts.php:623 834 #: src/Hooks/Posts.php:637 src/Hooks/Posts.php:650 src/Hooks/Posts.php:671 835 #: src/Hooks/Posts.php:686 836 msgid "Post title" 837 msgstr "Título del contenido" 838 839 #: src/Hooks/LearnDash.php:117 src/Hooks/Meta.php:151 src/Hooks/Posts.php:437 840 #: src/Hooks/Posts.php:448 src/Hooks/Posts.php:465 src/Hooks/Posts.php:481 841 #: src/Hooks/Posts.php:502 src/Hooks/Posts.php:514 src/Hooks/Posts.php:527 842 #: src/Hooks/Posts.php:528 src/Hooks/Posts.php:529 src/Hooks/Posts.php:542 843 #: src/Hooks/Posts.php:543 src/Hooks/Posts.php:544 src/Hooks/Posts.php:557 844 #: src/Hooks/Posts.php:572 src/Hooks/Posts.php:587 src/Hooks/Posts.php:610 845 #: src/Hooks/Posts.php:625 src/Hooks/Posts.php:639 src/Hooks/Posts.php:652 846 #: src/Hooks/Posts.php:673 src/Hooks/Posts.php:688 847 msgid "Post type" 848 msgstr "Tipo de entrada" 849 850 #: src/Hooks/LearnDash.php:123 851 #, php-format 852 msgid "%d%% (%d points of %d)." 853 msgstr "%d%% (%d puntos de %d)." 854 855 #: src/Hooks/LearnDash.php:126 856 msgid "Evaluation Score" 857 msgstr "Resultado de evaluación" 858 859 #: src/Hooks/LearnDash.php:143 860 msgid "Edit Course" 861 msgstr "Editar Curso" 862 863 #: src/Hooks/LearnDash.php:151 864 msgid "Edit Quiz" 865 msgstr "Editar Cuestionario" 866 694 867 #: src/Hooks/Meta.php:142 src/Hooks/Taxonomies.php:158 695 868 msgid "Edit " 696 869 msgstr "Editar " 697 870 698 #: src/Hooks/Meta.php:149 src/Hooks/Posts.php:435 src/Hooks/Posts.php:446 699 #: src/Hooks/Posts.php:463 src/Hooks/Posts.php:479 src/Hooks/Posts.php:500 700 #: src/Hooks/Posts.php:512 src/Hooks/Posts.php:525 src/Hooks/Posts.php:540 701 #: src/Hooks/Posts.php:555 src/Hooks/Posts.php:570 src/Hooks/Posts.php:585 702 #: src/Hooks/Posts.php:608 src/Hooks/Posts.php:623 src/Hooks/Posts.php:637 703 #: src/Hooks/Posts.php:650 src/Hooks/Posts.php:671 src/Hooks/Posts.php:686 704 msgid "Post title" 705 msgstr "Título del anuncio" 706 707 #: src/Hooks/Meta.php:150 src/Hooks/Posts.php:437 src/Hooks/Posts.php:448 708 #: src/Hooks/Posts.php:465 src/Hooks/Posts.php:481 src/Hooks/Posts.php:502 709 #: src/Hooks/Posts.php:514 src/Hooks/Posts.php:527 src/Hooks/Posts.php:528 710 #: src/Hooks/Posts.php:529 src/Hooks/Posts.php:542 src/Hooks/Posts.php:543 711 #: src/Hooks/Posts.php:544 src/Hooks/Posts.php:557 src/Hooks/Posts.php:572 712 #: src/Hooks/Posts.php:587 src/Hooks/Posts.php:610 src/Hooks/Posts.php:625 713 #: src/Hooks/Posts.php:639 src/Hooks/Posts.php:652 src/Hooks/Posts.php:673 714 #: src/Hooks/Posts.php:688 715 msgid "Post type" 716 msgstr "Tipo de entrada" 717 718 #: src/Hooks/Meta.php:151 src/Hooks/Posts.php:436 src/Hooks/Posts.php:447 871 #: src/Hooks/Meta.php:152 src/Hooks/Posts.php:436 src/Hooks/Posts.php:447 719 872 #: src/Hooks/Posts.php:464 src/Hooks/Posts.php:480 src/Hooks/Posts.php:501 720 873 #: src/Hooks/Posts.php:513 src/Hooks/Posts.php:526 src/Hooks/Posts.php:541 … … 725 878 msgstr "Estado del contenido" 726 879 727 #: src/Hooks/Meta.php:16 3 src/Hooks/Meta.php:178880 #: src/Hooks/Meta.php:164 src/Hooks/Meta.php:179 728 881 msgid "Meta key" 729 882 msgstr "Meta key" 730 883 731 #: src/Hooks/Meta.php:16 4 src/Hooks/Meta.php:179src/Hooks/Settings.php:222732 #: src/Hooks/Settings.php:236 src/Hooks/Users.php: 386884 #: src/Hooks/Meta.php:165 src/Hooks/Meta.php:180 src/Hooks/Settings.php:222 885 #: src/Hooks/Settings.php:236 src/Hooks/Users.php:404 733 886 msgid "Old value" 734 887 msgstr "Valor antiguo" 735 888 736 #: src/Hooks/Meta.php:16 5src/Hooks/Settings.php:211 src/Hooks/Settings.php:237737 #: src/Hooks/Users.php:3 15889 #: src/Hooks/Meta.php:166 src/Hooks/Settings.php:211 src/Hooks/Settings.php:237 890 #: src/Hooks/Users.php:333 738 891 msgid "New value" 739 892 msgstr "Nuevo valor" … … 763 916 msgstr "Ver las diferencias" 764 917 765 #: src/Hooks/Posts.php:434 src/Hooks/Posts.php:445 src/Hooks/Posts.php:462766 #: src/Hooks/Posts.php:478 src/Hooks/Posts.php:499 src/Hooks/Posts.php:511767 #: src/Hooks/Posts.php:524 src/Hooks/Posts.php:539 src/Hooks/Posts.php:554768 #: src/Hooks/Posts.php:569 src/Hooks/Posts.php:584 src/Hooks/Posts.php:607769 #: src/Hooks/Posts.php:622 src/Hooks/Posts.php:636 src/Hooks/Posts.php:649770 #: src/Hooks/Posts.php:670 src/Hooks/Posts.php:685771 msgid "Post ID"772 msgstr "ID de post"773 774 918 #: src/Hooks/Posts.php:449 775 919 msgid "Old user" … … 1004 1148 msgstr "Term slug" 1005 1149 1006 #: src/Hooks/Users.php: 2891150 #: src/Hooks/Users.php:307 1007 1151 msgid "View profile" 1008 1152 msgstr "Ver perfil" 1009 1153 1010 #: src/Hooks/Users.php: 2891154 #: src/Hooks/Users.php:307 1011 1155 msgid "Edit user" 1012 1156 msgstr "Editar usuario" 1013 1157 1014 #: src/Hooks/Users.php:3 12 src/Hooks/Users.php:328 src/Hooks/Users.php:4001158 #: src/Hooks/Users.php:330 src/Hooks/Users.php:346 src/Hooks/Users.php:418 1015 1159 msgid "Roles" 1016 1160 msgstr "Roles" 1017 1161 1018 #: src/Hooks/Users.php:3 131162 #: src/Hooks/Users.php:331 1019 1163 msgid "Updated field" 1020 1164 msgstr "Campo actualizado" 1021 1165 1022 #: src/Hooks/Users.php:3 141166 #: src/Hooks/Users.php:332 1023 1167 msgid "Previous value" 1024 1168 msgstr "Valor anterior" 1025 1169 1026 #: src/Hooks/Users.php:3 27 src/Hooks/Users.php:3991170 #: src/Hooks/Users.php:345 src/Hooks/Users.php:417 1027 1171 msgid "User login" 1028 1172 msgstr "Login del usuario" 1029 1173 1030 #: src/Hooks/Users.php:3 291174 #: src/Hooks/Users.php:347 1031 1175 msgid "First name" 1032 1176 msgstr "Nombre" 1033 1177 1034 #: src/Hooks/Users.php:3 301178 #: src/Hooks/Users.php:348 1035 1179 msgid "Last name" 1036 1180 msgstr "Apellidos" 1037 1181 1038 #: src/Hooks/Users.php:3 341182 #: src/Hooks/Users.php:352 1039 1183 msgid "Reassign posts" 1040 1184 msgstr "Reasignar posts" 1041 1185 1042 #: src/Hooks/Users.php:3 631186 #: src/Hooks/Users.php:381 1043 1187 msgid "Attempts" 1044 1188 msgstr "Intentos" 1045 1189 1046 #: src/Hooks/Users.php:3 641190 #: src/Hooks/Users.php:382 1047 1191 msgid "Last attempt" 1048 1192 msgstr "Último intento" 1049 1193 1050 #: src/Hooks/Users.php:3 651194 #: src/Hooks/Users.php:383 1051 1195 msgid "Last Error" 1052 1196 msgstr "Ultimo error" 1053 1197 1054 #: src/Hooks/Users.php: 3851198 #: src/Hooks/Users.php:403 1055 1199 msgid "User field" 1056 1200 msgstr "Campo de usuario" 1057 1201 1058 #: src/Hooks/Users.php: 3871202 #: src/Hooks/Users.php:405 1059 1203 msgid "New new" 1060 1204 msgstr "Nuevo Nuevo" 1061 1205 1062 #: src/Hooks/Users.php:4 011206 #: src/Hooks/Users.php:419 1063 1207 msgid "First Name" 1064 1208 msgstr "Nombre" 1065 1209 1066 #: src/Hooks/Users.php:4 021210 #: src/Hooks/Users.php:420 1067 1211 msgid "Last Name" 1068 1212 msgstr "Apellido" -
logdash-activity-log/trunk/languages/logdash-activity-log.pot
r2916051 r3116686 3 3 msgstr "" 4 4 "Project-Id-Version: LogDash Activity Log\n" 5 "POT-Creation-Date: 202 3-05-22 11:27-0400\n"5 "POT-Creation-Date: 2024-07-09 14:44-0400\n" 6 6 "PO-Revision-Date: 2023-04-14 13:02-0400\n" 7 7 "Last-Translator: \n" … … 11 11 "Content-Transfer-Encoding: 8bit\n" 12 12 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" 13 "X-Generator: Poedit 3. 3\n"13 "X-Generator: Poedit 3.4.4\n" 14 14 "X-Poedit-Basepath: ..\n" 15 15 "X-Poedit-Flags-xgettext: --add-comments=translators:\n" … … 24 24 "X-Poedit-SearchPathExcluded-2: node_modules\n" 25 25 26 #: src/Actions/ResetLog.php:43 26 #: src/Actions/RemoveExpiredLog.php:72 27 msgid "seconds" 28 msgstr "" 29 30 #: src/Actions/ResetLog.php:46 27 31 msgid "There is an issue with reset request." 28 32 msgstr "" 29 33 30 #: src/Actions/ResetLog.php:5 134 #: src/Actions/ResetLog.php:54 31 35 msgid "You are not authorized to perform this action." 32 36 msgstr "" 33 37 34 #: src/Actions/ResetLog.php: 6238 #: src/Actions/ResetLog.php:77 35 39 #, php-format 36 40 msgid "Reset failed: (%s)" 37 41 msgstr "" 38 42 39 #: src/Actions/ResetLog.php: 7043 #: src/Actions/ResetLog.php:85 40 44 msgid "All events were deleted." 41 45 msgstr "" 42 46 43 #: src/Admin/Events Page.php:3247 #: src/Admin/EventsAdminPage.php:31 44 48 msgid "LogDash Activity Log Viewer" 45 49 msgstr "" 46 50 47 #: src/Admin/Events Page.php:3351 #: src/Admin/EventsAdminPage.php:32 48 52 msgid "LogDash" 49 53 msgstr "" 50 54 51 #: src/Admin/Events Page.php:4555 #: src/Admin/EventsAdminPage.php:45 52 56 msgid "Activity Log" 53 57 msgstr "" 54 58 55 #: src/Admin/Events Page.php:5059 #: src/Admin/EventsAdminPage.php:52 56 60 msgid "Users Per Page" 57 61 msgstr "" 58 62 59 #: src/Admin/Events Page.php:65views/admin/events.template.php:1263 #: src/Admin/EventsAdminPage.php:67 views/admin/events.template.php:12 60 64 msgid "Search" 61 65 msgstr "" 62 66 63 #: src/Admin/Events Table.php:3067 #: src/Admin/EventsListTable.php:26 64 68 msgid "Code" 65 69 msgstr "" 66 70 67 #: src/Admin/Events Table.php:3171 #: src/Admin/EventsListTable.php:27 68 72 msgid "Date" 69 73 msgstr "" 70 74 71 #: src/Admin/EventsTable.php:32 src/Hooks/Users.php:311 src/Hooks/Users.php:362 75 #: src/Admin/EventsListTable.php:28 src/Hooks/Users.php:329 76 #: src/Hooks/Users.php:380 72 77 msgid "User" 73 78 msgstr "" 74 79 75 #: src/Admin/Events Table.php:3380 #: src/Admin/EventsListTable.php:29 76 81 msgid "IP" 77 82 msgstr "" 78 83 79 #: src/Admin/Events Table.php:3484 #: src/Admin/EventsListTable.php:30 80 85 msgid "Context" 81 86 msgstr "" 82 87 83 #: src/Admin/Events Table.php:3588 #: src/Admin/EventsListTable.php:31 84 89 msgid "Action" 85 90 msgstr "" 86 91 87 #: src/Admin/Events Table.php:3692 #: src/Admin/EventsListTable.php:32 88 93 msgid "Meta " 89 94 msgstr "" 90 95 91 #: src/Admin/Events Table.php:4296 #: src/Admin/EventsListTable.php:38 92 97 msgid "No events have been found that meet your search criteria." 93 98 msgstr "" 94 99 95 #: src/Admin/Events Table.php:44100 #: src/Admin/EventsListTable.php:40 96 101 msgid "No events have been logged yet." 97 102 msgstr "" 98 103 99 #: src/Admin/Events Table.php:318104 #: src/Admin/EventsListTable.php:333 100 105 #, php-format 101 106 msgid "Select %s" 102 107 msgstr "" 103 108 104 #: src/Admin/Events Table.php:348109 #: src/Admin/EventsListTable.php:367 105 110 msgid "All time" 106 111 msgstr "" 107 112 108 #: src/Admin/Events Table.php:349113 #: src/Admin/EventsListTable.php:368 109 114 msgid "Today" 110 115 msgstr "" 111 116 112 #: src/Admin/Events Table.php:350117 #: src/Admin/EventsListTable.php:369 113 118 msgid "Yesterday" 114 119 msgstr "" 115 120 116 #: src/Admin/Events Table.php:351121 #: src/Admin/EventsListTable.php:370 117 122 msgid "Last Week" 118 123 msgstr "" 119 124 120 #: src/Admin/Events Table.php:352125 #: src/Admin/EventsListTable.php:371 121 126 msgid "Last Month" 122 127 msgstr "" 123 128 124 #: src/Admin/Events Table.php:379129 #: src/Admin/EventsListTable.php:398 125 130 msgid "All Roles" 126 131 msgstr "" 127 132 128 #: src/Admin/Events Table.php:396133 #: src/Admin/EventsListTable.php:415 129 134 msgid "All Users" 130 135 msgstr "" 131 136 132 #: src/Admin/Events Table.php:420137 #: src/Admin/EventsListTable.php:441 133 138 msgid "All Contexts" 134 139 msgstr "" 135 140 136 #: src/Admin/Events Table.php:448141 #: src/Admin/EventsListTable.php:471 137 142 msgid "All Actions" 138 143 msgstr "" 139 144 140 #: src/Admin/Events Table.php:462145 #: src/Admin/EventsListTable.php:485 141 146 msgid "Reset filter" 142 147 msgstr "" … … 163 168 msgstr "" 164 169 165 #: src/Admin/Settings.php:95 170 #: src/Admin/Settings.php:91 171 #, php-format 172 msgid "and the execution time was %s" 173 msgstr "" 174 175 #: src/Admin/Settings.php:99 166 176 msgid "Store logs for" 167 177 msgstr "" 168 178 169 #: src/Admin/Settings.php:10 5179 #: src/Admin/Settings.php:109 170 180 msgid "days" 171 181 msgstr "" 172 182 173 #: src/Admin/Settings.php:1 06183 #: src/Admin/Settings.php:110 174 184 msgid "" 175 185 "Specify the length of time you want to retain the activity log. If left " … … 178 188 msgstr "" 179 189 180 #: src/Admin/Settings.php:1 17190 #: src/Admin/Settings.php:121 181 191 msgid "Delete Log Activities" 182 192 msgstr "" 183 193 184 #: src/Admin/Settings.php:1 26194 #: src/Admin/Settings.php:130 185 195 msgid "" 186 196 "Warning: Clicking this will delete all events from the database. Tables and " … … 188 198 msgstr "" 189 199 190 #: src/Admin/Settings.php:1 27200 #: src/Admin/Settings.php:131 191 201 msgid "All data will be deleted. Are you sure do you want to continue?" 192 202 msgstr "" 193 203 194 #: src/EventCodes.php:1 15204 #: src/EventCodes.php:122 src/EventInfo.php:13 195 205 msgid "Default event." 196 206 msgstr "" 197 207 198 #: src/EventCodes.php:1 17208 #: src/EventCodes.php:124 src/EventInfo.php:17 199 209 #, php-format 200 210 msgid "Updated WordPress from %s to %s" 201 211 msgstr "" 202 212 203 #: src/EventCodes.php:1 18213 #: src/EventCodes.php:125 src/EventInfo.php:25 204 214 #, php-format 205 215 msgid "Downgraded WordPress from %s to %s" 206 216 msgstr "" 207 217 208 #: src/EventCodes.php:1 19218 #: src/EventCodes.php:126 src/EventInfo.php:21 209 219 #, php-format 210 220 msgid "Reinstalled WordPress %s" 211 221 msgstr "" 212 222 213 #: src/EventCodes.php:12 1223 #: src/EventCodes.php:128 src/EventInfo.php:29 214 224 msgid "Plugin uploaded" 215 225 msgstr "" 216 226 217 #: src/EventCodes.php:12 2227 #: src/EventCodes.php:129 src/EventInfo.php:33 218 228 msgid "Plugin downloaded" 219 229 msgstr "" 220 230 221 #: src/EventCodes.php:1 23231 #: src/EventCodes.php:130 src/EventInfo.php:37 222 232 #, php-format 223 233 msgid "Installed %s %s plugin at %s" 224 234 msgstr "" 225 235 226 #: src/EventCodes.php:1 24236 #: src/EventCodes.php:131 src/EventInfo.php:41 227 237 #, php-format 228 238 msgid "Uninstalled %s %s plugin at %s" 229 239 msgstr "" 230 240 231 #: src/EventCodes.php:1 25241 #: src/EventCodes.php:132 src/EventInfo.php:45 232 242 #, php-format 233 243 msgid "Activated the plugin %s %s" 234 244 msgstr "" 235 245 236 #: src/EventCodes.php:1 26246 #: src/EventCodes.php:133 237 247 #, php-format 238 248 msgid "Deactivated de plugin %s %s deactivated" 239 249 msgstr "" 240 250 241 #: src/EventCodes.php:1 27251 #: src/EventCodes.php:134 src/EventInfo.php:53 242 252 #, php-format 243 253 msgid "Upgraded plugin %s to version %s" 244 254 msgstr "" 245 255 246 #: src/EventCodes.php:1 29256 #: src/EventCodes.php:136 src/EventInfo.php:57 247 257 #, php-format 248 258 msgid "Uploaded theme %s %s" 249 259 msgstr "" 250 260 251 #: src/EventCodes.php:13 0261 #: src/EventCodes.php:137 src/EventInfo.php:61 252 262 #, php-format 253 263 msgid "Downloaded theme %s %s" 254 264 msgstr "" 255 265 256 #: src/EventCodes.php:13 1266 #: src/EventCodes.php:138 src/EventInfo.php:65 257 267 #, php-format 258 268 msgid "Installed theme %s %s" 259 269 msgstr "" 260 270 261 #: src/EventCodes.php:13 2271 #: src/EventCodes.php:139 src/EventInfo.php:69 262 272 #, php-format 263 273 msgid "Uninstalled theme %s %s" 264 274 msgstr "" 265 275 266 #: src/EventCodes.php:1 33276 #: src/EventCodes.php:140 src/EventInfo.php:73 267 277 #, php-format 268 278 msgid "Activated theme %s %s" 269 279 msgstr "" 270 280 271 #: src/EventCodes.php:1 34281 #: src/EventCodes.php:141 src/EventInfo.php:77 272 282 #, php-format 273 283 msgid "Deactivated theme %s %s" 274 284 msgstr "" 275 285 276 #: src/EventCodes.php:1 35286 #: src/EventCodes.php:142 src/EventInfo.php:81 277 287 #, php-format 278 288 msgid "Upgraded theme %s to version %s" 279 289 msgstr "" 280 290 281 #: src/EventCodes.php:1 37291 #: src/EventCodes.php:144 src/EventInfo.php:85 282 292 #, php-format 283 293 msgid "User %s logged in." 284 294 msgstr "" 285 295 286 #: src/EventCodes.php:1 38296 #: src/EventCodes.php:145 src/EventInfo.php:89 287 297 #, php-format 288 298 msgid "User %s logged out." 289 299 msgstr "" 290 300 291 #: src/EventCodes.php:1 39301 #: src/EventCodes.php:146 src/EventInfo.php:93 292 302 #, php-format 293 303 msgid "Failed login attempt for %s." 294 304 msgstr "" 295 305 296 #: src/EventCodes.php:14 0306 #: src/EventCodes.php:147 src/EventInfo.php:97 297 307 #, php-format 298 308 msgid "All %s user sessions were closed." 299 309 msgstr "" 300 310 301 #: src/EventCodes.php:14 1311 #: src/EventCodes.php:148 src/EventInfo.php:101 302 312 #, php-format 303 313 msgid "User %s created." 304 314 msgstr "" 305 315 306 #: src/EventCodes.php:14 2316 #: src/EventCodes.php:149 src/EventInfo.php:105 307 317 #, php-format 308 318 msgid "User %s deleted." 309 319 msgstr "" 310 320 311 #: src/EventCodes.php:1 43321 #: src/EventCodes.php:150 src/EventInfo.php:109 312 322 #, php-format 313 323 msgid "User %s profile updated." 314 324 msgstr "" 315 325 316 #: src/EventCodes.php:1 44326 #: src/EventCodes.php:151 src/EventInfo.php:113 317 327 #, php-format 318 328 msgid "Meta field %s updated from %s to %s for %s." 319 329 msgstr "" 320 330 321 #: src/EventCodes.php:1 45331 #: src/EventCodes.php:152 src/EventInfo.php:117 322 332 #, php-format 323 333 msgid "Email updated from %s to %s for user %s" 324 334 msgstr "" 325 335 326 #: src/EventCodes.php:1 46336 #: src/EventCodes.php:153 src/EventInfo.php:121 327 337 msgid "User login updated." 328 338 msgstr "" 329 339 330 #: src/EventCodes.php:1 47340 #: src/EventCodes.php:154 src/EventInfo.php:125 331 341 #, php-format 332 342 msgid "Password updated for %s." 333 343 msgstr "" 334 344 335 #: src/EventCodes.php:1 48345 #: src/EventCodes.php:155 src/EventInfo.php:129 336 346 #, php-format 337 347 msgid "User %s nice name updated." 338 348 msgstr "" 339 349 340 #: src/EventCodes.php:1 49350 #: src/EventCodes.php:156 src/EventInfo.php:133 341 351 #, php-format 342 352 msgid "User url updated from %s to %s for %s." 343 353 msgstr "" 344 354 345 #: src/EventCodes.php:15 0355 #: src/EventCodes.php:157 src/EventInfo.php:137 346 356 #, php-format 347 357 msgid "User %s status updated." 348 358 msgstr "" 349 359 350 #: src/EventCodes.php:15 1360 #: src/EventCodes.php:158 src/EventInfo.php:141 351 361 #, php-format 352 362 msgid "Changed display name from %s to %s for %s." 353 363 msgstr "" 354 364 355 #: src/EventCodes.php:15 2365 #: src/EventCodes.php:159 src/EventInfo.php:145 356 366 #, php-format 357 367 msgid "User %s role updated." 358 368 msgstr "" 359 369 360 #: src/EventCodes.php:1 54370 #: src/EventCodes.php:161 src/EventInfo.php:149 361 371 #, php-format 362 372 msgid "Setting %s created." 363 373 msgstr "" 364 374 365 #: src/EventCodes.php:1 55375 #: src/EventCodes.php:162 src/EventInfo.php:153 366 376 #, php-format 367 377 msgid "Setting %s updated from %s to %s." 368 378 msgstr "" 369 379 370 #: src/EventCodes.php:1 56380 #: src/EventCodes.php:163 src/EventInfo.php:157 371 381 #, php-format 372 382 msgid "Setting %s deleted." 373 383 msgstr "" 374 384 375 #: src/EventCodes.php:1 58385 #: src/EventCodes.php:165 src/EventInfo.php:161 376 386 #, php-format 377 387 msgid "Uploaded file %s to %s." 378 388 msgstr "" 379 389 380 #: src/EventCodes.php:1 59390 #: src/EventCodes.php:166 src/EventInfo.php:165 381 391 #, php-format 382 392 msgid "Deleted file %s from %s." 383 393 msgstr "" 384 394 385 #: src/EventCodes.php:16 0395 #: src/EventCodes.php:167 src/EventInfo.php:169 386 396 msgid "Attachment updated." 387 397 msgstr "" 388 398 389 #: src/EventCodes.php:16 1399 #: src/EventCodes.php:168 src/EventInfo.php:173 390 400 #, php-format 391 401 msgid "Modified the file %s with plugin editor." 392 402 msgstr "" 393 403 394 #: src/EventCodes.php:16 2404 #: src/EventCodes.php:169 src/EventInfo.php:177 395 405 #, php-format 396 406 msgid "Modified the file %s with theme editor." 397 407 msgstr "" 398 408 399 #: src/EventCodes.php:1 64409 #: src/EventCodes.php:171 src/EventInfo.php:181 400 410 #, php-format 401 411 msgid "Opened %s with title %s in the editor." 402 412 msgstr "" 403 413 404 #: src/EventCodes.php:1 65414 #: src/EventCodes.php:172 src/EventInfo.php:185 405 415 #, php-format 406 416 msgid "Created post %s." 407 417 msgstr "" 408 418 409 #: src/EventCodes.php:1 66419 #: src/EventCodes.php:173 src/EventInfo.php:189 410 420 msgid "Post updated." 411 421 msgstr "" 412 422 413 #: src/EventCodes.php:1 67423 #: src/EventCodes.php:174 src/EventInfo.php:193 414 424 #, php-format 415 425 msgid "Updated the status of %s post to %s." 416 426 msgstr "" 417 427 418 #: src/EventCodes.php:1 68428 #: src/EventCodes.php:175 src/EventInfo.php:197 419 429 #, php-format 420 430 msgid "Updated title of post %s from %s to %s." 421 431 msgstr "" 422 432 423 #: src/EventCodes.php:1 69433 #: src/EventCodes.php:176 src/EventInfo.php:201 424 434 #, php-format 425 435 msgid "Updated content for post %s." 426 436 msgstr "" 427 437 428 #: src/EventCodes.php:17 0438 #: src/EventCodes.php:177 src/EventInfo.php:205 429 439 #, php-format 430 440 msgid "Categories updated from %s to %s in post %s." 431 441 msgstr "" 432 442 433 #: src/EventCodes.php:17 1443 #: src/EventCodes.php:178 src/EventInfo.php:209 434 444 #, php-format 435 445 msgid "Tags updated from %s to %s in post %s." 436 446 msgstr "" 437 447 438 #: src/EventCodes.php:17 2448 #: src/EventCodes.php:179 src/EventInfo.php:213 439 449 #, php-format 440 450 msgid "Taxonomies updated from %s to %s in post %s." 441 451 msgstr "" 442 452 443 #: src/EventCodes.php:1 73453 #: src/EventCodes.php:180 src/EventInfo.php:217 444 454 #, php-format 445 455 msgid "Author updated from %s to %s in post %s" 446 456 msgstr "" 447 457 448 #: src/EventCodes.php:1 74458 #: src/EventCodes.php:181 src/EventInfo.php:221 449 459 #, php-format 450 460 msgid "Updated publish date from %s to %s for post %s" 451 461 msgstr "" 452 462 453 #: src/EventCodes.php:1 75463 #: src/EventCodes.php:182 src/EventInfo.php:225 454 464 #, php-format 455 465 msgid "URL updated from %s to %s in post %s" 456 466 msgstr "" 457 467 458 #: src/EventCodes.php:1 76468 #: src/EventCodes.php:183 src/EventInfo.php:229 459 469 #, php-format 460 470 msgid "Excerpt updated from %s to %s in post %s" 461 471 msgstr "" 462 472 463 #: src/EventCodes.php:1 77473 #: src/EventCodes.php:184 src/EventInfo.php:233 464 474 #, php-format 465 475 msgid "Parent assigned to %s for post %s" 466 476 msgstr "" 467 477 468 #: src/EventCodes.php:1 78478 #: src/EventCodes.php:185 src/EventInfo.php:237 469 479 #, php-format 470 480 msgid "Updated menu order from %s to %s in Post %s" 471 481 msgstr "" 472 482 473 #: src/EventCodes.php:1 79483 #: src/EventCodes.php:186 src/EventInfo.php:261 474 484 #, php-format 475 485 msgid "Updated featured thumbnail to %s for %s." 476 486 msgstr "" 477 487 478 #: src/EventCodes.php:18 0488 #: src/EventCodes.php:187 src/EventInfo.php:265 479 489 #, php-format 480 490 msgid "Added featured thumbnail %s for post %s." 481 491 msgstr "" 482 492 483 #: src/EventCodes.php:18 1493 #: src/EventCodes.php:188 src/EventInfo.php:269 484 494 #, php-format 485 495 msgid "Removed featured post thumbnail %s for post %s." 486 496 msgstr "" 487 497 488 #: src/EventCodes.php:18 2498 #: src/EventCodes.php:189 src/EventInfo.php:245 489 499 #, php-format 490 500 msgid "Permanently Deleted post %s." 491 501 msgstr "" 492 502 493 #: src/EventCodes.php:1 83503 #: src/EventCodes.php:190 src/EventInfo.php:241 494 504 #, php-format 495 505 msgid "Moved post %s to trash." 496 506 msgstr "" 497 507 498 #: src/EventCodes.php:1 84508 #: src/EventCodes.php:191 src/EventInfo.php:249 499 509 #, php-format 500 510 msgid "Restored post %s from trash." 501 511 msgstr "" 502 512 503 #: src/EventCodes.php:1 85513 #: src/EventCodes.php:192 src/EventInfo.php:253 504 514 #, php-format 505 515 msgid "Published post %s." 506 516 msgstr "" 507 517 508 #: src/EventCodes.php:1 86518 #: src/EventCodes.php:193 src/EventInfo.php:257 509 519 #, php-format 510 520 msgid "Post %s set as scheduled for %s." 511 521 msgstr "" 512 522 513 #: src/EventCodes.php:1 87523 #: src/EventCodes.php:194 src/EventInfo.php:273 514 524 #, php-format 515 525 msgid "Post %s template set as %s." 516 526 msgstr "" 517 527 518 #: src/EventCodes.php:1 88528 #: src/EventCodes.php:195 src/EventInfo.php:277 519 529 #, php-format 520 530 msgid "Modified post %s visibility from %s to %s." 521 531 msgstr "" 522 532 523 #: src/EventCodes.php:1 89533 #: src/EventCodes.php:196 src/EventInfo.php:281 524 534 #, php-format 525 535 msgid "Set the post %s as sticky." 526 536 msgstr "" 527 537 528 #: src/EventCodes.php:19 0538 #: src/EventCodes.php:197 src/EventInfo.php:285 529 539 #, php-format 530 540 msgid "Removed the post %s from sticky" 531 541 msgstr "" 532 542 533 #: src/EventCodes.php:19 1543 #: src/EventCodes.php:198 src/EventInfo.php:289 534 544 #, php-format 535 545 msgid "Enabled comments for post %s." 536 546 msgstr "" 537 547 538 #: src/EventCodes.php:19 2548 #: src/EventCodes.php:199 src/EventInfo.php:293 539 549 #, php-format 540 550 msgid "Disabled comments for post %s." 541 551 msgstr "" 542 552 543 #: src/EventCodes.php: 193553 #: src/EventCodes.php:200 src/EventInfo.php:297 544 554 #, php-format 545 555 msgid "Enabled pings and trackbacks for post %s." 546 556 msgstr "" 547 557 548 #: src/EventCodes.php: 194558 #: src/EventCodes.php:201 src/EventInfo.php:301 549 559 #, php-format 550 560 msgid "Disabled pings and trackbacks for post %s." 551 561 msgstr "" 552 562 553 #: src/EventCodes.php: 195563 #: src/EventCodes.php:202 src/EventInfo.php:305 554 564 #, php-format 555 565 msgid "Post %s has taken over." 556 566 msgstr "" 557 567 558 #: src/EventCodes.php: 196568 #: src/EventCodes.php:203 src/EventInfo.php:309 559 569 #, php-format 560 570 msgid "Created meta field %s with value %s in %s." 561 571 msgstr "" 562 572 563 #: src/EventCodes.php: 197573 #: src/EventCodes.php:204 src/EventInfo.php:313 564 574 #, php-format 565 575 msgid "Updated meta field %s from %s to %s in %s." 566 576 msgstr "" 567 577 568 #: src/EventCodes.php: 198578 #: src/EventCodes.php:205 src/EventInfo.php:317 569 579 msgid "Post meta field has been deleted." 570 580 msgstr "" 571 581 572 #: src/EventCodes.php:20 0582 #: src/EventCodes.php:207 src/EventInfo.php:321 573 583 #, php-format 574 584 msgid "Created category %s." 575 585 msgstr "" 576 586 577 #: src/EventCodes.php:20 1587 #: src/EventCodes.php:208 src/EventInfo.php:325 578 588 #, php-format 579 589 msgid "Deleted category %s." 580 590 msgstr "" 581 591 582 #: src/EventCodes.php:20 2592 #: src/EventCodes.php:209 src/EventInfo.php:329 583 593 #, php-format 584 594 msgid "Updated %s from %s (%s) to %s (%s)." 585 595 msgstr "" 586 596 587 #: src/EventCodes.php:2 04597 #: src/EventCodes.php:211 src/EventInfo.php:333 588 598 #, php-format 589 599 msgid "Created term %s in %s." 590 600 msgstr "" 591 601 592 #: src/EventCodes.php:2 05602 #: src/EventCodes.php:212 src/EventInfo.php:337 593 603 #, php-format 594 604 msgid "Delete term %s in %s." 595 605 msgstr "" 596 606 597 #: src/EventCodes.php:2 06607 #: src/EventCodes.php:213 src/EventInfo.php:341 598 608 #, php-format 599 609 msgid "Updated tag %s from %s (%s) to %s (%s)." 600 610 msgstr "" 601 611 602 #: src/EventCodes.php:2 08612 #: src/EventCodes.php:215 src/EventInfo.php:345 603 613 #, php-format 604 614 msgid "Created term %s in taxonomy %s." 605 615 msgstr "" 606 616 607 #: src/EventCodes.php:2 09617 #: src/EventCodes.php:216 src/EventInfo.php:349 608 618 #, php-format 609 619 msgid "Deleted term %s in taxonomy %s." 610 620 msgstr "" 611 621 612 #: src/EventCodes.php:21 0622 #: src/EventCodes.php:217 src/EventInfo.php:353 613 623 #, php-format 614 624 msgid "Updated taxonomy %s from %s (%s) to %s (%s)." 625 msgstr "" 626 627 #: src/EventCodes.php:219 628 #, php-format 629 msgid "Completed %s." 630 msgstr "" 631 632 #: src/EventCodes.php:220 633 #, no-php-format 634 msgid "% changed to uncompleted." 635 msgstr "" 636 637 #: src/EventCodes.php:221 638 #, php-format 639 msgid "Enrolled to %s" 640 msgstr "" 641 642 #: src/EventCodes.php:222 643 #, php-format 644 msgid "Unenrolled to %s" 645 msgstr "" 646 647 #: src/EventCodes.php:223 648 #, php-format 649 msgid "Added to %s" 650 msgstr "" 651 652 #: src/EventCodes.php:224 653 #, php-format 654 msgid "Removed from %s" 655 msgstr "" 656 657 #: src/EventInfo.php:49 658 #, php-format 659 msgid "Deactivated the plugin %s %s" 660 msgstr "" 661 662 #: src/EventTypes.php:30 663 msgid "Created" 664 msgstr "" 665 666 #: src/EventTypes.php:31 667 msgid "Modified" 668 msgstr "" 669 670 #: src/EventTypes.php:32 671 msgid "Login" 672 msgstr "" 673 674 #: src/EventTypes.php:33 675 msgid "Logout" 676 msgstr "" 677 678 #: src/EventTypes.php:34 679 msgid "Failed Login" 680 msgstr "" 681 682 #: src/EventTypes.php:35 683 msgid "Trashed" 684 msgstr "" 685 686 #: src/EventTypes.php:36 687 msgid "Deleted" 688 msgstr "" 689 690 #: src/EventTypes.php:37 691 msgid "Restored" 692 msgstr "" 693 694 #: src/EventTypes.php:38 695 msgid "Activated" 696 msgstr "" 697 698 #: src/EventTypes.php:39 699 msgid "Deactivated" 700 msgstr "" 701 702 #: src/EventTypes.php:40 703 msgid "Upgraded" 704 msgstr "" 705 706 #: src/EventTypes.php:41 707 msgid "Installed" 708 msgstr "" 709 710 #: src/EventTypes.php:42 711 msgid "Uploaded" 712 msgstr "" 713 714 #: src/EventTypes.php:43 715 msgid "Opened" 716 msgstr "" 717 718 #: src/EventTypes.php:44 src/Hooks/LearnDash.php:118 719 msgid "Completed" 720 msgstr "" 721 722 #: src/EventTypes.php:45 723 msgid "Uncompleted" 724 msgstr "" 725 726 #: src/EventTypes.php:46 727 msgid "Enrolled" 728 msgstr "" 729 730 #: src/EventTypes.php:47 731 msgid "Unenrolled" 732 msgstr "" 733 734 #: src/EventTypes.php:48 735 msgid "Added" 736 msgstr "" 737 738 #: src/EventTypes.php:49 739 msgid "Removed" 615 740 msgstr "" 616 741 … … 639 764 msgstr "" 640 765 641 #: src/Hooks/Core.php:87 src/Hooks/Files.php:190 src/Hooks/ Meta.php:191642 #: src/Hooks/ Plugins.php:211 src/Hooks/Posts.php:702 src/Hooks/Settings.php:249643 #: src/Hooks/ Taxonomies.php:203 src/Hooks/Themes.php:184644 #: src/Hooks/ Users.php:414766 #: src/Hooks/Core.php:87 src/Hooks/Files.php:190 src/Hooks/LearnDash.php:156 767 #: src/Hooks/Meta.php:192 src/Hooks/Plugins.php:211 src/Hooks/Posts.php:702 768 #: src/Hooks/Settings.php:249 src/Hooks/Taxonomies.php:203 769 #: src/Hooks/Themes.php:184 src/Hooks/Users.php:432 645 770 msgid "User Agent" 646 771 msgstr "" … … 686 811 msgstr "" 687 812 813 #: src/Hooks/LearnDash.php:115 src/Hooks/Meta.php:149 src/Hooks/Posts.php:434 814 #: src/Hooks/Posts.php:445 src/Hooks/Posts.php:462 src/Hooks/Posts.php:478 815 #: src/Hooks/Posts.php:499 src/Hooks/Posts.php:511 src/Hooks/Posts.php:524 816 #: src/Hooks/Posts.php:539 src/Hooks/Posts.php:554 src/Hooks/Posts.php:569 817 #: src/Hooks/Posts.php:584 src/Hooks/Posts.php:607 src/Hooks/Posts.php:622 818 #: src/Hooks/Posts.php:636 src/Hooks/Posts.php:649 src/Hooks/Posts.php:670 819 #: src/Hooks/Posts.php:685 820 msgid "Post ID" 821 msgstr "" 822 823 #: src/Hooks/LearnDash.php:116 src/Hooks/Meta.php:150 src/Hooks/Posts.php:435 824 #: src/Hooks/Posts.php:446 src/Hooks/Posts.php:463 src/Hooks/Posts.php:479 825 #: src/Hooks/Posts.php:500 src/Hooks/Posts.php:512 src/Hooks/Posts.php:525 826 #: src/Hooks/Posts.php:540 src/Hooks/Posts.php:555 src/Hooks/Posts.php:570 827 #: src/Hooks/Posts.php:585 src/Hooks/Posts.php:608 src/Hooks/Posts.php:623 828 #: src/Hooks/Posts.php:637 src/Hooks/Posts.php:650 src/Hooks/Posts.php:671 829 #: src/Hooks/Posts.php:686 830 msgid "Post title" 831 msgstr "" 832 833 #: src/Hooks/LearnDash.php:117 src/Hooks/Meta.php:151 src/Hooks/Posts.php:437 834 #: src/Hooks/Posts.php:448 src/Hooks/Posts.php:465 src/Hooks/Posts.php:481 835 #: src/Hooks/Posts.php:502 src/Hooks/Posts.php:514 src/Hooks/Posts.php:527 836 #: src/Hooks/Posts.php:528 src/Hooks/Posts.php:529 src/Hooks/Posts.php:542 837 #: src/Hooks/Posts.php:543 src/Hooks/Posts.php:544 src/Hooks/Posts.php:557 838 #: src/Hooks/Posts.php:572 src/Hooks/Posts.php:587 src/Hooks/Posts.php:610 839 #: src/Hooks/Posts.php:625 src/Hooks/Posts.php:639 src/Hooks/Posts.php:652 840 #: src/Hooks/Posts.php:673 src/Hooks/Posts.php:688 841 msgid "Post type" 842 msgstr "" 843 844 #: src/Hooks/LearnDash.php:123 845 #, php-format 846 msgid "%d%% (%d points of %d)." 847 msgstr "" 848 849 #: src/Hooks/LearnDash.php:126 850 msgid "Evaluation Score" 851 msgstr "" 852 853 #: src/Hooks/LearnDash.php:143 854 msgid "Edit Course" 855 msgstr "" 856 857 #: src/Hooks/LearnDash.php:151 858 msgid "Edit Quiz" 859 msgstr "" 860 688 861 #: src/Hooks/Meta.php:142 src/Hooks/Taxonomies.php:158 689 862 msgid "Edit " 690 863 msgstr "" 691 864 692 #: src/Hooks/Meta.php:149 src/Hooks/Posts.php:435 src/Hooks/Posts.php:446 693 #: src/Hooks/Posts.php:463 src/Hooks/Posts.php:479 src/Hooks/Posts.php:500 694 #: src/Hooks/Posts.php:512 src/Hooks/Posts.php:525 src/Hooks/Posts.php:540 695 #: src/Hooks/Posts.php:555 src/Hooks/Posts.php:570 src/Hooks/Posts.php:585 696 #: src/Hooks/Posts.php:608 src/Hooks/Posts.php:623 src/Hooks/Posts.php:637 697 #: src/Hooks/Posts.php:650 src/Hooks/Posts.php:671 src/Hooks/Posts.php:686 698 msgid "Post title" 699 msgstr "" 700 701 #: src/Hooks/Meta.php:150 src/Hooks/Posts.php:437 src/Hooks/Posts.php:448 702 #: src/Hooks/Posts.php:465 src/Hooks/Posts.php:481 src/Hooks/Posts.php:502 703 #: src/Hooks/Posts.php:514 src/Hooks/Posts.php:527 src/Hooks/Posts.php:528 704 #: src/Hooks/Posts.php:529 src/Hooks/Posts.php:542 src/Hooks/Posts.php:543 705 #: src/Hooks/Posts.php:544 src/Hooks/Posts.php:557 src/Hooks/Posts.php:572 706 #: src/Hooks/Posts.php:587 src/Hooks/Posts.php:610 src/Hooks/Posts.php:625 707 #: src/Hooks/Posts.php:639 src/Hooks/Posts.php:652 src/Hooks/Posts.php:673 708 #: src/Hooks/Posts.php:688 709 msgid "Post type" 710 msgstr "" 711 712 #: src/Hooks/Meta.php:151 src/Hooks/Posts.php:436 src/Hooks/Posts.php:447 865 #: src/Hooks/Meta.php:152 src/Hooks/Posts.php:436 src/Hooks/Posts.php:447 713 866 #: src/Hooks/Posts.php:464 src/Hooks/Posts.php:480 src/Hooks/Posts.php:501 714 867 #: src/Hooks/Posts.php:513 src/Hooks/Posts.php:526 src/Hooks/Posts.php:541 … … 719 872 msgstr "" 720 873 721 #: src/Hooks/Meta.php:16 3 src/Hooks/Meta.php:178874 #: src/Hooks/Meta.php:164 src/Hooks/Meta.php:179 722 875 msgid "Meta key" 723 876 msgstr "" 724 877 725 #: src/Hooks/Meta.php:16 4 src/Hooks/Meta.php:179src/Hooks/Settings.php:222726 #: src/Hooks/Settings.php:236 src/Hooks/Users.php: 386878 #: src/Hooks/Meta.php:165 src/Hooks/Meta.php:180 src/Hooks/Settings.php:222 879 #: src/Hooks/Settings.php:236 src/Hooks/Users.php:404 727 880 msgid "Old value" 728 881 msgstr "" 729 882 730 #: src/Hooks/Meta.php:16 5src/Hooks/Settings.php:211 src/Hooks/Settings.php:237731 #: src/Hooks/Users.php:3 15883 #: src/Hooks/Meta.php:166 src/Hooks/Settings.php:211 src/Hooks/Settings.php:237 884 #: src/Hooks/Users.php:333 732 885 msgid "New value" 733 886 msgstr "" … … 757 910 msgstr "" 758 911 759 #: src/Hooks/Posts.php:434 src/Hooks/Posts.php:445 src/Hooks/Posts.php:462760 #: src/Hooks/Posts.php:478 src/Hooks/Posts.php:499 src/Hooks/Posts.php:511761 #: src/Hooks/Posts.php:524 src/Hooks/Posts.php:539 src/Hooks/Posts.php:554762 #: src/Hooks/Posts.php:569 src/Hooks/Posts.php:584 src/Hooks/Posts.php:607763 #: src/Hooks/Posts.php:622 src/Hooks/Posts.php:636 src/Hooks/Posts.php:649764 #: src/Hooks/Posts.php:670 src/Hooks/Posts.php:685765 msgid "Post ID"766 msgstr ""767 768 912 #: src/Hooks/Posts.php:449 769 913 msgid "Old user" … … 998 1142 msgstr "" 999 1143 1000 #: src/Hooks/Users.php: 2891144 #: src/Hooks/Users.php:307 1001 1145 msgid "View profile" 1002 1146 msgstr "" 1003 1147 1004 #: src/Hooks/Users.php: 2891148 #: src/Hooks/Users.php:307 1005 1149 msgid "Edit user" 1006 1150 msgstr "" 1007 1151 1008 #: src/Hooks/Users.php:3 12 src/Hooks/Users.php:328 src/Hooks/Users.php:4001152 #: src/Hooks/Users.php:330 src/Hooks/Users.php:346 src/Hooks/Users.php:418 1009 1153 msgid "Roles" 1010 1154 msgstr "" 1011 1155 1012 #: src/Hooks/Users.php:3 131156 #: src/Hooks/Users.php:331 1013 1157 msgid "Updated field" 1014 1158 msgstr "" 1015 1159 1016 #: src/Hooks/Users.php:3 141160 #: src/Hooks/Users.php:332 1017 1161 msgid "Previous value" 1018 1162 msgstr "" 1019 1163 1020 #: src/Hooks/Users.php:3 27 src/Hooks/Users.php:3991164 #: src/Hooks/Users.php:345 src/Hooks/Users.php:417 1021 1165 msgid "User login" 1022 1166 msgstr "" 1023 1167 1024 #: src/Hooks/Users.php:3 291168 #: src/Hooks/Users.php:347 1025 1169 msgid "First name" 1026 1170 msgstr "" 1027 1171 1028 #: src/Hooks/Users.php:3 301172 #: src/Hooks/Users.php:348 1029 1173 msgid "Last name" 1030 1174 msgstr "" 1031 1175 1032 #: src/Hooks/Users.php:3 341176 #: src/Hooks/Users.php:352 1033 1177 msgid "Reassign posts" 1034 1178 msgstr "" 1035 1179 1036 #: src/Hooks/Users.php:3 631180 #: src/Hooks/Users.php:381 1037 1181 msgid "Attempts" 1038 1182 msgstr "" 1039 1183 1040 #: src/Hooks/Users.php:3 641184 #: src/Hooks/Users.php:382 1041 1185 msgid "Last attempt" 1042 1186 msgstr "" 1043 1187 1044 #: src/Hooks/Users.php:3 651188 #: src/Hooks/Users.php:383 1045 1189 msgid "Last Error" 1046 1190 msgstr "" 1047 1191 1048 #: src/Hooks/Users.php: 3851192 #: src/Hooks/Users.php:403 1049 1193 msgid "User field" 1050 1194 msgstr "" 1051 1195 1052 #: src/Hooks/Users.php: 3871196 #: src/Hooks/Users.php:405 1053 1197 msgid "New new" 1054 1198 msgstr "" 1055 1199 1056 #: src/Hooks/Users.php:4 011200 #: src/Hooks/Users.php:419 1057 1201 msgid "First Name" 1058 1202 msgstr "" 1059 1203 1060 #: src/Hooks/Users.php:4 021204 #: src/Hooks/Users.php:420 1061 1205 msgid "Last Name" 1062 1206 msgstr "" -
logdash-activity-log/trunk/logdash-activity-log.php
r3005263 r3116686 6 6 * 7 7 * @wordpress-plugin 8 * Plugin Name: LogDash Activity Log9 * Plugin URI: https://deryckoe.com/logdash-activity-log10 * Description: The ultimate solution for tracking activities and security issues on your WordPress site.11 * Version: 1.1.412 * Author: Deryck Oñate13 * Author URI: http://deryckoe.com14 * License: GPL-2.0+15 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt16 * Text Domain: logdash-activity-log17 * Domain Path: /languages8 * Plugin Name: LogDash Activity Log 9 * Plugin URI: https://deryckoe.com/logdash-activity-log 10 * Description: The ultimate solution for tracking activities and security issues on your WordPress site. 11 * Version: 1.2 12 * Author: Deryck Oñate 13 * Author URI: http://deryckoe.com 14 * License: GPL-2.0+ 15 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt 16 * Text Domain: logdash-activity-log 17 * Domain Path: /languages 18 18 */ 19 19 … … 27 27 * Currently plugin version. 28 28 */ 29 define( 'LOGDASH_VERSION', '1. 1.4' );29 define( 'LOGDASH_VERSION', '1.2' ); 30 30 31 31 /** -
logdash-activity-log/trunk/src/API/Event.php
r3009701 r3116686 2 2 3 3 namespace LogDash\API; 4 5 use LogDash\EventCodes;6 4 7 5 class Event { … … 10 8 11 9 public function __construct() { 12 add_action( 'tally_get_user_ip', [ $this, 'get_ip_details' ] );13 add_action( 'tally_save_ip_details', [ $this, 'save_ip_details' ] );14 10 } 15 11 … … 129 125 } 130 126 131 private function user_ip() {127 private function user_ip(): string { 132 128 133 129 $ip = ''; … … 135 131 if ( defined( 'LOGDASH_TEST_IPS' ) && is_array( LOGDASH_TEST_IPS ) ) { 136 132 $ip = LOGDASH_TEST_IPS[ array_rand( LOGDASH_TEST_IPS ) ]; 137 }138 139 if ( ! empty( $ip ) ) {140 do_action( 'tally_get_user_ip', $ip );141 142 return $ip;143 133 } 144 134 … … 158 148 } 159 149 160 do_action( 'tally_get_user_ip', $ip );161 162 150 return $ip; 163 }164 165 public function get_ip_details( $ip ) {166 wp_schedule_single_event( time() + 5, 'tally_save_ip_details', [ $ip ] );167 }168 169 public function save_ip_details( $ip ) {170 global $wpdb;171 172 $ip_table = DB::ip_table();173 $have_ip = $wpdb->get_results( $wpdb->prepare( "SELECT ID FROM %i WHERE ip = %s", $ip_table, $ip ) );174 175 if ( ! empty( $have_ip ) ) {176 return;177 }178 179 $response = wp_remote_get( "https://api.findip.net/$ip/?token=" . LOGDASH_FINDIP_TOKEN );180 181 if ( is_array( $response ) && ! is_wp_error( $response ) ) {182 183 $body = wp_remote_retrieve_body( $response );184 185 $ip_data = json_decode( $body );186 $ip_info = [187 'ip' => $ip,188 'city' => $ip_data->city->names->en ?? null,189 'country_name' => $ip_data->country->names->en ?? null,190 'country_code' => $ip_data->country->iso_code ?? null,191 'lat' => $ip_data->location->latitude ?? null,192 'lon' => $ip_data->location->longitude ?? null,193 'isp' => $ip_data->traits->isp ?? null,194 ];195 196 } else {197 198 $ip_info = [199 'ip' => $ip,200 'city' => null,201 'country_name' => null,202 'country_code' => null,203 'lat' => null,204 'lon' => null,205 'isp' => null,206 ];207 208 }209 210 if ( empty( $ip_info['ip'] ) ) {211 return;212 }213 214 $format = [ '%s', '%s', '%s', '%s', '%s', '%s', '%s' ];215 216 $wpdb->insert( $ip_table, $ip_info, $format );217 echo $wpdb->last_error;218 151 } 219 152 -
logdash-activity-log/trunk/src/Actions/RemoveExpiredLog.php
r2940115 r3116686 34 34 } 35 35 36 public function register_expired_log_job( ) {36 public function register_expired_log_job() { 37 37 if ( ! wp_next_scheduled( 'delete_expired_log' ) ) { 38 38 wp_schedule_single_event( time(), 'delete_expired_log' ); … … 52 52 $site_id = get_current_blog_id(); 53 53 54 $this->wpdb->query( "DELETE FROM $activity_log WHERE FROM_UNIXTIME(created, '%Y-%m-%d') < DATE_SUB(CURRENT_DATE, INTERVAL {$days} DAY) AND {$site_id} = 1;" ); 55 $this->wpdb->query( "DELETE FROM $activity_meta WHERE NOT EXISTS ( SELECT 1 FROM $activity_log WHERE $activity_log.ID = $activity_meta.event_id);" ); 54 $cutoff_date = strtotime( '-' . $days . ' days' ); 55 56 $start_time = microtime( true ); 57 58 $sql_log = " 59 DELETE FROM %i 60 WHERE created < %d AND site_id = %d"; 61 $this->wpdb->query($this->wpdb->prepare($sql_log, $activity_log, $cutoff_date, $site_id)); 62 63 $sql_meta = " 64 DELETE FROM %i 65 WHERE event_id NOT IN ( 66 SELECT ID FROM %i 67 )"; 68 $this->wpdb->query($this->wpdb->prepare($sql_meta, $activity_meta, $activity_log)); 69 70 $end_time = microtime( true ); 71 $execution_time = $end_time - $start_time; 72 $execution_time_readable = number_format( $execution_time, 3 ) . ' ' . __('seconds', LOGDASH_DOMAIN ); 56 73 57 74 $rows_affected = $this->wpdb->rows_affected; … … 62 79 63 80 update_option( 'logdash_deleted_events', [ 64 'rows' => $rows_affected, 65 'date' => time(), 81 'rows' => $rows_affected, 82 'date' => time(), 83 'execution_time' => $execution_time_readable 66 84 ] ); 67 85 -
logdash-activity-log/trunk/src/ActivityLog.php
r2914549 r3116686 5 5 use LogDash\Actions\RemoveExpiredLog; 6 6 use LogDash\Actions\ResetLog; 7 use LogDash\Admin\Events Page;7 use LogDash\Admin\EventsAdminPage; 8 8 use LogDash\Admin\Settings; 9 9 use LogDash\API\Activation; … … 11 11 use LogDash\Hooks\Core; 12 12 use LogDash\Hooks\Files; 13 use LogDash\Hooks\LearnDash; 13 14 use LogDash\Hooks\Meta; 14 15 use LogDash\Hooks\Plugins; … … 40 41 $dependencies = [ 41 42 Activation::class, 42 Events Page::class,43 EventsAdminPage::class, 43 44 Settings::class, 44 45 ResetLog::class, 45 46 RemoveExpiredLog::class, 47 RestEndpoints::class, 46 48 47 49 Core::class, … … 52 54 Taxonomies::class, 53 55 Posts::class, 54 Meta::class, 55 RestEndpoints::class 56 LearnDash::class, 56 57 ]; 58 59 $integrations = apply_filters( 'logdash_integrations', [] ); 57 60 58 61 foreach ( $dependencies as $dependency ) { 59 62 ( new $dependency )->init(); 63 } 64 65 foreach ( $integrations as $integration ) { 66 ( new $integration )->init(); 60 67 } 61 68 } … … 65 72 wp_enqueue_script( 'logdash-activity-log', LOGDASH_URL . 'assets/build/index.js', $js_dependencies, LOGDASH_VERSION, true ); 66 73 wp_enqueue_style( 'logdash-activity-log', LOGDASH_URL . 'assets/build/index.css', [], LOGDASH_VERSION ); 74 wp_enqueue_script( 'logdash-select2', 'https://cdn.jsdelivr.net/npm/[email protected]/dist/js/select2.min.js', [ 'jquery' ] ); 75 wp_enqueue_style( 'logdash-select2', 'https://cdn.jsdelivr.net/npm/[email protected]/dist/css/select2.min.css' ); 67 76 } 68 77 -
logdash-activity-log/trunk/src/Admin/Settings.php
r3009701 r3116686 86 86 $date = get_date_from_gmt( $gmt_date, $display_format ); 87 87 88 $extra_description = '<br>' . sprintf( __( '%s records were deleted on %s', LOGDASH_DOMAIN ), $deletion_stats['rows'], $date ); 88 $extra_description = ' ' . sprintf( __( '%s records were deleted on %s', LOGDASH_DOMAIN ), $deletion_stats['rows'], $date ); 89 90 if ( ! empty( $deletion_stats['execution_time'] ) ) { 91 $extra_description .= ' ' . sprintf( __( 'and the execution time was %s', LOGDASH_DOMAIN ), $deletion_stats['execution_time'] ); 92 } 89 93 } else { 90 94 $extra_description = ''; -
logdash-activity-log/trunk/src/EventCodes.php
r2914549 r3116686 107 107 const TERM_DELETED = 1911; 108 108 const TERM_UPDATED = 1912; 109 110 const COMPLETED = 2010; 111 const UNCOMPLETED = 2011; 112 const ENROLLED = 2012; 113 const UNENROLLED = 2013; 114 const ADDED = 2014; 115 const REMOVED = 2015; 109 116 110 117 private static array $description = []; … … 209 216 self::TERM_DELETED => __( 'Deleted term %s in taxonomy %s.', LOGDASH_DOMAIN ), 210 217 self::TERM_UPDATED => __( 'Updated taxonomy %s from %s (%s) to %s (%s).', LOGDASH_DOMAIN ), 218 219 self::COMPLETED => __( 'Completed %s.', LOGDASH_DOMAIN ), 220 self::UNCOMPLETED => __( '% changed to uncompleted.', LOGDASH_DOMAIN ), 221 self::ENROLLED => __( 'Enrolled to %s', LOGDASH_DOMAIN ), 222 self::UNENROLLED => __( 'Unenrolled to %s', LOGDASH_DOMAIN ), 223 self::ADDED => __( 'Added to %s', LOGDASH_DOMAIN ), 224 self::REMOVED => __( 'Removed from %s', LOGDASH_DOMAIN ), 211 225 ]; 212 226 -
logdash-activity-log/trunk/src/EventTypes.php
r2914549 r3116686 19 19 const UPLOADED = 'uploaded'; 20 20 const OPENED = 'opened'; 21 22 private static array $labels = [ 23 self::CREATED => 'Created', 24 self::MODIFIED => 'Modified', 25 self::LOGIN => 'Login', 26 self::LOGOUT => 'Logout', 27 self::FAILED_LOGIN => 'Failed Login', 28 self::TRASHED => 'Trashed', 29 self::DELETED => 'Deleted', 30 self::RESTORED => 'Restored', 31 self::ACTIVATED => 'Activated', 32 self::DEACTIVATED => 'Deactivated', 33 self::UPGRADED => 'Upgraded', 34 self::INSTALLED => 'Installed', 35 self::UPLOADED => 'Uploaded', 36 self::OPENED => 'Opened', 37 ]; 21 const COMPLETED = 'completed'; 22 const UNCOMPLETED = 'uncompleted'; 23 const ENROLLED = 'enrolled'; 24 const UNENROLLED = 'unenrolled'; 25 const ADDED = 'added'; 26 const REMOVED = 'removed'; 38 27 39 28 public static function label( $code ) { 40 return self::$labels[ $code ]; 29 $labels = [ 30 self::CREATED => __( 'Created', LOGDASH_DOMAIN ), 31 self::MODIFIED => __( 'Modified', LOGDASH_DOMAIN ), 32 self::LOGIN => __( 'Login', LOGDASH_DOMAIN ), 33 self::LOGOUT => __( 'Logout', LOGDASH_DOMAIN ), 34 self::FAILED_LOGIN => __( 'Failed Login', LOGDASH_DOMAIN ), 35 self::TRASHED => __( 'Trashed', LOGDASH_DOMAIN ), 36 self::DELETED => __( 'Deleted', LOGDASH_DOMAIN ), 37 self::RESTORED => __( 'Restored', LOGDASH_DOMAIN ), 38 self::ACTIVATED => __( 'Activated', LOGDASH_DOMAIN ), 39 self::DEACTIVATED => __( 'Deactivated', LOGDASH_DOMAIN ), 40 self::UPGRADED => __( 'Upgraded', LOGDASH_DOMAIN ), 41 self::INSTALLED => __( 'Installed', LOGDASH_DOMAIN ), 42 self::UPLOADED => __( 'Uploaded', LOGDASH_DOMAIN ), 43 self::OPENED => __( 'Opened', LOGDASH_DOMAIN ), 44 self::COMPLETED => __( 'Completed', LOGDASH_DOMAIN ), 45 self::UNCOMPLETED => __( 'Uncompleted', LOGDASH_DOMAIN ), 46 self::ENROLLED => __( 'Enrolled', LOGDASH_DOMAIN ), 47 self::UNENROLLED => __( 'Unenrolled', LOGDASH_DOMAIN ), 48 self::ADDED => __( 'Added', LOGDASH_DOMAIN ), 49 self::REMOVED => __( 'Removed', LOGDASH_DOMAIN ), 50 ]; 51 52 return $labels[ $code ]; 41 53 } 42 54 -
logdash-activity-log/trunk/src/Hooks/Posts.php
r2916051 r3116686 54 54 55 55 public function actions() { 56 add_action( 'current_screen', [ $this, 'post_opened' ] );56 // add_action( 'current_screen', [ $this, 'post_opened' ] ); 57 57 add_action( 'pre_post_update', [ $this, 'before_post_update' ], 10, 2 ); 58 58 add_action( 'wp_trash_post', [ $this, 'post_trashed' ], 10, 1 ); -
logdash-activity-log/trunk/src/Hooks/Users.php
r3009701 r3116686 30 30 add_action( 'wp_logout', [ $this, 'logout' ] ); 31 31 add_action( 'wp_login_failed', [ $this, 'login_failed' ], 10, 2 ); 32 add_action( 'update_user_meta', [ $this, 'before_update_user_meta' ], 10, 4 );33 add_action( 'updated_user_meta', [ $this, 'updated_user_meta' ], 10, 4 );32 // add_action( 'update_user_meta', [ $this, 'before_update_user_meta' ], 10, 4 ); 33 // add_action( 'updated_user_meta', [ $this, 'updated_user_meta' ], 10, 4 ); 34 34 add_action( 'admin_init', array( $this, 'extra_actions' ) ); 35 35 add_filter( 'logdash_manage_columns-' . self::$object_type . '-content_event_meta', [ … … 184 184 $meta_table = DB::meta_table(); 185 185 186 $current_date = date( 'Y-m-d');186 $current_date = date( 'Y-m-d' ); 187 187 188 188 $user_query = $wpdb->prepare( "SELECT log.ID FROM {$log_table} AS log … … 202 202 if ( $event_id ) { 203 203 204 $attempts = $wpdb->get_var( $wpdb->prepare("SELECT value FROM %i WHERE event_id = %d and name = 'attempts';", [ $meta_table, $event_id ] ) ); 204 $attempts = $wpdb->get_var( $wpdb->prepare( "SELECT value FROM %i WHERE event_id = %d and name = 'attempts';", [ 205 $meta_table, 206 $event_id 207 ] ) ); 205 208 206 209 if ( ! is_null( $attempts ) ) { … … 274 277 new EventMeta( 'fieldName', $meta_key ), 275 278 new EventMeta( 'oldValue', $this->old_meta[ $meta_key ] ), 276 new EventMeta( 'newValue', $meta_value ),279 new EventMeta( 'newValue', $meta_value ), 277 280 new EventMeta( 'userLogin', $event_user->user_login ), 278 281 new EventMeta( 'firstName', $event_user->first_name ), … … 284 287 285 288 public function event_meta_info( $output, $event_data, $meta_data ): string { 289 290 if ( $event_data['object_subtype'] !== 'user' ) { 291 return $output; 292 } 286 293 287 294 $user = ( ! empty( $event_data['object_id'] ) ) -
logdash-activity-log/trunk/vendor/composer/installed.php
r2916058 r3116686 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' d80679f6ccdfcfa859ca34252362a905bf8cc6c0',6 'reference' => 'ccb6793f9d268e0ec8ca484028889db0954f1900', 7 7 'type' => 'project', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-master', 15 15 'version' => 'dev-master', 16 'reference' => ' d80679f6ccdfcfa859ca34252362a905bf8cc6c0',16 'reference' => 'ccb6793f9d268e0ec8ca484028889db0954f1900', 17 17 'type' => 'project', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.