3 require("../../includes.php");
7 $profile_name = optional_param('profile_name', '-1', PARAM_ALPHANUM
);
8 $sql = "select * from ".$CFG->prefix
."user_flags where flag = 'friendlyname' and value = " . $db->qstr($profile_name);
10 if ($page_owner = get_record_sql($sql)) {
11 $page_owner = $page_owner->user_id
;
13 header("Location: $CFG->wwwroot");
17 $username = user_info("username",$page_owner);
18 $forwarder = user_flag_get('forwarder', $page_owner);
21 header("Location: ".$CFG->wwwroot
. $username . "/" . $forwarder . "/");
23 header("Location: ".$CFG->wwwroot
."$username/profile/");