theme.php
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#3636ff";
$body_bg = "#000000";
$theme_width = "900";
$theme_width_l = "180";
$theme_width_r = "720";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table border=0 align='center' cellspacing='0' cellpadding='0'
width='$theme_width'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table background='newdown.gif' cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table border=0 cellpadding='0' cellspacing='0' width='100%' height='50' background='end.gif'>
<tr>
<td align='center' class='footer'>".stripslashes($settings['footer'])."\n";
echo
showcounter()."
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table border=0 cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo
openform("N",$info['news_id']).newsposter($info,"<br>").newsopts($info,"·
").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table border=0 width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo
openform("A",$info['article_id']).articleposter($info,"<br>").articleopts($info,
"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table border=0 cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table border=0 cellpadding='0' cellspacing='0' width='180'>
<tr>
<td><center><font color=#323478>________________________</font><br><b>$title</b></center></td>
</tr>
<tr>
<td>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table border=0 cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
}
function tablebreak() {
echo "<table border=0 cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td
height='5'></td>\n</tr>\n</table>\n";
}
?>
styles.css
a {
color : #005599;
text-decoration : none;
}
a:hover {
color : #005599;
text-decoration : underline;
}
a.side {
color : #55aaff;
text-decoration : none;
}
a:hover.side {
color : #55aaff;
text-decoration : underline;
}
a.white {
color : #55aaff;
text-decoration : none;
}
a:hover.white {
color : #55aaff;
text-decoration : underline;
}
body {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
margin : 0px;
}
form {
margin : 0px;
}
hr {
height : 1px;
border : 1px solid #eee;
}
hr.side-hr {
height : 1px;
border : 1px solid #666;
}
td {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
pre {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
.alt {
color : #555;
}
.white-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #aaa;
background-color : #333;
border-top : 1px solid #4d4d4d;
border-bottom : 1px solid #000;
padding : 5px;
}
.full-header {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: Lime;
background-color: Yellow;
padding: 5px;
}
.footer {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #aaa;
background-color : transparent;
padding : 5px 0px 0px 200px;
background-image: end.gif;
}
.button {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #000;
background-color : #ddd;
height : 20px;
border : 1px solid #aaa;
margin-top : 2px;
}
.textbox {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #000;
background-color : #eee;
border : 1px solid #bbb;
}
.main-body {
font-size : 11px;
color : #444;
background-color : transparent;
padding : 4px 30px 5px 4px;
}
.side-body {
font-size : 10px;
color : #aaa;
background-color : #444;
padding : 4px;
}
.main-bg {
color: Red;
background-color: transparent;
padding: 5px 40px;
}
.border {
border : 1px solid #eee;
}
.side-border-left {
color: #6C67D3;
background-color: transparent;
padding: 0px 0px 0px 30px;
}
.side-border-right {
color: #aaa;
background-color: Fuchsia;
border-left: 1px solid #ddd;
}
.news-footer {
font-size : 10px;
color : #000;
background-color : #ccc;
border-top : 1px solid #eee;
padding : 3px 4px 4px 4px;
}
.capmain {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
font-weight : bold;
color : #ccc;
background-color : #333;
border-bottom : 1px solid #eee;
padding : 2px 4px 4px 4px;
}
.scapmain {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
font-weight : bold;
color : #999;
background-color : #3a3a3a;
border-top : 1px solid #4d4d4d;
border-bottom : 1px solid #2d2d2d;
padding : 4px;
}
.tbl-border {
color : #000;
background-color : #eee;
}
.tbl {
font-size : 11px;
color : #000;
background-color : #ddd;
padding : 4px;
}
.tbl1 {
font-size : 11px;
color : #000;
background-color : #ddd;
padding : 4px;
}
.tbl2 {
font-size : 11px;
color : #000;
background-color : #ccc;
padding : 4px;
}
.forum-caption {
font-size : 11px;
font-weight : bold;
color : #ccc;
background-color : #333;
padding : 2px 4px 4px 4px;
}
.quote {
font-size : 11px;
color : #000;
background-color : #eee;
padding : 4px;
margin : 0 20px;
border : 1px solid #bbb;
}
.poll {
height : 12px;
border : 1px solid #000;
}
.comment-name {
font-weight : bold;
color : #005599;
}
.shoutboxname {
font-weight : bold;
color : #55aaff;
background-color : #444;
}
.shoutbox {
color : #999;
background-color : #444;
}
.shoutboxdate {
font-size : 9px;
color : #888;
background-color : #444;
}
.small {
font-size : 10px;
font-weight : normal;
}
.small2 {
font-size : 10px;
font-weight : normal;
color : #555;
}
.side-small {
font-size : 10px;
font-weight : normal;
color : #aaa;
background-color : #444;
}
.side-label {
color : #aaa;
background-color : #333;
padding : 2px 2px 3px 2px;
}
.gallery {
padding : 16px 0 8px 0px;
}
.gallery img {
border : 1px solid #ccc;
}
img.activegallery {
border : 1px solid green;
}
subheader.php
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| 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']."'>");
+------------------*/
render_header(parseubb("{flash width=900 height=600}banner.swf[/flash]"));
?>
Teraz przy Flash zmieniłem nawiasy z [ ] na { } bo się wklejał mój flash :] ale normalnie mam w [ ] nawiasach... |