<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mort11.com/mentor.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Admin</id>
	<title>FRC11 - Mentor Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://mort11.com/mentor.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Admin"/>
	<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php/Special:Contributions/Admin"/>
	<updated>2026-11-26T10:57:21Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=349</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=349"/>
		<updated>2018-10-18T18:30:48Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Change Logs ==&lt;br /&gt;
Please update the logs when making relevant administrative changes.&lt;br /&gt;
&lt;br /&gt;
* [[User:Admin Change Log]] - Administrative Change History across the Wiki&lt;br /&gt;
* [[Security Change Log]] - Administrative Change History affecting security&lt;br /&gt;
&lt;br /&gt;
== Actions ==&lt;br /&gt;
* [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages Administrative Control Panel]  &lt;br /&gt;
:Usernames should be &amp;lt;firstinitial&amp;gt;&amp;lt;lastname&amp;gt;. E.g. for Joe Admin the username should be jadmin.&lt;br /&gt;
* [http://mort11.com/extplorer Edit Config Files]&lt;br /&gt;
* [http://mort11.com/mentor.wiki/index.php/MediaWiki:Sidebar Edit the Sidebar]&lt;br /&gt;
* [http://mort11.com/mentor.wiki/index.php/Special:Version Check MediaWiki Versions]&lt;br /&gt;
&lt;br /&gt;
== How To Administer a MediaWiki ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings List of Configuration Settings]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Join the MediaWiki Release Mailing List]&lt;br /&gt;
* [[How to Use a Logo on MediaWiki]]&lt;br /&gt;
* [[How to Block User Rights]]&lt;br /&gt;
* [[How to block new user creation and password reset]]&lt;br /&gt;
* [[How to Force users to connect using HTTPS and turn on HSTS]]&lt;br /&gt;
* [[How to generate a GPG public/private key pair to get SSH keys]]&lt;br /&gt;
* [[How to rename the Main page]]&lt;br /&gt;
* [https://mediawiki.org/wiki/Manual:Interface/Sidebar How to edit the sidebar]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources How to Localize MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam How to combat spam on your wiki]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Extension:UserMerge How to delete users once created]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=348</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=348"/>
		<updated>2018-10-18T18:29:59Z</updated>

		<summary type="html">&lt;p&gt;Admin: /* How To Administer a MediaWiki */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Change Logs ==&lt;br /&gt;
Please update the logs when making relevant administrative changes.&lt;br /&gt;
&lt;br /&gt;
* [[User:Admin Change Log]] - Administrative Change History across the Wiki&lt;br /&gt;
* [[Security Change Log]] - Administrative Change History affecting security&lt;br /&gt;
&lt;br /&gt;
== Actions ==&lt;br /&gt;
* [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages Administrative Control Panel]  &lt;br /&gt;
:Usernames should be &amp;lt;firstinitial&amp;gt;&amp;lt;lastname&amp;gt;. E.g. for Joe Admin the username should be jadmin.&lt;br /&gt;
* [http://mort11.com/extplorer Edit Config Files]&lt;br /&gt;
* [http://mort11.com/mentor.wiki/index.php/MediaWiki:Sidebar Edit the Sidebar]&lt;br /&gt;
* [http://mort11.com/mentor.wiki/index.php/Special:Version Check MediaWiki Versions]&lt;br /&gt;
&lt;br /&gt;
== How To Administer a MediaWiki ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings List of Configuration Settings]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Join the MediaWiki Release Mailing List]&lt;br /&gt;
* [[How to Use a Logo on MediaWiki]]&lt;br /&gt;
* [[How to Block User Rights]]&lt;br /&gt;
* [[How to block new user creation and password reset]]&lt;br /&gt;
* [[How to Force users to connect using HTTPS and turn on HSTS]]&lt;br /&gt;
* [[How to generate a GPG public/private key pair to get SSH keys]]&lt;br /&gt;
* [[How to rename the Main page]]&lt;br /&gt;
* [https://mediawiki.org/wiki/Manual:Interface/Sidebar How to edit the sidebar]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources How to Localize MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam How to combat spam on your wiki]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Extension:UserMerge:Delete_users How to delete users once created]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=347</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=347"/>
		<updated>2018-10-18T18:29:29Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Change Logs ==&lt;br /&gt;
Please update the logs when making relevant administrative changes.&lt;br /&gt;
&lt;br /&gt;
* [[User:Admin Change Log]] - Administrative Change History across the Wiki&lt;br /&gt;
* [[Security Change Log]] - Administrative Change History affecting security&lt;br /&gt;
&lt;br /&gt;
== Actions ==&lt;br /&gt;
* [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages Administrative Control Panel]  &lt;br /&gt;
:Usernames should be &amp;lt;firstinitial&amp;gt;&amp;lt;lastname&amp;gt;. E.g. for Joe Admin the username should be jadmin.&lt;br /&gt;
* [http://mort11.com/extplorer Edit Config Files]&lt;br /&gt;
* [http://mort11.com/mentor.wiki/index.php/MediaWiki:Sidebar Edit the Sidebar]&lt;br /&gt;
* [http://mort11.com/mentor.wiki/index.php/Special:Version Check MediaWiki Versions]&lt;br /&gt;
&lt;br /&gt;
== How To Administer a MediaWiki ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings List of Configuration Settings]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Join the MediaWiki Release Mailing List]&lt;br /&gt;
* [[How to Use a Logo on MediaWiki]]&lt;br /&gt;
* [[How to Block User Rights]]&lt;br /&gt;
* [[How to block new user creation and password reset]]&lt;br /&gt;
* [[How to Force users to connect using HTTPS and turn on HSTS]]&lt;br /&gt;
* [[How to generate a GPG public/private key pair to get SSH keys]]&lt;br /&gt;
* [[How to rename the Main page]]&lt;br /&gt;
* [https://mediawiki.org/wiki/Manual:Interface/Sidebar How to edit the sidebar]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources How to Localize MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam How to combat spam on your wiki]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Extension:UserMerge:How to delete users once created]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=81</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=81"/>
		<updated>2018-07-29T18:01:54Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block user rights:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['userrights'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialUserrights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListusers.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrouprights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialBlockList.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrants.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialActiveusers.php&lt;br /&gt;
&lt;br /&gt;
Add this function:&lt;br /&gt;
 public function userCanExecute( $user ) { &lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'userrights' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Note the following please:&lt;br /&gt;
&lt;br /&gt;
 In the function above, 'userrights', means the group rights set in LocalSettings.php.&lt;br /&gt;
 So granular controls can be implemented by changing these values.&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function execute( $par ) {&lt;br /&gt;
   $user = $this-&amp;gt;getUser();&lt;br /&gt;
   $request = $this-&amp;gt;getRequest();&lt;br /&gt;
   $session = $request-&amp;gt;getSession();&lt;br /&gt;
   $out = $this-&amp;gt;getOutput();&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
   $this-&amp;gt;getOutput()-&amp;gt;disallowUserJs();    // Disable client side JavaScript to block XSS attacks.&lt;br /&gt;
   $this-&amp;gt;requireLogin();                   // Force a login if the user is not logged in.&lt;br /&gt;
   // This part alone would also block users not logged in, it will further deny users without the proper rights.&lt;br /&gt;
   // See existing section noted above: $user = $this-&amp;gt;getUser();&lt;br /&gt;
   if ( !$this-&amp;gt;userCanExecute( $user ) ) {&lt;br /&gt;
     // $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
     throw new PermissionsError( $this-&amp;gt;mRestriction );&lt;br /&gt;
     return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
Note the following please:&lt;br /&gt;
&lt;br /&gt;
 The functions:&lt;br /&gt;
   $this-&amp;gt;mRestriction&lt;br /&gt;
   $this-&amp;gt;displayRestrictionError() (As seen in the link below for 'Special Pages : Restricting Page Access'&lt;br /&gt;
 &lt;br /&gt;
 Will both display HTML denial messages that look like the following:&lt;br /&gt;
   Permission error&lt;br /&gt;
   ----------------------------------------------------------------&lt;br /&gt;
   You do not have permission to do that, for the following reason:&lt;br /&gt;
   You are not allowed to execute the action you have requested.&lt;br /&gt;
 &lt;br /&gt;
 However this function:&lt;br /&gt;
   $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; )&lt;br /&gt;
 &lt;br /&gt;
 Will allow arbitrary non-standard messages if a user is denied access to one of these special pages.&lt;br /&gt;
&lt;br /&gt;
Also note the following please:&lt;br /&gt;
&lt;br /&gt;
 Some pages are already protected by MediaWiki's authorization manager.&lt;br /&gt;
 These pages don't require this function to be called:&lt;br /&gt;
   $this-&amp;gt;requireLogin();&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation and password reset:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialPasswordReset.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   $this-&amp;gt;getOutput()-&amp;gt;disallowUserJs();&lt;br /&gt;
   // If you put: $this-&amp;gt;requireLogin(); here the entire Special Pages section will need a user logged in to see.&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $this-&amp;gt;getPasswordReset()-&amp;gt;isAllowed( $user )-&amp;gt;isGood();&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }	&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
It will also block unauthorized users from seeing that same content.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
 https://m.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager&lt;br /&gt;
 https://m.mediawiki.org/wiki/Special:MyLanguage/Manual:Special_pages#Restricting_page_access&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the 'location' section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
 https://winginx.com/en/htaccess&lt;br /&gt;
 https://www.globalsign.com/en/blog/what-is-hsts-and-how-do-i-use-it/&lt;br /&gt;
 https://css-tricks.com/snippets/htaccess/force-https/&lt;br /&gt;
 https://www.a2hosting.com/kb/developer-corner/apache-web-server/using-htaccess-files&lt;br /&gt;
 https://www.ssl.com/how-to/force-https-connections-in-an-apache-server-environment/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=80</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=80"/>
		<updated>2018-07-29T17:56:07Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block user rights:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['userrights'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialUserrights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListusers.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrouprights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialBlockList.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrants.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialActiveusers.php&lt;br /&gt;
&lt;br /&gt;
Add this function:&lt;br /&gt;
 public function userCanExecute( $user ) { &lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'userrights' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Note the following please:&lt;br /&gt;
&lt;br /&gt;
 In the function above, 'userrights', means the group rights set in LocalSettings.php.&lt;br /&gt;
 So granular controls can be implemented by changing these values.&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function execute( $par ) {&lt;br /&gt;
   $user = $this-&amp;gt;getUser();&lt;br /&gt;
   $request = $this-&amp;gt;getRequest();&lt;br /&gt;
   $session = $request-&amp;gt;getSession();&lt;br /&gt;
   $out = $this-&amp;gt;getOutput();&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
   $this-&amp;gt;getOutput()-&amp;gt;disallowUserJs();    // Disable client side JavaScript to block XSS attacks.&lt;br /&gt;
   $this-&amp;gt;requireLogin();                   // Force a login if the user is not logged in.&lt;br /&gt;
   // This part alone would also block users not logged in, it will further deny users without the proper rights.&lt;br /&gt;
   // See existing section noted above: $user = $this-&amp;gt;getUser();&lt;br /&gt;
   if ( !$this-&amp;gt;userCanExecute( $user ) ) {&lt;br /&gt;
     // $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
     throw new PermissionsError( $this-&amp;gt;mRestriction );&lt;br /&gt;
     return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
Note the following please:&lt;br /&gt;
&lt;br /&gt;
 The functions:&lt;br /&gt;
   $this-&amp;gt;mRestriction&lt;br /&gt;
   $this-&amp;gt;displayRestrictionError() (As seen in the link below for 'Special Pages : Restricting Page Access'&lt;br /&gt;
 &lt;br /&gt;
 Will both display HTML denial messages that look like the following:&lt;br /&gt;
   Permission error&lt;br /&gt;
   ----------------------------------------------------------------&lt;br /&gt;
   You do not have permission to do that, for the following reason:&lt;br /&gt;
   You are not allowed to execute the action you have requested.&lt;br /&gt;
 &lt;br /&gt;
 However this function:&lt;br /&gt;
   $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; )&lt;br /&gt;
 &lt;br /&gt;
 Will allow arbitrary non-standard messages if a user is denied access to one of these special pages.&lt;br /&gt;
&lt;br /&gt;
Also note the following please:&lt;br /&gt;
&lt;br /&gt;
 Some pages are already protected by MediaWiki's authorization manager.&lt;br /&gt;
 These pages don't require this function to be called:&lt;br /&gt;
   $this-&amp;gt;requireLogin();&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation and password reset:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialPasswordReset.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   $this-&amp;gt;requireLogin();&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $this-&amp;gt;getPasswordReset()-&amp;gt;isAllowed( $user )-&amp;gt;isGood();&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }	&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
It will also block unauthorized users from seeing that same content.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
 https://m.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager&lt;br /&gt;
 https://m.mediawiki.org/wiki/Special:MyLanguage/Manual:Special_pages#Restricting_page_access&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the 'location' section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
 https://winginx.com/en/htaccess&lt;br /&gt;
 https://www.globalsign.com/en/blog/what-is-hsts-and-how-do-i-use-it/&lt;br /&gt;
 https://css-tricks.com/snippets/htaccess/force-https/&lt;br /&gt;
 https://www.a2hosting.com/kb/developer-corner/apache-web-server/using-htaccess-files&lt;br /&gt;
 https://www.ssl.com/how-to/force-https-connections-in-an-apache-server-environment/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=79</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=79"/>
		<updated>2018-07-29T17:55:16Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block user rights:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['userrights'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialUserrights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListusers.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrouprights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialBlockList.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrants.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialActiveusers.php&lt;br /&gt;
&lt;br /&gt;
Add this function:&lt;br /&gt;
 public function userCanExecute( $user ) { &lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'userrights' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Note the following please:&lt;br /&gt;
&lt;br /&gt;
 In the function above, 'userrights', means the group rights set in LocalSettings.php.&lt;br /&gt;
 So granular controls can be implemented by changing these values.&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function execute( $par ) {&lt;br /&gt;
   $user = $this-&amp;gt;getUser();&lt;br /&gt;
   $request = $this-&amp;gt;getRequest();&lt;br /&gt;
   $session = $request-&amp;gt;getSession();&lt;br /&gt;
   $out = $this-&amp;gt;getOutput();&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
   $this-&amp;gt;getOutput()-&amp;gt;disallowUserJs();    // Disable client side JavaScript to block XSS attacks.&lt;br /&gt;
   $this-&amp;gt;requireLogin();                   // Force a login if the user is not logged in.&lt;br /&gt;
   // This part alone would also block users not logged in, it will further deny users without the proper rights.&lt;br /&gt;
   // See existing section noted above: $user = $this-&amp;gt;getUser();&lt;br /&gt;
   if ( !$this-&amp;gt;userCanExecute( $user ) ) {&lt;br /&gt;
     // $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
     throw new PermissionsError( $this-&amp;gt;mRestriction );&lt;br /&gt;
     return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
Note the following please:&lt;br /&gt;
&lt;br /&gt;
 The functions:&lt;br /&gt;
   $this-&amp;gt;mRestriction&lt;br /&gt;
   $this-&amp;gt;displayRestrictionError() (As seen in the link below for 'Special Pages : Restricting Page Access'&lt;br /&gt;
 &lt;br /&gt;
 Will both display HTML denial messages that look like the following:&lt;br /&gt;
   Permission error&lt;br /&gt;
   ----------------------------------------------------------------&lt;br /&gt;
   You do not have permission to do that, for the following reason:&lt;br /&gt;
   You are not allowed to execute the action you have requested.&lt;br /&gt;
 &lt;br /&gt;
 However this function:&lt;br /&gt;
   $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; )&lt;br /&gt;
 &lt;br /&gt;
 Will allow arbitrary non-standard messages if a user is denied access to one of these special pages.&lt;br /&gt;
&lt;br /&gt;
Also note the following please:&lt;br /&gt;
&lt;br /&gt;
 Some pages are already protected by MediaWiki's authorization manager.&lt;br /&gt;
 These pages don't require this function to be called:&lt;br /&gt;
   $this-&amp;gt;requireLogin();&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation and password reset:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialPasswordReset.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $this-&amp;gt;getPasswordReset()-&amp;gt;isAllowed( $user )-&amp;gt;isGood();&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }	&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
It will also block unauthorized users from seeing that same content.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
 https://m.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager&lt;br /&gt;
 https://m.mediawiki.org/wiki/Special:MyLanguage/Manual:Special_pages#Restricting_page_access&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the 'location' section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
 https://winginx.com/en/htaccess&lt;br /&gt;
 https://www.globalsign.com/en/blog/what-is-hsts-and-how-do-i-use-it/&lt;br /&gt;
 https://css-tricks.com/snippets/htaccess/force-https/&lt;br /&gt;
 https://www.a2hosting.com/kb/developer-corner/apache-web-server/using-htaccess-files&lt;br /&gt;
 https://www.ssl.com/how-to/force-https-connections-in-an-apache-server-environment/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=78</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=78"/>
		<updated>2018-07-29T17:53:28Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block user rights:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['userrights'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialUserrights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListusers.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrouprights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialBlockList.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrants.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialActiveusers.php&lt;br /&gt;
&lt;br /&gt;
Add this function:&lt;br /&gt;
 public function userCanExecute( $user ) { &lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'userrights' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Note the following please:&lt;br /&gt;
&lt;br /&gt;
 In the function above, 'userrights', means the group rights set in LocalSettings.php.&lt;br /&gt;
 So granular controls can be implemented by changing these values.&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function execute( $par ) {&lt;br /&gt;
   $user = $this-&amp;gt;getUser();&lt;br /&gt;
   $request = $this-&amp;gt;getRequest();&lt;br /&gt;
   $session = $request-&amp;gt;getSession();&lt;br /&gt;
   $out = $this-&amp;gt;getOutput();&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
   $this-&amp;gt;getOutput()-&amp;gt;disallowUserJs();    // Disable client side JavaScript to block XSS attacks.&lt;br /&gt;
   $this-&amp;gt;requireLogin();                   // Force a login if the user is not logged in.&lt;br /&gt;
   // This part alone would also block users not logged in, it will further deny users without the proper rights.&lt;br /&gt;
   // See existing section noted above: $user = $this-&amp;gt;getUser();&lt;br /&gt;
   if ( !$this-&amp;gt;userCanExecute( $user ) ) {&lt;br /&gt;
     // $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
     throw new PermissionsError( $this-&amp;gt;mRestriction );&lt;br /&gt;
     return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
Note the following please:&lt;br /&gt;
&lt;br /&gt;
 The functions:&lt;br /&gt;
   $this-&amp;gt;mRestriction&lt;br /&gt;
   $this-&amp;gt;displayRestrictionError() (As seen in the link below for 'Special Pages : Restricting Page Access'&lt;br /&gt;
 &lt;br /&gt;
 Will both display HTML denial messages that look like the following:&lt;br /&gt;
   Permission error&lt;br /&gt;
   ----------------------------------------------------------------&lt;br /&gt;
   You do not have permission to do that, for the following reason:&lt;br /&gt;
   You are not allowed to execute the action you have requested.&lt;br /&gt;
 &lt;br /&gt;
 However this function:&lt;br /&gt;
   $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; )&lt;br /&gt;
 &lt;br /&gt;
 Will allow arbitrary non-standard messages if a user is denied access to one of these special pages.&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation and password reset:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialPasswordReset.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $this-&amp;gt;getPasswordReset()-&amp;gt;isAllowed( $user )-&amp;gt;isGood();&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }	&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
It will also block unauthorized users from seeing that same content.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
 https://m.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager&lt;br /&gt;
 https://m.mediawiki.org/wiki/Special:MyLanguage/Manual:Special_pages#Restricting_page_access&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the 'location' section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
 https://winginx.com/en/htaccess&lt;br /&gt;
 https://www.globalsign.com/en/blog/what-is-hsts-and-how-do-i-use-it/&lt;br /&gt;
 https://css-tricks.com/snippets/htaccess/force-https/&lt;br /&gt;
 https://www.a2hosting.com/kb/developer-corner/apache-web-server/using-htaccess-files&lt;br /&gt;
 https://www.ssl.com/how-to/force-https-connections-in-an-apache-server-environment/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=77</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=77"/>
		<updated>2018-07-29T17:50:10Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block user rights:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['userrights'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialUserrights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListusers.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrouprights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialBlockList.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrants.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialActiveusers.php&lt;br /&gt;
&lt;br /&gt;
Add this function:&lt;br /&gt;
 public function userCanExecute( $user ) { &lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'userrights' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function execute( $par ) {&lt;br /&gt;
   $user = $this-&amp;gt;getUser();&lt;br /&gt;
   $request = $this-&amp;gt;getRequest();&lt;br /&gt;
   $session = $request-&amp;gt;getSession();&lt;br /&gt;
   $out = $this-&amp;gt;getOutput();&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
   $this-&amp;gt;getOutput()-&amp;gt;disallowUserJs();    // Disable client side JavaScript to block XSS attacks.&lt;br /&gt;
   $this-&amp;gt;requireLogin();                   // Force a login if the user is not logged in.&lt;br /&gt;
   // This part alone would also block users not logged in, it will further deny users without the proper rights.&lt;br /&gt;
   // See existing section noted above: $user = $this-&amp;gt;getUser();&lt;br /&gt;
   if ( !$this-&amp;gt;userCanExecute( $user ) ) {&lt;br /&gt;
     // $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
     throw new PermissionsError( $this-&amp;gt;mRestriction );&lt;br /&gt;
     return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
Note the following please:&lt;br /&gt;
&lt;br /&gt;
 The functions:&lt;br /&gt;
   $this-&amp;gt;mRestriction&lt;br /&gt;
   $this-&amp;gt;displayRestrictionError() (As seen in the link below for 'Special Pages : Restricting Page Access'&lt;br /&gt;
 &lt;br /&gt;
 Will both display HTML denial messages that look like the following:&lt;br /&gt;
   Permission error&lt;br /&gt;
   ----------------------------------------------------------------&lt;br /&gt;
   You do not have permission to do that, for the following reason:&lt;br /&gt;
   You are not allowed to execute the action you have requested.&lt;br /&gt;
 &lt;br /&gt;
 However this function:&lt;br /&gt;
   $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; )&lt;br /&gt;
 &lt;br /&gt;
 Will allow arbitrary non-standard messages if a user is denied access to one of these special pages.&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation and password reset:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialPasswordReset.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $this-&amp;gt;getPasswordReset()-&amp;gt;isAllowed( $user )-&amp;gt;isGood();&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }	&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
It will also block unauthorized users from seeing that same content.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
 https://m.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager&lt;br /&gt;
 https://m.mediawiki.org/wiki/Special:MyLanguage/Manual:Special_pages#Restricting_page_access&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the 'location' section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
 https://winginx.com/en/htaccess&lt;br /&gt;
 https://www.globalsign.com/en/blog/what-is-hsts-and-how-do-i-use-it/&lt;br /&gt;
 https://css-tricks.com/snippets/htaccess/force-https/&lt;br /&gt;
 https://www.a2hosting.com/kb/developer-corner/apache-web-server/using-htaccess-files&lt;br /&gt;
 https://www.ssl.com/how-to/force-https-connections-in-an-apache-server-environment/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=76</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=76"/>
		<updated>2018-07-29T17:49:18Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block user rights:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['userrights'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialUserrights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListusers.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrouprights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialBlockList.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrants.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialActiveusers.php&lt;br /&gt;
&lt;br /&gt;
Add this function:&lt;br /&gt;
 public function userCanExecute( $user ) { &lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'userrights' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function execute( $par ) {&lt;br /&gt;
   $user = $this-&amp;gt;getUser();&lt;br /&gt;
   $request = $this-&amp;gt;getRequest();&lt;br /&gt;
   $session = $request-&amp;gt;getSession();&lt;br /&gt;
   $out = $this-&amp;gt;getOutput();&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
   $this-&amp;gt;getOutput()-&amp;gt;disallowUserJs();    // Disable client side JavaScript to block XSS attacks.&lt;br /&gt;
   $this-&amp;gt;requireLogin();                   // Force a login if the user is not logged in.&lt;br /&gt;
   // This part alone would also block users not logged in, it will further deny users without the proper rights.&lt;br /&gt;
   // See existing section noted above: $user = $this-&amp;gt;getUser();&lt;br /&gt;
   if ( !$this-&amp;gt;userCanExecute( $user ) ) {&lt;br /&gt;
     // $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
     throw new PermissionsError( $this-&amp;gt;mRestriction );&lt;br /&gt;
     return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
 The functions:&lt;br /&gt;
   $this-&amp;gt;mRestriction&lt;br /&gt;
   $this-&amp;gt;displayRestrictionError() (As seen in the link below for 'Special Pages : Restricting Page Access'&lt;br /&gt;
 &lt;br /&gt;
 Will both display HTML denial messages that look like the following:&lt;br /&gt;
   Permission error&lt;br /&gt;
   ----------------------------------------------------------------&lt;br /&gt;
   You do not have permission to do that, for the following reason:&lt;br /&gt;
   You are not allowed to execute the action you have requested.&lt;br /&gt;
 &lt;br /&gt;
 However this function:&lt;br /&gt;
   $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; )&lt;br /&gt;
 &lt;br /&gt;
 Will allow arbitrary non-standard messages if a user is denied access to one of these special pages.&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation and password reset:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialPasswordReset.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $this-&amp;gt;getPasswordReset()-&amp;gt;isAllowed( $user )-&amp;gt;isGood();&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }	&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
It will also block unauthorized users from seeing that same content.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
 https://m.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager&lt;br /&gt;
 https://m.mediawiki.org/wiki/Special:MyLanguage/Manual:Special_pages#Restricting_page_access&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the 'location' section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
 https://winginx.com/en/htaccess&lt;br /&gt;
 https://www.globalsign.com/en/blog/what-is-hsts-and-how-do-i-use-it/&lt;br /&gt;
 https://css-tricks.com/snippets/htaccess/force-https/&lt;br /&gt;
 https://www.a2hosting.com/kb/developer-corner/apache-web-server/using-htaccess-files&lt;br /&gt;
 https://www.ssl.com/how-to/force-https-connections-in-an-apache-server-environment/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=75</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=75"/>
		<updated>2018-07-29T17:48:55Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block user rights:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['userrights'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialUserrights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListusers.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrouprights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialBlockList.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrants.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialActiveusers.php&lt;br /&gt;
&lt;br /&gt;
Add this function:&lt;br /&gt;
 public function userCanExecute( $user ) { &lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'userrights' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function execute( $par ) {&lt;br /&gt;
   $user = $this-&amp;gt;getUser();&lt;br /&gt;
   $request = $this-&amp;gt;getRequest();&lt;br /&gt;
   $session = $request-&amp;gt;getSession();&lt;br /&gt;
   $out = $this-&amp;gt;getOutput();&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
   $this-&amp;gt;getOutput()-&amp;gt;disallowUserJs();    // Disable client side JavaScript to block XSS attacks.&lt;br /&gt;
   $this-&amp;gt;requireLogin();                   // Force a login if the user is not logged in.&lt;br /&gt;
   // This part alone would also block users not logged in, it will further deny users without the proper rights.&lt;br /&gt;
   // See existing section noted above: $user = $this-&amp;gt;getUser();&lt;br /&gt;
   if ( !$this-&amp;gt;userCanExecute( $user ) ) {&lt;br /&gt;
     // $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
     throw new PermissionsError( $this-&amp;gt;mRestriction );&lt;br /&gt;
     return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
 The functions:&lt;br /&gt;
   $this-&amp;gt;mRestriction&lt;br /&gt;
   $this-&amp;gt;displayRestrictionError() (As seen in the link below for 'Special Pages : Restricting Page Access'&lt;br /&gt;
&lt;br /&gt;
 Will both display HTML denial messages that look like the following:&lt;br /&gt;
   Permission error&lt;br /&gt;
   ----------------------------------------------------------------&lt;br /&gt;
   You do not have permission to do that, for the following reason:&lt;br /&gt;
   You are not allowed to execute the action you have requested.&lt;br /&gt;
&lt;br /&gt;
 However this function:&lt;br /&gt;
   $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
 Will allow arbitrary non-standard messages if a user is denied access to one of these special pages.&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation and password reset:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialPasswordReset.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $this-&amp;gt;getPasswordReset()-&amp;gt;isAllowed( $user )-&amp;gt;isGood();&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }	&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
It will also block unauthorized users from seeing that same content.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
 https://m.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager&lt;br /&gt;
 https://m.mediawiki.org/wiki/Special:MyLanguage/Manual:Special_pages#Restricting_page_access&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the 'location' section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
 https://winginx.com/en/htaccess&lt;br /&gt;
 https://www.globalsign.com/en/blog/what-is-hsts-and-how-do-i-use-it/&lt;br /&gt;
 https://css-tricks.com/snippets/htaccess/force-https/&lt;br /&gt;
 https://www.a2hosting.com/kb/developer-corner/apache-web-server/using-htaccess-files&lt;br /&gt;
 https://www.ssl.com/how-to/force-https-connections-in-an-apache-server-environment/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=74</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=74"/>
		<updated>2018-07-29T17:45:25Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block user rights:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['userrights'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialUserrights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListusers.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrouprights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialBlockList.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrants.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialActiveusers.php&lt;br /&gt;
&lt;br /&gt;
Add this function:&lt;br /&gt;
 public function userCanExecute( $user ) { &lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'userrights' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function execute( $par ) {&lt;br /&gt;
   $user = $this-&amp;gt;getUser();&lt;br /&gt;
   $request = $this-&amp;gt;getRequest();&lt;br /&gt;
   $session = $request-&amp;gt;getSession();&lt;br /&gt;
   $out = $this-&amp;gt;getOutput();&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
   $this-&amp;gt;getOutput()-&amp;gt;disallowUserJs();    // Disable client side JavaScript to block XSS attacks.&lt;br /&gt;
   $this-&amp;gt;requireLogin();                   // Force a login if the user is not logged in.&lt;br /&gt;
   // This part alone would also block users not logged in, it will further deny users without the proper rights.&lt;br /&gt;
   // See existing section noted above: $user = $this-&amp;gt;getUser();&lt;br /&gt;
   if ( !$this-&amp;gt;userCanExecute( $user ) ) {&lt;br /&gt;
     // $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
     throw new PermissionsError( $this-&amp;gt;mRestriction );&lt;br /&gt;
     return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
 // $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
 // The functions:&lt;br /&gt;
 //   $this-&amp;gt;mRestriction&lt;br /&gt;
 //   $this-&amp;gt;&lt;br /&gt;
 // Permission error&lt;br /&gt;
 // ----------------------------------------------------------------&lt;br /&gt;
 // You do not have permission to do that, for the following reason:&lt;br /&gt;
 // You are not allowed to execute the action you have requested.&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation and password reset:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialPasswordReset.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $this-&amp;gt;getPasswordReset()-&amp;gt;isAllowed( $user )-&amp;gt;isGood();&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }	&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
It will also block unauthorized users from seeing that same content.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
 https://m.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager&lt;br /&gt;
 https://m.mediawiki.org/wiki/Special:MyLanguage/Manual:Special_pages#Restricting_page_access&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the 'location' section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
 https://winginx.com/en/htaccess&lt;br /&gt;
 https://www.globalsign.com/en/blog/what-is-hsts-and-how-do-i-use-it/&lt;br /&gt;
 https://css-tricks.com/snippets/htaccess/force-https/&lt;br /&gt;
 https://www.a2hosting.com/kb/developer-corner/apache-web-server/using-htaccess-files&lt;br /&gt;
 https://www.ssl.com/how-to/force-https-connections-in-an-apache-server-environment/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=73</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=73"/>
		<updated>2018-07-29T17:44:58Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block user rights:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['userrights'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialUserrights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListusers.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrouprights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialBlockList.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrants.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialActiveusers.php&lt;br /&gt;
&lt;br /&gt;
Add this function:&lt;br /&gt;
 public function userCanExecute( $user ) { &lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'userrights' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function execute( $par ) {&lt;br /&gt;
   $user = $this-&amp;gt;getUser();&lt;br /&gt;
   $request = $this-&amp;gt;getRequest();&lt;br /&gt;
   $session = $request-&amp;gt;getSession();&lt;br /&gt;
   $out = $this-&amp;gt;getOutput();&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
   $this-&amp;gt;getOutput()-&amp;gt;disallowUserJs();    // Disable client side JavaScript to block XSS attacks.&lt;br /&gt;
   $this-&amp;gt;requireLogin();                   // Force a login if the user is not logged in.&lt;br /&gt;
   // This part alone would also block users not logged in, it will further deny users without the proper rights.&lt;br /&gt;
   // See existing section noted above: $user = $this-&amp;gt;getUser();&lt;br /&gt;
   if ( !$this-&amp;gt;userCanExecute( $user ) ) {&lt;br /&gt;
     // $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
     throw new PermissionsError( $this-&amp;gt;mRestriction );&lt;br /&gt;
     return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
// $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
// The functions:&lt;br /&gt;
//   $this-&amp;gt;mRestriction&lt;br /&gt;
//   $this-&amp;gt;&lt;br /&gt;
// Permission error&lt;br /&gt;
// ----------------------------------------------------------------&lt;br /&gt;
// You do not have permission to do that, for the following reason:&lt;br /&gt;
// You are not allowed to execute the action you have requested.&lt;br /&gt;
'''Changes to block new user creation and password reset:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialPasswordReset.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $this-&amp;gt;getPasswordReset()-&amp;gt;isAllowed( $user )-&amp;gt;isGood();&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }	&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
It will also block unauthorized users from seeing that same content.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
 https://m.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager&lt;br /&gt;
 https://m.mediawiki.org/wiki/Special:MyLanguage/Manual:Special_pages#Restricting_page_access&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the 'location' section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
 https://winginx.com/en/htaccess&lt;br /&gt;
 https://www.globalsign.com/en/blog/what-is-hsts-and-how-do-i-use-it/&lt;br /&gt;
 https://css-tricks.com/snippets/htaccess/force-https/&lt;br /&gt;
 https://www.a2hosting.com/kb/developer-corner/apache-web-server/using-htaccess-files&lt;br /&gt;
 https://www.ssl.com/how-to/force-https-connections-in-an-apache-server-environment/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=72</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=72"/>
		<updated>2018-07-29T17:29:07Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block user rights:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['userrights'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialUserrights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListusers.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrouprights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialBlockList.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrants.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialActiveusers.php&lt;br /&gt;
&lt;br /&gt;
Add this function:&lt;br /&gt;
 public function userCanExecute( $user ) { &lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'userrights' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function execute( $par ) {&lt;br /&gt;
   $user = $this-&amp;gt;getUser();&lt;br /&gt;
   $request = $this-&amp;gt;getRequest();&lt;br /&gt;
   $session = $request-&amp;gt;getSession();&lt;br /&gt;
   $out = $this-&amp;gt;getOutput();&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
   $this-&amp;gt;getOutput()-&amp;gt;disallowUserJs();    // Disable client side JavaScript to block XSS attacks.&lt;br /&gt;
   $this-&amp;gt;requireLogin();                   // Force a login if the user is not logged in.&lt;br /&gt;
   // This part alone would also block users not logged in, it will further deny users without the proper rights.&lt;br /&gt;
   // See existing section noted above: $user = $this-&amp;gt;getUser();&lt;br /&gt;
   if ( !$this-&amp;gt;userCanExecute( $user ) ) {&lt;br /&gt;
     // $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
     throw new PermissionsError( $this-&amp;gt;mRestriction );&lt;br /&gt;
     return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation and password reset:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialPasswordReset.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $this-&amp;gt;getPasswordReset()-&amp;gt;isAllowed( $user )-&amp;gt;isGood();&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }	&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
It will also block unauthorized users from seeing that same content.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
 https://m.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager&lt;br /&gt;
 https://m.mediawiki.org/wiki/Special:MyLanguage/Manual:Special_pages#Restricting_page_access&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the 'location' section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
 https://winginx.com/en/htaccess&lt;br /&gt;
 https://www.globalsign.com/en/blog/what-is-hsts-and-how-do-i-use-it/&lt;br /&gt;
 https://css-tricks.com/snippets/htaccess/force-https/&lt;br /&gt;
 https://www.a2hosting.com/kb/developer-corner/apache-web-server/using-htaccess-files&lt;br /&gt;
 https://www.ssl.com/how-to/force-https-connections-in-an-apache-server-environment/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=71</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=71"/>
		<updated>2018-07-29T17:13:03Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block user rights:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['userrights'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialUserrights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListusers.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrouprights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialBlockList.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrants.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialActiveusers.php&lt;br /&gt;
&lt;br /&gt;
Add this function:&lt;br /&gt;
 public function userCanExecute( $user ) { &lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'userrights' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function execute( $par ) {&lt;br /&gt;
   $user = $this-&amp;gt;getUser();&lt;br /&gt;
   $request = $this-&amp;gt;getRequest();&lt;br /&gt;
   $session = $request-&amp;gt;getSession();&lt;br /&gt;
   $out = $this-&amp;gt;getOutput();&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
   $this-&amp;gt;getOutput()-&amp;gt;disallowUserJs();    // Disable client side JavaScript to block XSS attacks.&lt;br /&gt;
   $this-&amp;gt;requireLogin();                   // Force a login if the user is not logged in.&lt;br /&gt;
   // This part alone would also block users not logged in, it will further deny users without the proper rights.&lt;br /&gt;
   // See existing section noted above: $user = $this-&amp;gt;getUser();&lt;br /&gt;
   if ( !$this-&amp;gt;userCanExecute( $user ) ) {&lt;br /&gt;
     // $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
     throw new PermissionsError( $this-&amp;gt;mRestriction );&lt;br /&gt;
     return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation and password reset:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialPasswordReset.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $this-&amp;gt;getPasswordReset()-&amp;gt;isAllowed( $user )-&amp;gt;isGood();&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }	&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
It will also block unauthorized users from seeing that same content.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the 'location' section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=70</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=70"/>
		<updated>2018-07-29T17:07:15Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block user rights:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['userrights'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialUserrights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListusers.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrouprights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialBlockList.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrants.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialActiveusers.php&lt;br /&gt;
&lt;br /&gt;
Add this function:&lt;br /&gt;
 public function userCanExecute( $user ) { &lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'userrights' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function execute( $par ) {&lt;br /&gt;
   $user = $this-&amp;gt;getUser();&lt;br /&gt;
   $request = $this-&amp;gt;getRequest();&lt;br /&gt;
   $session = $request-&amp;gt;getSession();&lt;br /&gt;
   $out = $this-&amp;gt;getOutput();&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
   $this-&amp;gt;getOutput()-&amp;gt;disallowUserJs();    // Disable client side JavaScript to block XSS attacks.&lt;br /&gt;
   $this-&amp;gt;requireLogin();                   // Force a login if the user is not logged in.&lt;br /&gt;
   // This part alone would also block users not logged in, it will further deny users without the proper rights.&lt;br /&gt;
   if ( !$this-&amp;gt;userCanExecute( $user ) ) {&lt;br /&gt;
     // $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
     throw new PermissionsError( $this-&amp;gt;mRestriction );&lt;br /&gt;
     return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation and password reset:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialPasswordReset.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $this-&amp;gt;getPasswordReset()-&amp;gt;isAllowed( $user )-&amp;gt;isGood();&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }	&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
It will also block unauthorized users from seeing that same content.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the 'location' section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=69</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=69"/>
		<updated>2018-07-29T17:05:29Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block user rights:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['userrights'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialUserrights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListusers.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrouprights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialBlockList.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrants.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialActiveusers.php&lt;br /&gt;
&lt;br /&gt;
Add this function:&lt;br /&gt;
 public function userCanExecute( $user ) { &lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'userrights' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function execute( $par ) {&lt;br /&gt;
   $user = $this-&amp;gt;getUser();&lt;br /&gt;
   $request = $this-&amp;gt;getRequest();&lt;br /&gt;
   $session = $request-&amp;gt;getSession();&lt;br /&gt;
   $out = $this-&amp;gt;getOutput();&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
   $this-&amp;gt;getOutput()-&amp;gt;disallowUserJs();    //Disable client side JavaScript to block XSS attacks.&lt;br /&gt;
   $this-&amp;gt;requireLogin();                   //Force a login if the user is not logged in.&lt;br /&gt;
   //This part alone would also block users not logged in, it will further deny users without the proper rights.&lt;br /&gt;
   if ( !$this-&amp;gt;userCanExecute( $user ) ) {&lt;br /&gt;
     // $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
     throw new PermissionsError( $this-&amp;gt;mRestriction );&lt;br /&gt;
     return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation and password reset:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialPasswordReset.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $this-&amp;gt;getPasswordReset()-&amp;gt;isAllowed( $user )-&amp;gt;isGood();&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }	&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
It will also block unauthorized users from seeing that same content.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the 'location' section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=68</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=68"/>
		<updated>2018-07-29T05:10:05Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block user rights:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['userrights'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialUserrights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListusers.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrouprights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialBlockList.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrants.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialActiveusers.php&lt;br /&gt;
&lt;br /&gt;
Add this function:&lt;br /&gt;
 public function userCanExecute( $user ) { &lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'userrights' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function execute( $par ) {&lt;br /&gt;
   $user = $this-&amp;gt;getUser();&lt;br /&gt;
   $request = $this-&amp;gt;getRequest();&lt;br /&gt;
   $session = $request-&amp;gt;getSession();&lt;br /&gt;
   $out = $this-&amp;gt;getOutput();&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
   if ( !$this-&amp;gt;userCanExecute( $user ) ) {&lt;br /&gt;
     // $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
     throw new PermissionsError( $this-&amp;gt;mRestriction );&lt;br /&gt;
     return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation and password reset:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialPasswordReset.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $this-&amp;gt;getPasswordReset()-&amp;gt;isAllowed( $user )-&amp;gt;isGood();&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }	&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
It will also block unauthorized users from seeing that same content.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the 'location' section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=67</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=67"/>
		<updated>2018-07-29T05:08:40Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block user rights:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['userrights'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialUserrights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListusers.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrouprights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialBlockList.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrants.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialActiveusers.php&lt;br /&gt;
&lt;br /&gt;
Add this function:&lt;br /&gt;
 public function userCanExecute( $user ) { &lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'userrights' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function execute( $par ) {&lt;br /&gt;
   $user = $this-&amp;gt;getUser();&lt;br /&gt;
   $request = $this-&amp;gt;getRequest();&lt;br /&gt;
   $session = $request-&amp;gt;getSession();&lt;br /&gt;
   $out = $this-&amp;gt;getOutput();&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
   if ( !$this-&amp;gt;userCanExecute( $user ) ) {&lt;br /&gt;
     // $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
     throw new PermissionsError( $this-&amp;gt;mRestriction );&lt;br /&gt;
     return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialPasswordReset.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $this-&amp;gt;getPasswordReset()-&amp;gt;isAllowed( $user )-&amp;gt;isGood();&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }	&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the 'location' section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=66</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=66"/>
		<updated>2018-07-29T05:00:28Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block user rights:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['userrights'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialUserrights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListusers.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrouprights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialBlockList.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrants.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialActiveusers.php&lt;br /&gt;
&lt;br /&gt;
Add this function:&lt;br /&gt;
 public function userCanExecute( $user ) { &lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'userrights' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function execute( $par ) {&lt;br /&gt;
   $user = $this-&amp;gt;getUser();&lt;br /&gt;
   $request = $this-&amp;gt;getRequest();&lt;br /&gt;
   $session = $request-&amp;gt;getSession();&lt;br /&gt;
   $out = $this-&amp;gt;getOutput();&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
   if ( !$this-&amp;gt;userCanExecute( $user ) ) {&lt;br /&gt;
     // $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
     throw new PermissionsError( $this-&amp;gt;mRestriction );&lt;br /&gt;
     return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the 'location' section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=65</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=65"/>
		<updated>2018-07-29T04:57:43Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block user rights:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['userrights'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialUserrights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListusers.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrouprights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialBlockList.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrants.php&lt;br /&gt;
&lt;br /&gt;
Add this function:&lt;br /&gt;
 public function userCanExecute( $user ) { &lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'userrights' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function execute( $par ) {&lt;br /&gt;
   $user = $this-&amp;gt;getUser();&lt;br /&gt;
   $request = $this-&amp;gt;getRequest();&lt;br /&gt;
   $session = $request-&amp;gt;getSession();&lt;br /&gt;
   $out = $this-&amp;gt;getOutput();&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
   if ( !$this-&amp;gt;userCanExecute( $user ) ) {&lt;br /&gt;
     // $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
     throw new PermissionsError( $this-&amp;gt;mRestriction );&lt;br /&gt;
     return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the 'location' section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=64</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=64"/>
		<updated>2018-07-29T04:47:19Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block user rights:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['userrights'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialUserrights.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListusers.php&lt;br /&gt;
 /home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrouprights.php&lt;br /&gt;
&lt;br /&gt;
Add this function:&lt;br /&gt;
 public function userCanExecute( $user ) { &lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'userrights' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function execute( $par ) {&lt;br /&gt;
   $user = $this-&amp;gt;getUser();&lt;br /&gt;
   $request = $this-&amp;gt;getRequest();&lt;br /&gt;
   $session = $request-&amp;gt;getSession();&lt;br /&gt;
   $out = $this-&amp;gt;getOutput();&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
   if ( !$this-&amp;gt;userCanExecute( $user ) ) {&lt;br /&gt;
     // $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
     throw new PermissionsError( $this-&amp;gt;mRestriction );&lt;br /&gt;
     return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the 'location' section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=63</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=63"/>
		<updated>2018-07-29T04:46:58Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block user rights:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['userrights'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialUserrights.php&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListusers.php&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialListgrouprights.php&lt;br /&gt;
&lt;br /&gt;
Add this function:&lt;br /&gt;
 public function userCanExecute( $user ) { &lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'userrights' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function execute( $par ) {&lt;br /&gt;
   $user = $this-&amp;gt;getUser();&lt;br /&gt;
   $request = $this-&amp;gt;getRequest();&lt;br /&gt;
   $session = $request-&amp;gt;getSession();&lt;br /&gt;
   $out = $this-&amp;gt;getOutput();&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
   if ( !$this-&amp;gt;userCanExecute( $user ) ) {&lt;br /&gt;
     // $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
     throw new PermissionsError( $this-&amp;gt;mRestriction );&lt;br /&gt;
     return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the 'location' section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=62</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=62"/>
		<updated>2018-07-29T04:35:43Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block user rights:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['userrights'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['userrights'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialUserrights.php&lt;br /&gt;
&lt;br /&gt;
Add this function:&lt;br /&gt;
 public function userCanExecute( $user ) { &lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'userrights' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
 public function execute( $par ) {&lt;br /&gt;
   $user = $this-&amp;gt;getUser();&lt;br /&gt;
   $request = $this-&amp;gt;getRequest();&lt;br /&gt;
   $session = $request-&amp;gt;getSession();&lt;br /&gt;
   $out = $this-&amp;gt;getOutput();&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
   if ( !$this-&amp;gt;userCanExecute( $user ) ) {&lt;br /&gt;
     // $this-&amp;gt;getOutput()-&amp;gt;addWikiText( &amp;quot;Permission Denied!&amp;quot; );&lt;br /&gt;
     throw new PermissionsError( $this-&amp;gt;mRestriction );&lt;br /&gt;
     return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the 'location' section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=61</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=61"/>
		<updated>2018-07-29T02:27:05Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the 'location' section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=60</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=60"/>
		<updated>2018-07-29T02:26:27Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
   &lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the location section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=59</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=59"/>
		<updated>2018-07-29T02:26:02Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following (please don't use .htaccess on Nginx):&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
&lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the location section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=58</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=58"/>
		<updated>2018-07-29T02:25:24Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Apache: Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
Nginx: Edit nginx.conf and make it look like the following:&lt;br /&gt;
 server {&lt;br /&gt;
   listen 443 ssl;&lt;br /&gt;
   # Put this HSTS line here for it to wrap all locations that don't have their own defines.&lt;br /&gt;
   add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
&lt;br /&gt;
   location / {&lt;br /&gt;
     # Put this HSTS line in the location section if that section defines other headers like proxies.&lt;br /&gt;
     add_header Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
     rewrite ^(.*)$ https://{replace with relevant URL}/$1&lt;br /&gt;
     redirect;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=57</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=57"/>
		<updated>2018-07-29T00:15:08Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Find the e-mail attachment you saved in the previous step.&lt;br /&gt;
# After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.&lt;br /&gt;
# Specify a location you prefer for the output and click 'Save All'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=56</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=56"/>
		<updated>2018-07-29T00:12:20Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
# I'll generate you an SSH key and encrypt it with your public key.&lt;br /&gt;
# Then e-mail the encrypted file back to you where you can decrypt it.&lt;br /&gt;
# To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.&lt;br /&gt;
# On the large buttons at the top of the dialog select 'Decrypt/Verify'.&lt;br /&gt;
# Follow the process.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=55</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=55"/>
		<updated>2018-07-29T00:08:17Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the private key you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=54</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=54"/>
		<updated>2018-07-29T00:05:06Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the keys you are generating.&lt;br /&gt;
# Click 'Finish' on the final menu after the keys are made.&lt;br /&gt;
# Right click on the keys you just created.&lt;br /&gt;
# Select 'Export' to export the public key.&lt;br /&gt;
# Put the file into a folder where you can find it.&lt;br /&gt;
# Name it something like: 'Public-Key_7-28-2018.asc'&lt;br /&gt;
# Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=53</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=53"/>
		<updated>2018-07-28T23:58:17Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the keys you are generating.&lt;br /&gt;
# Test&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=52</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=52"/>
		<updated>2018-07-28T23:57:37Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html.  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.  You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the keys you are generating.&lt;br /&gt;
# Test&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=51</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=51"/>
		<updated>2018-07-28T23:57:05Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html&lt;br /&gt;
::Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.&lt;br /&gt;
::You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the keys you are generating.&lt;br /&gt;
# Test&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=50</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=50"/>
		<updated>2018-07-28T23:56:43Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html&lt;br /&gt;
::Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.&lt;br /&gt;
:You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the keys you are generating.&lt;br /&gt;
# Test&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=49</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=49"/>
		<updated>2018-07-28T23:56:07Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.mediawiki.org/wiki/Help:Formatting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html&lt;br /&gt;
::Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.&lt;br /&gt;
:You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the keys you are generating.&lt;br /&gt;
# &lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Relevant links:&lt;br /&gt;
&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=48</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=48"/>
		<updated>2018-07-28T23:55:03Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html&lt;br /&gt;
::Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
# Provide a name.&lt;br /&gt;
# Provide a valid e-mail.&lt;br /&gt;
# In advanced settings you can change the details of the keys, the defaults are RSA 2048bits.&lt;br /&gt;
:You can also set an expiration for these certificate.&lt;br /&gt;
# Set a passphrase that will be later be used like a password to use the keys you are generating.&lt;br /&gt;
# &lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
Relevant links:&lt;br /&gt;
 https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=47</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=47"/>
		<updated>2018-07-28T23:48:54Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html&lt;br /&gt;
::Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
# Accept the defaults till the installation closes.&lt;br /&gt;
# This will create a red dot in the notification area of your start menu with a small white tea cup on it.&lt;br /&gt;
# Double click the Kleopatra icon a dialog will open.&lt;br /&gt;
# Click the 'File' menu.&lt;br /&gt;
# Click 'New Key Pair'.&lt;br /&gt;
# Click 'Create a personal OpenPGP key pair'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=46</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=46"/>
		<updated>2018-07-28T23:45:01Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
# Colons at the start of a line cause indents, more colons, more tab stops.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html&lt;br /&gt;
::Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=45</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=45"/>
		<updated>2018-07-28T23:44:26Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html&lt;br /&gt;
::Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=44</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=44"/>
		<updated>2018-07-28T23:43:58Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html&lt;br /&gt;
== Level 2 == Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=43</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=43"/>
		<updated>2018-07-28T23:43:01Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html&lt;br /&gt;
        Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=42</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=42"/>
		<updated>2018-07-28T23:42:48Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html&lt;br /&gt;
     Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=41</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=41"/>
		<updated>2018-07-28T23:42:36Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# For Windows download GPG4Win: https://gpg4win.org/download.html&lt;br /&gt;
  Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
# During install select your language, usually English.&lt;br /&gt;
# Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=40</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=40"/>
		<updated>2018-07-28T23:42:13Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
 # For Windows download GPG4Win: https://gpg4win.org/download.html&lt;br /&gt;
   Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
 # During install select your language, usually English.&lt;br /&gt;
 # Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=39</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=39"/>
		<updated>2018-07-28T23:42:01Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
 #For Windows download GPG4Win: https://gpg4win.org/download.html&lt;br /&gt;
 Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
 #During install select your language, usually English.&lt;br /&gt;
 #Then uncheck the check boxes next to GPA and GpgOL.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=38</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=38"/>
		<updated>2018-07-28T23:41:35Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
 For Windows download GPG4Win: https://gpg4win.org/download.html&lt;br /&gt;
 Don't panic when it asks for a donation, select PayPal and $0.&lt;br /&gt;
 During install select your language, usually English.&lt;br /&gt;
 Then uncheck the check boxes next to GPA and GpgOL.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=37</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=37"/>
		<updated>2018-07-28T23:39:12Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
 For Windows download GPG4Win: https://gpg4win.org/download.html&lt;br /&gt;
 Don't panic when it asks for a donation, select PayPal and $0.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=36</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=36"/>
		<updated>2018-07-28T23:38:59Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
For Windows download GPG4Win: https://gpg4win.org/download.html&lt;br /&gt;
Don't panic when it asks for a donation, select PayPal and $0.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=35</id>
		<title>User:Admin</title>
		<link rel="alternate" type="text/html" href="https://mort11.com/mentor.wiki/index.php?title=User:Admin&amp;diff=35"/>
		<updated>2018-07-28T23:38:02Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]&lt;br /&gt;
&lt;br /&gt;
'''Changes to block new user creation:'''&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom:&lt;br /&gt;
&lt;br /&gt;
 # Regulate user group permissions.&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['createaccount'] = false;&lt;br /&gt;
 $wgGroupPermissions['administrators']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Need to edit:&lt;br /&gt;
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php&lt;br /&gt;
&lt;br /&gt;
Edit this function:&lt;br /&gt;
&lt;br /&gt;
 public function userCanExecute( User $user ) {&lt;br /&gt;
   /**&lt;br /&gt;
    * return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   */&lt;br /&gt;
   global $wgUser;&lt;br /&gt;
   if ( $wgUser-&amp;gt;isLoggedIn() ) {&lt;br /&gt;
     return $user-&amp;gt;isAllowed( 'createaccount' );&lt;br /&gt;
   } else {&lt;br /&gt;
     return false;&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.&lt;br /&gt;
Can be used in other things as well.&lt;br /&gt;
&lt;br /&gt;
Relevant Links:&lt;br /&gt;
&lt;br /&gt;
 https://lists.gt.net/wiki/mediawiki/126271&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights&lt;br /&gt;
 https://www.mediawiki.org/wiki/Manual:User_rights#Example&lt;br /&gt;
 https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft&lt;br /&gt;
 https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex&lt;br /&gt;
 https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html&lt;br /&gt;
 https://www.mediawiki.org/wiki/Extension%3aAccessControl&lt;br /&gt;
&lt;br /&gt;
'''Force users to connect using HTTPS and turn on HSTS:'''&lt;br /&gt;
&lt;br /&gt;
Create .htaccess files in the sub-folder of the website and put this text in the file:&lt;br /&gt;
&lt;br /&gt;
 Header set Strict-Transport-Security &amp;quot;max-age=300&amp;quot; env=HTTPS&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule ^(.*)$ &amp;lt;nowiki&amp;gt;https://{replace with relevant URL}/$1&amp;lt;/nowiki&amp;gt; [R=301,L]&lt;br /&gt;
&lt;br /&gt;
'''MediaWiki notes:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start&amp;gt;&lt;br /&gt;
# To make code blocks, indent the content with at least 1 space.&lt;br /&gt;
# To put URLs into code blocks without being acted upon use &amp;lt;  nowiki &amp;gt; &amp;lt; /nowiki &amp;gt; tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).&lt;br /&gt;
# To make numbered lists, start the list with &amp;lt; ol start &amp;gt; &amp;lt; /ol start &amp;gt; tags (remove the spaces inside the symbols), then start each line with a hashtag.&lt;br /&gt;
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.&lt;br /&gt;
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets&lt;br /&gt;
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.&lt;br /&gt;
&amp;lt;/ol start&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''How to generate a GPG public/private key pair to get SSH keys:'''&lt;br /&gt;
&lt;br /&gt;
For Windows download GPG4Win: https://gpg4win.org/download.html&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>