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 imagecreatefromstring_autorotate($data) | |
{ | |
$img = imagecreatefromstring($data); | |
if (substr($data, 0, 3) == "\xFF\xD8\xFF" && ($data{3} == "\xDB" || $data{3} == "\xE0" || $data{3} == "\xE1")) { | |
$orientation = -1; | |
if (function_exists('exif_read_data')) { |
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 max_execution_time_handler() { | |
set_time_limit(0); | |
$err = error_get_last(); | |
if ($err != null && preg_match('@^Maximum execution time@', $err['message'])) { | |
ob_start(); | |
debug_print_backtrace(); | |
$backtrace = ob_get_clean(); | |
error_log($backtrace); |
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
//Replace | |
var onWinJSReady = function () { | |
var app = WinJS.Application; | |
var checkpointHandler = function checkpointHandler() { | |
cordova.fireDocumentEvent('pause'); | |
}; | |
var resumingHandler = function resumingHandler() { | |
cordova.fireDocumentEvent('resume'); |
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
function makeImageZoomable(panImg) { | |
if (typeof panImg == 'string') | |
panImg = document.getElementById(panImg); | |
var panImgContainer = panImg.parentNode; | |
var startScale; | |
var currentScale = 1; | |
var startX = 0; | |
var startY = 0; | |
var currentX = 0; |
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
if (typeof navigator.notification === 'undefined') { | |
navigator.notification = { | |
confirm: function (message, confirmCallback, title, buttonLabels) { | |
setTimeout(function (){ | |
if (window.confirm(message)) { | |
confirmCallback(1); | |
} | |
else { | |
confirmCallback(2); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="https://gather.at/home/stylesheets/sprite.css" /> | |
<link rel="stylesheet" href="style.css" /> | |
</head> | |
<body> | |
<div style="width: 200px; margin: 10px; padding: 10px; border: 1px solid gray;"> | |
<div class="share-wrapper"> | |
<input class="share-option" name="twitter" type="checkbox"> |
NewerOlder