Parašė MekaniK· 2008 Lap. 10 19:11:46
#1
Sveiki. Man iskilo viena beda. Susikuriau tema ir imeciau i
ftp. Kai nustaciau tema puslapyje ismete error'a:
Fatal error: require_once() [function.require]: Failed opening required 'themes/Party/theme.php' (include_path='.:') in /home/xetti/pr.xz.lt/new/subheader.php on line 14
Noreciau suzinoti kame reples.
Va subheader.php ir theme.php jei reikia:
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fu...
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: index.php"); exit; }
require_once THEME."theme.php";
if ($settings['maintenance'] == "1" && !iADMIN) fallback(BASEDIR."maintenance.php");
if (iMEMBER) $result = dbquery("UPDATE ".$db_prefix."users SET user_lastvisit='".time()."', user_ip='".USER_IP."' WHERE user_id='".$userdata['user_id']."'");
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<html>
<head>
<title>".$settings['sitename']."</title>
<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."'>
<meta name='description' content='".$settings['description']."'>
<meta name='keywords' content='".$settings['keywords']."'>
<link rel='stylesheet' href='".THEME."styles.css' type='text/css'>
<script type='text/javascript' src='".INCLUDES."jscript.js'></script>
</head>
<body bgcolor='$body_bg' text='$body_text'>\n";
render_header("<img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."'>");
?>
Theme.php
<?
$body_text = "#ffffff";
$body_bg = "#121212";
$theme_width = "987";
$theme_width_l = "217";
$theme_width_r = "217";
function render_header($header_content) {
global $theme_width,$settings,$db_prefix,$locale,$userdata,$aidlink;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"987\" align=\"center\">
<tr>
<td style=\"background-image: url('".THEME."images/v2_02.jpg'); border: 0; height: 41; padding-bottom: 1; padding-left: 5; padding-right: 5; padding-top: 1; width: 977\">
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"977\">
<tr>
<td align=\"left\"><font color=\"#a0ca10\">Sveiki atvyke i <b>PartyRadija</b></font> | ";
if(iGUEST){
echo"<font color=\"#a0ca10\"><img src='".THEME."images/bullet.gif' alt=''><a href='".BASEDIR."register.php'>Registruotis
";
}else{
echo"<font color=\"#a0ca10\"><img src='".THEME."images/bullet.gif' alt=''><a href='".BASEDIR."edit_profile.php' class='side'>Keisti profili</a> <img src='".THEME."images/bullet.gif' alt=''
<a href='".BASEDIR."messages.php' class='side'>Zinutes</a>";
}
echo "
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"987\">
<tr>
<td width=\"693\"><img src=\"".THEME."images/header1.jpg\" width=\"693\" height=\"237\" border=\"0\" alt=\"[Rozmiar: 112731 bajtów]\"></td>
<td style=\"background-image: url('".THEME."images/radijas.jpg'); border: 0; height: 237; padding-bottom: 50; padding-left: 5; padding-right: 5; padding-top: 20; width: 212\">
";
echo "
</td>
<td width=\"82\"><img src=\"".THEME."images/v2_07.jpg\" width=\"82\" height=\"237\" border=\"0\" alt=\"[Rozmiar: 10260 bajtów]\"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width=\"987\">
<img src=\"".THEME."images/v2_08.jpg\" border=\"0\" width=\"987\" height=\"48\" alt=\"\" usemap=\"#menu\" />
<map name=\"menu\">
<area shape=\"circ\" coords=\"64,23,50\" href=\"".BASEDIR."news.php\" />
<area shape=\"circ\" coords=\"175,21,55\" href=\"".BASEDIR."forum/index.php\" />
<area shape=\"circ\" coords=\"299,23,58\" href=\"".BASEDIR."photogallery.php\" />
<area shape=\"circ\" coords=\"415,24,52\" href=\"".BASEDIR."weblinks.php\" />
<area shape=\"circ\" coords=\"531,24,54\" href=\"".BASEDIR."search.php\" />
<area shape=\"circ\" coords=\"652,23,55\" href=\"".BASEDIR."news.php\" />
<area shape=\"circ\" coords=\"772,24,47\" href=\"".BASEDIR."contact.php\" />
<area shape=\"circ\" coords=\"891,23,54\" href=\"".BASEDIR."team2.php\" />
</map>
</td>
</tr>
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"987\">
<tr>
";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "</tr>
<tr>
<td style=\"background-image: url('".THEME."images/v2_25.jpg'); border: 0; height: 55; padding-bottom: 5; padding-left: 10; padding-right: 10; padding-top: 5; width: 987\">
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"950\">
<tr>
<td align=\"left\">Design by <a href=\"skype:moroz-?chat\" target=\"_blank\">MekaniK </a>| Varikliukas : <a href=\"http://php-fusion.co.uk\">Php-Fusion</a></td>
<td align=\"right\">Visos teisės saugomos $copy 2008</td>
</tr>
</table>
</td>
</tr>
</table>";
}
function render_news($subject, $news, $info) {
global $locale,$settings;
echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"550\">
<tr>
<td style=\"background-image: url('".THEME."images/panele.jpg'); border: 0; height: 39; padding-bottom: 6; padding-left: 25; padding-right: 10; padding-top: 5; width: 550\"><b>$subject</b></td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/v2_18.jpg'); border: 0; height: 5; padding-bottom: 5; padding-left: 10; padding-right: 10; padding-top: 5; width: 550\">$news</td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/v2_21.jpg'); border: 0; height: 24; padding-bottom: 2; padding-left: 10; padding-right: 10; padding-top: 5; width: 550\">
<table width=\"100%\"><tr><td>
".$locale['041'].showdate("longdate", $info['news_date'])."</td><td>".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·
".$info['news_reads'].$locale['044']."
</td></tr>
</table>
</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"550\">
<tr>
<td style=\"background-image: url('".THEME."images/panele.jpg'); border: 0; height: 39; padding-bottom: 6; padding-left: 25; padding-right: 10; padding-top: 5; width: 550\"><b>$subject</b></td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/v2_18.jpg'); border: 0; height: 5; padding-bottom: 5; padding-left: 10; padding-right: 10; padding-top: 5; width: 550\">$article</td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/v2_21.jpg'); border: 0; height: 24; padding-bottom: 5; padding-left: 10; padding-right: 10; padding-top: 6; width: 550\"><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."
</td>
<td align='right' class='infobar'>
<a href='articlecomments.php?article_id=".$info['article_id']."'>".$info['article_comments'].$locale['043']."</a> ·
".$info['article_reads'].$locale['044']."
<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a></td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"550\">
<tr>
<td style=\"background-image: url('".THEME."images/panele.jpg'); border: 0; height: 39; padding-bottom: 6; padding-left: 25; padding-right: 10; padding-top: 5; width: 550\"><b>$title</b></td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/v2_18.jpg'); border: 0; height: 5; padding-bottom: 5; padding-left: 10; padding-right: 10; padding-top: 5; width: 550\">\n";
}
function closetable() {
echo "</td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/v2_21.jpg'); border: 0; height: 24; padding-bottom: 5; padding-left: 10; padding-right: 10; padding-top: 6; width: 550\"></td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"218\">
<tr>
<td style=\"background-image: url('".THEME."images/panele.jpg'); border: 0; height: 38; padding-bottom: 5; padding-left: 15; padding-right: 5; padding-top: 5; width: 218\"><b>$title</b></td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/v2_16.jpg'); border: 0; height: 5; padding-bottom: 2; padding-left: 5; padding-right: 5; padding-top: 2; width: 218\">\n";
}
function closeside() {
echo "</td>
</tr>
<tr>
<td><img src=\"".THEME."images/v2_22.jpg\" width=\"218\" height=\"14\" border=\"0\"></td>
</tr>
</table>\n";
tablebreak();
}
function openside2($title) {
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"300\">
<tr>
<td style=\"background-image: url('".THEME."images/panele.jpg'); border: 0; height: 38; padding-bottom: 5; padding-left: 15; padding-right: 5; padding-top: 5; width: 300\"><b>$title</b></td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/v2_16.jpg'); border: 0; height: 5; padding-bottom: 2; padding-left: 5; padding-right: 5; padding-top: 2; width: 300\">\n";
}
function closeside2() {
echo "</td>
</tr>
<tr>
<td><img src=\"".THEME."images/v2_22.jpg\" width=\"300\" height=\"14\" border=\"0\"></td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-top-left'><img src='".THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
<td class='sidi-top-main'>$title</td>
<td align='right' class='sidi-top-main'><img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'></td>
<td class='sidi-top-right'><img src='".THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='side-body'>
<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div>
<td class='sidi-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-dol'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-dos'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-dor'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();
}
function opensidel() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>\n";
}
function closesidel() {
echo "</td>
</tr>
</table>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='0'></td></tr>
</table>\n";
}
?>
Redagavo MekaniK· 2008 Lap. 10 19:11:54