root/releases/0.1.2a/units/invite/join_noinvite.php

Revision 2, 1.4 kB (checked in by sven, 3 years ago)

importing elgg-0.1.1a

Line 
1 <?php
2
3     // Join
4         
5         $sitename = sitename;
6                             
7                 $run_result .= <<< END
8                 
9     <p>
10         Thank you for registering for an account with $sitename! Registration is completely free, but before
11         you fill in your details, please take a moment to read the following documents:
12     </p>
13     <ul>
14         <li><a href="/content/terms.php" target="_blank">$sitename terms and conditions</a></li>
15         <li><a href="/content/privacy.php" target="_blank">Privacy policy</a></li>
16     </ul>
17     <p>
18         When you fill in the details below, we will send an "invitation code" to your email address in order
19         to validate it. You must then click on this within seven days to create your account.
20     </p>
21     <form action="" method="post">
22                 
23 END;
24                 
25                 $run_result .= run("templates:draw", array(
26                                                 'context' => 'databoxvertical',
27                                                 'name' => '<b>Your name</b>',
28                                                 'contents' => run("display:input_field",array("invite_name","","text"))
29                     )
30                     );
31                 $run_result .= run("templates:draw", array(
32                                                 'context' => 'databoxvertical',
33                                                 'name' => '<b>Your email address</b><br />',
34                                                 'contents' => run("display:input_field",array("invite_email","","text"))
35                     )
36                     );
37                 $run_result .= <<< END
38             <p align="center">
39                 <input type="hidden" name="invite_text" value="" />
40                 <input type="hidden" name="action" value="invite_invite" />
41                 <input type="submit" value="Register" />
42             </p>
43         </form>
44                 
45 END;
46
47 ?>
Note: See TracBrowser for help on using the browser.