Skip to content

Commit

Permalink
Removed some things that prevented full operation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Olesen committed Dec 20, 2008
1 parent 4590002 commit 61d4fc0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion htdocs/include/Caching.class.php
Expand Up @@ -55,7 +55,7 @@ class MemoryCache implements Cache {
private static function &getMC() {
if(MemoryCache::$mc == null) {
MemoryCache::$mc = new Memcache;
MemoryCache::$mc->pconnect('127.0.0.1', '11213');
MemoryCache::$mc->pconnect('127.0.0.1', '11211');
}
return MemoryCache::$mc;
}
Expand Down
6 changes: 5 additions & 1 deletion htdocs/include/Database.class.php
Expand Up @@ -47,7 +47,11 @@ function &uncachedExecute($arr = null, $timeout = 0) {
}

function &cachedExecute($arr = null, $timeout = 30) {
$hash = 'sqlc'.hash('sha1', $this->queryString.serialize($arr));
if(function_exists('hash')) {
$hash = 'sqlc'.hash('sha1', $this->queryString.serialize($arr));
} else {
$hash = 'sqlc'.sha1($this->queryString.serialize($arr));
}
if(MemoryCache::find($hash)) {
return MemoryCache::get($hash);
}
Expand Down
2 changes: 1 addition & 1 deletion htdocs/include/Template.class.php
Expand Up @@ -10,7 +10,7 @@
require_once(SMARTY_DIR."/Smarty.class.php");
require_once("PasteUtil.class.php");
require_once("dates.inc.php");
require_once("oid_inline_finish.inc.php");
// require_once("oid_inline_finish.inc.php");
require_once("gettext.inc.php");

function smarty_block_dynamic($param, $content, &$smarty) {
Expand Down
8 changes: 0 additions & 8 deletions tpl/footer.tpl
Expand Up @@ -11,14 +11,6 @@
<div class="link"><a href="/archive1">{t}Archives{/t}</a></div>
<div class="link"><a href="/tools.php">{t}Tools / APIs{/t}</a></div>
<div class="link"><a href="/donate.php">{t}Donate{/t}</a>
<div style="text-align:center;font-size:75%;background:#ddd">
<b>Top Donations</b><br/>
Anonymous: $100.00<br/>
Roger W Turner: $50.00<br/>
Tilghman J Lesher: $50.00<br/>
Ben Finney: Private<br/>
Leif Madsen: $20.00
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 61d4fc0

Please sign in to comment.