Simulated landing weaving dream, version 5.7, has removed the background verification code, do not know why has not been logged on (prompt login success but also jump back to the landing address)
To jump to http://localhost/dedecms/dede/article_add.php?channelid=1 after successful landing
Reply to discussion (solution)
Not understand, wait for an expert, come in to study
Recommended Frame Snoopy
Google a bit.
Want to jump? You just follow the jump.
curl_setopt ($ch, curlopt_followlocation, true);
It's supposed to be a dream. What cookies are not unified?
Look at the code of the landlord, I think of the previous one of the things originally was wrong in this place
Before, I wrote it together.
[Code]
curl_setopt ($ch, Curlopt_cookiefile, $cookie _file);
curl_setopt ($ch, Curlopt_cookiejar, $cookie _file);
[/code]
Want to jump? You just follow the jump.
curl_setopt ($ch, curlopt_followlocation, true);
Plus this line is not good ah, you have been tested there, the test, please put the code
Look at the code of the landlord, I think of the previous one of the things originally was wrong in this place
Before, I wrote it together.
[Code]
curl_setopt ($ch, Curlopt_cookiefile, $cookie _file);
curl_setopt ($ch, Curlopt_cookiejar, $cookie _file);
[/code]
So, what should I do, please put down the complete code?
Try this and see if it's okay.
function gethtml ($url, $tmpFile, $postData) { $ch = Curl_init ($url); curl_setopt ($ch, curlopt_header,0); curl_setopt ($ch, Curlopt_returntransfer, 1); curl_setopt ($ch, Curlopt_cookiejar, $tmpFile); curl_setopt ($ch, Curlopt_cookiefile, $tmpFile); if ($postData!=null) { curl_setopt ($ch, Curlopt_post, 1); curl_setopt ($ch, Curlopt_postfields, $postData); } $content =curl_exec ($ch); Curl_close ($ch); return $content; }
Try this and see if it's okay.
PHP code?1234567891011121314151617function gethtml ($url, $tmpFile, $postData) {$ch = Curl_init ($url); curl_setopt ($ch, curlopt_header,0); curl_setopt ($ch, Curlopt_ ...
No, it won't work.
Snoopy this is really easy to use
Want to jump? You just follow the jump.
curl_setopt ($ch, curlopt_followlocation, true); No one will?
Recommended Frame Snoopy
Recommended Frame Snoopy
This frame doesn't work, don't believe you try
Help you to follow the code, will be in the dream/dede/config.php file inside
if ($cuserLogin->getuserid () ==-1)
{
Header ("location:login.php?gotopage=". UrlEncode ($dedeNowurl));
Exit ();
}
The mediation here, login success should give you a UID, you see where the
Help you to follow the code, will be in the dream/dede/config.php file inside
if ($cuserLogin->getuserid () ==-1)
{
Header ("location:login.php?gotopage=". UrlEncode ($dedeNowurl));
Exit ();
}
Here the mediation, login success should give you a UID, you see where the ... This is supposed to be there, because it all suggests that the landing was successful.
Reference 14 Floor Jsbba reply: help you followed the code, will be in the weaving dream/dede/config.php file inside
if ($cuserLogin->getuserid () ==-1)
{
Header ("location:login.php?gotopage=". UrlEncode ($dedeNowurl));
Exit ();
}
Here to mediate, login into ...
Oh, yes, but-1, you can just log in with this cut.
Reference 15 Floor dz215136304 reply: Reference 14 floor Jsbba reply: help you followed the code, will be in the weaving dream/dede/config.php file inside
if ($cuserLogin->getuserid () ==-1)
{
Header ("location:login.php?gotopage=". UrlEncode ($dedeNowurl));
......
Also not, prompt
DEDECMS Tip info! Sorry, you do not have permission to perform this operation! Click here to go back to the previous page >>
Grab your bag when you login. Then all the information inside the header is preserved, including referer Ah, useragent ah. And then use curl to send such a hodgepodge bag to see if it succeeds.
Grab your bag when you login. Then all the information inside the header is preserved, including referer Ah, useragent ah. And then use curl to send such a hodgepodge of bags to see if they can succeed.
Oh, the code of the landlord I confirmed that there is no problem of the general non-verified web site is able to impersonate the login may be you this site has any special configuration or encryption authentication you can look into the code of the login file
Oh, the code of the landlord I confirmed that there is no problem of the general non-verified web site is able to impersonate the login may be you this site has any special configuration or encryption authentication you can look into the code of the login file
Thankyou
Header ("location:login.php?gotopage=". UrlEncode ($dedeNowurl));
Dede's Landing class was limited.