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_once("../inc.files/inc.php"); // Contains simpleTAPI settings and user cache creation | |
$id = $_REQUEST["id"]; | |
if(substr($id,0,2) == "0x") { $id = hexdec(substr($id,2)); } | |
elseif(str_ireplace(array("a","b","c","d","e","f"),"",$id) != $id) { $id = hexdec($id); } | |
$r = $t->api->statuses_show($id); | |
if($r["TAPI"]["response_code"] == 403 && !$t->uid) | |
{ | |
print("Try <a href=\"/login.php\">Logging In</a>");die(); // Login.php simply contains the include and $t->require_login($http_referer_or_null); | |
} |
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
/** | |
* Add this script to the end of your document that use <input autofocus type="text" /> | |
* or <input type="text" placeholder="username" /> and it'll plug support for browser | |
* without these attributes | |
* Minified version at the bottom | |
*/ | |
(function () { | |
function each(list, fn) { | |
var l = list.length; |
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
ÿþT e s t i n g T e s t i n g T e s t i n g < 3 | |
O h l o o k , i t s a c a t ! |
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 | |
class Site | |
{ | |
public $vars; | |
public $tpldir; | |
public function __construct() | |
{ | |
$this->tpldir = dirname(__FILE__)."/../tpl/"; | |
} | |
public function set($var,$val) |
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 | |
class Email | |
{ | |
public $email = array("raw" => array(),"clean" => array(),"head" => array(),"body" => array()); | |
public $headers; | |
function load($raw_email) | |
{ | |
$this->email["raw"] = $raw_email; | |
list($head,$body) = $this->split(); |
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
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | |
<speccydata version="1.00.125" formatversion="1.0"> | |
<mainsection title="Summary"> | |
<section title="Operating System"> | |
<data title="">MS Windows 7 Ultimate 64-bit</data> | |
</section> | |
<section title="CPU"> | |
<data title="Intel Mobile Core 2 Duo T7200 @ 2.00GHz">65 °C</data> | |
<data title="Merom 65nm Technology"></data> | |
</section> |
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 = {"codes":{"AF":0,"AX":1,"AL":2,"DZ":3,"AS":4,"AD":5,"AO":6,"AI":7,"AQ":8,"AG":9,"AR":10,"AM":11,"AW":12,"AU":13,"AT":14,"AZ":15,"BS":16,"BH":17,"BD":18,"BB":19,"BY":20,"BE":21,"BZ":22,"BJ":23,"BM":24,"BT":25,"BO":26,"BA":27,"BW":28,"BV":29,"BR":30,"IO":31,"BN":32,"BG":33,"BF":34,"BI":35,"KH":36,"CM":37,"CA":38,"CV":39,"KY":40,"CF":41,"TD":42,"CL":43,"CN":44,"CX":45,"CC":46,"CO":47,"KM":48,"CG":49,"CD":50,"CK":51,"CR":52,"CI":53,"HR":54,"CU":55,"CY":56,"CZ":57,"DK":58,"DJ":59,"DM":60,"DO":61,"EC":62,"EG":63,"SV":64,"GQ":65,"ER":66,"EE":67,"ET":68,"FK":69,"FO":70,"FJ":71,"FI":72,"FR":73,"GF":74,"PF":75,"TF":76,"GA":77,"GM":78,"GE":79,"DE":80,"GH":81,"GI":82,"GR":83,"GL":84,"GD":85,"GP":86,"GU":87,"GT":88,"GG":89,"GN":90,"GW":91,"GY":92,"HT":93,"HM":94,"HN":95,"HK":96,"HU":97,"IS":98,"IN":99,"ID":100,"IR":101,"IQ":102,"IE":103,"IM":104,"IL":105,"IT":106,"JM":107,"JP":108,"JE":109,"JO":110,"KZ":111,"KE":112,"KI":113,"KW":114,"KG":115,"LA":116,"LV":117,"LB":118,"LS":119,"LR":120,"LY":121,"LI":122,"LT": |
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 = {"codes":{"AF":0,"AX":1,"AL":2,"DZ":3,"AS":4,"AD":5,"AO":6,"AI":7,"AQ":8,"AG":9,"AR":10,"AM":11,"AW":12,"AU":13,"AT":14,"AZ":15,"BS":16,"BH":17,"BD":18,"BB":19,"BY":20,"BE":21,"BZ":22,"BJ":23,"BM":24,"BT":25,"BO":26,"BA":27,"BW":28,"BV":29,"BR":30,"IO":31,"BN":32,"BG":33,"BF":34,"BI":35,"KH":36,"CM":37,"CA":38,"CV":39,"KY":40,"CF":41,"TD":42,"CL":43,"CN":44,"CX":45,"CC":46,"CO":47,"KM":48,"CG":49,"CD":50,"CK":51,"CR":52,"CI":53,"HR":54,"CU":55,"CY":56,"CZ":57,"DK":58,"DJ":59,"DM":60,"DO":61,"EC":62,"EG":63,"SV":64,"GQ":65,"ER":66,"EE":67,"ET":68,"FK":69,"FO":70,"FJ":71,"FI":72,"FR":73,"GF":74,"PF":75,"TF":76,"GA":77,"GM":78,"GE":79,"DE":80,"GH":81,"GI":82,"GR":83,"GL":84,"GD":85,"GP":86,"GU":87,"GT":88,"GG":89,"GN":90,"GW":91,"GY":92,"HT":93,"HM":94,"HN":95,"HK":96,"HU":97,"IS":98,"IN":99,"ID":100,"IR":101,"IQ":102,"IE":103,"IM":104,"IL":105,"IT":106,"JM":107,"JP":108,"JE":109,"JO":110,"KZ":111,"KE":112,"KI":113,"KW":114,"KG":115,"LA":116,"LV":117,"LB":118,"LS":119,"LR":120,"LY":121,"LI":122,"LT": |
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 widgetMoveUp(id) | |
{ | |
var ele = document.getElementById("widget" + id); | |
var row = ele.getAttribute("data-row"); | |
var column = ele.getAttribute("data-column"); | |
if(row > 1) | |
{ | |
var index; | |
if(document.getElementsByClassName) | |
{ |
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 | |
$xml = simplexml_load_file("http://backend.deviantart.com/rss.xml?q=gallery:pokesensei&limit=5"); | |
foreach($xml->channel->item as $item) | |
{ | |
$media = $item->children("http://search.yahoo.com/mrss/"); | |
$thumb = $media->thumbnail[1]->attributes(); | |
?> | |
<img src="<?= $thumb["url"] ?>" title="<?= $item->title ?>" style="width:<?= $thumb["width"] ?>px;height:<?= $thumb["height"] ?>px;" /> |