Ecchiloqquà
<?
/*
+--------------------------------------------------------------------------
| MkPortal "Forum" Portal Template
| ========================================
| by Meo aka Luponero <Amedeo de longis>
| visiblesoul <Don K. Colburn>
| (c) 2004-2005 mkportal.it
| http://www.mkportal.it
| Email: [email][email protected][/email]
|
+---------------------------------------------------------------------------
|
| > MKPortal
| > Written By Amedeo de longis
| > Date started: 9.2.2004
|
+--------------------------------------------------------------------------
*/
class tpl_main {
function view_header($title, $css, $js, $pmk_js, $board_header) {
global $mklib, $mklib_board;
$css = $mklib_board->import_css();
return <<<EOF
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link rel="icon" type="image/ico" href="favicon.ico">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="KEYWORDS" content="akashahost,gameserver,rent,hosting,web,host,siti,server di gioco,server dedicati,php,mysql,multiplayer,clan hosting,game hosting,web hosting,counterstrike,battlefield,call of duty,america's army" />
<META NAME="DESCRIPTION" CONTENT="Hosting di siti web e server di gioco su connettività italiana, piani hosting personalizzati e spazio web di varie dimensioni">
<META NAME="GOOGLEBOT" CONTENT="NOARCHIVE">
<META NAME="GOOGLEBOT" CONTENT="NOSNIPPET">
{$title}
{$css}
{$board_header}
<script type="text/javascript" src="{$js}"></script>
{$pmk_js}
</head>
<body onload="javascript:GetPos()">
EOF;
}
function open_main($mainwidth) {
global $mklib;
return <<<EOF
<div id="mkwrapper" style="width: {$mainwidth};">
<table class="tabmain" width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
EOF;
}
function view_logo() {
global $mklib;
return <<<EOF
<tr>
<td id="mklogostrip" width="100%">
[url="$mklib->siteurl/index.php"]![image]($mklib->images/logo.gif)
</td>
</tr>
EOF;
}
function view_linkbar($row_link) {
global $mklib, $mkportals;
return <<<EOF
<tr>
<td>
<table width="100%" align="center" cellspacing="0" cellpadding="2" border="0">
<tr>
<td class="navigatore" style="padding: 4px;">
$row_link
</td>
</tr>
</table>
</td>
</tr>
EOF;
}
function view_urlo($urlo1, $urlo2) {
global $mklib;
return <<<EOF
<tr align="left">
<td>
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="urlo" width="100%" valign="bottom" nowrap="nowrap">
{$mklib->lang['urlolast']} - $urlo1
</td>
</tr>
<tr>
<td class="urlo2" colspan="2">$urlo2
</td>
</tr>
</table>
</td>
</tr>
EOF;
}
function view_separator_h() {
global $mklib;
return <<<EOF
<!-- separatore orizzontale
<tr align="center">
<td class="trattini">![image]($mklib->images/punto_or.gif)
</td>
</tr> -->
EOF;
}
function open_body() {
global $mklib;
return <<<EOF
<tr align="center">
<td width="100%">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
EOF;
}
function view_column_left($blocks) {
global $mklib;
return <<<EOF
<td id="menusx" valign="top" align="left">
<div id="menucontents" style="$mklib->menucontents">
<div style="text-align:right;">[url="javascript:ColumnClose('menusx');MemoPos('MKmenusx', '1');"]![image]($mklib->images/f2.gif)</div>
<table cellpadding="0" cellspacing="2" border="0" style="width: {$mklib->columnwidth}px;">
{$blocks}
</table>
</div>
<div id="menucloseds" style="$mklib->menucloseds">
<div style="text-align:right;">[url="javascript:ColumnOpen('menusx');MemoPos('MKmenusx', '0');"]![image]($mklib->images/f1.gif)</div>
</div>
</td>
EOF;
}
function view_separator_v() {
global $mklib;
return <<<EOF
<td class="vspacer" width="0%" align="left"></td>
EOF;
}
function view_column_center($blocks) {
global $mklib;
return <<<EOF
<td valign="top" align="left" width="100%">
<table cellpadding="0" cellspacing="3" border="0" width="100%">
{$blocks}
</table>
</td>
EOF;
}
function view_column_right($blocks) {
global $mklib;
return <<<EOF
<td id="menudx" valign="top" align="left">
<div id="menucontentr" style="$mklib->menucontentr">
<div style="text-align:left;">[url="javascript:ColumnClose('menudx');MemoPos('MKmenudx', '1')"]![image]($mklib->images/f1.gif)</div>
<table cellpadding="0" cellspacing="2" border="0" style="width: {$mklib->columnwidth}px;">
{$blocks}
</table>
</div>
<div id="menuclosedr" style="$mklib->menuclosedr">
<div style="text-align:left;">[url="javascript:ColumnOpen('menudx');MemoPos('MKmenudx', '0')"]![image]($mklib->images/f2.gif)</div>
</div>
</td>
EOF;
}
function close_body() {
global $mklib;
return <<<EOF
</tr>
</table>
</td>
</tr>
EOF;
}
function close_main() {
global $mklib;
return <<<EOF
</table>
</td>
</tr>
</table>
</div>
EOF;
}
function view_footer($block) {
global $mklib;
return <<<EOF
Akashahost® è un'idea di witchlord, tutti i loghi grafici by Ronin</br>
<p align="center">{$block}</p>
</body>
</html>
EOF;
}
function view_block($title, $content) {
global $mklib;
return <<<EOF
<tr>
<td class="tablemenu" valign="top">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<table border="0" cellpadding="4" cellspacing="0" width="100%">
<tr>
<td width="100%" class="sottotitolo" valign="middle" nowrap="nowrap">{$title}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%">
<table border="0" width="100%" cellpadding="0" cellspacing="1">
{$content}
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="tdspacer"></td>
</tr>
EOF;
}
function row_link( $icon, $url, $text) {
global $mklib;
return <<<EOF
![image]($icon)<a class="uno" $url>$text</a>
EOF;
}
function view_quote($content, $author) {
global $mklib;
return <<<EOF
<table class="mkquotetable" style="margin-top: 5px; margin-bottom: 5px; width: auto;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="bottom">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="26">![image]($mklib->images/quote/mkquote_balloon_l.gif)</td>
<td style="background-image: url($mklib->images/quote/mkquote_balloon_bg.gif); background-position: center; padding-bottom: 3px;" valign="middle" nowrap="nowrap">
<span class="mkquoteball">**{$mklib->lang['editor_quote']}** $author</span>
</td>
<td valign="top">![image]($mklib->images/quote/mkquote_balloon_r.gif)</td>
</tr>
</table>
</td>
<td align="right" valign="bottom" width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="background-image: url($mklib->images/quote/mkquote_top_bg.gif);" valign="middle" width="100%"></td>
<td align="left" valign="top">![image]($mklib->images/quote/mkquote_top_r.gif)</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="background-image: url($mklib->images/quote/mkquote_left_bg.gif);" width="13"></td>
<td class="mkquotetext" bgcolor="#ffffff" valign="top" width="100%">
*$content*
</td>
<td style="background-image: url($mklib->images/quote/mkquote_right_bg.gif);" width="13"></td>
</tr>
<tr>
<td valign="bottom" height="9" width="13">![image]($mklib->images/quote/mkquote_bot_l.gif)</td>
<td style="background-image: url($mklib->images/quote/mkquote_bot_bg.gif);" width="100%"></td>
<td valign="bottom" height="9" width="13">![image]($mklib->images/quote/mkquote_bot_r.gif)</td>
</tr>
</table>
</td>
</tr>
</table>
EOF;
}
}
$Skin = new tpl_main;
?>
...e per completezza ti appiccico anche l'index e non se ne parla più
<?
/*
+--------------------------------------------------------------------------
| MkPortal
| ========================================
| by Meo aka Luponero <Amedeo de longis>
|
| (c) 2004 mkportal.it
| http://www.mkportal.it
| Email: [email][email protected][/email]
|
+---------------------------------------------------------------------------
|
| > MKPortal
| > Written By Amedeo de longis
| > Date started: 9.2.2004
|
+--------------------------------------------------------------------------
*/
define ( 'IN_MKP', 1 );
$MK_PATH = "./";
require $MK_PATH."mkportal/conf_mk.php";
switch($MK_BOARD) {
case 'IPB':
$driverf = "ipb_driverf.php";
$board_functions = "ipb_board_functions.php";
break;
case 'PHPBB':
$driverf = "php_driverf.php";
$board_functions = "php_board_functions.php";
break;
case 'VB':
$driverf = "vb_driverf.php";
$board_functions = "vb_board_functions.php";
break;
case 'OXY':
$driverf = "oxy_driverf.php";
$board_functions = "oxy_board_functions.php";
break;
case 'IPB13':
$driverf = "ipb13_driverf.php";
$board_functions = "ipb13_board_functions.php";
break;
default:
$driverf = "smf_driverf.php";
$board_functions = "smf_board_functions.php";
break;
}
require $MK_PATH."mkportal/include/$driverf";
require $MK_PATH."mkportal/include/functions.php";
require $MK_PATH."mkportal/include/$board_functions";
require "$mklib->template/tpl_main.php";
$mkportals->input = $mklib->mkp_input();
if($MK_OFFLINE && !$mkportals->member['g_access_cp'] && !$mklib->member['g_access_cpa']) {
$message = $mklib->lang['offline'];
$mklib->off_line_page($message);
exit;
}
$switch = array('blog' => "blog",
'chat' => "chat",
'contents' => "contents",
'downloads' => "downloads",
'gallery' => "gallery",
'news' => "news",
'quote' => "quote",
'reviews' => "reviews",
'search' => "search",
'topsite' => "topsite",
'urlobox' => "urlobox",
'meteo' => "meteo",
'staff' => "staff",
'xebook' => "xebook"
);
if (!isset($switch[$mkportals->input['ind']])) {
$mkportals->input['ind'] = "contents";
}
if (!$mklib->disablegzip) {
ob_end_clean();
@ob_start('ob_gzhandler');
}
require "./mkportal/modules/{$switch[$mkportals->input['ind']]}/index.php";
?>