reteep
10-16-2006, 05:48 AM
Hi there,
it's not using a hook, it's a standalone file in the forum directory.
My code looks like that at the moment:
require_once('includes/functions_databuild.php');
require_once('includes/functions_newpost.php');
require_once('global.php');
$report_foruminfoid = $_GET['id'];
$report_foruminfo = fetch_foruminfo($report_foruminfoid);
$newpost = array(
'emailupdate' => 9999,
'userid' => $_GET['userID'],
'username' => $_GET['username'],
'title' => $_GET['title']);
$newpost[message] = $_GET['msg'];
build_new_post('thread', $report_foruminfo, array(), array(), $newpost, $errors);
build_post_index($post['postid'], $post['threadid']);
It works whenever I'm logged in on the forum. However, when I call this query on IE (where I'm not logged in, no cookie set) it doesn't work.
http://www.mydomain.de/forum/postthread.php?id=2&userID=4&username=user&title=abidabadu&msg=asdfasdfasdf
Is it possible to make it working without the need of being logged in? Thanks!
I guess I better try to use a manual SQL Query..... ;)
it's not using a hook, it's a standalone file in the forum directory.
My code looks like that at the moment:
require_once('includes/functions_databuild.php');
require_once('includes/functions_newpost.php');
require_once('global.php');
$report_foruminfoid = $_GET['id'];
$report_foruminfo = fetch_foruminfo($report_foruminfoid);
$newpost = array(
'emailupdate' => 9999,
'userid' => $_GET['userID'],
'username' => $_GET['username'],
'title' => $_GET['title']);
$newpost[message] = $_GET['msg'];
build_new_post('thread', $report_foruminfo, array(), array(), $newpost, $errors);
build_post_index($post['postid'], $post['threadid']);
It works whenever I'm logged in on the forum. However, when I call this query on IE (where I'm not logged in, no cookie set) it doesn't work.
http://www.mydomain.de/forum/postthread.php?id=2&userID=4&username=user&title=abidabadu&msg=asdfasdfasdf
Is it possible to make it working without the need of being logged in? Thanks!
I guess I better try to use a manual SQL Query..... ;)