[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 @@
+?php
+
+
+/**
+ * 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 br...@wikimedia.org
+ * 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' 

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


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 @@
 +?php
 +
 +
 +/**
 + * 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 br...@wikimedia.org
 + * 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, 

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 McGrathmmcgr...@redhat.com 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] shared session data

2009-08-25 Thread Ricky Zhou
On 2009-08-25 03:25:39 PM, Mike McGrath wrote:
 My smolt change requires shared session data
 
 can I get 2 +1's
+1

Thanks,
Ricky


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


[PATCH] shared session data

2009-08-25 Thread Mike McGrath
My smolt change requires shared session data

can I get 2 +1's
---
 manifests/servergroups/appRhel.pp |9 +
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/manifests/servergroups/appRhel.pp 
b/manifests/servergroups/appRhel.pp
index c249973..aba5fdf 100644
--- a/manifests/servergroups/appRhel.pp
+++ b/manifests/servergroups/appRhel.pp
@@ -34,6 +34,15 @@ class appRhel {
 wikipath = smolt-wiki,
 }
 include mediawiki-confirmedit::confirmEdit
+mount { /srv/web/sessiondata:
+device  = 
ntap-fedora1.fedora.phx.redhat.com:/vol/fedora/app/sessiondata,
+fstype  = nfs,
+ensure  = mounted,
+options = defaults,ro,soft,intr,
+atboot  = true,
+require = File[/srv/web/sessiondata]
+}
+
 }
 
 # Firewall rules
-- 
1.6.2.5

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


Re: [PATCH] shared session data

2009-08-25 Thread Dennis Gilmore
On Tuesday 25 August 2009 03:25:39 pm Mike McGrath wrote:
 My smolt change requires shared session data

 can I get 2 +1's
 ---
  manifests/servergroups/appRhel.pp |9 +
  1 files changed, 9 insertions(+), 0 deletions(-)

 diff --git a/manifests/servergroups/appRhel.pp
 b/manifests/servergroups/appRhel.pp index c249973..aba5fdf 100644
 --- a/manifests/servergroups/appRhel.pp
 +++ b/manifests/servergroups/appRhel.pp
 @@ -34,6 +34,15 @@ class appRhel {
  wikipath = smolt-wiki,
  }
  include mediawiki-confirmedit::confirmEdit
 +mount { /srv/web/sessiondata:
 +device  =
 ntap-fedora1.fedora.phx.redhat.com:/vol/fedora/app/sessiondata, +
fstype  = nfs,
 +ensure  = mounted,
 +options = defaults,ro,soft,intr,
 +atboot  = true,
 +require = File[/srv/web/sessiondata]
 +}
 +
  }

  # Firewall rules
+1


signature.asc
Description: This is a digitally signed message part.
___
Fedora-infrastructure-list mailing list
Fedora-infrastructure-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list


Re: [PATCH] shared session data

2009-08-25 Thread Nigel Jones

- Mike McGrath mmcgr...@redhat.com wrote:

 My smolt change requires shared session data
 
[snip]
 +options = defaults,ro,soft,intr,

Read Only?  Surely this would need to be rw so we can write new session data?

- Nigel

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


Re: [PATCH] shared session data

2009-08-25 Thread Mike McGrath
On Tue, 25 Aug 2009, Nigel Jones wrote:


 - Mike McGrath mmcgr...@redhat.com wrote:

  My smolt change requires shared session data
 
 [snip]
  +options = defaults,ro,soft,intr,

 Read Only?  Surely this would need to be rw so we can write new session data?


Fixed.

-Mike

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