Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* SMS Forwarder
*
* Sends the message received to a provided number using the sender's number as the caller ID
*
* URL example
* "http://burstsms.com/plugins/forward.php?apikey=YOUR-API-KEY&apisecret=YOUR-API-SECRET&to=MOBILE-NUMBER"
*/
@braddown
braddown / mobile-browser-detect
Created August 3, 2012 04:47
Link for App Download - Mobile OS Detection and Redirect Download Link to Appropriate App Store
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Redirect</title>
<script type="text/javascript"> // <![CDATA[
//iPhone Version:
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
window.location = "http://goo.gl/IWd7J";
}
@braddown
braddown / mimage.php
Created July 15, 2012 06:11
Full Screen Mobile Image
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Burst SMS Coupon</title>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<script type="text/javascript">
// When ready...
window.addEventListener("load",function() {