Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

minor cleanup of the cacher, changed title etc.

  • Loading branch information...
commit dad692ad3bdc836a28f537446250dfa9c16a927a 1 parent 713c287
@qzio qzio authored
Showing with 4 additions and 15 deletions.
  1. +4 −15 cached_programme.php
View
19 cached_programme.php
@@ -1,4 +1,5 @@
<?php
+// @note this is a quick'n dirty hack
if (is_readable('config.php')) {
require 'config.php';
@@ -8,11 +9,10 @@
require_once 'Cache/Lite.php';
$options = array(
'cacheDir' => sys_get_temp_dir().'/',
- 'lifeTime' => 3600
+ 'lifeTime' => 120
);
$Cache_Lite = new Cache_Lite($options);
-
function getcached( $url )
{
global $Cache_Lite;
@@ -24,7 +24,7 @@ function getcached( $url )
}
$extra_head = <<<EOFSTR
<head>
- <title>PADDAN</title>
+ <title>Hacknight <3 Schedule</title>
<link rel="stylesheet" href="http://hacknight.se/hacknight.css" content-type="text/css">
<link href="http://fonts.googleapis.com/css?family=Cabin+Sketch:bold" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Nunito" rel="stylesheet" type="text/css">
@@ -41,15 +41,4 @@ function getcached( $url )
}
return $data;
}
-
-function on_get( $params = array() )
-{
- //@todo fix this as a config variable or something!
- $url = PAD_URL;
-
- $content = getcached($url);
-
- return $content;
-}
-
-echo on_get($_GET);
+echo getcached(PAD_URL);
Please sign in to comment.
Something went wrong with that request. Please try again.