XoopsModules25x /
mylinks
| 1 | <?php |
||
| 2 | /* |
||
| 3 | * You may not change or alter any portion of this comment or credits |
||
| 4 | * of supporting developers from this source code or any supporting source code |
||
| 5 | * which is considered copyrighted (c) material of the original comment or credit authors. |
||
| 6 | * |
||
| 7 | * This program is distributed in the hope that it will be useful, |
||
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
||
| 10 | */ |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @copyright {@link https://xoops.org/ XOOPS Project} |
||
| 14 | * @license {@link https://www.gnu.org/licenses/gpl-2.0.html GNU GPL 2 or later} |
||
| 15 | * @package |
||
| 16 | * @since |
||
| 17 | * @author XOOPS Development Team |
||
| 18 | */ |
||
| 19 | |||
| 20 | ///////////////////////////////////////////////////////////// |
||
| 21 | // Title : Frame Branding Hack for Xoops Mylinks // |
||
| 22 | // Author : Freeop // |
||
| 23 | // Email : [email protected] // |
||
| 24 | // Website : http://www.Belizecountry.com // |
||
| 25 | // System : Xoops RC 3.0.4 / 3.0.5 10-14-02 // |
||
| 26 | // Filename: myheader.php // |
||
| 27 | // Type : Module Hack for MyLinks // |
||
| 28 | ///////////////////////////////////////////////////////////// |
||
| 29 | |||
| 30 | // Code below uses users current selected theme style // |
||
| 31 | |||
| 32 | use XoopsModules\Mylinks; |
||
| 33 | |||
| 34 | require_once __DIR__ . '/header.php'; |
||
| 35 | $url = htmlspecialchars(preg_replace('/javascript:/si', 'java script:', $_GET['url']), ENT_QUOTES | ENT_HTML5); |
||
| 36 | //xoops_load('utility', $xoopsModule->getVar('dirname')); |
||
| 37 | |||
| 38 | $lid = Mylinks\Utility::cleanVars($_GET, 'lid', 0, 'int', ['min' => 0]); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 39 | $cid = Mylinks\Utility::cleanVars($_GET, 'cid', 0, 'int', ['min' => 0]); |
||
| 40 | |||
| 41 | echo '<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>'; |
||
| 42 | $mail_subject = rawurlencode(sprintf(_MD_MYLINKS_INTRESTLINK, $xoopsConfig['sitename'])); |
||
| 43 | $mail_body = rawurlencode(sprintf(_MD_MYLINKS_INTLINKFOUND, $xoopsConfig['sitename']) . ': ' . XOOPSMYLINKURL . "/singlelink.php?cid={$cid}&lid={$lid}"); |
||
| 44 | |||
| 45 | echo '</head><body>' |
||
| 46 | . "<table style='width: 100%; border-width: 0px; margin:0px; padding: 0px;'>\n" |
||
| 47 | . " <tr>\n" |
||
| 48 | . " <td style='width: 150px;'><a href='" |
||
| 49 | . XOOPS_URL |
||
| 50 | . "' target='_blank'><img src='" |
||
| 51 | . XOOPS_URL |
||
| 52 | . "/images/logo.gif' alt=''></a></td>\n" |
||
| 53 | . " <td style='width: 100%; text-align: center;'>\n" |
||
| 54 | . " <table class='bg3' style='width: 95%; margin: 2px; padding: 3px; border-width: 0px; border: #e0e0e0 1px solid;'>\n" |
||
| 55 | . " <tr>\n" |
||
| 56 | . " <td style='border-bottom: #e0e0e0 1px solid;'>\n" |
||
| 57 | . ' <strong>' |
||
| 58 | . htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES) |
||
| 59 | . "</strong>\n" |
||
| 60 | . " </td>\n" |
||
| 61 | . " </tr>\n" |
||
| 62 | . " <tr>\n" |
||
| 63 | . " <td class='bg4' style='text-align: center font-size: small;'>\n" |
||
| 64 | . " <a target='main' href='ratelink.php?cid={$cid}&lid={$lid}'>" |
||
| 65 | . _MD_MYLINKS_RATETHISSITE |
||
| 66 | . "</a> | \n" |
||
| 67 | . " <a target='main' href='modlink.php?lid={$lid}'>" |
||
| 68 | . _MD_MYLINKS_MODIFY |
||
| 69 | . "</a> | \n" |
||
| 70 | . " <a target='main' href='brokenlink.php?lid={$lid}'>" |
||
| 71 | . _MD_MYLINKS_REPORTBROKEN |
||
| 72 | . "</a> | \n" |
||
| 73 | . " <a target='_top' href='mailto:?subject={$mail_subject}&body={$mail_body}'>" |
||
| 74 | . _MD_MYLINKS_TELLAFRIEND |
||
| 75 | . '</a> | ' |
||
| 76 | . " <a target='_top' href='" |
||
| 77 | . XOOPS_URL |
||
| 78 | . "'>" |
||
| 79 | . _MD_MYLINKS_BACKTO |
||
| 80 | . htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES) |
||
| 81 | . '</a> | ' |
||
| 82 | . " <a target='_top' href='{$url}'>" |
||
| 83 | . _MD_MYLINKS_CLOSEFRAME |
||
| 84 | . "</a>\n" |
||
| 85 | . " </td>\n" |
||
| 86 | . " </tr>\n" |
||
| 87 | . " </table>\n" |
||
| 88 | . " </td>\n" |
||
| 89 | . " </tr>\n" |
||
| 90 | . "</table>\n" |
||
| 91 | . "</body></html>\n"; |
||
| 92 |