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 | |
/* | |
Copyright (C) 2010 Craig A Rodway. | |
This file is part of Print Master. | |
Print Master is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. |
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($printer)){ | |
$tpl->set('title', 'Consumable installation reports for ' . $printer->getName()); | |
} else { | |
$tpl->set('title', 'Consumable installation reports'); | |
} | |
$tpl->place('header'); | |
$colour = '<span style="color:#%s;">•</span>'; | |
?> |
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 | |
/* | |
Copyright (C) 2010 Craig A Rodway. | |
This file is part of Print Master. | |
Print Master is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. |
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 | |
function _process_image($data){ | |
if($data['is_image'] == TRUE){ | |
// It's definitely an image... | |
// Work out essential dimensions |
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 | |
/* | |
CMS - CMS Made Simple | |
(c)2004-2007 by Ted Kulp (ted@cmsmadesimple.org) | |
This project's homepage is: http://cmsmadesimple.org | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 2 of the License, or | |
(at your option) any later version. |
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
/** | |
* TWITTER FEED PARSER | |
* | |
* @version 1.1.2 | |
* @author Jonathan Nicol | |
* @link http://f6design.com/journal/2010/10/07/display-recent-twitter-tweets-using-php/ | |
* | |
* Notes: | |
* We employ caching because Twitter only allows their RSS feeds to be accesssed 150 | |
* times an hour per user client. |
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> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<base href="http://spennymoortownband.org/" /> | |
<title>Spennymoor Town Band - Latest News | Spennymoor Town Band | Spennymoor in County Durham, North East England</title> | |
<link rel="stylesheet" type="text/css" href="http://spennymoortownband.org/tmp/cache/stylesheet_50_1303132365.css" media="projection,screen"/> | |
<link rel="stylesheet" type="text/css" href="http://spennymoortownband.org/tmp/cache/stylesheet_51_1309989026.css" media="projection,screen"/> |
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
$.fn.cbtristate = function(settings) { | |
var config = { | |
yes: { img: "img/ico/check-yes.png", val: "1" }, | |
no: { img: "img/ico/check-no.png", val: "0" }, | |
empty: { img: "img/ico/check-empty.png", val: "" } | |
}; | |
if (settings) $.extend(config, settings); |
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 ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class collection | |
{ | |
var $CI; | |
function __construct() | |
{ | |
$this->CI =& get_instance(); | |
$this->CI->load->model('Settings_model'); |
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
/** | |
* In the <head> | |
*/ | |
var jsq = (function(){ | |
var q = []; // internal queue of functions that are added | |
var fs = {}; // public exportable functions | |
// Add a function to the queue |
OlderNewer