Changeset 481
- Timestamp:
- 08/10/06 12:14:34 (2 years ago)
- Files:
-
- devel/_invite/index.php (modified) (2 diffs)
- devel/config-dist.php (modified) (1 diff)
- devel/mod/friend/lib.php (modified) (1 diff)
- devel/sanitychecks.php (modified) (1 diff)
- devel/units/invite/invite_actions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/_invite/index.php
r478 r481 14 14 15 15 // You must be logged on to view this! 16 if (logged_on ) {16 if (logged_on && $CFG->publicinvite == true) { 17 17 18 18 $title = gettext("Invite a Friend"); … … 33 33 ); 34 34 } else { 35 header("Location: " . url);35 header("Location: " . $CFG->wwwroot); 36 36 } 37 37 devel/config-dist.php
r477 r481 37 37 38 38 $CFG->publicreg = true; 39 40 // The following should be set to false if you don't want users 41 // to be able to invite new users into the system. 42 43 $CFG->publicinvite = true; 39 44 40 45 // The following sets the default access level within the Elgg devel/mod/friend/lib.php
r479 r481 47 47 "Access controls")); 48 48 49 if ( public_reg== true) {49 if ($CFG->publicinvite == true) { 50 50 $PAGE->menu_sub[] = array( 'name' => 'friend:invite', 51 51 'html' => a_hrefg( "{$CFG->wwwroot}_invite/", devel/sanitychecks.php
r424 r481 28 28 } elseif (substr($CFG->dataroot, -1) != "/") { 29 29 $diemessages[] = 'Configuration problem: The <code>$CFG->dataroot</code> setting in config.php must end with a forward slash (/).'; 30 } 31 32 33 // Set defaults for some variables 34 35 if (!isset($CFG->publicinvite)) { 36 $CFG->publicinvite = $CFG->publicreg; 37 } 38 if (!isset($CFG->walledgarden)) { 39 $CFG->walledgarden = 0; 30 40 } 31 41 devel/units/invite/invite_actions.php
r383 r481 1 1 <?php 2 2 global $USER; 3 global $CFG; 3 4 // Kill all old invitations 4 5 … … 18 19 $invite->email = trim(optional_param('invite_email')); 19 20 if (!empty($invite->name) && !empty($invite->email)) { 20 if (logged_on || public_reg== true) {21 if (logged_on || $CFG->publicinvite == true) { 21 22 if (validate_email(stripslashes($invite->email))) { 22 23 $strippedname = stripslashes($invite->name); // for the message text.
