Browse Source

initial files

themage
theMage 6 years ago
commit
92df1c20c3
3 changed files with 55 additions and 0 deletions
  1. 15 0
      README.pod
  2. 20 0
      manifest.xml
  3. 20 0
      start.php

+ 15 - 0
README.pod

@ -0,0 +1,15 @@
1
=head1 NAME
2
3
User Agreements for Elgg
4
5
=head1 About
6
7
User Agreements is a plugin for Elgg 1.9+ that allows the site admins
8
to create a list of agreements that the users need to agree with
9
before being allowed into the site.
10
11
=head1 Author
12
13
theMage - http://magick-source.net
14
15
=cut

+ 20 - 0
manifest.xml

@ -0,0 +1,20 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<plugin_manifest xmlns="http://www.elgg.org/plugin_manifest/1.8">
3
  <name>User Agreements</name>
4
  <id>user_agreements</id>
5
  <author>theMage</author>
6
  <version>0.1</version>
7
  <description>Forces users to agree with the defined conditions before allowing them into the site</description>
8
  <website>http://magick-source.net</website>
9
  <repository>http://magick-source.net/for-elgg/user-agreements.git</repository>
10
  <bugtracker>http://magick-source.net/for-elgg/user-agreements</bugtracker>
11
  <copyright>Magick Source, 2014</copyright>
12
  <license>GNU General Public License version 3</license>
13
14
  <requires>
15
    <type>elgg_release</type>
16
    <version>1.9</version>
17
  </requires>
18
19
  <category>MagickSource</category>
20
</plugin_manifest>

+ 20 - 0
start.php

@ -0,0 +1,20 @@
1
<?php
2
  /**
3
   * User Agreements
4
   *
5
   * @package user_agreements
6
   * @author theMage - Magick-Source.net
7
   * @copyright Magick Source/AvidMind
8
   * @link http://magick-source.net/for-elgg/user-agreements
9
   */
10
11
elgg_register_event_handler('init','system','user_agreements_init');
12
elgg_register_event_handler('pagesetup','system','user_agreements_pagesetup');
13
14
function user_agreements_init() {
15
  error_log('on user_agreements_init');
16
}
17
18
function user_agreements_pagesetup() {
19
  error_log('on user_agreements_pagesetup');
20
}