You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
549 B
PHTML
22 lines
549 B
PHTML
5 years ago
|
<?php
|
||
|
include_once('utils.php');
|
||
|
|
||
|
//
|
||
|
// INPUT:
|
||
|
//
|
||
|
// $user_login login of the user that consults the forum
|
||
|
// $forum forum to create thread into
|
||
|
//
|
||
|
|
||
|
importParam('forum');
|
||
|
|
||
|
check_character_belongs_to_guild($user_login, $forum);
|
||
|
|
||
|
read_template('new_thread.html', $new_thread);
|
||
|
|
||
|
$instance = str_replace(array('%%SENDER%%', '%%UCSENDER%%', '%%FORUM_POST%%', '%%FORUM%%', '%%UCFORUM%%'),
|
||
|
array($user_login, ucfirst($user_login), $forum, nameToURL($forum), convert_forum_name($forum)),
|
||
|
$new_thread);
|
||
|
|
||
|
echo $instance;
|
||
|
?>
|