The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi all,
Code:
function curl_vb($url,$data,$cookie,$method='POST') { $ch = curl_init(); // set the target url curl_setopt($ch, CURLOPT_URL,$url); // howmany parameter to post curl_setopt($ch, CURLOPT_POST, count($_POST)); // the parameter 'username' with its value 'johndoe' curl_setopt($ch, CURLOPT_POSTFIELDS,$data); //cookie?!?! curl_setopt($ch, CURLOPT_COOKIE, $cookie); $result= curl_exec ($ch); curl_close ($ch); print $result; } |
#2
|
|||
|
|||
![]()
Since it's done in PHP the server itself is doing the request, and the IP is based off of the requesting machine. The only way to show their IP would be to pass it off in a variable and do an update of the appropriate records.
|
#3
|
|||
|
|||
![]()
Hi g3nti
I use this method of login on my main site to let members sign up or register Code:
<a href="http://www.ukbusinesslive.co.uk/forum"><img src="http://i475.photobucket.com/albums/rr114/ukbusinesslive/Forum-pic.jpg" border="0" ></a> <a href="http://www.ukbusinesslive.co.uk/forum/register.php">Register Free NOW!</a> <form action="http://www.ukbusinesslive.co.uk/forum/login.php?do=login" target="_new" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])"> <input type="hidden" name="do" value="login" /> <input type="hidden" name="url" value="/forum" /> <input type="hidden" name="vb_login_md5password" /> <input type="hidden" name="vb_login_md5password_utf" /> <input type="hidden" name="s" value="$session[sessionhash]" /> <label>Username:<input name="vb_login_username" type="text" id="login" tabindex="1" class="bginput" accesskey="u"/></label> <label>Password:<input name="vb_login_password" type="password" id="password" tabindex="1" class="bginput" /></label> <label>Remember me?<input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser" tabindex="1" /></label> <input name="submit" type="submit" id="submit" tabindex="1" value="Login" accesskey="s" class="button" /> </form> ![]() Let me know how you got on if you decide to use it ![]() ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|