📄 index.php
字号:
<?
/********************************************************************************/
/* Wap-2-Go Mobile Phone Nuke-Addon */
/* bringing the Advanced Content Management System to Mobile Format */
/* =========================================================================== */
/* powered by Nuke SQL Database */
/* */
/* Copyright (c) 2007 by Philip Marsh - http://www.wap2go.co.uk */
/* */
/********************************************************************************/
if ( !defined('MODULE_FILE') )
{
die("You can't access this file directly...");
}
if (isset($min)) {
$min = intval($min);
}
if (isset($show)) {
$show = intval($show);
}
define('INDEX_FILE', true);
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
$pagetitle = "- "._WAP2GO."";
function index() {
global $nukeurl, $sitename, $modulename, $prefix, $db, $cookie;
include("header.php");
$row2 = $db->sql_fetchrow($db->sql_query("SELECT * FROM $prefix"._wap2go_config.""));
$w2g_url = $row2['w2g_url'];
$w2g_sitename = $row2['sitename'];
$row1 = $db->sql_fetchrow($db->sql_query("SELECT * FROM $prefix"._wap2go_module.""));
$moduletitle = $row1['moduletitle'];
$moduletext1 = $row1['moduletext1'];
$moduletext2 = $row1['moduletext2'];
$moduledemotext = $row1['moduledemotext'];
$moduledemowidth = $row1['moduledemowidth']; if ($moduledemowidth=="") { $moduledemowidth="200"; }
$iFramex = $moduledemowidth+30;
$tablex = $iFramex+10;
$moduledemoheight = $row1['moduledemoheight']; if ($moduledemoheight=="") { $moduledemoheight="300"; }
$iFramey = $moduledemoheight;
OpenTable();
echo "<center><font class=\"title\"><b>".$moduletitle."</b></font></center>";
echo "<center><b><a href=\"".$w2g_url."\" title=\"".$w2g_sitename."\">".$w2g_url."</a></b></center>";
CloseTable();
OpenTable();
echo "
<table>
<tr>
<td align=\"center\">
<table width=\"".$tablex."px\">
<tr>
<td style=\"border:1px solid #000; text-align:center; padding: 0; margin: 0;\"><IFRAME align=\"center\" src=\"".$w2g_url."/w2g_modules.php?pixels=".$moduledemowidth."&htm=1\" style=\"width:".$iFramex."px;\" width=\"".$iFramex."px\" height=\"".$iFramey."px\" scrolling=\"AUTO\" frameborder=\"0\">"._NOIFRAMES.", <a href=\"/mobile/w2g_modules.php?pixels=220&htm=1\" title=\"".$sitename." Demo\">"._CLICKFORDEMO."</a></IFRAME></td>
</tr>
<tr>
<td align=\"center\"><b>".$moduledemotext."</b></tr>
</tr>
</table>
</td>
<td align=\"left\">
".$moduletext1."
</td>
</tr>
<tr><td colspan=\"2\">".$moduletext2."</td></td>
</table>";
CloseTable();
// DO NOT REMOVE THE COPYRIGHT NOTICE
OpenTable();
echo "<center>"._W2GCOPYRIGHT."<br/>";
$username = $cookie[1];
echo "<form method=\"post\" target=\"paypal\" action=\"https://www.paypal.com/cgi-bin/webscr\" style=\"margin: 0px; padding: 0px;\">
<input type=\"hidden\" value=\"_xclick\" name=\"cmd\"/>
<input type=\"hidden\" value=\"donate@wap2go.co.uk\" name=\"business\"/>
<input type=\"hidden\" value=\"Donation\" name=\"item_name\"/>
<input type=\"hidden\" value=\"110\" name=\"item_number\"/>
<input type=\"hidden\" value=\"Donator\" name=\"on0\"/>
<input type=\"hidden\" name=\"os0\" value=\"".$sitename." - ".$nukeurl." - ".$username."\"/>
<input type=\"hidden\" value=\"1\" name=\"no_shipping\"/>
<input type=\"hidden\" value=\"GBP\" name=\"currency_code\"/>
<input type=\"hidden\" value=\"Comments\" name=\"cn\"/>
<input type=\"hidden\" value=\"Phil\" name=\"custom\"/>
<input type=\"hidden\" value=\"\" name=\"cancel_return\"/>
<input type=\"hidden\" value=\"\" name=\"return\"/>
<input type=\"hidden\" value=\"http://www.wap2go.co.uk/images/logo.png\" name=\"image_url\"/>
<input type=\"image\" border=\"0\" name=\"I1\" src=\"https://www.paypal.com/en_US/i/btn/x-click-but04.gif\"/>
</form></center>";
CloseTable();
include("footer.php");
}
switch($op) {
// case "":
// break;
// Default (no Op given)
default:
index();
break;
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -