$ecLocal['site'] = '403'; } $tmpReplaces['sub:view'] = 'plugins/' . $ecLocal['plugin'] . '/' . $ecLocal['site'] . '.php'; // Replace Vars preg_match_all("/{(?!sub)(.*?)\\:(.*?)}/Sis", $html, $tmpVars); $count = count($tmpVars[0]); $i = 0; while (!empty($count)) { $tmpVars[0][$i] = str_replace('{', '', $tmpVars[0][$i]); $tmpVars[0][$i] = str_replace('}', '', $tmpVars[0][$i]); $file = 'plugins/' . $tmpVars[1][$i] . '/' . $tmpVars[2][$i] . '.php'; if (!file_exists($file) || !in_array($tmpVars[1][$i], $ecLocal['pluginsList'])) { $message = 'File not found: ' . $file; ecError($ecFile, $message); } else { if (ecGetAccessLevel($tmpVars[1][$i], $tmpVars[2][$i])) { $tmpReplaces[$tmpVars[0][$i]] = $file; } else { $html = str_replace('{' . $tmpVars[0][$i] . '}', '', $html); } } $i++; $count--; } // Refresh Paths $refreshImages = "=link href\\=\"(?!http)(.*?)\"=si"; $html = preg_replace($refreshImages, "link href=\"themes/" . $ecLocal['theme'] . "/\\1\"", $html); $refreshBackgrounds = "=background\\=\"(?!http)(.*?)\"=si"; $html = preg_replace($refreshBackgrounds, "background=\"themes/" . $ecLocal['theme'] . "/\\1\"", $html); $refreshSources = "=src\\=\"(?!http)(.*?)\"=si"; $html = preg_replace($refreshSources, "src=\"themes/" . $ecLocal['theme'] . "/\\1\"", $html);
exit; } // Load config require_once 'config.php'; // Load errorsubs require_once 'system/subs/errors.php'; // Connect to database & Load subs require_once 'system/database/' . $ecDb['typ'] . '/subs.php'; require_once 'system/database/' . $ecDb['typ'] . '/backup.php'; // Load settings require_once 'system/core/settings.php'; // Initalize plugins require_once 'system/core/plugins.php'; // Load other subs require_once 'system/core/access.php'; require_once 'system/subs/languages.php'; require_once 'system/subs/date.php'; require_once 'system/subs/files.php'; require_once 'system/subs/tools.php'; require_once 'system/subs/icons.php'; require_once 'system/subs/templates.php'; // Load autoexecuting pluginfiles $ecAutoexecData = dbSelect('sitesPluginId,sitesName', 1, 'sites', "sitesTyp=3"); while ($sites = mysql_fetch_object($ecAutoexecData)) { if (ecGetAccessLevel($ecLocal['pluginsList'][$sites->sitesPluginId], $sites->sitesName)) { include 'plugins/' . $ecLocal['pluginsList'][$sites->sitesPluginId] . '/' . $sites->sitesName . '.php'; } } // Parse Theme & Create Website require_once 'system/core/themes.php'; echo $html;
<?php /* (C) 2006 EZEMS.NET Alle Rechte vorbehalten. Dieses Programm ist urheberrechtlich geschützt. Die Verwendung für private Zwecke ist gesattet. Unbrechtigte Nutzung (Verkauf, Weiterverbreitung, Nutzung ohne Urherberrechtsvermerk, kommerzielle Nutzung) ist strafbar. Die Nutzung des Scriptes erfolgt auf eigene Gefahr. Schäden die durch die Nutzung entstanden sind, trägt allein der Nutzer des Programmes. */ $ecFile = 'plugins/users/usercenter.php'; echo ecTemplate('users', 'usercenter', 'siteHead'); echo ecTemplate('users', 'usercenter', 'usercenterHead'); $ecUsercenterData = dbSelect('sitesName,sitesPluginId', 1, 'sites', "sitesTyp=7"); while ($usersites = mysql_fetch_object($ecUsercenterData)) { $sitePath = $usersites->sitesName; $pluginPath = $ecLocal['pluginsList'][$usersites->sitesPluginId]; if (ecGetAccessLevel($pluginPath, $sitePath)) { $ecLang = ecGetLang($pluginPath, $sitePath); $usersiteName = isset($ecLang['usercenterName']) ? $ecLang['usercenterName'] : '-'; $usersiteDescription = isset($ecLang['usercenterDescription']) ? $ecLang['usercenterDescription'] : '-'; echo ecTemplate('users', 'usercenter', 'usercenterData'); } } echo ecTemplate('users', 'usercenter', 'usercenterFoot');
<?php /* (C) 2006 EZEMS.NET Alle Rechte vorbehalten. Dieses Programm ist urheberrechtlich gesch�tzt. Die Verwendung f�r private Zwecke ist gesattet. Unbrechtigte Nutzung (Verkauf, Weiterverbreitung, Nutzung ohne Urherberrechtsvermerk, kommerzielle Nutzung) ist strafbar. Die Nutzung des Scriptes erfolgt auf eigene Gefahr. Sch�den die durch die Nutzung entstanden sind, tr�gt allein der Nutzer des Programmes. */ $ecFile = 'plugins/users/navmenu.php'; $rssLink = 'plugins/' . $ecLocal['plugin'] . '/rss.php'; if (file_exists($rssLink) && ecGetAccessLevel($ecLocal['plugin'], 'rss')) { echo ecTemplate('system', 'rsslink', 'rssLink'); $ecLocal['rssFeedLink'] = $rssLink; }
*/ $ecFile = 'plugins/squads/users.php'; echo ecTemplate('squads', 'users', 'siteHead'); $id = isset($_REQUEST['id']) ? $_REQUEST['id'] : 0; echo ecTemplate('squads', 'users', 'detailsBarHead'); if (ecGetAccessLevel('users', 'details')) { echo ecTemplate('squads', 'users', 'detailsBarUsers'); } echo ecTemplate('squads', 'users', 'detailsBarClans'); if (ecGetAccessLevel('computer', 'users')) { echo ecTemplate('squads', 'users', 'detailsBarComputer'); } if (ecGetAccessLevel('board', 'users')) { echo ecTemplate('squads', 'users', 'detailsBarBoard'); } if (ecGetAccessLevel('gbook', 'users')) { echo ecTemplate('squads', 'users', 'detailsBarGBook'); } echo ecTemplate('squads', 'users', 'detailsBarFoot'); echo ecTemplate('squads', 'users', 'squadHead'); $ecSquadData = dbSelect('*', 1, 'squadplayer,squads,games,squadtask', "(squadplayerUserId = {$id}) AND (squadsId = squadplayerSquadId) AND (gamesId = squadsGameId) AND (squadtaskId = squadplayerTaskId)"); while ($squad = mysql_fetch_object($ecSquadData)) { $squadId = $squad->squadsId; $squadName = $squad->squadsName; $squadGameId = $squad->gamesId; $squadGameImg = !empty($squad->gamesIcon) ? $squad->gamesIcon : 'default.png'; $squadTask = $squad->squadtaskName; $squadTime = ecDate($squad->squadplayerTime, 2); echo ecTemplate('squads', 'users', 'squadData'); } echo ecTemplate('squads', 'users', 'squadFoot');
$reach = mktime(0, 0, 0, date("n", $ecLocal['timestamp']), 1, date("Y", $ecLocal['timestamp'])); $ecStatsData = dbSelect('statsIP,statsTime', 1, 'stats', "statsTime > {$reach}"); while ($data = mysql_fetch_object($ecStatsData)) { $date = date('n.d.Y', $data->statsTime); $statsVisitors[$data->statsIP . $date] = 1; } $statsMonth = count($statsVisitors); echo ecTemplate('stats', 'navi', 'statsMonth'); } if (!empty($ecSettings['stats']['all'])) { // All $statsVisitors = array(); $ecStatsData = dbSelect('statsIP,statsTime', 1, 'stats'); while ($data = mysql_fetch_object($ecStatsData)) { $date = date('n.d.Y', $data->statsTime); $statsVisitors[$data->statsIP . $date] = 1; } $statsAll = count($statsVisitors); echo ecTemplate('stats', 'navi', 'statsAll'); } if (!empty($ecSettings['stats']['hits'])) { // Hits $ecStatsData = dbSelect('COUNT(*) as statsCount', 1, 'stats'); $data = mysql_fetch_assoc($ecStatsData); $statsHits = $data['statsCount']; echo ecTemplate('stats', 'navi', 'statsHits'); } echo ecTemplate('stats', 'navi', 'siteFoot'); if (ecGetAccessLevel('stats', 'list')) { echo ecTemplate('stats', 'navi', 'statsMore'); }
$gameId = $clanwar->clanwarsGameId; $clanwarsGameName = $clanwar->gamesName; $clanwarsGameImg = $clanwar->gamesIcon; $clanwarsDate = ecDate($clanwar->clanwarsTime, 2); $clanwarsEnemyId = $clanwar->clandbId; $clanwarsEnemyName = $clanwar->clandbName; //Template laden echo ecTemplate('clanwars', 'manage', 'clanwarsData'); } echo ecTemplate('clanwars', 'manage', 'clanwarsFoot'); $options = ''; //Games auslesen $ecGamesData = dbSelect('*', 1, 'games'); while ($games = mysql_fetch_object($ecGamesData)) { $value = $games->gamesId; $description = $games->gamesName; $options .= ecTemplate('clanwars', 'manage', 'select'); } //Erlaubnisfelder //Erlaubnisfelddaten auslesen $commentPermission = $ecSettings['clanwars']['commentPersmission'] == 1 ? 'checked="checked"' : ''; //UploadTypen auslesen $pics = $ecSettings['clanwars']['pics'] == 1 ? 'checked="checked"' : ''; $archives = $ecSettings['clanwars']['archives'] == 1 ? 'checked="checked"' : ''; //Erlaubnisfeld Template laden echo ecTemplate('clanwars', 'manage', 'clanwarsAccess'); if (ecGetAccessLevel('clanwars', 'upload')) { echo ecTemplate('clanwars', 'manage', 'clanwarsAccessUpload'); } echo ecTemplate('clanwars', 'manage', 'siteFoot'); }