-
-
Save stwalkerster/8293571 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+----------------+--------------------------------------------------------------------------------------------------------+----------------+----------------+ | |
| page_namespace | page_title | editprotect | moveprotect | | |
+----------------+--------------------------------------------------------------------------------------------------------+----------------+----------------+ | |
| 4 | Changing_username/Usurpations/Rejected/12 | NULL | NULL | | |
| 4 | Request_an_account/Guide | NULL | NULL | | |
| 4 | Village_pump_(proposals)/Account_security | NULL | NULL | | |
| 4 | Account_creator | NULL | NULL | | |
| 4 | Online_Ambassadors/Apply/Riley_Huntley | NULL | NULL | | |
| 4 | Administrators'_noticeboard/2008_IWF_action | NULL | sysop | | |
| 4 | Arbitration_Committee/CheckUser_and_Oversight/2013_CUOS_appointments | NULL | NULL | | |
| 4 | Arbitration_Committee/CheckUser_and_Oversight/2013_CUOS_appointments/CU | NULL | NULL | | |
| 4 | Request_an_account/Administrators | NULL | NULL | | |
| 4 | Meetup/UK | NULL | NULL | | |
| 4 | Bots/Requests_for_approval/WelcomerBot | NULL | NULL | | |
| 4 | Huggle/Wine | NULL | NULL | | |
| 4 | Sockpuppet_investigations | autoconfirmed | sysop | | |
| 4 | April_Fools/April_Fools'_Day_2011/My76StratRFA | NULL | NULL | | |
| 4 | WikiProject_user_warnings/old_details | NULL | NULL | | |
| 4 | Template_messages/User_talk_namespace/Blocks | NULL | NULL | | |
| 4 | Request_an_account/Changelog | NULL | NULL | | |
| 4 | Toolserver | NULL | NULL | | |
| 4 | Why_create_an_account? | autoconfirmed | sysop | | |
| 4 | Userboxes/Wikipedia/User_groups | NULL | NULL | | |
| 4 | Editor_review/Guide | NULL | NULL | | |
| 4 | Request_an_account/Changelog/r3334 | NULL | NULL | | |
| 4 | Administrators'_noticeboard/Incidents/Soft_blocking_AOL | NULL | NULL | | |
| 4 | Request_an_account/Procedures | NULL | NULL | | |
| 5 | Request_an_account | autoconfirmed | autoconfirmed | | |
| 5 | Account_creator | NULL | NULL | | |
| 5 | File_mover/proposal | NULL | NULL | | |
| 5 | Request_an_account/Procedures | NULL | NULL | | |
| 5 | New_contributors'_help_page | NULL | sysop | | |
| 5 | Help_desk | NULL | sysop | | |
| 5 | WikiProject_United_States_Public_Policy/Courses/Spring_2011/Seminar_in_Public_Affairs_(Byron_E._Price) | NULL | NULL | | |
| 5 | Usernames_for_administrator_attention | NULL | NULL | | |
| 5 | Why_create_an_account? | NULL | NULL | | |
| 5 | Request_an_account/Guide | NULL | NULL | | |
| 5 | Teahouse | NULL | NULL | | |
| 8 | Ipbreason-dropdown/Templates/schoolblock | NULL | NULL | | |
| 8 | Cantcreateaccount-text | NULL | NULL | | |
| 8 | Ipbreason-dropdown | NULL | NULL | | |
| 8 | Ipbreason-dropdown/Templates/anonblock | NULL | NULL | | |
| 10 | Editnotices/Page/Wikipedia:Requests_for_permissions/Account_creator | NULL | NULL | | |
| 10 | UKBlock | autoconfirmed | autoconfirmed | | |
| 10 | Colocationwebhost | templateeditor | templateeditor | | |
| 10 | Googleappspotblock | sysop | sysop | | |
| 10 | School_block | sysop | sysop | | |
| 10 | User_acct | NULL | NULL | | |
| 10 | ACC-access | NULL | NULL | | |
| 10 | Rangeblocked | sysop | sysop | | |
| 10 | Anonblock | templateeditor | templateeditor | | |
| 10 | Acc | NULL | NULL | | |
| 10 | ACC-backlog | NULL | NULL | | |
| 10 | Acc/doc | NULL | NULL | | |
| 10 | Uw-acc | autoconfirmed | autoconfirmed | | |
| 10 | School_block/sandbox | NULL | NULL | | |
| 10 | User_wikipedia/acctoolserveruser | NULL | NULL | | |
| 10 | CheckUser_block | templateeditor | templateeditor | | |
| 10 | User_wikipedia/accountcreator | NULL | NULL | | |
| 10 | Checkuserblock-Alto | templateeditor | templateeditor | | |
| 10 | Account_creator_declined | NULL | NULL | | |
| 10 | Checkuserblock-Synetrix | NULL | NULL | | |
| 11 | Googleappspotblock | NULL | NULL | | |
| 11 | Anonblock | NULL | NULL | | |
| 12 | I_have_been_blocked | autoconfirmed | sysop | | |
+----------------+--------------------------------------------------------------------------------------------------------+----------------+----------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
pages.page_namespace, | |
pages.page_title, | |
restrictions.pr_level as editprotect, | |
mrestrictions.pr_level as moveprotect | |
FROM | |
(SELECT | |
page_id, page_namespace, page_title | |
FROM | |
`externallinks` | |
JOIN `page` ON page_id = el_from | |
WHERE | |
(el_to LIKE 'http://toolserver.org/~acc%' | |
OR el_to LIKE 'https://toolserver.org/~acc%') | |
AND page_namespace > 3 | |
AND page_title NOT LIKE '%Archive%' | |
AND page_title NOT LIKE '%adminship%' | |
AND page_title NOT LIKE '%eletion%' | |
AND page_title NOT LIKE '%Abuse%' UNION DISTINCT SELECT | |
page_id, page_namespace, page_title | |
FROM | |
`iwlinks` | |
JOIN `page` ON page_id = iwl_from | |
WHERE | |
iwl_prefix = 'tools' | |
AND iwl_title LIKE '~acc%' | |
AND page_namespace > 3 | |
AND page_title NOT LIKE '%Archive%' | |
AND page_title NOT LIKE '%adminship%' | |
AND page_title NOT LIKE '%eletion%' | |
AND page_title NOT LIKE '%Abuse%' | |
ORDER BY page_namespace) pages | |
LEFT OUTER JOIN | |
(SELECT | |
* | |
FROM | |
page_restrictions | |
WHERE | |
pr_type = 'edit') restrictions ON restrictions.pr_page = pages.page_id | |
LEFT OUTER JOIN | |
(SELECT | |
* | |
FROM | |
page_restrictions | |
WHERE | |
pr_type = 'move') mrestrictions ON mrestrictions.pr_page = pages.page_id; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment