10 $forwarder = user_flag_get('forwarder', $page_owner);
12 $forwarder = "profile";
15 $pulldown = '<select name="default_page">';
17 foreach($PAGE->menu
as $menu) {
18 if ($menu['name'] == $forwarder) {
19 $selected = 'selected = "selected"';
23 $pulldown .= '<option value="' . $menu['name'] . '" ' . $selected . '>' . $menu['name'] . '</option>';
25 $pulldown .= "</select>";
27 $run_result .= "<h2>" . __gettext("Change your default page") . "</h2>";
28 $run_result .= "<p>" . __gettext("This is the page visitors see when they click on your icon.") . "</p>";
30 $run_result .= templates_draw(array(
31 'context' => 'databox',
32 'name' => __gettext("Your default page: "),
33 'column1' => $pulldown
37 $forwarder = user_flag_get('friendlyname', $page_owner);
39 $forwarder = htmlspecialchars(stripslashes($forwarder), ENT_COMPAT
, 'utf-8');
44 $run_result .= "<h2>" . __gettext("Change your friendly name") . "</h2>";
45 $run_result .= "<p>" . sprintf(__gettext("Once set, you can access your account from <i>%shome/[your friendly name]/</i>"),$CFG->wwwroot
) . "</p>";
47 $run_result .= templates_draw(array(
48 'context' => 'databox',
49 'name' => __gettext("Your friendly name: "),
50 'column1' => "<input name=\"friendly_name\" type=\"text\" value=\"$forwarder\" />"