This file contains 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 | |
// You need to create the files/ directory inside your document root to put your files. | |
if (substr($_SERVER['REQUEST_URI'], 0, 7) !== '/files/') { | |
die('not allowed'); | |
} | |
$absolutePath = $_SERVER['DOCUMENT_ROOT'] . $_SERVER['REQUEST_URI']; |
This file contains 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 | |
namespace T3node\Graylog2Writer\Log\Writer; | |
/*************************************************************** | |
* Copyright notice | |
* | |
* (c) 2013 Steffen Müller <typo3@t3node.com> | |
* | |
* All rights reserved | |
* |
This file contains 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 | |
class FeatureContext extends MinkContext { | |
/** | |
* Take screenshot when step fails. Works only with Selenium2Driver. | |
* Screenshot is saved at [Date]/[Feature]/[Scenario]/[Step].jpg | |
* | |
* @AfterStep @javascript | |
*/ |
This file contains 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 | |
namespace TYPO3\CMS\Core\Log\Writer; | |
/*************************************************************** | |
* Copyright notice | |
* | |
* (c) 2013 Steffen Müller (typo3@t3node.com) | |
* All rights reserved | |
* | |
* This script is part of the TYPO3 project. The TYPO3 project is |
This file contains 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 src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.js"></script> | |
<div id="song">Loading song...</div> | |
$(document).ready(function() { | |
$.post( | |
'http://example.com/get/song', | |
function(data) { | |
if (data.song !== '') { | |
$('#song').text(data.song); | |
} |
NewerOlder