5 if (logged_on
&& $page_owner != $_SESSION['userid']) {
7 $page_url = $_SERVER['REQUEST_URI'];
9 $run_result .= "<p> </p>";
10 $run_result .= "<form action=\"" . url
. ltrim($page_url,"/") . "\" method=\"post\" >";
13 $run_result .= run("templates:draw", array(
14 'context' => 'flagContent',
15 'name' => "<h5>" . gettext("Flag content") . "</h5>",
16 'column1' => "<p>" . gettext("To mark this content as obscene or inappropriate, click the 'Flag' button and an administrator will view it in due course.") . "</p>",
17 'column2' => "<input type=\"submit\" value=\"" . gettext("Flag") . "\" /><input type=\"hidden\" name=\"action\" value=\"content:flag\" /><input type=\"hidden\" name=\"address\" value=\"$page_url\" />"
20 $run_result .= "</form>";