![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 4 Pomógł: 0 Dołączył: 23.06.2009 Ostrzeżenie: (0%) ![]() ![]() |
Witam, dostałem skrypt logowania do epuls.pl, ale gdy go umieszczam na stronie (swojej ofc) to mi wyświetla : Found The document has moved here.
Tutaj skrypt : Cytat <form method="post" action=""> Login:<br> <input name="login" type="text" id="login" maxlength="25"><br> Hasło:<br> <input name="haslo" type="password" id="haslo" maxlength="20"><br><br> <input name="loginek" type="submit" value="Zaloguj"> </form> <?php if(isset($_POST['loginek'])){ $login=$_POST['login']; $haslo=$_POST['haslo']; $ch = curl_init('http://www.epuls.pl/start.php'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_COOKIEFILE, dirname(__FILE__) . '/cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEJAR, dirname(__FILE__) . '/cookies.txt'); curl_setopt($ch, CURLOPT_POSTFIELDS, 'blnLoginForm=1&lngLoginSystemID=0&strUserLogin=$login&strUserPassword=$haslo'); $strona = curl_exec($ch); $ch = curl_init(); curl_setopt($ch, CURLOPT_COOKIESESSION, TRUE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_COOKIEFILE, dirname(__FILE__) . '/cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEJAR, dirname(__FILE__) . '/cookies.txt'); curl_setopt($ch, CURLOPT_URL, 'http://www.epuls.pl/ksiega-gosci/'); $strona = curl_exec($ch); echo $strona; } ?> Dodam, że przycisk na epulsie "zaloguj" jest w javascript.. |
|
|
![]() ![]() |
![]() |
Aktualny czas: 22.08.2025 - 08:27 |