WBCE CMS – Way Better Content Editing.
You are not logged in.
Hallo Zusammen
Irgeneiner unserer Admins hat anscheinend heute unsere Webseite geschrottet
Wenn ich verusche auf die Hompage zu gehen kommt immer Error 404.... Die Index.php wurde heute geändert doch leider finde ich den Fehler nicht
[== PHP ==]
<?php
/**
* $Id: index.php 2 2017-07-02 15:14:29Z Manuela $
* Website Baker template: allcss
* This template is one of four basis templates distributed with Website Baker.
* Feel free to modify or build up on this template.
*
* This file contains the overall template markup and the Website Baker
* template functions to add the contents from the database.
*
* LICENSE: GNU General Public License
*
* @author Ryan Djurovich, C. Sommer
* @copyright GNU General Public License
* @license http://www.gnu.org/licenses/gpl.html
* @version 2.70
* @platform Website Baker 2.7
*
* Website Baker 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 2 of the License, or
* (at your option) any later version.
*
* Website Baker 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.
*/
/* -------------------------------------------------------- */
// Must include code to stop this file being accessed directly
if (!defined('SYSTEM_RUN')) {header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found'); echo '404 File not found'; flush(); exit;}
/* -------------------------------------------------------- */
ob_start(); //fetch MainContent
page_content(1);
$page_contentMain = ob_get_clean();
ob_start(); //fetch original header content
page_content(2);
$page_contentTeaser = ob_get_clean();
ob_start(); //fetch original header content
page_content(3);
$page_contentSidebar = ob_get_clean();
$sPageLang = strtolower(isset($wb->page) || ($wb instanceof frontend) ? $wb->page['language'] : 'EN');
$iPageId = (defined('PAGE_ID') ? PAGE_ID : 0);
// TEMPLATE CODE STARTS BELOW
?><!DOCTYPE HTML>
<html lang="<?php echo $sPageLang; ?>">
<head>
<meta charset="utf-8" />
<title><?php page_title('', '[WEBSITE_TITLE]'); ?></title>
<meta name="description" content="<?php page_description(); ?>" />
<meta name="keywords" content="<?php page_keywords(); ?>" />
<meta name="robots" content="noodp" />
<meta name="referrer" content="same-origin" />
<!-- Mobile viewport optimisation -->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/css/3/w3.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/css/screen.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/css/CookieNotice.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/css/print.css" media="print" />
<link rel="canonical" href="[wblink<?php echo $iPageId;?>]"/>
<link rel="shortcut icon" href="<?php echo TEMPLATE_DIR; ?>/images/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" href="<?php echo TEMPLATE_DIR; ?>/images/apple-touch-icon.png"/>
<!--
<link rel="alternate" type="application/rss+xml" title="Test RSS-Feed" href="<?php echo WB_URL; ?>/modules/news/rss.php?page_id=??" />
-->
<?php
if (!function_exists('LangPadeId')) {function LangPadeId(){return $iPageId;}}
// to show flags in frontend
$iMultiLang = 0;$sMultiLang = ''; if (function_exists('language_menu')){$sMultiLang = language_menu('png',false); $iMultiLang = intval(!empty($sMultiLang) ? 1 : 0);}
if (function_exists('LangPadeId')&&$iMultiLang) {
?>
<!--
<link rel="alternate" hreflang="x-default" href="[wblink<?php echo LangPadeId($sPageLang);?>]" />
<link rel="alternate" hreflang="de" href="[wblink<?php echo LangPadeId('DE');?>]" />
<link rel="alternate" hreflang="en" href="[wblink<?php echo LangPadeId('EN');?>]" />
-->
<?php
}
// automatically include optional WB module files (frontend.css)
register_frontend_modfiles('css');
// if function LangPadeId doesn't exists, you have to upgrade WBLingual Switcher Add-on to latest version'
// automatically include optional WB module files (frontend.js, jQuery) enable OldModFiles in OutputFilter
register_frontend_modfiles('jquery');?>
<?php register_frontend_modfiles('js'); ?>
<script id="lastjs" src="<?php echo TEMPLATE_DIR; ?>/js/head.js"></script>
</head>
<?php
if (is_readable( WB_PATH.'/modules/wbCounter/count.php' )){ include (WB_PATH.'/modules/wbCounter/count.php'); }
if (!function_exists('wbCounter')){function wbCounter(){return '';}}
if (isset($cookie_permission)) {$cookie_permission();}
?>
<body class="allcssRes gradient-sweet-home">
<div id="allcssRes-wrapper" class="main outer-box ">
<header >
<div class="banner gradient">
<a class="h1" href="<?php echo WB_URL; ?>/" target="_top"><?php page_title('', '[WEBSITE_TITLE]'); ?></a>
<span class="h1">| <?php page_title('', '[PAGE_TITLE]'); ?></span>
</div>
<!-- frontend search -->
<div class="search_box gradient round-top-left round-top-right">
<?php
// CODE FOR WEBSITE BAKER FRONTEND SEARCH
if (SHOW_SEARCH) { ?>
<form id="search" action="<?php echo WB_URL; ?>/search/index.php" method="get" >
<input type="hidden" name="referrer" value="<?php echo defined('REFERRER_ID') ? REFERRER_ID : $iPageId; ?>" />
<input type="text" name="string" class="search_string" />
<input type="submit" name="wb_search" id="wb_search" value="<?php echo $TEXT['SEARCH']; ?>" class="search_submit" />
</form>
<?php } ?>
</div>
</header>
<?php if(trim($page_contentTeaser)!=''){ ?>
<div class="teaser">
<div class="content">
<?php echo $page_contentTeaser; ?>
</div><!-- content -->
</div><!-- teaser -->
<?php } ?>
<input type="checkbox" id="open-menu" />
<label for="open-menu" class="open-menu-label">
<span class="title h4"> <?php page_title('', '[PAGE_TITLE]'); ?></span>
<span class="fa fa-bars" aria-hidden="true"> </span>
</label>
<div id="lang" style="height: 2.925em;">
<?php if(trim($sMultiLang)!=''){ ?>
<?php echo $sMultiLang; ?>
<?php } ?>
</div>
<div id="left-col">
<div class="content">
<!-- main navigation menu -->
[[iEditThisPage?show=1]]
<nav class="outer-box gradient-sweet-home">
<div class="menu" style="font-size: 86%;">
<?php
echo show_menu2(SM2_ALLMENU, SM2_ROOT+$iMultiLang, SM2_CURR+1, SM2_TRIM|SM2_BUFFER|SM2_PRETTY|SM2_NUMCLASS|SM2_SHOWHIDDEN,'<li><span class="menu-default">[ac][menu_title]</a></span>','</li>','<ul>','</ul>');
?>
</div>
</nav>
<?php if(trim($page_contentSidebar)!=''){ ?>
<div class="left-content outer-box gradient-sweet-home">
<?php echo $page_contentSidebar; ?>
</div>
<?php } ?>
<?php if (defined('FRONTEND_LOGIN') && FRONTEND_LOGIN){ ?>
<div class="outer-box gradient-sweet-home">
[[LoginBox]]
</div>
<?php } ?>
<?php $sCounter = ''; if (function_exists('wbCounter')){ $sCounter = wbCounter();}?>
<?php if ($sCounter){ ?>
<div class="outer-box gradient-sweet-home">
<?php echo $sCounter;?>
</div>
<?php } ?>
</div><!-- content -->
</div><!-- left-col -->
<div class="main-content">
<?php echo $page_contentMain; ?>
</div>
<footer>
<div class="footer">
<?php page_footer(); ?>
</div>
</footer>
</div>
<div class="powered_by">
Powered by <a href="http://websitebaker.org" target="_blank" rel="noopener" >WebsiteBaker</a>
</div>
<?php
// if you want to include jquery before body end,
#register_frontend_modfiles_body('jquery');
// automatically include optional WB module file frontend_body.js) should be always set
register_frontend_modfiles_body('js');
?>
<script id="lastjs" src="<?php echo TEMPLATE_DIR; ?>/js/body.js"></script>
</body>
</html>
Könnt ihr mir hier helfen. Die Homepage ist von unserem Verein www.tsvjesenwang.de
Offline
So ich glaube das ich langsam schlauer werde... jemand hat die normal index.php mit einer Template index.php überschrieben....
Gibt es was einfaches was ich tun kann?
Offline
OK ich hab jetzt ein Upgrade auf die neueste Version gemacht und schon ging soweit wieder alles.... Was lernen wir daraus... Als erstes mal ein Backup machen...
Trotzdem schönen abend!
Offline
Deine Seite läuft mit WebsiteBaker, nicht mit WBCE CMS.
Last edited by florian (14.01.2022 08:26:01)
Code allein macht nicht glücklich. Jetzt spenden!
Offline
Pages: 1