The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
modified profile.php does not recognize custom $_POST['do'] == "xx"
Hi
i modified the profile.php and added a new part PHP Code:
PHP Code:
I dont understand why, where is my mistake? What am i missing? I hope someone can help me |
#2
|
||||
|
||||
You actually edited the profile.php page instead of using a plugin? And where did you add this in the code.
What happens if you change this: PHP Code:
PHP Code:
|
#3
|
||||
|
||||
yes i edited the profile.php
i just put it above Code:
// ############################### start dst autodetect switch ############################### if ($_POST['do'] == 'dst') { also tried to switch the conditions //edit (using vbulletin v3.8.3) if i remove Code:
<input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> if there is no other options expect of disabling CSRF_PROTECTION, can anyone tell me the command it must be something with the security token, if i remove it, then it will display "profile.php?do=ptbank" (in url list or what it is called ) but brings that error if the input with security token is there, then he wont do anything expect of reloading the same site "profile.php?do=bank" |
#4
|
|||
|
|||
If your passing your parameters/variables in the URL (not posting them via a form, for example), then you should be using $_GET, not $_POST.
|
#5
|
||||
|
||||
$_POST is correct, because i send a form with method=post
there is a hidden input with name="do" PHP Code:
in profile.php there also is if ($_POST['do'] == 'updateprofile') |
#6
|
|||
|
|||
Add
PHP Code:
|
#7
|
||||
|
||||
if i add print_r($_POST); to profile.php, then he will bring a site error: "wrong coding of content"
--------------- Added [DATE]1244843185[/DATE] at [TIME]1244843185[/TIME] --------------- lololol if i change the action to another file like PHP Code:
--------------- Added [DATE]1244843444[/DATE] at [TIME]1244843444[/TIME] --------------- ok found the source file of the problem it is global.php if i remove "require_once('./global.php');" in my TARGET file, "lol.php", then submit works, hm --------------- Added [DATE]1244843796[/DATE] at [TIME]1244843796[/TIME] --------------- the only part with exec_header... is this part in global.php PHP Code:
--------------- Added [DATE]1244901867[/DATE] at [TIME]1244901867[/TIME] --------------- ok it is not that function i dont know :/ i will make my own code then |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|