http://www.mediawiki.org/wiki/Special:Code/MediaWiki/94246

Revision: 94246
Author:   jeroendedauw
Date:     2011-08-11 14:44:26 +0000 (Thu, 11 Aug 2011)
Log Message:
-----------
starting on 0.3

Modified Paths:
--------------
    trunk/extensions/SemanticSignup/includes/SES_SignupFields.php

Added Paths:
-----------
    trunk/extensions/SemanticSignup/SemanticSignup.i18n.aliases.php
    trunk/extensions/SemanticSignup/SemanticSignup.i18n.php
    trunk/extensions/SemanticSignup/SemanticSignup.php
    trunk/extensions/SemanticSignup/SemanticSignup.settings.php

Removed Paths:
-------------
    trunk/extensions/SemanticSignup/includes/SES_Aliases.php
    trunk/extensions/SemanticSignup/includes/SES_CreateUserHook.php
    trunk/extensions/SemanticSignup/includes/SES_Main.php
    trunk/extensions/SemanticSignup/includes/SES_Messages.php

Copied: trunk/extensions/SemanticSignup/SemanticSignup.i18n.aliases.php (from 
rev 94242, trunk/extensions/SemanticSignup/includes/SES_Aliases.php)
===================================================================
--- trunk/extensions/SemanticSignup/SemanticSignup.i18n.aliases.php             
                (rev 0)
+++ trunk/extensions/SemanticSignup/SemanticSignup.i18n.aliases.php     
2011-08-11 14:44:26 UTC (rev 94246)
@@ -0,0 +1,11 @@
+<?php
+
+/**
+ * Created on 7 Jan 2008 by Serhii Kutnii
+ */
+ 
+$aliases = array();
+ 
+$aliases['en'] = array(
+       'Semantic Signup' => array('Semantic Signup')
+);

Copied: trunk/extensions/SemanticSignup/SemanticSignup.i18n.php (from rev 
94242, trunk/extensions/SemanticSignup/includes/SES_Messages.php)
===================================================================
--- trunk/extensions/SemanticSignup/SemanticSignup.i18n.php                     
        (rev 0)
+++ trunk/extensions/SemanticSignup/SemanticSignup.i18n.php     2011-08-11 
14:44:26 UTC (rev 94246)
@@ -0,0 +1,21 @@
+<?php
+
+/**
+ * Created on 7 Jan 2008 by Serhii Kutnii
+ */
+
+$messages = array();
+ 
+$messages['en'] = array(
+       'semanticsignup' => 'Semantic Signup',
+       'ses-desc' => 'A MediaWiki extension built on top of Semantic Forms 
allowing to populate a user page with semantic data at signup time',
+       'nousername' => 'Username has not been specified',
+       'nopwdmatch' => 'Password and password confirmation don\'t match',
+       'norealname' => 'Real name is required but has not been specified',
+       'userexists' => 'User already exists',
+       'invaliduname' => 'Username specified is not allowed',
+       'emailfailed' => 'Confirmation email sending failed',
+       'createforbidden' => 'Current user is not allowed to create accounts',
+       'throttlehit' => 'New user accounts number maximum per day has been 
exceeded for this IP',
+       'ses_userexists' => 'User already exists'
+);
\ No newline at end of file

Added: trunk/extensions/SemanticSignup/SemanticSignup.php
===================================================================
--- trunk/extensions/SemanticSignup/SemanticSignup.php                          
(rev 0)
+++ trunk/extensions/SemanticSignup/SemanticSignup.php  2011-08-11 14:44:26 UTC 
(rev 94246)
@@ -0,0 +1,86 @@
+<?php
+
+/**
+ * Initialization file for the Semantic Signup extension.
+ * 
+ * Documentation:                      
http://www.mediawiki.org/wiki/Extension:SemanticSignup
+ * Support                                     
http://www.mediawiki.org/wiki/Extension_talk:SemanticSignup
+ * Source code:                            
http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SemanticSignup
+ *
+ * @file SemanticSignup.php
+ * @ingroup SemanticSignup
+ *
+ * @licence GNU GPL v3+
+ * @author Jeroen De Dauw < [email protected] >
+ */
+
+/**
+ * This documenation group collects source code files belonging to 
SemanticSignup.
+ *
+ * @defgroup SemanticSignup SemanticSignup
+ */
+
+if ( !defined( 'MEDIAWIKI' ) ) {
+       die( 'Not an entry point.' );
+}
+
+if ( version_compare( $wgVersion, '1.16', '<' ) ) {
+       die( '<b>Error:</b> Semantic Signup requires MediaWiki 1.16 or above.' 
);
+}
+
+// Show a warning if Semantic MediaWiki is not loaded.
+if ( ! defined( 'SMW_VERSION' ) ) {
+       die( '<b>Error:</b> You need to have <a 
href="http://semantic-mediawiki.org/wiki/Semantic_MediaWiki";>Semantic 
MediaWiki</a> installed in order to use Semantic Watchlist.' );
+}
+
+if ( version_compare( SMW_VERSION, '1.6 alpha', '<' ) ) {
+       die( '<b>Error:</b> Semantic Signup requires Semantic MediaWiki 1.6 or 
above.' );
+}
+
+define( 'SemanticSignup_VERSION', '0.3 alpha' );
+
+$wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' : 
'specialpage'][] = array(
+       'path' => __FILE__,
+       'name' => 'SemanticSignup',
+       'version' => SemanticSignup_VERSION,
+       'author' => array(
+               'Serg Kutny',
+               '[http://www.mediawiki.org/wiki/User:Jeroen_De_Dauw Jeroen De 
Dauw]',
+       ),
+       'url' => 'http://www.mediawiki.org/wiki/Extension:Semantic_Watchlist',
+       'descriptionmsg' => 'ses-desc'
+);
+
+$wgExtensionMessagesFiles['SemanticSignup'] = dirname( __FILE__ ) . 
'/SemanticSignup.i18n.php';
+$wgExtensionAliasesFiles['SemanticSignup'] = dirname( __FILE__ ) . 
'/SemanticSignup.i18n.aliases.php';
+
+$wgAutoloadClasses['SemanticSignup'] = dirname( __FILE__ ) . 
'/includes/SES_Special.php';
+$wgAutoloadClasses['SES_UserAccountDataChecker'] = dirname( __FILE__ ) . 
'/includes/SES_Special.php'; 
+
+$wgAutoloadClasses['SES_DataChecker'] = dirname( __FILE__ ) . 
'/includes/SES_Utils.php';
+
+$wgAutoloadClasses['SES_SignupFields'] = dirname( __FILE__ ) . 
'/includes/SES_SignupFields.php';
+$wgAutoloadClasses['CreateUserFieldsTemplate'] = dirname( __FILE__ ) . 
'/includes/SES_SignupFields.php';
+
+$wgSpecialPages['SemanticSignup'] = 'SemanticSignup';
+
+if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) {
+       $wgHooks['ParserFirstCallInit'][] = 'SES_SignupFields::setup';
+} else { 
+       $wgExtensionFunctions[] = 'SES_SignupFields::setup';
+}
+
+function sesCreateUserRedirect($template)
+{
+       $semantic_signup_title = SemanticSignup::getTitleFor('SemanticSignup');
+       $url = $semantic_signup_title->escapeFullURL();
+       
+       global $wgOut;
+       $wgOut->redirect($url);
+       
+       return false;
+}
+
+$wgHooks['UserCreateForm'][] = 'sesCreateUserRedirect';
+
+require_once 'SemanticSignup.settings.php';


Property changes on: trunk/extensions/SemanticSignup/SemanticSignup.php
___________________________________________________________________
Added: svn:eol-style
   + native

Added: trunk/extensions/SemanticSignup/SemanticSignup.settings.php
===================================================================
--- trunk/extensions/SemanticSignup/SemanticSignup.settings.php                 
        (rev 0)
+++ trunk/extensions/SemanticSignup/SemanticSignup.settings.php 2011-08-11 
14:44:26 UTC (rev 94246)
@@ -0,0 +1,9 @@
+<?php
+
+/*
+ * I need real name to be required on user signup for my purposes 
+ * so I make this feature configurable
+ */
+$sesRealNameRequired = false;
+$sesSignupFormName = '';
+$sesSignupBotName = '';
\ No newline at end of file


Property changes on: trunk/extensions/SemanticSignup/SemanticSignup.settings.php
___________________________________________________________________
Added: svn:eol-style
   + native

Deleted: trunk/extensions/SemanticSignup/includes/SES_Aliases.php
===================================================================
--- trunk/extensions/SemanticSignup/includes/SES_Aliases.php    2011-08-11 
14:28:16 UTC (rev 94245)
+++ trunk/extensions/SemanticSignup/includes/SES_Aliases.php    2011-08-11 
14:44:26 UTC (rev 94246)
@@ -1,10 +0,0 @@
-<?php
-/*
- * Created on 7 Jan 2008 by Serhii Kutnii
- */
- 
- $aliases = array();
- 
- $aliases['en'] = array(
-       'Semantic Signup' => array('Semantic Signup')
- );

Deleted: trunk/extensions/SemanticSignup/includes/SES_CreateUserHook.php
===================================================================
--- trunk/extensions/SemanticSignup/includes/SES_CreateUserHook.php     
2011-08-11 14:28:16 UTC (rev 94245)
+++ trunk/extensions/SemanticSignup/includes/SES_CreateUserHook.php     
2011-08-11 14:44:26 UTC (rev 94246)
@@ -1,17 +0,0 @@
-<?php
-/*
- * Created on 13 Jan 2009 by Serhii Kutnii
- */
-
-function sesCreateUserRedirect($template)
-{
-       $semantic_signup_title = SemanticSignup::getTitleFor('SemanticSignup');
-       $url = $semantic_signup_title->escapeFullURL();
-       
-       global $wgOut;
-       $wgOut->redirect($url);
-       
-       return false;
-}
-
-$wgHooks['UserCreateForm'][] = 'sesCreateUserRedirect';

Deleted: trunk/extensions/SemanticSignup/includes/SES_Main.php
===================================================================
--- trunk/extensions/SemanticSignup/includes/SES_Main.php       2011-08-11 
14:28:16 UTC (rev 94245)
+++ trunk/extensions/SemanticSignup/includes/SES_Main.php       2011-08-11 
14:44:26 UTC (rev 94246)
@@ -1,45 +0,0 @@
-<?php
-/*
- * Created on 6 Jan 2009 by Serhii Kutnii
- */
-
-$local_dir = dirname(__FILE__).'/';
-
-//Including all the SemanticSignup classes
-require_once($local_dir.'SES_Utils.php');
-require_once($local_dir.'SES_SignupFields.php');
-require_once($local_dir.'SES_Special.php');
-require_once($local_dir.'SES_CreateUserHook.php');
-
-$wgAutoloadClasses['SemanticSignup'] = 
-$wgAutoloadClasses['SES_UserAccountDataChecker'] = 
$local_dir.'SES_Special.php';
-
-$wgAutoloadClasses['SES_DataChecker'] = $local_dir.'SES_Utils.php';
-
-$wgAutoloadClasses['SES_SignupFields'] = 
-$wgAutoloadClasses['CreateUserFieldsTemplate'] = 
$local_dir.'SES_SignupFields.php';
-
-$wgExtensionCredits['specialpage'][] = array(
-       'name' => 'SemanticSignup',
-       'author' => 'Serg Kutny',
-       'url' => '',
-       'description' => 'A MediaWiki extension built on top of Semantic Forms 
allowing to populate a user page with semantic data at signup time ',
-       'descriptionmsg' => 'ses-desc',
-       'version' => '0.0.0',
-);
-
-$wgExtensionMessagesFiles['SemanticSignup'] = $local_dir.'SES_Messages.php';
-$wgExtensionAliasesFiles['SemanticSignup'] = $local_dir.'SES_Aliases.php';
-$wgSpecialPages['SemanticSignup'] = 'SemanticSignup';
-
-/*
- * I need real name to be required on user signup for my purposes 
- * so I make this feature configurable
- */
-$sesRealNameRequired = false;
-$sesSignupFormName = '';
-$sesSignupBotName = '';
-
-
-
-

Deleted: trunk/extensions/SemanticSignup/includes/SES_Messages.php
===================================================================
--- trunk/extensions/SemanticSignup/includes/SES_Messages.php   2011-08-11 
14:28:16 UTC (rev 94245)
+++ trunk/extensions/SemanticSignup/includes/SES_Messages.php   2011-08-11 
14:44:26 UTC (rev 94246)
@@ -1,20 +0,0 @@
-<?php
-/*
- * Created on 7 Jan 2008 by Serhii Kutnii
- *
- */
-
- $messages = array();
- 
- $messages['en'] = array(
-       'semanticsignup' => 'Semantic Signup',
-       'nousername' => 'Username has not been specified',
-       'nopwdmatch' => 'Password and password confirmation don\'t match',
-       'norealname' => 'Real name is required but has not been specified',
-       'userexists' => 'User already exists',
-       'invaliduname' => 'Username specified is not allowed',
-       'emailfailed' => 'Confirmation email sending failed',
-       'createforbidden' => 'Current user is not allowed to create accounts',
-       'throttlehit' => 'New user accounts number maximum per day has been 
exceeded for this IP',
-       'ses_userexists' => 'User already exists'
- );
\ No newline at end of file

Modified: trunk/extensions/SemanticSignup/includes/SES_SignupFields.php
===================================================================
--- trunk/extensions/SemanticSignup/includes/SES_SignupFields.php       
2011-08-11 14:28:16 UTC (rev 94245)
+++ trunk/extensions/SemanticSignup/includes/SES_SignupFields.php       
2011-08-11 14:44:26 UTC (rev 94246)
@@ -191,10 +191,3 @@
         return true;
        }
 }
-
-if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) {
-       $wgHooks['ParserFirstCallInit'][] = 'SES_SignupFields::setup';
-} else { 
-       $wgExtensionFunctions[] = 'SES_SignupFields::setup';
-}
-


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to