|
Revision 1539, 0.7 kB
(checked in by renato, 1 year ago)
|
Setting prop svn:eol-style in LOTS of files.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
@require_once("../../includes.php"); |
|---|
| 4 |
|
|---|
| 5 |
global $messages, $CFG; |
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
* Handle comment post for non axax. |
|---|
| 9 |
*/ |
|---|
| 10 |
|
|---|
| 11 |
$owner = optional_param('owner',''); |
|---|
| 12 |
$wallowner = optional_param('wallowner',''); |
|---|
| 13 |
$reply = optional_param('reply',''); |
|---|
| 14 |
$returnurl = optional_param('returnurl',''); |
|---|
| 15 |
|
|---|
| 16 |
$page = ""; |
|---|
| 17 |
|
|---|
| 18 |
$owner = page_owner(); |
|---|
| 19 |
if (empty($owner)) { |
|---|
| 20 |
$owner = -1; |
|---|
| 21 |
} |
|---|
| 22 |
|
|---|
| 23 |
global $page_owner; |
|---|
| 24 |
$page_owner = $owner; |
|---|
| 25 |
|
|---|
| 26 |
if ($reply!=-1) |
|---|
| 27 |
$title = __gettext("Post a comment"); |
|---|
| 28 |
else |
|---|
| 29 |
$title = __gettext("Reply to a comment"); |
|---|
| 30 |
|
|---|
| 31 |
$html = __gettext("<p>Use this form to post a comment.</p>"); |
|---|
| 32 |
$html .= commentwall_post_form($wallowner, $reply, false, "", $returnurl); |
|---|
| 33 |
|
|---|
| 34 |
templates_page_output($title, $html); |
|---|
| 35 |
|
|---|
| 36 |
?> |
|---|