Re: [PATCH] Enabling confirm-edit again for smolt

2009-08-25 Thread Stephen John Smoogen
On Tue, Aug 25, 2009 at 12:06 PM, Mike McGrath wrote:
> This had gotten disabled during a conversion process of making 
> mediawiki-ConfirmEdit a package I think
> These files will enable the math based captcha again

Read through and didn't see any problems

+1


-- 
Stephen J Smoogen.

Ah, but a man's reach should exceed his grasp. Or what's a heaven for?
-- Robert Browning

___
Fedora-infrastructure-list mailing list
Fedora-infrastructure-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list


Re: [PATCH] Enabling confirm-edit again for smolt

2009-08-25 Thread Dennis Gilmore
On Tuesday 25 August 2009 01:06:56 pm Mike McGrath wrote:
> This had gotten disabled during a conversion process of making
> mediawiki-ConfirmEdit a package I think These files will enable the math
> based captcha again

+1
> ---
>  modules/mediawiki-ConfirmEdit/README   |   22 ++
>  .../mediawiki-ConfirmEdit/files/ConfirmEdit.php|  222
>  modules/mediawiki-ConfirmEdit/manifests/init.pp|  
> 13 ++
>  modules/mediawiki/manifests/init.pp|2 +-
>  4 files changed, 258 insertions(+), 1 deletions(-)
>  create mode 100644 modules/mediawiki-ConfirmEdit/README
>  create mode 100644 modules/mediawiki-ConfirmEdit/files/ConfirmEdit.php
>  create mode 100644 modules/mediawiki-ConfirmEdit/manifests/init.pp
>
> diff --git a/modules/mediawiki-ConfirmEdit/README
> b/modules/mediawiki-ConfirmEdit/README new file mode 100644
> index 000..b4f281e
> --- /dev/null
> +++ b/modules/mediawiki-ConfirmEdit/README
> @@ -0,0 +1,22 @@
> +=
> +mediawiki-ConfirmEdit
> +=
> +
> +---
> +Usage
> +---
> +
> +The ConfirmEdit extension enables a simple text Captcha that will probably
> +catch most bots. It was designed largely by Brion Vibber. The FancyCaptcha
> and +reCAPTCHA addons create more complex image captchas.
> +
> +Captchas are a way of combating automated edits, helping to ensure that
> wiki +edits are being made by real humans rather than bots. This can be
> particularly +useful for reducing the problem of wiki spam, but captchas
> reduce accessibility +and cause inconvenience to human users. In addition,
> it will not completely +spam-proof your wiki (nor will it protect it from
> human spammers). You may wish +to use this in conjunction with other
> anti-spam features. Remember to clean up +any spam which might slip through
> the net (keep an eye on your 'recent changes' +page). Captcha's can also be
> used to foil automated login attempts that try to +guess passwords.
> +
> diff --git a/modules/mediawiki-ConfirmEdit/files/ConfirmEdit.php
> b/modules/mediawiki-ConfirmEdit/files/ConfirmEdit.php new file mode 100644
> index 000..0c33bc9
> --- /dev/null
> +++ b/modules/mediawiki-ConfirmEdit/files/ConfirmEdit.php
> @@ -0,0 +1,222 @@
> + +
> +
> +/**
> + * Experimental captcha plugin framework.
> + * Not intended as a real production captcha system; derived classes
> + * can extend the base to produce their fancy images in place of the
> + * text-based test output here.
> + *
> + * Copyright (C) 2005-2007 Brion Vibber 
> + * http://www.mediawiki.org/
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License as published by
> + * the Free Software Foundation; either version 2 of the License, or
> + * (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License along
> + * with this program; if not, write to the Free Software Foundation, Inc.,
> + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
> + * http://www.gnu.org/copyleft/gpl.html
> + *
> + * @addtogroup Extensions
> + */
> +
> +if ( !defined( 'MEDIAWIKI' ) ) {
> + exit;
> +}
> +
> +global $wgExtensionFunctions, $wgGroupPermissions;
> +
> +$wgExtensionFunctions[] = 'confirmEditSetup';
> +$wgExtensionCredits['other'][] = array(
> + 'name' => 'ConfirmEdit',
> + 'author' => 'Brion Vibber',
> + 'svn-date' => '$LastChangedDate: 2008-07-02 23:09:26 + (Wed, 02 Jul
> 2008) $', +   'svn-revision' => '$LastChangedRevision: 36959 $',
> + 'url' => 'http://www.mediawiki.org/wiki/Extension:ConfirmEdit',
> + 'description' => 'Simple captcha implementation',
> + 'descriptionmsg' => 'captcha-desc',
> +);
> +
> +/**
> + * The 'skipcaptcha' permission key can be given out to
> + * let known-good users perform triggering actions without
> + * having to go through the captcha.
> + *
> + * By default, sysops and registered bot accounts will be
> + * able to skip, while others have to go through it.
> + */
> +$wgGroupPermissions['*']['skipcaptcha'] = false;
> +$wgGroupPermissions['user' ]['skipcaptcha'] = false;
> +$wgGroupPermissions['autoconfirmed']['skipcaptcha'] = false;
> +$wgGroupPermissions['bot'  ]['skipcaptcha'] = true; // registered
> bots +$wgGroupPermissions['sysop']['skipcaptcha'] = true;
> +$wgAvailableRights[] = 'skipcaptcha';
> +
> +/**
> + * List of IP ranges to allow to skip the captcha, similar to the group
> setting: + * "$wgGroupPermission[...]['skipcaptcha'] = true"
> + *
> + * Specific IP addresses or CIDR-style ranges may be used,
> + * for instance:
> + * $wgCaptchaWhitelistIP = array('19

Re: [PATCH] Enabling confirm-edit again for smolt

2009-08-25 Thread Ricky Zhou
On 2009-08-25 01:06:56 PM, Mike McGrath wrote:
> This had gotten disabled during a conversion process of making 
> mediawiki-ConfirmEdit a package I think
> These files will enable the math based captcha again
+1

Thanks,
Ricky


pgp0kSYOjLmt6.pgp
Description: PGP signature
___
Fedora-infrastructure-list mailing list
Fedora-infrastructure-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list


[PATCH] Enabling confirm-edit again for smolt

2009-08-25 Thread Mike McGrath
This had gotten disabled during a conversion process of making 
mediawiki-ConfirmEdit a package I think
These files will enable the math based captcha again
---
 modules/mediawiki-ConfirmEdit/README   |   22 ++
 .../mediawiki-ConfirmEdit/files/ConfirmEdit.php|  222 
 modules/mediawiki-ConfirmEdit/manifests/init.pp|   13 ++
 modules/mediawiki/manifests/init.pp|2 +-
 4 files changed, 258 insertions(+), 1 deletions(-)
 create mode 100644 modules/mediawiki-ConfirmEdit/README
 create mode 100644 modules/mediawiki-ConfirmEdit/files/ConfirmEdit.php
 create mode 100644 modules/mediawiki-ConfirmEdit/manifests/init.pp

diff --git a/modules/mediawiki-ConfirmEdit/README 
b/modules/mediawiki-ConfirmEdit/README
new file mode 100644
index 000..b4f281e
--- /dev/null
+++ b/modules/mediawiki-ConfirmEdit/README
@@ -0,0 +1,22 @@
+=
+mediawiki-ConfirmEdit
+=
+
+---
+Usage
+---
+
+The ConfirmEdit extension enables a simple text Captcha that will probably
+catch most bots. It was designed largely by Brion Vibber. The FancyCaptcha and
+reCAPTCHA addons create more complex image captchas.
+
+Captchas are a way of combating automated edits, helping to ensure that wiki
+edits are being made by real humans rather than bots. This can be particularly
+useful for reducing the problem of wiki spam, but captchas reduce accessibility
+and cause inconvenience to human users. In addition, it will not completely
+spam-proof your wiki (nor will it protect it from human spammers). You may wish
+to use this in conjunction with other anti-spam features. Remember to clean up
+any spam which might slip through the net (keep an eye on your 'recent changes'
+page). Captcha's can also be used to foil automated login attempts that try to
+guess passwords.
+
diff --git a/modules/mediawiki-ConfirmEdit/files/ConfirmEdit.php 
b/modules/mediawiki-ConfirmEdit/files/ConfirmEdit.php
new file mode 100644
index 000..0c33bc9
--- /dev/null
+++ b/modules/mediawiki-ConfirmEdit/files/ConfirmEdit.php
@@ -0,0 +1,222 @@
+
+ * http://www.mediawiki.org/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @addtogroup Extensions
+ */
+
+if ( !defined( 'MEDIAWIKI' ) ) {
+   exit;
+}
+
+global $wgExtensionFunctions, $wgGroupPermissions;
+
+$wgExtensionFunctions[] = 'confirmEditSetup';
+$wgExtensionCredits['other'][] = array(
+   'name' => 'ConfirmEdit',
+   'author' => 'Brion Vibber',
+   'svn-date' => '$LastChangedDate: 2008-07-02 23:09:26 + (Wed, 02 Jul 
2008) $',
+   'svn-revision' => '$LastChangedRevision: 36959 $',
+   'url' => 'http://www.mediawiki.org/wiki/Extension:ConfirmEdit',
+   'description' => 'Simple captcha implementation',
+   'descriptionmsg' => 'captcha-desc',
+);
+
+/**
+ * The 'skipcaptcha' permission key can be given out to
+ * let known-good users perform triggering actions without
+ * having to go through the captcha.
+ *
+ * By default, sysops and registered bot accounts will be
+ * able to skip, while others have to go through it.
+ */
+$wgGroupPermissions['*']['skipcaptcha'] = false;
+$wgGroupPermissions['user' ]['skipcaptcha'] = false;
+$wgGroupPermissions['autoconfirmed']['skipcaptcha'] = false;
+$wgGroupPermissions['bot'  ]['skipcaptcha'] = true; // registered bots
+$wgGroupPermissions['sysop']['skipcaptcha'] = true;
+$wgAvailableRights[] = 'skipcaptcha';
+
+/**
+ * List of IP ranges to allow to skip the captcha, similar to the group 
setting:
+ * "$wgGroupPermission[...]['skipcaptcha'] = true"
+ *
+ * Specific IP addresses or CIDR-style ranges may be used,
+ * for instance:
+ * $wgCaptchaWhitelistIP = array('192.168.1.0/24', '10.1.0.0/16');
+ */
+$wgCaptchaWhitelistIP = false;
+
+global $wgCaptcha, $wgCaptchaClass, $wgCaptchaTriggers;
+$wgCaptcha = null;
+$wgCaptchaClass = 'SimpleCaptcha';
+
+/**
+ * Actions which can trigger a captcha
+ *
+ * If the 'edit' trigger is on, *every* edit will trigger the captcha.
+ * This may be useful for protecting against vandalbot attacks.
+ *
+ * If using the default 'addurl' trigger, the captcha will trigger on
+ * edits that include URLs that aren't in the current version of the page.
+ * This should ca