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 | |
if (isset($_GET['progress_key'])) { | |
$status = apc_fetch('upload_' . $_GET['progress_key']); | |
// Return null if total is empty to avoid divide by zero error below. | |
if (empty($status['total'])) { | |
exit; | |
} | |
echo ($status['current'] / $status['total'] * 100); |
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
var sfc_lang = { | |
errors: { | |
'Missing parameters': 'Missing parameters', | |
'Competition not found': 'Competition not found', | |
'Team not found': 'Team not found', | |
'There are no fixtures at the moment': 'There are no fixtures at the moment', | |
'There is no team form information at the moment': 'There is no team form information at the moment', | |
'There are no live games at the moment': 'There are no live games at the moment', | |
'There are no results at the moment': 'There are no results at the moment', | |
'There are no standings at the moment': 'There are no standings at the moment', |
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 MontyHall | |
{ | |
const CAR = 'Car'; | |
const GOAT = 'Goat'; | |
public $doors; | |
public $choice; | |
public function __construct() |
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 | |
require '3rdparty/tmhOAuth/tmhOAuth.php'; | |
$connection = new tmhOAuth(array( | |
'consumer_key' => TWITTER_API_KEY, | |
'consumer_secret' => TWITTER_API_SECRET, | |
'user_token' => TWITTER_ACCESS_TOKEN, | |
'user_secret' => TWITTER_ACCESS_TOKEN_SECRET | |
)); |