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 | |
$cacheFile = 'cache/cache.html'; | |
$cacheTime = 4 * 60; | |
// Serve the cached file if it is older than $cacheTime | |
if (file_exists($cacheFile) && time() - $cacheTime < filemtime($cacheFile)) { | |
include($cacheFile); | |
exit; | |
} | |
// Start the output buffer |
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
<!--[if IE 6]> | |
<link rel="stylesheet" type="text/css" href="ie6.v1.css" media="screen" /> | |
<![endif]--> | |
<!--[if IE 7]> | |
<link rel="stylesheet" type="text/css" href="ie7.v1.css" media="screen" /> | |
<![endif]--> |
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 | |
/* | |
Get photos from a flickr pool and make a cache, | |
html output is setup ready for lightbox plugin coolness | |
[email protected] | |
*/ | |
$cacheFile = 'flickrcache.html'; | |
$cacheTime = 4 * 60; | |
// Serve the cached file if it is older than $cacheTime |
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 | |
// grab everything tagged bsmc and show it nicely | |
include_once(ABSPATH . WPINC . '/rss.php'); | |
$rss = fetch_rss('http://upcoming.yahoo.com/syndicate/v2/tag/bsmc'); | |
// set the timezone to GMT | |
date_default_timezone_set('Europe/London'); | |
foreach ($rss->items as $item) { | |
// nuke -1 hour, cos daylight saving isn't right | |
$time = strtotime("-1 hours", strtotime($item['xcal']['dtstart'])); |
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
<? | |
require('wp-includes/registration.php'); | |
$test = array ('ID' => $current_user->ID, 'user_pass' => 'cheese'); | |
wp_update_user ($test); | |
?> |
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 snd:MySound1= new MySound1(); | |
soundbutton_MC.addEventListener (MouseEvent.CLICK, soundbutton_Handler); | |
function soundbutton_Handler (e:MouseEvent):void { | |
snd.play(); | |
} |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title>jquery form element disable</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> |
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 | |
header("Content-type: text/css; charset: UTF-8"); | |
header("Cache-Control: must-revalidate"); | |
$offset = 60 * 60 ; | |
$ExpStr = "Expires: " . | |
gmdate("D, d M Y H:i:s", | |
time() + $offset) . " GMT"; | |
header($ExpStr); | |
?> |
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
AddHandler application/x-httpd-php .css | |
php_value auto_prepend_file gzip-css.php | |
php_flag zlib.output_compression On |
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 | |
/** | |
* LICENSE | |
* ------------------- | |
* Copyright (c) 2007-2008, Kaiser Shahid <[email protected]> | |
* All rights reserved. | |
* | |
* This software is licensed under the BSD License: | |
* | |
* Redistribution and use in source and binary forms, with or without |
OlderNewer