# Slashdot?
#
# This file is part of Gnuheter.
# See the file README for copyright notice.
#
# This program 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.
#
# This program 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.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
# 02111-1307 USA.
#
# $Id: theme.php,v 1.1 2002/11/07 14:09:07 pawal Exp $
$bgcolor1 = "#FFFFFF";
$bgcolor2 = "#660000";
$bgcolor3 = "#e6e6e6";
$textcolor1 = "#FFFFFF";
$textcolor2 = "#000000";
define(_THEME_ARTICLE_LINE1,'
|
');
define(_THEME_ARTICLE_LINE2,' |
');
function themepreview($title, $hometext, $bodytext="", $notes="") {
themearticle(0,0,0,$title,$hometext."
".$bodytext."
".$notes,0,"Dagbok","diary.png","Dagbok");
}
function theme_format_aid($aid) {
$holder = mysql_query("SELECT url, email FROM authors where aid='$aid'");
list($url, $email) = @mysql_fetch_row($holder);
if (isset($url)) {
$header = "$aid";
} elseif (isset($email)) {
$header = "$aid";
} else {
#$header = $aid;
$header = "$aid";
}
return $header;
}
function theme_article_title($title) { ?>
}
function theme_article_header($header) { ?>
|
}
function theme_article_content($content) { ?>
|
}
function theme_article_footer($footer) { ?>
}
function themeindex ($aid, $informant, $datetime, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $tipath, $anonymous;
if ("$aid" == "$informant") {
theme_article_title($title);
echo "\n";
$header = "Postad av ".theme_format_aid($aid)." den $datetime $timezone";
theme_article_header($header);
echo _THEME_ARTICLE_LINE1;
if ($topic) $content = "\n";
else $content = "\n";
$content.= "$thetext\n$notes\n";
theme_article_content($content);
echo _THEME_ARTICLE_LINE2;
echo "
\n";
theme_article_footer($morelink);
} else {
if (!@$informant) $informant = "Anonym";
else $informant = "$informant";
theme_article_title($title);
echo "\n";
$header = "Postad av ".theme_format_aid($aid)." den $datetime $timezone";
$header .= "
\n Insänt av $informant";
theme_article_header($header);
echo _THEME_ARTICLE_LINE1;
if ($topic) $content = "\n";
else $content = "\n";
$content.= "$thetext\n$notes\n";
theme_article_content($content);
echo _THEME_ARTICLE_LINE2;
echo "
\n";
theme_article_footer($morelink);
}
echo "
\n";
}
function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath;
if ("$aid" == "$informant") {
theme_article_title($title);
echo "\n";
$header = "Postad av ".theme_format_aid($aid)." den $datetime $timezone";
if ($admin and $sid) {
$header .= " [Redigera | Radera]\n";
}
theme_article_header($header);
echo _THEME_ARTICLE_LINE1;
if ($topic) $content = "\n";
else $content = "\n";
$content.= "$thetext\n";
theme_article_content($content);
echo _THEME_ARTICLE_LINE2;
echo "
\n";
} else {
if($informant != "") $boxstuff = "$informant ";
else $boxstuff = "$anonymous ";
$boxstuff .= "skriver \"$thetext\" $notes";
theme_article_title($title);
echo "\n";
$header = "Postad av ".theme_format_aid($aid)." den $datetime $timezone";
if ($admin and $sid) {
$header .= " [Redigera | Radera]\n";
}
$header .= "
\nInsänt av $informant";
theme_article_header($header);
echo _THEME_ARTICLE_LINE1;
if ($topic) $content = "\n";
else $content = "\n";
$content.= "$thetext\n";
theme_article_content($content);
echo _THEME_ARTICLE_LINE2;
echo "
\n";
}
}
function themesidebox($title, $content) { ?>
}
?>