The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hi, I made this topic in the General Discussion but figured it might be to much coding for it so I should prolly post it here.
Link to topic: https://vborg.vbsupport.ru/showthread.php?t=162414 Quote:
|
|
#2
|
|||
|
|||
|
How does your application script work? Does it use the datamanagers?
I'm taking a wild guess here but if you add a line like: PHP Code:
|
|
#3
|
|||
|
|||
|
The hack looks like this, I guess it's datamanagers?
Code:
$formforumid = "13";
$foruminfo = verify_id('forum', $formforumid, 0, 1);
$forumperms = fetch_permissions($foruminfo[forumid]);
$newpost['username'] =& $vbulletin->userinfo['username'];
$newpost['message'] =& $formsend;
$newpost['title'] =& $posttitle;
$newpost['parseurl'] = '1';
$newpost['poststarttime'] = $poststarttime;
$newpost['posthash'] = $posthash;
if ($vbulletin->userinfo['autosubscribe'] != -1)
{
$newpost['emailupdate'] = $vbulletin->userinfo['autosubscribe'];
}
else
{
$newpost['emailupdate'] = 9999;
}
if ($vbulletin->userinfo['signature'] != '')
{
$newpost['signature'] = '1';
}
else
{
$newpost['signature'] = '0';
}
build_new_post('thread', $foruminfo, array(), array(), $newpost, $errors);
--------------- Added [DATE]1194806172[/DATE] at [TIME]1194806172[/TIME] --------------- hmm, just got a error: Code:
Fatal error: Call to a member function set_info() on a non-object in /home/exiled/www/www/forum/newthread.php(71) : eval()'d code on line 377 --------------- Added [DATE]1194807418[/DATE] at [TIME]1194807418[/TIME] --------------- Anyone else able to give me a suggestion? =) |
|
#4
|
|||
|
|||
|
Try this:
PHP Code:
|
|
#5
|
|||
|
|||
|
nope, still only admins/modds who are able to create two posts - this time however I did not get any errors ^_^
(btw, the user grp trying to post have the right to create new topics but no view access in the "hidden" forum) |
|
#6
|
|||
|
|||
|
Anyone else able to shed some light on this? =)
|
|
#7
|
|||
|
|||
|
Don't you need another set of code to generate the second topic?
|
|
#8
|
|||
|
|||
|
yea, but I only posted the code needed for my "hidden" topic, it's basically the same as the first one but in a different forum.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|