daveone napisał/a:
Dziękuje. Zaraz spróbuje.
Wiadomość doklejona:
Niestety nic to nie dało . :(
Dalej wyrzuca błędy:
Notice: Undefined variable: rodwa in /themes/templates/header.php on line 27
Notice: Use of undefined constant START_PAGE - assumed 'START_PAGE' in /themes/templates/header.php on line 28
Notice: Use of undefined constant START_PAGE - assumed 'START_PAGE' in /themes/templates/header.php on line 43
Pliki edytowałem następująco:
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2010 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: header.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
require_once INCLUDES."output_handling_include.php";
require_once INCLUDES."header_includes.php";
$strony = array(
"viewpage.php?page_id=8",
"viewpage.php?page_id=21"
);
$folder_innego_theme = "rodwa";
define("THEME2", THEMES.$rodwa."/");
if (!in_array(START_PAGE, $strony)) {
require_once THEME."theme.php";
} else {
require_once THEME2."theme.php";
}
if ($settings['maintenance'] == "1" && ((iMEMBER && $settings['maintenance_level'] == "1" && $userdata['user_id'] != "1") || ($settings['maintenance_level'] > $userdata['user_level']))) { redirect(BASEDIR."maintenance.php"); }
if (iMEMBER) { $result = dbquery("UPDATE ".DB_USERS." SET user_lastvisit='".time()."', user_ip='".USER_IP."' WHERE user_id='".$userdata['user_id']."'"); }
echo "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\n";
echo "<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='".$locale['xml_lang']."' lang='".$locale['xml_lang']."'>\n";
echo "<head>\n<title>".$settings['sitename']."</title>\n";
echo "<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."' />\n";
echo "<meta name='description' content='".$settings['description']."' />\n";
echo "<meta name='keywords' content='".$settings['keywords']."' />\n";
echo "<link rel='stylesheet' href='".(in_array(START_PAGE, $strony) ? THEME2 : THEME)."styles.css' type='text/css' media='screen' />\n";
if (file_exists(IMAGES."favicon.ico")) { echo "<link rel='shortcut icon' href='".IMAGES."favicon.ico' type='image/x-icon' />\n"; }
if (function_exists("get_head_tags")) { echo get_head_tags(); }
echo "<script type='text/javascript' src='".INCLUDES."jscript.js'></script>\n";
echo "<script type='text/javascript' src='".INCLUDES."jquery.js'></script>\n";
echo "</head>\n<body>\n";
require_once THEMES."templates/panels.php";
ob_start();
?>
Bardzo proszę o pomoc . :(
// Błędy podajemy w code. - Drecha
header.php po
if (!defined("IN_FUSION")) { die("Access Denied"); }
Dodaj
$script_url = explode("/", $_SERVER['PHP_SELF'].(FUSION_QUERY ? "?".FUSION_QUERY : ""));
$url_count = count($script_url);
$base_url_count = substr_count(BASEDIR, "/") + 1;
$start_page = "";
while ($base_url_count != 0) {
$current = $url_count - $base_url_count;
$start_page .= "/".$script_url[$current];
$base_url_count--;
}
define("START_PAGE1", substr(preg_replace("#(&|\?)(s_action=edit&shout_id=)([0-9]+)#s", "", $start_page), 1));
$strony = array(
"viewpage.php?page_id=8",
"viewpage.php?page_id=21"
);
$folder_innego_theme = "rodwa";
define("THEME2", THEMES.$folder_innego_theme."/");
if (!in_array(START_PAGE1, $strony)) {
require_once THEME."theme.php";
} else {
require_once THEME2."theme.php";
}
Edytowane przez kefirek dnia 05.02.2011 19:30:09
|