http://www.wmc3.at ich hab zuvor die seite immer öffnen können.
ich hab mir jetzt die datei runtergeladen und geöffnet. folgender inhalt:
<?php
/**
* $Id: index.php 561 2007-10-12 12:42:56Z andi $
*
* //////////////////////////////////////////////////////////
*
* WMC3 - Community System
*
* Copyright (C) 2001 - 2999 Christopher Horn <ch> http://my.wmc3.at
*
* This file is part of WMC3.
*
* WMC3 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.
*
* WMC3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details:
* http://www.gnu.org/copyleft/gpl.html
*
* ////////////////////////////////////////////////////
*/
require_once('./classes/Page.php');
$page = new Page();
$user = $page->getUserObj();
$out = $user->getOutputWriter();
$tpl = $page->getTemplateObj();
$dbcache = $page->getDBCache();
$birthday = $page->loadPlugin('birthday');
$host = $page->getHost();
$sql = $page->getDatabaseObj();
$page->setSubTabGroup($out->write('home', 'tabs'), '', '');
$cache = $page->getCacheObj()->getObj();
require_once('./classes/Birthday.php');
require_once('./classes/Playlist.php');
$tpl = new HTML_Template_Sigma($page->getTemplatePath());
$tpl->loadTemplateFile("index.tpl.html", true, true);
$tpl->setCurrentBlock('INDEX');
$tpl->setVariable('ICON', $out->icon('star'));
$userentries = $page->loadPlugin('userentries');
if(!$entries = $dbcache->get('news_'.$host)) {
$entries = $userentries->getCurrentNews();
$dbcache->save($entries,'news_'.$host,60);
}
$news1 = $userentries->newsteaserToHtml($entries[4]);
$news2 = $userentries->newsteaserToHtml($entries[3]);
$news3 = $userentries->newsteaserToHtml($entries[2]);
$tpl->setVariable('NEWS1', $news1);
$tpl->setVariable('NEWS2', $news2);
$tpl->setVariable('NEWS3', $news3);
$tpl->setVariable('NEWS4', $news4);
$isFirstToday = true;
$isFirstTom = true;
$bdays = $birthday->getNextBirthdays();
if(is_array($bdays)) {
foreach($bdays as $key => $val) {
$html .= "<h2>$key</h2>";
foreach($val as $val2) {
$html .= $page->getNickHtml($val2) . '<br>';
}
$html .= '<br><div></div>';
}
}
$tpl->setVariable('BIRTHDAYS',$html);
unset($html);
if(!$html = $dbcache->get('eventshooter_'.$host)) {
$eventshooter = $userentries->getLatestHeadlines('eventshooter','','',0,7, 'date');
if(is_array($eventshooter)) {
foreach($eventshooter as $val) {
$photoalbum = $page->loadPlugin('photoalbum', array($page->getUserObj(), "$val[tid]"));
$nrPics = $photoalbum->getNrOfPics();
$html .= "<h3><a href="/eventshooter/eid.{$val['tid']}/\">{$val['subject']}</a></h3>";
$html .= "<h3>{$val['ev_date']}, $nrPics Bilder</h3>";
$tpl->setVariable("LINK", $out->link("eventshooter", array("eid"=>$val['tid'])));
$html .= $photoalbum->getRandomThumbsHTML(1,0,1);
$html .= "<div></div>";
}
$dbcache->save($html, 'eventshooter_'.$host, 300);
}
}
$tpl->setVariable("EVENTSHOOTER", $html);
if(!$events = $dbcache->get("mainevents_".$host)) {
$events = $userentries->getNextEvents(5);
$dbcache->save($events, 'mainevents_'.$host, 0,500);
}
if(is_array($events)) {
foreach($events as $val) {
if($val['ev_icon'] == '1')
$icon = "<img>";
if($val['ev_icon'] == '2')
$icon = "<img>";
$linkHtml = $out->linkHtml('group', $val['subject'],array('ennstal','calendar','tid' => $val['tid']));
$evhtml .= "<div>$val[ev_date]</div>
<div>$icon $linkHtml ($val[ev_location])</div><br>";
}
}
$tpl->setVariable("EVENTS", $evhtml);
$voting = $page->loadPlugin('vote');
$voting->loadSysVote();
$tpl->setVariable("VOTING", $voting->toHtml());
$tpl->show();
$page->close();
?>
meines wissens ist, das der quellcode für die seite, aber ich versteh nicht warum ich mir den rutnerladen soll?
lg
bernhard