source: temp/test-xoops.ec-cube.net/html/modules/mylinks/myheader.php @ 405

Revision 405, 5.0 KB checked in by root, 20 years ago (diff)
Line 
1<?php
2// $Id: myheader.php,v 1.6 2006/05/01 02:37:28 onokazu Exp $
3//  ------------------------------------------------------------------------ //
4//                XOOPS - PHP Content Management System                      //
5//                    Copyright (c) 2000 XOOPS.org                           //
6//                       <http://www.xoops.org/>                             //
7//  ------------------------------------------------------------------------ //
8//  This program is free software; you can redistribute it and/or modify     //
9//  it under the terms of the GNU General Public License as published by     //
10//  the Free Software Foundation; either version 2 of the License, or        //
11//  (at your option) any later version.                                      //
12//                                                                           //
13//  You may not change or alter any portion of this comment or credits       //
14//  of supporting developers from this source code or any supporting         //
15//  source code which is considered copyrighted (c) material of the          //
16//  original comment or credit authors.                                      //
17//                                                                           //
18//  This program is distributed in the hope that it will be useful,          //
19//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
20//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
21//  GNU General Public License for more details.                             //
22//                                                                           //
23//  You should have received a copy of the GNU General Public License        //
24//  along with this program; if not, write to the Free Software              //
25//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
26//  ------------------------------------------------------------------------ //
27/////////////////////////////////////////////////////////////
28// Title    : Frame Branding Hack for Xoops Mylinks        //
29// Author   : Freeop                                       //
30// Email    : [email protected]                  //
31// Website  : http://www.Belizecountry.com                 //
32// System   : Xoops RC 3.0.4 / 3.0.5             10-14-02  //
33// Filename : myheader.php                                 //
34// Type     : Module Hack for MyLinks                      //
35/////////////////////////////////////////////////////////////
36
37// Code below uses users current selected theme style      //
38
39include "../../mainfile.php";
40$url = htmlspecialchars(preg_replace( '/javascript:/si' , 'java script:', $_GET['url'] ));
41$lid = intval($_GET['lid']);
42$cid = intval($_GET['cid']);
43echo"<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>";
44$mail_subject = rawurlencode(sprintf(_MD_INTRESTLINK,$xoopsConfig['sitename']));
45$mail_body = rawurlencode(sprintf(_MD_INTLINKFOUND,$xoopsConfig['sitename']).':  '.XOOPS_URL.'/modules/mylinks/singlelink.php?cid='.$cid.'&lid='.$lid);
46?>
47
48</head><body>
49<table width="100%" border="0" cellspacing="0" cellpadding="0">
50<tr>
51<td width="150"><a href="<?php echo XOOPS_URL; ?>" target="_BLANK"><img src="<?php echo XOOPS_URL; ?>/images/logo.gif" alt="" /></a>
52<td width="100%" align="center">
53<table class="bg3" width=95% cellspacing="2" cellpadding="3" border="0" style="border: #e0e0e0 1px solid;"><tr>
54<td style="border-bottom: #e0e0e0 1px solid;">
55<b><?php echo htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES); ?></b></td>
56</tr>
57<tr>
58<td class='bg4' align="center"><small>
59<a target="main" href="ratelink.php?cid=<?php echo $cid; ?>&amp;lid=<?php echo $lid; ?>"><?php echo _MD_RATETHISSITE; ?></a> | <a target="main" href="modlink.php?lid=<?php echo $lid; ?>"><?php echo _MD_MODIFY; ?></a> | <a target="main" href="brokenlink.php?lid=<?php echo $lid; ?>"><?php echo _MD_REPORTBROKEN; ?></a> | <a target='_top' href='mailto:?subject=<?php echo $mail_subject; ?>&amp;body=<?php echo $mail_body;?>'><?php echo _MD_TELLAFRIEND; ?></a> | <a target='_top' href="<?php echo XOOPS_URL; ?>">Back to <?php echo htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES); ?></a> | <a target='_top' href="<?php echo $url; ?>">Close Frame</a>
60</small></td></tr></table>
61</td></tr></table></body></html>
Note: See TracBrowser for help on using the repository browser.