<?php
// $Id: myheader.php,v 1.4 2005/10/28 11:56:02 ohwada Exp $

// 2005-09-04 K.OHWADA
// BUG 2932: dont work correctly when register_long_arrays = off

// 2004-11-28 K.OHWADA
// write fair, delete unnecessary comments

// 2004/08/10 K.OHWADA
// enable to install this module two or more. 
// convert EUC-JP to SJIS at telafriend

/////////////////////////////////////////////////////////////
// Title    : Frame Branding Hack for Xoops Mylinks        //
// Author   : Freeop                                       //
// Email    : Webmaster@belizecountry.com                  //
// Website  : http://www.Belizecountry.com                 //
// System   : Xoops RC 3.0.4 / 3.0.5             10-14-02  //
// Filename : myheader.php                                 //
// Type     : Module Hack for MyLinks                      //
/////////////////////////////////////////////////////////////

//================================================================
// Frame Branding
// use class weblinksLink
// 2004/01/14 K.OHWADA
//================================================================

include "header.php";

// BUG 2932: dont work correctly when register_long_arrays = off
$lid = intval( $_GET['lid'] );

$url = $tbl_link->getSaniUrlByLid($lid);

// jump this site, if no url
if ( empty($url) )
{
	redirect_header(XOOPS_URL, 3, _WLS_NOMATCH);
}

$tbl_link->getRowByLid($lid);
list($mail_subject, $mail_body) = $tbl_link->makeMail($lid);

$sitename = $xoopsConfig['sitename'];

?>
<html><head>
<style><!--
.bg1 { background-color : #E3E4E0;}
.bg2 { background-color : #e5e5e5;}
.bg3 { background-color : #f6f6f6;}
.bg4 { background-color : #f0f0f0;}
.bg5 { background-color : f8f8f8;}
body { margin-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;font-family: Tahoma, taipei; color;#000000; font-size: 10px; background-color : #2F5376; color: #ffffff;}
a {  font-weight: bold;font-family: Tahoma, taipei; font-size: 10px; text-decoration: none; color: #666666; font-style: normal}
A:hover {  font-weight: bold;text-decoration: underline;  font-family: Tahoma, taipei; font-size: 10px; color: #FF9966; font-style: normal}
td {  font-family: Tahoma, taipei; color: #000000; font-size: 10px;border-top-width : 1px; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px;}
img { border:0;}
//--></style>";
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="150">
<a href="<? echo XOOPS_URL; ?>" target="_BLANK">
<img src="<? echo XOOPS_URL; ?>/images/logo.gif" alt="" /></a>
<td width="100%" align="center">
<table class="bg3" width=95% cellspacing="2" cellpadding="3" border="0" style="border: #e0e0e0 1px solid;"><tr>
<td style="border-bottom: #e0e0e0 1px solid;">
<b><? echo $sitename; ?></b></td>
</tr>
<tr>
<td class="bg4" align="center"><small>
<a target="main" href="<? echo $MODULE_URL; ?>/ratelink.php?lid=<? echo $lid; ?>">
<? echo _WLS_RATETHISSITE; ?></a>
 | <a target="main" href="<? echo $MODULE_URL; ?>/modlink.php?lid=<? echo $lid; ?>">
<? echo _WLS_MODIFY; ?></a>
 | <a target="main" href="<? echo $MODULE_URL; ?>/brokenlink.php?lid=<? echo $lid; ?>">
<? echo _WLS_REPORTBROKEN; ?></a>
 | <a target="_top" href="mailto:?subject=<? echo $mail_subject; ?>&body=<? echo $mail_body;?>">
<? echo _WLS_TELLAFRIEND; ?></a> | 
<a target="_top" href="<? echo XOOPS_URL; ?>">
Back to <? echo $sitename; ?></a>
 | <a target="_top" href="<? echo $url; ?>">Close Frame</a>
</small></td></tr></table>
</td></tr></table>
</body></html>
