 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
teeigeryuh Master Cheater
Reputation: 25
Joined: 13 Oct 2008 Posts: 261 Location: The netherlands
|
Posted: Sun Nov 04, 2012 12:04 am Post subject: sending a value via post |
|
|
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 |
|
 |
potaters Grandmaster Cheater
Reputation: 72
Joined: 13 Apr 2009 Posts: 969
|
Posted: Sun Nov 04, 2012 1:27 am Post subject: |
|
|
| nvm, too hard to work with w/o testing. Wait.
|
|
| Back to top |
|
 |
teeigeryuh Master Cheater
Reputation: 25
Joined: 13 Oct 2008 Posts: 261 Location: The netherlands
|
Posted: Sun Nov 04, 2012 1:47 am Post subject: |
|
|
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /front/starfront/browse.php on line 2932
wat
_________________
ლ(╹◡╹ლ) |
|
| Back to top |
|
 |
potaters Grandmaster Cheater
Reputation: 72
Joined: 13 Apr 2009 Posts: 969
|
Posted: Sun Nov 04, 2012 1:54 am Post subject: |
|
|
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 |
|
 |
teeigeryuh Master Cheater
Reputation: 25
Joined: 13 Oct 2008 Posts: 261 Location: The netherlands
|
|
| Back to top |
|
 |
|
|
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
|
|