Changeset 1387
- Timestamp:
- 12/06/07 12:45:34 (10 months ago)
- Files:
-
- devel/includes.php (modified) (1 diff)
- devel/mod/admin/index.php (modified) (1 diff)
- devel/mod/community/addgroup.php (modified) (1 diff)
- devel/mod/community/index.php (modified) (1 diff)
- devel/mod/community/members.php (modified) (1 diff)
- devel/mod/community/new.php (modified) (1 diff)
- devel/mod/community/requests.php (modified) (1 diff)
- devel/mod/groups/index.php (modified) (1 diff)
- devel/mod/icons/index.php (modified) (1 diff)
- devel/mod/template/edit.php (modified) (1 diff)
- devel/mod/template/index.php (modified) (1 diff)
- devel/mod/template/preview.php (modified) (1 diff)
- devel/mod/users/index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/includes.php
r1378 r1387 154 154 // and walled garden functionality is turned on, redirect to 155 155 // the logon screen 156 if (!empty($CFG->walledgarden) && (context != "external" || !defined("context")) && !logged_on) { 157 header("Location: " . $CFG->wwwroot . "login/index.php"); 158 exit(); 156 if (!empty($CFG->walledgarden) && (!defined("context") || context != 'external') && !logged_on) { 157 require_login(); 159 158 } 160 159 devel/mod/admin/index.php
r1360 r1387 7 7 8 8 define("context", "admin"); 9 require_login('admin'); 10 9 11 templates_page_setup(); 10 12 devel/mod/community/addgroup.php
r1369 r1387 12 12 // run("communities:init"); 13 13 14 require_login(); 15 14 16 define("context", "network"); 15 17 templates_page_setup(); 16 17 // Whose friends are we looking at?18 global $page_owner;19 20 // You must be logged on to view this!21 // protect(1);22 18 23 19 $title = user_info("name", page_owner()) . " :: ". __gettext("Invite a Community"); devel/mod/community/index.php
r1369 r1387 17 17 templates_page_setup(); 18 18 19 // Whose friends are we looking at?20 global $page_owner;21 22 // You must be logged on to view this!23 // protect(1);24 25 19 $title = run("profile:display:name") . " :: " . __gettext("Communities"); 26 20 $body = run('communities:editpage'); devel/mod/community/members.php
r1369 r1387 17 17 templates_page_setup(); 18 18 19 // Whose friends are we looking at?20 global $page_owner,$profile_id;21 22 // You must be logged on to view this!23 // protect(1);24 25 19 $title = run("profile:display:name") . " :: " . __gettext("Members"); 26 20 $body = run('communities:members', array($page_owner)); devel/mod/community/new.php
r1369 r1387 12 12 run("communities:init"); 13 13 14 require_login(); 15 14 16 $context = (defined('COMMUNITY_CONTEXT'))?COMMUNITY_CONTEXT:"network"; 15 17 16 18 define("context", $context); 17 19 templates_page_setup(); 18 19 // Whose friends are we looking at?20 global $page_owner;21 22 // You must be logged on to view this!23 // protect(1);24 20 25 21 $title = run("profile:display:name") . " :: " . __gettext("Owned Communities"); devel/mod/community/requests.php
r1369 r1387 12 12 run("communities:init"); 13 13 14 require_login(); 15 14 16 $context = (defined('COMMUNITY_CONTEXT'))?COMMUNITY_CONTEXT:"network"; 15 17 16 18 define("context", $context); 19 17 20 templates_page_setup(); 18 19 // Whose friends are we looking at?20 global $page_owner;21 22 // You must be logged on to view this!23 // protect(1);24 21 25 22 $title = run("profile:display:name") . " :: ". __gettext("Membership requests"); devel/mod/groups/index.php
r1369 r1387 12 12 run("groups:init"); 13 13 14 require_login(); 15 14 16 define("context", "network"); 15 17 templates_page_setup(); 16 17 // Whose friends are we looking at?18 global $page_owner;19 20 // You must be logged on to view this!21 protect(1);22 18 23 19 $title = run("profile:display:name") . " :: ". __gettext("Access Controls"); devel/mod/icons/index.php
r1369 r1387 11 11 run("icons:init"); 12 12 13 require_login(); 14 13 15 $context = optional_param('context','account'); 14 16 define('context',$context); 15 17 16 // You must be logged on to view this!17 protect(1);18 18 templates_page_setup(); 19 19 devel/mod/template/edit.php
r1363 r1387 6 6 require_once(dirname(dirname(__FILE__))."/../includes.php"); 7 7 8 protect(1);9 10 8 run("profile:init"); 11 9 run("templates:init"); 10 11 require_login(); 12 12 13 13 define("context", "account"); devel/mod/template/index.php
r1363 r1387 6 6 require_once(dirname(dirname(__FILE__))."/../includes.php"); 7 7 8 protect(1);9 8 require_login(); 9 10 10 run("profile:init"); 11 11 templates_actions(); devel/mod/template/preview.php
r1369 r1387 6 6 require_once(dirname(dirname(__FILE__))."/../includes.php"); 7 7 8 protect(1);8 require_login(); 9 9 10 10 run("profile:init"); devel/mod/users/index.php
r1369 r1387 12 12 define('context',$context); 13 13 14 protect(1);14 require_login(); 15 15 16 16 templates_page_setup();
