Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>There is something broken with that store's registration/login. The activation email said to just login to activate the account. I've tried logging in multiple times but I get the error "This account is not activated." everytime I try to login.</p> <p>Below is a quick change that prints the returned login page.</p> <pre><code>$url_to = 'http://fastorder.newrock.es/store2009/index.php/customer/account/loginPost/'; $url_from = 'http://fastorder.newrock.es/store2009/index.php/customer/account/login/'; $url_get = 'http://fastorder.newrock.es/store2009/index.php/'; $name_pass = 'login%5Busername%5D=*****&amp;login%5Bpassword%5D=*****&amp;send='; function login($link,$user,$from) { $fp = fopen("cookie.txt", "w"); fclose($fp); $log = curl_init(); curl_setopt($log, CURLOPT_REFERER, $from); curl_setopt($log, CURLOPT_URL, $link); curl_setopt($log, CURLOPT_COOKIEJAR, "cookie.txt"); curl_setopt($log, CURLOPT_COOKIEFILE, "cookie.txt"); curl_setopt($log, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6"); curl_setopt($log, CURLOPT_TIMEOUT, 40); curl_setopt($log, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($log, CURLOPT_HEADER, TRUE); curl_setopt($log, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($log, CURLOPT_POST, TRUE); curl_setopt($log, CURLOPT_POSTFIELDS, $user); $data = curl_exec($log); curl_close($log); return $data; } echo login($url_to,$name_pass,$url_from); function get($url) { $get = curl_init(); curl_setopt($get, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($get, CURLOPT_COOKIEFILE, "cookie.txt"); curl_setopt($get, CURLOPT_URL, $url); return curl_exec ($get); curl_close ($get); } $html = get($url_get); echo $html; </code></pre> <p><strong>Edit:</strong><br> Is the cookies data is being written to the cookies file (cookie.txt)? If not...</p> <ol> <li><p>Check the file permissions, make sure its writable.</p></li> <li><p>A bug in earlier versions of php5 caused the cookies file option to be ignored.</p></li> </ol> <p>Details on the bug are here: <a href="http://bugs.php.net/bug.php?id=33475" rel="nofollow noreferrer">http://bugs.php.net/bug.php?id=33475</a><br> Solution: Add unset($log) after curl_close($log); </p> <p>Its hard to debug this script w/o being able to test it.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload