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
/** | |
* Countries | |
*/ | |
$countries = array | |
( | |
'ad' => 'Andorra', | |
'ae' => 'United Arab Emirates', | |
'af' => 'Afghanistan', | |
'ag' => 'Antigua and Barbuda', | |
'ai' => 'Anguilla', |
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
/** | |
* Currencies | |
*/ | |
$currencies = array | |
( | |
"ad" => "EUR", | |
"ae" => "AED", | |
"af" => "AFN", | |
"ag" => "USD", | |
"ai" => "USD", |
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
// Read a page's GET URL variables and return them as an associative array. | |
function getUrlVars() | |
{ | |
var vars = [], hash; | |
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); | |
for(var i = 0; i < hashes.length; i++) | |
{ | |
hash = hashes[i].split('='); | |
vars.push(hash[0]); | |
vars[hash[0]] = hash[1]; |
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 echo exec('whoami'); ?> |
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
<phpunit bootstrap="vendor/autoload.php" | |
colors="true" | |
convertErrorToExceptions="true" | |
convertNoticesToExceptions = "true" | |
convertWarningsToExceptions = "true" | |
processIsolation="false" | |
stopOnFailure="false" | |
syntaxCheck="false"> | |
<testsuites> | |
<testsuite name="App Tests"> |
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 | |
require('../system/initialize.php'); | |
class MyClass extends Frontend | |
{ | |
public function __construct() | |
{ | |
// Example: Load user object before calling the parent constructor |
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
<script type="text/javascript"> | |
window.addEvent('domready', function() | |
{ | |
var objRequest = JSON.decode( | |
'<?php echo json_encode($this->Environment->request)?>' | |
); | |
alert(objRequest); | |
}); | |
</script> |
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
<html> | |
<canvas width='400' height='450' id='canvas'>Ihre Browser ist nicht HTML5-tauglich. Bitte nutzen Sie einen aktuellen Browser.</canvas> | |
<textarea cols="40" rows="8" name="img" id="result"></textarea> | |
<script type="text/javascript"> | |
var canvas = document.getElementById('canvas'); | |
var ctxCanvas = canvas.getContext('2d'); |
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 | |
// Copy png from base64 delivery to create an image file | |
// requires php5 | |
define('UPLOAD_DIR', 'images/'); | |
$img = $_POST['img']; | |
$img = str_replace('data:image/png;base64,', '', $img); | |
$img = str_replace(' ', '+', $img); | |
$data = base64_decode($img); |
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 | |
header('Content-type: image/png'); | |
header('Content-Disposition: attachment; filename="' . $_GET['image'] . '"'); | |
readfile($_GET['image']); | |
?> |
NewerOlder