error_message("Invalid Referer Error", "<p>Form Referer Not Found. Found form variables were:</p><pre style=\"font: 10pt courier new\">$k</pre><p>This indicates a problem with the board skin. Please report this to the board administrator.</p>", 0, 1);
}
if ($FORMref->{action} eq "form") { ## Create New Conversation
if ($vpr->{profile_hash}->{enhanced}->{pref}->{c} != 1) {
$subst->{message}->{email} = "mailto:$vpr->{profile_hash}->{email}" if ($vpr->{profile_hash}->{email} ne "" && $vpr->{profile_hash}->{email} ne "email");
}
}
if ($GLOBAL_OPTIONS->{fullnames} ne "0" && $vpr->{options_string} !~ m|f| && $vpr->{profile_hash}->{fullname} ne "" && $vpr->{profile_hash}->{fullname} ne "fullname") {
mkdir("$DCONF->{admin_dir}/msg_index/temp", oct($DCONF->{perms0777})) || error_message("Create Directory Error", "Could not create 'temp' directory under 'msg_index'. Post with image/attachments failed.");
### Gets the URL of the page on which a message was posted
###
sub post_get_result_url {
my ($argument) = @_;
return "$DCONF->{script_url}/board-admin.$DCONF->{cgi_extension}?username=$argument->{username}&action=pm-page_editor&HTTP_REFERER=$argument->{topic_number}/$argument->{me_number}&menu=4" if $argument->{is_page_mgr};
return "$DCONF->{authorize_reader}?file=/$argument->{topic_number}/$argument->{me_number}.$DCONF->{ext}&lm=$argument->{time}" if $argument->{is_private} && ! $DCONF->{noqm};
return "$DCONF->{authorize_reader}?file=/$argument->{topic_number}/$argument->{me_number}.$DCONF->{ext}" if $argument->{is_private};
return "$DCONF->{message_url}/$argument->{topic_number}/$argument->{me_number}.$DCONF->{ext}?$argument->{time}" if ! $DCONF->{noqm};