The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I had hoped to ask this in the Programming Forum, but since I don't have access to that, I thought I'd ask it here. Please redirect as required.
I am trying to use vBulletin in such a way that if it is not started from my Windows-based C++ application, then vBulletin will not start up. This is achieved with the C++ code, listed below. The SendRequest call creates a POST header to be passed to start.php, listed below. I know this works because $_POST["App"] exists and the script pauses for 5 seconds because supposedly the cookie in the script was created due to the if check on $post. After the 5 second delay, the message box in the C++ code displays, so I know it's not immediately trying to execute index.php with the C++ call to ShellFns: ![]() In index.php provide by the install of vBulletin, I added the 3 lines into that file, as listed below. The problem I'm running into is that even though start.php creates the cookie because $post from the script is not null as called from C++ SendRequest, when I get to index.php from the C++ function ShellFns: ![]() C++: SendRequest("http://www.zokero.com/vBulletin/start.php", CString("App=SeisWare"), sHeaderReceive, sMessage); MessageBox("Test"); ShellFns: ![]() start.php: <?php $post = $_POST["App"]; if ($post != null) { $duration = time() + 8 * 60 * 60; $success = setcookie("App", "SeisWare", $duration); if ($success == TRUE) sleep(5); } else exit("<html><body><center><h1>start: Please restart SeisWare to access the forums.</h1></center></body></html>"); ?> index.php: $app = $_COOKIE["App"]; if ($app == null) exit("<html><body><center><h1>index: Please restart SeisWare to access the forums.</h1></center></body></html>"); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|