Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


sending a value via post

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam
View previous topic :: View next topic  
Author Message
teeigeryuh
Master Cheater
Reputation: 25

Joined: 13 Oct 2008
Posts: 261
Location: The netherlands

PostPosted: Sun Nov 04, 2012 12:04 am    Post subject: sending a value via post Reply with quote

So I got a list of videos:
http://starfront.net/browse.php

And a player:
http://starfront.net/player.php

How would I add a play button/link beside every video link that would send it via POST to player.php?

Here's the source (encode explorer):
http://pastebin.com/3s4SdFV1

might want to look around:
Code:
//
// Now the files
//
if($this->files)
{
        $count = 0;
        foreach ($this->files as $file)
        {
                $row_style = ($row ? "one" : "two");
                print "<tr class=\"row ".$row_style.(++$count == count($this->files)?" last":"")."\">\n";
                print "<td class=\"icon\"><img alt=\"".$file->getType()."\" src=\"".$this->makeIcon($file->getType())."\" /></td>\n";
                print "<td class=\"name\">\n";
                print "\t\t<a href=\"".$this->location->getDir(false, true, false, 0).$file->getNameEncoded()."\"";
                if(EncodeExplorer::getConfig('open_in_new_window') == true)
                        print "target=\"_blank\"";
                print " class=\"item file";
                if($file->isValidForThumb())
                        print " thumb";
                print "\">";
                print $file->getNameHtml();
                if($this->mobile == true)
                {
                        print "<span class =\"size\">".$this->formatSize($file->getSize())."</span>";
                }
                print "</a>\n";
                print "</td>\n";
                if($this->mobile != true)
                {
                        print "<td class=\"size\">".$this->formatSize($file->getSize())."</td>\n";
                        print "<td class=\"changed\">".$this->formatModTime($file->getModTime())."</td>\n";
                }
                if($this->mobile == false && GateKeeper::isDeleteAllowed()){
                        print "<td class=\"del\">
                                <a data-name=\"".htmlentities($file->getName())."\" href=\"".$this->makeLink(false, false, null, null, $this->location->getDir(false, true, false, 0).$file->getNameEncoded(), $this->location->getDir(false, true, false, 0))."\">
                                        <img src=\"?img=del\" alt=\"Delete\" />
                                </a>
                        </td>";
                }
                print "</tr>\n";
                $row =! $row;
        }
}

_________________

ლ(╹◡╹ლ)
Back to top
View user's profile Send private message
potaters
Grandmaster Cheater
Reputation: 72

Joined: 13 Apr 2009
Posts: 969

PostPosted: Sun Nov 04, 2012 1:27 am    Post subject: Reply with quote

nvm, too hard to work with w/o testing. Wait.
Back to top
View user's profile Send private message
teeigeryuh
Master Cheater
Reputation: 25

Joined: 13 Oct 2008
Posts: 261
Location: The netherlands

PostPosted: Sun Nov 04, 2012 1:47 am    Post subject: Reply with quote

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /front/starfront/browse.php on line 2932

wat

_________________

ლ(╹◡╹ლ)
Back to top
View user's profile Send private message
potaters
Grandmaster Cheater
Reputation: 72

Joined: 13 Apr 2009
Posts: 969

PostPosted: Sun Nov 04, 2012 1:54 am    Post subject: Reply with quote

I'm stopping because your server stopped returning data to mine but\
Create this file on your server and cal it like
watch.php or whatever.
Code:
<?php
$post = $_GET['url'];
//http://starfront.net/videoeers/Happy%20Batman.mp4
$url = 'http://starfront.net/player.php';
$fields = array(
            'url' => $post
        );

//open connection
$ch = curl_init($url);

//set the url, number of POST vars, POST data
curl_setopt($ch,CURLOPT_POST, true);
curl_setopt($ch,CURLOPT_POSTFIELDS, $fields);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);

//execute post
$result = curl_exec($ch);

//close connection
curl_close($ch);
?>

Now modify your other script and make the link clickable to
yourdomain.tld/watch.php?url=CODEFORTHEURL

watch.php assuming thats what you named it obv. Should work.
Back to top
View user's profile Send private message
teeigeryuh
Master Cheater
Reputation: 25

Joined: 13 Oct 2008
Posts: 261
Location: The netherlands

PostPosted: Sun Nov 04, 2012 2:14 am    Post subject: Reply with quote

watch.php didn't work, but thanks to you, you made me realize that I could add
Code:
<?php echo $_GET["age"]; ?>

And use your original script for browse.php
Allowing me to:
http://starfront.net/player.php?url=http://starfront.net/videoeers/Happy%20Batman.mp4

thanks tatanka

_________________

ლ(╹◡╹ლ)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites