<?php
///////////////////////////////////////////////////////////////////////////////////////
// PHPizabi 0.848b C1 [ALICIA]                               http://www.phpizabi.net //
///////////////////////////////////////////////////////////////////////////////////////
// Please read the license.txt file before using / modifying this software           //
// Original author:         Claude Desjardins, R - feedback@realitymedias.com        //
// Last modification date:  August 13th 2006                                         //
// Version:                 PHPizabi 0.848b C1                                       //
//                                                                                   //
// (C) 2005, 2006 Real!ty Medias / PHPizabi - All rights reserved                    //
///////////////////////////////////////////////////////////////////////////////////////

	/* Check Structure Availability */
	if (!defined("CORE_STRAP")) die("Out of structure call");
	/* Administrative restriction */
	(!me('is_administrator')&&!me('is_superadministrator')?die("Access restricted"):NULL);
	
	
	$tpl = new template;
	$tpl -> Load("index");
	
	
	$hArr = unpk(file_get_contents("system/cache/horoscopes.dat"));
	
	$i=0;
	foreach ($hArr as $key => $array) {
		$hRep[$i]["id"] = $key;
		$hRep[$i]["horoscope"] = $array["body"]["english"];
		$i++;
	}
	$tpl -> Loop("horoscopes", $hRep);
	
	$tpl -> Flush();