commit d79dbecad42ae59af086ec5384e85a0998b3338b Author: Benjamin Date: Sun May 24 11:53:11 2026 +0200 First commit diff --git a/Listener.php b/Listener.php new file mode 100644 index 0000000..0413895 --- /dev/null +++ b/Listener.php @@ -0,0 +1,23 @@ +fetchOne($query, [$user->user_id]); + if( is_int( $count )){ + $returnValue = ($count >= $data['entries'] ); + } else { + $returnValue = false; + } + break; + } + } +} \ No newline at end of file diff --git a/Pub/Controller/Webhook.php b/Pub/Controller/Webhook.php new file mode 100644 index 0000000..016968d --- /dev/null +++ b/Pub/Controller/Webhook.php @@ -0,0 +1,36 @@ +assertPostOnly(); + + $token = $this->filter('_token', 'str'); + $secret = \XF::options()->rhpz_webhook_secret ?? ''; + + if( !$secret || !hash_equals($secret, $token) ){ + return $this->error('Unauthorized', 401); + } + + $userId = $this->filter('user_id', 'uint'); + $count = $this->filter('count', 'uint'); + + $user = \XF::em()->find('XF:User', $userId); + if( !$user ){ + return $this->error('User not found', 404); + } + + $user->rhpz_entry_count = $count; + $user->save(); + + $trophyService = \XF::service('XF:Trophy\Notify', $user); + $trophyService->checkAndAwardTrophies(); + + return $this->apiSuccess(['count' => $count]); + } +} \ No newline at end of file diff --git a/Setup.php b/Setup.php new file mode 100644 index 0000000..3401385 --- /dev/null +++ b/Setup.php @@ -0,0 +1,32 @@ +schemaManager()->alterTable('xf_user', function (\XF\Db\Schema\Alter $table) { + $table->addColumn('rhpz_entry_count', 'int')->setDefault(0); + }); + } + + public function uninstallStep1(): void + { + $this->schemaManager()->alterTable('xf_user', function($table) { + $table->dropColumns(['rhpz_entry_count']); + }); + } +} \ No newline at end of file diff --git a/_output/code_event_listeners/_metadata.json b/_output/code_event_listeners/_metadata.json new file mode 100644 index 0000000..765d1ea --- /dev/null +++ b/_output/code_event_listeners/_metadata.json @@ -0,0 +1,5 @@ +{ + "criteria_user_0cfa5d0143e6477a6bc20b11e255e850.json": { + "hash": "f29b40ef7a5b420b212848744fd9b7db" + } +} \ No newline at end of file diff --git a/_output/code_event_listeners/criteria_user_0cfa5d0143e6477a6bc20b11e255e850.json b/_output/code_event_listeners/criteria_user_0cfa5d0143e6477a6bc20b11e255e850.json new file mode 100644 index 0000000..12d2527 --- /dev/null +++ b/_output/code_event_listeners/criteria_user_0cfa5d0143e6477a6bc20b11e255e850.json @@ -0,0 +1,9 @@ +{ + "event_id": "criteria_user", + "execute_order": 10, + "callback_class": "RomhackPlaza\\Master\\Listener", + "callback_method": "criteriaUser", + "active": true, + "hint": "", + "description": "" +} \ No newline at end of file diff --git a/_output/navigation/_metadata.json b/_output/navigation/_metadata.json new file mode 100644 index 0000000..f0dcf00 --- /dev/null +++ b/_output/navigation/_metadata.json @@ -0,0 +1,53 @@ +{ + "about.json": { + "hash": "96e3aa134dd14f5d43ca9ca1d5c55113" + }, + "community.json": { + "hash": "bddec05ee1acb9cb82ed72155bdd7817" + }, + "contact_us.json": { + "hash": "2a0528c2bc4338d4541074f90790c127" + }, + "database.json": { + "hash": "7b42b608fad8ab23417a8cc3fcd331c2" + }, + "discord.json": { + "hash": "d20860e95b3f4a96622733ef9ef4cfa0" + }, + "forum.json": { + "hash": "4a2e65ba6b553ed68dd5b6f7fd6d71d8" + }, + "home.json": { + "hash": "6bf83f1a17528a3c075addfbc8fca830" + }, + "learn_romhacking.json": { + "hash": "dc98809d9e310f450123400bf106d2e5" + }, + "legal_pages.json": { + "hash": "d379ad33a85a4387888d90fd75380b8a" + }, + "members.json": { + "hash": "d625548b0c17df789d595691931732a3" + }, + "pages.json": { + "hash": "fe3fa7929ab20e981dd2f03d6d81f5d2" + }, + "rom_checker.json": { + "hash": "d23131981318ff9afa142b6512225cc3" + }, + "rom_hasher.json": { + "hash": "5f7ab5a76ff0060ac7854ca2c53ea245" + }, + "rom_patcher.json": { + "hash": "73fab3932646c350da9a40102f650d9d" + }, + "submissions_queue.json": { + "hash": "f603ca2b1de0c4aaf60fadcec9ea85a7" + }, + "tools.json": { + "hash": "0221bb27d36511c5dd1feaf697626778" + }, + "website.json": { + "hash": "e2f7d3d0102894eb09ecb359712d0fed" + } +} \ No newline at end of file diff --git a/_output/navigation/about.json b/_output/navigation/about.json new file mode 100644 index 0000000..80027db --- /dev/null +++ b/_output/navigation/about.json @@ -0,0 +1,13 @@ +{ + "parent_navigation_id": "pages", + "display_order": 2, + "navigation_type_id": "basic", + "type_config": { + "link": "{$xf.options.homePageUrl}/pages/about", + "display_condition": "", + "extra_attributes": { + "icon": "info" + } + }, + "enabled": true +} \ No newline at end of file diff --git a/_output/navigation/community.json b/_output/navigation/community.json new file mode 100644 index 0000000..4f4a42b --- /dev/null +++ b/_output/navigation/community.json @@ -0,0 +1,11 @@ +{ + "parent_navigation_id": "", + "display_order": 50, + "navigation_type_id": "basic", + "type_config": { + "link": "", + "display_condition": "", + "extra_attributes": [] + }, + "enabled": true +} \ No newline at end of file diff --git a/_output/navigation/contact_us.json b/_output/navigation/contact_us.json new file mode 100644 index 0000000..4835439 --- /dev/null +++ b/_output/navigation/contact_us.json @@ -0,0 +1,13 @@ +{ + "parent_navigation_id": "pages", + "display_order": 3, + "navigation_type_id": "basic", + "type_config": { + "link": "{$xf.options.homePageUrl}/pages/contact-us", + "display_condition": "", + "extra_attributes": { + "icon": "at-sign" + } + }, + "enabled": true +} \ No newline at end of file diff --git a/_output/navigation/database.json b/_output/navigation/database.json new file mode 100644 index 0000000..e9bff33 --- /dev/null +++ b/_output/navigation/database.json @@ -0,0 +1,13 @@ +{ + "parent_navigation_id": "website", + "display_order": 2, + "navigation_type_id": "basic", + "type_config": { + "link": "{$xf.options.homePageUrl}/database", + "display_condition": "", + "extra_attributes": { + "icon": "database" + } + }, + "enabled": true +} \ No newline at end of file diff --git a/_output/navigation/discord.json b/_output/navigation/discord.json new file mode 100644 index 0000000..b04c7a6 --- /dev/null +++ b/_output/navigation/discord.json @@ -0,0 +1,13 @@ +{ + "parent_navigation_id": "community", + "display_order": 2, + "navigation_type_id": "basic", + "type_config": { + "link": "{$xf.options.homePageUrl}/discord", + "display_condition": "", + "extra_attributes": { + "icon": "messages-square" + } + }, + "enabled": true +} \ No newline at end of file diff --git a/_output/navigation/forum.json b/_output/navigation/forum.json new file mode 100644 index 0000000..8ae83fb --- /dev/null +++ b/_output/navigation/forum.json @@ -0,0 +1,13 @@ +{ + "parent_navigation_id": "community", + "display_order": 1, + "navigation_type_id": "basic", + "type_config": { + "link": "{$xf.options.boardUrl}", + "display_condition": "", + "extra_attributes": { + "icon": "message-circle" + } + }, + "enabled": true +} \ No newline at end of file diff --git a/_output/navigation/home.json b/_output/navigation/home.json new file mode 100644 index 0000000..da3bf4d --- /dev/null +++ b/_output/navigation/home.json @@ -0,0 +1,13 @@ +{ + "parent_navigation_id": "website", + "display_order": 1, + "navigation_type_id": "basic", + "type_config": { + "link": "{$xf.options.homePageUrl}", + "display_condition": "", + "extra_attributes": { + "icon": "home" + } + }, + "enabled": true +} \ No newline at end of file diff --git a/_output/navigation/learn_romhacking.json b/_output/navigation/learn_romhacking.json new file mode 100644 index 0000000..b940efe --- /dev/null +++ b/_output/navigation/learn_romhacking.json @@ -0,0 +1,13 @@ +{ + "parent_navigation_id": "pages", + "display_order": 1, + "navigation_type_id": "basic", + "type_config": { + "link": "{$xf.options.homePageUrl}/pages/learn", + "display_condition": "", + "extra_attributes": { + "icon": "graduation-cap" + } + }, + "enabled": true +} \ No newline at end of file diff --git a/_output/navigation/legal_pages.json b/_output/navigation/legal_pages.json new file mode 100644 index 0000000..10b8bbf --- /dev/null +++ b/_output/navigation/legal_pages.json @@ -0,0 +1,13 @@ +{ + "parent_navigation_id": "pages", + "display_order": 4, + "navigation_type_id": "basic", + "type_config": { + "link": "{$xf.options.homePageUrl}/pages/legal-pages", + "display_condition": "", + "extra_attributes": { + "icon": "scale" + } + }, + "enabled": true +} \ No newline at end of file diff --git a/_output/navigation/members.json b/_output/navigation/members.json new file mode 100644 index 0000000..7963fb6 --- /dev/null +++ b/_output/navigation/members.json @@ -0,0 +1,13 @@ +{ + "parent_navigation_id": "community", + "display_order": 3, + "navigation_type_id": "basic", + "type_config": { + "link": "{{ link('members') }}", + "display_condition": "", + "extra_attributes": { + "icon": "users" + } + }, + "enabled": true +} \ No newline at end of file diff --git a/_output/navigation/pages.json b/_output/navigation/pages.json new file mode 100644 index 0000000..bb72a97 --- /dev/null +++ b/_output/navigation/pages.json @@ -0,0 +1,11 @@ +{ + "parent_navigation_id": "", + "display_order": 150, + "navigation_type_id": "basic", + "type_config": { + "link": "", + "display_condition": "", + "extra_attributes": [] + }, + "enabled": true +} \ No newline at end of file diff --git a/_output/navigation/rom_checker.json b/_output/navigation/rom_checker.json new file mode 100644 index 0000000..d186479 --- /dev/null +++ b/_output/navigation/rom_checker.json @@ -0,0 +1,13 @@ +{ + "parent_navigation_id": "tools", + "display_order": 3, + "navigation_type_id": "basic", + "type_config": { + "link": "{$xf.options.homePageUrl}/tools/rom-checker", + "display_condition": "", + "extra_attributes": { + "icon": "check" + } + }, + "enabled": true +} \ No newline at end of file diff --git a/_output/navigation/rom_hasher.json b/_output/navigation/rom_hasher.json new file mode 100644 index 0000000..7f1a7c9 --- /dev/null +++ b/_output/navigation/rom_hasher.json @@ -0,0 +1,13 @@ +{ + "parent_navigation_id": "tools", + "display_order": 2, + "navigation_type_id": "basic", + "type_config": { + "link": "{$xf.options.homePageUrl}/tools/rom-hasher", + "display_condition": "", + "extra_attributes": { + "icon": "hash" + } + }, + "enabled": true +} \ No newline at end of file diff --git a/_output/navigation/rom_patcher.json b/_output/navigation/rom_patcher.json new file mode 100644 index 0000000..e35e6e1 --- /dev/null +++ b/_output/navigation/rom_patcher.json @@ -0,0 +1,13 @@ +{ + "parent_navigation_id": "tools", + "display_order": 1, + "navigation_type_id": "basic", + "type_config": { + "link": "{$xf.options.homePageUrl}/tools/rom-patcher", + "display_condition": "", + "extra_attributes": { + "icon": "stamp" + } + }, + "enabled": true +} \ No newline at end of file diff --git a/_output/navigation/submissions_queue.json b/_output/navigation/submissions_queue.json new file mode 100644 index 0000000..77a24c8 --- /dev/null +++ b/_output/navigation/submissions_queue.json @@ -0,0 +1,13 @@ +{ + "parent_navigation_id": "website", + "display_order": 3, + "navigation_type_id": "basic", + "type_config": { + "link": "{$xf.options.homePageUrl}/submissions-queue", + "display_condition": "", + "extra_attributes": { + "icon": "gavel" + } + }, + "enabled": true +} \ No newline at end of file diff --git a/_output/navigation/tools.json b/_output/navigation/tools.json new file mode 100644 index 0000000..123cd59 --- /dev/null +++ b/_output/navigation/tools.json @@ -0,0 +1,11 @@ +{ + "parent_navigation_id": "", + "display_order": 100, + "navigation_type_id": "basic", + "type_config": { + "link": "", + "display_condition": "", + "extra_attributes": [] + }, + "enabled": true +} \ No newline at end of file diff --git a/_output/navigation/website.json b/_output/navigation/website.json new file mode 100644 index 0000000..00ea74b --- /dev/null +++ b/_output/navigation/website.json @@ -0,0 +1,11 @@ +{ + "parent_navigation_id": "", + "display_order": 1, + "navigation_type_id": "basic", + "type_config": { + "link": "", + "display_condition": "", + "extra_attributes": [] + }, + "enabled": true +} \ No newline at end of file diff --git a/_output/permission_interface_groups/_metadata.json b/_output/permission_interface_groups/_metadata.json new file mode 100644 index 0000000..8ad94e3 --- /dev/null +++ b/_output/permission_interface_groups/_metadata.json @@ -0,0 +1,5 @@ +{ + "romhackplaza.json": { + "hash": "17a783b34dc6a42b0947021dedf7b90a" + } +} \ No newline at end of file diff --git a/_output/permission_interface_groups/romhackplaza.json b/_output/permission_interface_groups/romhackplaza.json new file mode 100644 index 0000000..0b44f8c --- /dev/null +++ b/_output/permission_interface_groups/romhackplaza.json @@ -0,0 +1,4 @@ +{ + "display_order": 500, + "is_moderator": false +} \ No newline at end of file diff --git a/_output/permissions/_metadata.json b/_output/permissions/_metadata.json new file mode 100644 index 0000000..db36751 --- /dev/null +++ b/_output/permissions/_metadata.json @@ -0,0 +1,11 @@ +{ + "romhackplaza-canSubmitEntry.json": { + "hash": "6eeb397b6596b6774af70dbbf5454106" + }, + "romhackplaza-canSubmitTempFile.json": { + "hash": "d514bba0211dc91897efce276c499131" + }, + "romhackplaza-view.json": { + "hash": "713aad2f89dfc2e1b93f1b72c6e4ec96" + } +} \ No newline at end of file diff --git a/_output/permissions/romhackplaza-canSubmitEntry.json b/_output/permissions/romhackplaza-canSubmitEntry.json new file mode 100644 index 0000000..73317d1 --- /dev/null +++ b/_output/permissions/romhackplaza-canSubmitEntry.json @@ -0,0 +1,6 @@ +{ + "permission_type": "flag", + "interface_group_id": "romhackplaza", + "display_order": 2, + "depend_permission_id": "" +} \ No newline at end of file diff --git a/_output/permissions/romhackplaza-canSubmitTempFile.json b/_output/permissions/romhackplaza-canSubmitTempFile.json new file mode 100644 index 0000000..ce61a59 --- /dev/null +++ b/_output/permissions/romhackplaza-canSubmitTempFile.json @@ -0,0 +1,6 @@ +{ + "permission_type": "flag", + "interface_group_id": "romhackplaza", + "display_order": 3, + "depend_permission_id": "" +} \ No newline at end of file diff --git a/_output/permissions/romhackplaza-view.json b/_output/permissions/romhackplaza-view.json new file mode 100644 index 0000000..d4feb1c --- /dev/null +++ b/_output/permissions/romhackplaza-view.json @@ -0,0 +1,6 @@ +{ + "permission_type": "flag", + "interface_group_id": "romhackplaza", + "display_order": 1, + "depend_permission_id": "" +} \ No newline at end of file diff --git a/_output/phrases/_metadata.json b/_output/phrases/_metadata.json new file mode 100644 index 0000000..490fb85 --- /dev/null +++ b/_output/phrases/_metadata.json @@ -0,0 +1,128 @@ +{ + "nav.about.txt": { + "global_cache": false, + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "8f7f4c1ce7a4f933663d10543562b096" + }, + "nav.community.txt": { + "global_cache": false, + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "7d61983c34edc2a8cabbea71c4732f62" + }, + "nav.contact_us.txt": { + "global_cache": false, + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "9cfc9b74983d504ec71db33967591249" + }, + "nav.database.txt": { + "global_cache": false, + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "e307db07b3975fef922a80d07455ee5e" + }, + "nav.discord.txt": { + "global_cache": false, + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "8f5cc6430613f1c12f36965050bb7197" + }, + "nav.forum.txt": { + "global_cache": false, + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "e6a7f8a2f42cc35979973da8dfb10720" + }, + "nav.home.txt": { + "global_cache": false, + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "8cf04a9734132302f96da8e113e80ce5" + }, + "nav.learn_romhacking.txt": { + "global_cache": false, + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "f3d6b3daa97f5135fdf71e8667dc2d70" + }, + "nav.legal_pages.txt": { + "global_cache": false, + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "3c409b33c2ad79df7ed112714d2092be" + }, + "nav.members.txt": { + "global_cache": false, + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "ef53538ae41a651c7f72ab6cb1135d8c" + }, + "nav.pages.txt": { + "global_cache": false, + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "453aceb005ceaf54a47da15fee8b2a26" + }, + "nav.rom_checker.txt": { + "global_cache": false, + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "f5e8c49f0487c68231a8804df2379cc5" + }, + "nav.rom_hasher.txt": { + "global_cache": false, + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "6b1a84e9acc5c0c799fda79d07f0c76d" + }, + "nav.rom_patcher.txt": { + "global_cache": false, + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "9212596d836adf58110b60475d341034" + }, + "nav.submissions_queue.txt": { + "global_cache": false, + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "15fe7b6033b3abae4d4096e7a5d21bff" + }, + "nav.tools.txt": { + "global_cache": false, + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "8625e1de7be14c39b1d14dc03d822497" + }, + "nav.website.txt": { + "global_cache": false, + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "15bbb9d0bbf25e8d2978de1168c749dc" + }, + "permission.romhackplaza_canSubmitEntry.txt": { + "global_cache": false, + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "d62432dfaf4d83315ed838ce10794fa1" + }, + "permission.romhackplaza_canSubmitTempFile.txt": { + "global_cache": false, + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "897672053fcb6eaf6aa1e0fdc199fca6" + }, + "permission.romhackplaza_view.txt": { + "global_cache": false, + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "4c914789bf22b864c707170ba9507214" + }, + "permission_interface.romhackplaza.txt": { + "global_cache": false, + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "18efd87fe26aa5865759972ab2542a4c" + } +} \ No newline at end of file diff --git a/_output/phrases/nav.about.txt b/_output/phrases/nav.about.txt new file mode 100644 index 0000000..ae21d83 --- /dev/null +++ b/_output/phrases/nav.about.txt @@ -0,0 +1 @@ +About \ No newline at end of file diff --git a/_output/phrases/nav.community.txt b/_output/phrases/nav.community.txt new file mode 100644 index 0000000..c0afad8 --- /dev/null +++ b/_output/phrases/nav.community.txt @@ -0,0 +1 @@ +Community \ No newline at end of file diff --git a/_output/phrases/nav.contact_us.txt b/_output/phrases/nav.contact_us.txt new file mode 100644 index 0000000..9d42ac9 --- /dev/null +++ b/_output/phrases/nav.contact_us.txt @@ -0,0 +1 @@ +Contact Us \ No newline at end of file diff --git a/_output/phrases/nav.database.txt b/_output/phrases/nav.database.txt new file mode 100644 index 0000000..289310a --- /dev/null +++ b/_output/phrases/nav.database.txt @@ -0,0 +1 @@ +Database \ No newline at end of file diff --git a/_output/phrases/nav.discord.txt b/_output/phrases/nav.discord.txt new file mode 100644 index 0000000..f46fb55 --- /dev/null +++ b/_output/phrases/nav.discord.txt @@ -0,0 +1 @@ +Discord \ No newline at end of file diff --git a/_output/phrases/nav.forum.txt b/_output/phrases/nav.forum.txt new file mode 100644 index 0000000..f50eaff --- /dev/null +++ b/_output/phrases/nav.forum.txt @@ -0,0 +1 @@ +Forum \ No newline at end of file diff --git a/_output/phrases/nav.home.txt b/_output/phrases/nav.home.txt new file mode 100644 index 0000000..357dd48 --- /dev/null +++ b/_output/phrases/nav.home.txt @@ -0,0 +1 @@ +Home \ No newline at end of file diff --git a/_output/phrases/nav.learn_romhacking.txt b/_output/phrases/nav.learn_romhacking.txt new file mode 100644 index 0000000..7337078 --- /dev/null +++ b/_output/phrases/nav.learn_romhacking.txt @@ -0,0 +1 @@ +Learn Romhacking \ No newline at end of file diff --git a/_output/phrases/nav.legal_pages.txt b/_output/phrases/nav.legal_pages.txt new file mode 100644 index 0000000..23a0bf1 --- /dev/null +++ b/_output/phrases/nav.legal_pages.txt @@ -0,0 +1 @@ +Legal Pages \ No newline at end of file diff --git a/_output/phrases/nav.members.txt b/_output/phrases/nav.members.txt new file mode 100644 index 0000000..6a51d35 --- /dev/null +++ b/_output/phrases/nav.members.txt @@ -0,0 +1 @@ +Members \ No newline at end of file diff --git a/_output/phrases/nav.pages.txt b/_output/phrases/nav.pages.txt new file mode 100644 index 0000000..519cd89 --- /dev/null +++ b/_output/phrases/nav.pages.txt @@ -0,0 +1 @@ +Pages \ No newline at end of file diff --git a/_output/phrases/nav.rom_checker.txt b/_output/phrases/nav.rom_checker.txt new file mode 100644 index 0000000..ffb5df8 --- /dev/null +++ b/_output/phrases/nav.rom_checker.txt @@ -0,0 +1 @@ +ROM Checker \ No newline at end of file diff --git a/_output/phrases/nav.rom_hasher.txt b/_output/phrases/nav.rom_hasher.txt new file mode 100644 index 0000000..4fc809f --- /dev/null +++ b/_output/phrases/nav.rom_hasher.txt @@ -0,0 +1 @@ +ROM Hasher \ No newline at end of file diff --git a/_output/phrases/nav.rom_patcher.txt b/_output/phrases/nav.rom_patcher.txt new file mode 100644 index 0000000..6c86cd9 --- /dev/null +++ b/_output/phrases/nav.rom_patcher.txt @@ -0,0 +1 @@ +ROM Patcher \ No newline at end of file diff --git a/_output/phrases/nav.submissions_queue.txt b/_output/phrases/nav.submissions_queue.txt new file mode 100644 index 0000000..ed879c8 --- /dev/null +++ b/_output/phrases/nav.submissions_queue.txt @@ -0,0 +1 @@ +Submissions queue \ No newline at end of file diff --git a/_output/phrases/nav.tools.txt b/_output/phrases/nav.tools.txt new file mode 100644 index 0000000..8889e91 --- /dev/null +++ b/_output/phrases/nav.tools.txt @@ -0,0 +1 @@ +Tools \ No newline at end of file diff --git a/_output/phrases/nav.website.txt b/_output/phrases/nav.website.txt new file mode 100644 index 0000000..4e01076 --- /dev/null +++ b/_output/phrases/nav.website.txt @@ -0,0 +1 @@ +Website \ No newline at end of file diff --git a/_output/phrases/permission.romhackplaza_canSubmitEntry.txt b/_output/phrases/permission.romhackplaza_canSubmitEntry.txt new file mode 100644 index 0000000..0af7635 --- /dev/null +++ b/_output/phrases/permission.romhackplaza_canSubmitEntry.txt @@ -0,0 +1 @@ +Can Submit Entry \ No newline at end of file diff --git a/_output/phrases/permission.romhackplaza_canSubmitTempFile.txt b/_output/phrases/permission.romhackplaza_canSubmitTempFile.txt new file mode 100644 index 0000000..1f2dafe --- /dev/null +++ b/_output/phrases/permission.romhackplaza_canSubmitTempFile.txt @@ -0,0 +1 @@ +Can Submit Temporary File \ No newline at end of file diff --git a/_output/phrases/permission.romhackplaza_view.txt b/_output/phrases/permission.romhackplaza_view.txt new file mode 100644 index 0000000..d12218a --- /dev/null +++ b/_output/phrases/permission.romhackplaza_view.txt @@ -0,0 +1 @@ +View entries \ No newline at end of file diff --git a/_output/phrases/permission_interface.romhackplaza.txt b/_output/phrases/permission_interface.romhackplaza.txt new file mode 100644 index 0000000..77d8438 --- /dev/null +++ b/_output/phrases/permission_interface.romhackplaza.txt @@ -0,0 +1 @@ +Romhack Plaza permissions \ No newline at end of file diff --git a/_output/templates/_metadata.json b/_output/templates/_metadata.json new file mode 100644 index 0000000..82b0a23 --- /dev/null +++ b/_output/templates/_metadata.json @@ -0,0 +1,7 @@ +{ + "admin/helper_criteria.html": { + "version_id": 1000000, + "version_string": "1.0.0", + "hash": "19cd05c4ab254dbad0abfd0c6b8c3456" + } +} \ No newline at end of file diff --git a/_output/templates/admin/helper_criteria.html b/_output/templates/admin/helper_criteria.html new file mode 100644 index 0000000..6e8dd08 --- /dev/null +++ b/_output/templates/admin/helper_criteria.html @@ -0,0 +1,525 @@ + + + + {{ $userTabTitle ? $userTabTitle : phrase('user_criteria') }} + + {{ phrase('custom_userfield_criteria') }} + + +
+ {$tabs|raw} +
+ + {$tabs|raw} +
+
+ + + + {{ phrase('page_criteria') }} + + +
+ {$tabs|raw} +
+ + {$tabs|raw} +
+
+ + + + + + + + +
  • + + + + + + + + + + + + + + + + {{ phrase('valid') }} + {{ phrase('awaiting_email_confirmation') }} + {{ phrase('awaiting_email_confirmation_from_edit') }} + {{ phrase('email_invalid_bounced') }} + {{ phrase('awaiting_approval') }} + {{ phrase('rejected') }} + {{ phrase('disabled') }} + + + + + + + + +
    + + + + + + + + + + + + + +
    + + + + + + + + + {$userGroupTitle} + + + + + + + + + + {$userGroupTitle} + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ phrase('reaction_message_ratio_explanation') }} + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + {{ repeat('--', $treeEntry.depth) }} {$treeEntry.record.title} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + {{ phrase('user_id_match_criteria_explain') }} + + + + + +
    + + + + + + + + + {{ phrase('username_criteria_explain') }} + + + + + + {{ phrase('username_search_criteria_explain') }} + + + + + {{ phrase('email_search_criteria_explain') }} + + + + + + +
  • + +
  • + + + + + + +

    {$groupPhrase}

    + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    +
    + + {{ phrase('no_custom_fields_have_been_created_yet') }} +
    +
  • +
    + + +
      + {$panes|raw} +
    + + {$panes|raw} +
    +
    + + + + + + + +
  • + + + + + + +
    + + + {{ phrase('criteria_time:') }} + + + + + + + + : + + + + + + +
    + {{ phrase('criteria_leave_date_empty') }} +
    + + + + + + + + + +
    +
    + +
    + + + + + + + +
    + + + {{ phrase('criteria_time:') }} + + + + + + + + : + + + + + + +
    + {{ phrase('criteria_leave_date_empty') }} +
    + + + + + + + + + + +
    +
    + +
    + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + {{ repeat('--', $treeEntry.depth) }} {$treeEntry.record.title} + + + + + + + + + {{ phrase('selected_tab_criteria_explain') }} + + + + + + {{ phrase('controller_and_action_criteria_explain') }} + + + + + + {{ phrase('view_class_criteria_explain') }} + + + + + + {{ phrase('content_template_criteria_explain') }} + + + + +
  • +
    + + +
      + {$panes|raw} +
    + + {$panes|raw} +
    +
    \ No newline at end of file diff --git a/addon.json b/addon.json new file mode 100644 index 0000000..bf733c6 --- /dev/null +++ b/addon.json @@ -0,0 +1,14 @@ +{ + "legacy_addon_id": "", + "title": "RomhackPlaza Master Addon", + "description": "", + "version_id": 1000000, + "version_string": "1.0.0", + "dev": "", + "dev_url": "", + "faq_url": "", + "support_url": "", + "extra_urls": [], + "require": [], + "icon": "" +} \ No newline at end of file