This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function generate_ticket( $src, $l, $t, $r, $b ) { | |
// check to see if Image Functions Exist | |
if ( !function_exists ( "imagecreate" ) || !function_exists ( "imagecreatetruecolor" ) ) { | |
die( "No image create functions!" ); | |
} | |
// get size of file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Code by: Niraj Shah - www.webniraj.com | |
--> | |
<script type="text/javascript"> | |
// images to use (array) | |
var images = [ | |
'https://www.webniraj.com/wp-content/uploads/2011/12/LF-Android-500.jpg', | |
'https://www.webniraj.com/wp-content/uploads/2010/12/Guinness-Lewis-Moody-500.jpg', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Code by: Niraj Shah - www.webniraj.com | |
--> | |
<script type="text/javascript"> | |
// images to use (array) | |
var images = [ | |
'https://www.webniraj.com/wp-content/uploads/2011/12/LF-Android-500.jpg', | |
'https://www.webniraj.com/wp-content/uploads/2010/12/Guinness-Lewis-Moody-500.jpg', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
protected function getCode() { | |
if (isset($_REQUEST['code'])) { | |
if ($this->state !== null && | |
isset($_REQUEST['state']) && | |
$this->state === $_REQUEST['state']) { | |
// CSRF state has done its job, so clear it | |
$this->state = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
protected function getCode() { | |
$server_info = array_merge($_GET, $_POST, $_COOKIE); | |
if (isset($server_info['code'])) { | |
if ($this->state !== null && | |
isset($server_info['state']) && | |
$this->state === $server_info['state']) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT pid, src, images FROM photo WHERE object_id IN ( SELECT object_id FROM photo_tag WHERE subject = 60506094 ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using apt-get | |
sudo apt-get install s3cmd | |
# Using yum | |
sudo yum install s3cmd |