hide the Affiliates link parameter in JS by temporary form

This commit is contained in:
doudoudzj 2018-12-12 16:00:52 +08:00
parent c2c6d74836
commit deab9c38a4
10 changed files with 229 additions and 16 deletions

36
400.html Normal file
View file

@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<title>400 - UIISC</title>
<meta charset="utf-8"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width = device-width, initial-scale = 1.0, minimum-scale = 1.0, maximum-scale = 1.0, user-scalable = no"/>
<meta content="telephone=no,email=no" name="format-detection"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta name="keywords" content="UIISC"/>
<meta name="description" content="UIISC"/>
<style>
body {background-color: #f4f5f5;}
.header, .nav, .content, .footer { padding: 10px; }
.header { border-bottom: 1px solid #ccc; }
.container {min-width: 666px; margin: 100px auto 0 auto; width: 60%; max-width: 800px;}
.content {background-color: #eee; }
.nav, .footer {color: #fff; background-color: #6fb9f5;}
.footer a {color: #fff;}
</style>
</head>
<body>
<div class="container">
<h1 class="header">Bad Request !</h1>
<div class="nav">This is the 400 page.</div>
<div class="content">
<p>The Page You Requested Was Unauthorized ! </p>
</div>
<div class="footer">&copy; 2018 <a href="http://uiisc.com">UIISC</a></div>
</div>
</body>
</html>

36
401.html Normal file
View file

@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<title>401 - UIISC</title>
<meta charset="utf-8"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width = device-width, initial-scale = 1.0, minimum-scale = 1.0, maximum-scale = 1.0, user-scalable = no"/>
<meta content="telephone=no,email=no" name="format-detection"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta name="keywords" content="UIISC"/>
<meta name="description" content="UIISC"/>
<style>
body {background-color: #f4f5f5;}
.header, .nav, .content, .footer { padding: 10px; }
.header { border-bottom: 1px solid #ccc; }
.container {min-width: 666px; margin: 100px auto 0 auto; width: 60%; max-width: 800px;}
.content {background-color: #eee; }
.nav, .footer {color: #fff; background-color: #6fb9f5;}
.footer a {color: #fff;}
</style>
</head>
<body>
<div class="container">
<h1 class="header">Unauthorized !</h1>
<div class="nav">This is the 401 page.</div>
<div class="content">
<p>The Page You Requested Was Unauthorized ! </p>
</div>
<div class="footer">&copy; 2018 <a href="http://uiisc.com">UIISC</a></div>
</div>
</body>
</html>

36
403.html Normal file
View file

@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<title>403 - UIISC</title>
<meta charset="utf-8"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width = device-width, initial-scale = 1.0, minimum-scale = 1.0, maximum-scale = 1.0, user-scalable = no"/>
<meta content="telephone=no,email=no" name="format-detection"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta name="keywords" content="UIISC"/>
<meta name="description" content="UIISC"/>
<style>
body {background-color: #f4f5f5;}
.header, .nav, .content, .footer { padding: 10px; }
.header { border-bottom: 1px solid #ccc; }
.container {min-width: 666px; margin: 100px auto 0 auto; width: 60%; max-width: 800px;}
.content {background-color: #eee; }
.nav, .footer {color: #fff; background-color: #6fb9f5;}
.footer a {color: #fff;}
</style>
</head>
<body>
<div class="container">
<h1 class="header">Forbidden !</h1>
<div class="nav">This is the 403 page.</div>
<div class="content">
<p>The Page You Requested Was Forbidden ! </p>
</div>
<div class="footer">&copy; 2018 <a href="http://uiisc.com">UIISC</a></div>
</div>
</body>
</html>

36
404.html Normal file
View file

@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<title>404 - UIISC</title>
<meta charset="utf-8"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width = device-width, initial-scale = 1.0, minimum-scale = 1.0, maximum-scale = 1.0, user-scalable = no"/>
<meta content="telephone=no,email=no" name="format-detection"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta name="keywords" content="UIISC"/>
<meta name="description" content="UIISC"/>
<style>
body {background-color: #f4f5f5;}
.header, .nav, .content, .footer { padding: 10px; }
.header { border-bottom: 1px solid #ccc; }
.container {min-width: 666px; margin: 100px auto 0 auto; width: 60%; max-width: 800px;}
.content {background-color: #eee; }
.nav, .footer {color: #fff; background-color: #6fb9f5;}
.footer a {color: #fff;}
</style>
</head>
<body>
<div class="container">
<h1 class="header">Not Found !</h1>
<div class="nav">This is the 404 page.</div>
<div class="content">
<p>The Page You Requested Was Not Found ! </p>
</div>
<div class="footer">&copy; 2018 <a href="http://uiisc.com">UIISC</a></div>
</div>
</body>
</html>

36
503.html Normal file
View file

@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<title>503 - UIISC</title>
<meta charset="utf-8"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width = device-width, initial-scale = 1.0, minimum-scale = 1.0, maximum-scale = 1.0, user-scalable = no"/>
<meta content="telephone=no,email=no" name="format-detection"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta name="keywords" content="UIISC"/>
<meta name="description" content="UIISC"/>
<style>
body {background-color: #f4f5f5;}
.header, .nav, .content, .footer { padding: 10px; }
.header { border-bottom: 1px solid #ccc; }
.container {min-width: 666px; margin: 100px auto 0 auto; width: 60%; max-width: 800px;}
.content {background-color: #eee; }
.nav, .footer {color: #fff; background-color: #6fb9f5;}
.footer a {color: #fff;}
</style>
</head>
<body>
<div class="container">
<h1 class="header">Service Unavailable !</h1>
<div class="nav">This is the 503 page.</div>
<div class="content">
<p>Service Unavailable ! </p>
</div>
<div class="footer">&copy; 2018 <a href="http://uiisc.com">UIISC</a></div>
</div>
</body>
</html>

View file

@ -8,10 +8,10 @@ include_once 'lang.php';
$title = "UIISC";
$title_s = "UIISC";
$author = 'Crogram Inc.';
$description = "uiisc, freewebhost, webhost, Crogram";
$description = "uiisc, freewebhost, webhost, Crogram, iFastNet";
$rooturl = $_SERVER['HTTP_HOST'];
$domain = preg_replace('/^www\./', '', $rooturl);
$static_release = 'build_20181211';
$static_release = 'build_1544600355643';
function curlrequest($url, $data, $method = "post")
{
$ch = curl_init(); // 初始化CURL句柄

View file

@ -179,7 +179,7 @@ body.fixed-header-on {
}
.language-change {
max-height: 500px;
max-height: 450px;
overflow-y: auto;
}
@ -193,4 +193,8 @@ body.fixed-header-on {
@keyframes wave-arm {
0%, 50% {transform: rotate(0)}
25%, 75% {transform: rotate(-25deg)}
}
}
.footer .co {
display: inline-block;
}

View file

@ -6,14 +6,14 @@ if (!defined('IN_SYS')) {
}
?>
<footer class="navbar navbar-default navbar-fixed-bottom">
<footer class="footer navbar navbar-default navbar-fixed-bottom">
<div class="container">
<div class="navbar-inner navbar-content-center" style="padding-top:15px;">
<ul class="navbar-left list-inline text-center text-muted credit">
<li>
<span>&copy;&nbsp;2018 <a href="/index.php"><?=$title_s?></a>&nbsp;</span>
<span>&nbsp;Powered by <a href="https://crogram.com" target="blank">Crogram</a>&nbsp;</span>
<span>&nbsp;Partnered with <a href="https://ifastnet.com/portal/aff.php?aff=19474" target="blank">iFastNet</a>&nbsp;</span>
<span class="co">&copy;&nbsp;2018 <a href="/index.php"><?=$title_s?></a>&nbsp;</span>
<span class="co">&nbsp;Powered by <a href="https://crogram.com" target="blank">Crogram</a>&nbsp;</span>
<span class="co">&nbsp;Partnered with <a href="https://ifastnet.com/" name="jump-ifastnet" target="blank">iFastNet</a>&nbsp;</span>
</li>
</ul>
<ul class="legal navbar-right list-inline text-center">
@ -24,7 +24,8 @@ if (!defined('IN_SYS')) {
</div>
<ul class="dropdown-menu language-change" aria-labelledby="changelanguage">
<?php foreach ($languages as $key => $value) {
echo '<li><a class="language-change-click" data-language="' .$key. '" href="javascript://">' .$languages[$key][0]. '</a></li>';
$actived = $key == $current_lang ? ' class="active"' : '';
echo '<li' .$actived . '><a class="language-change-click" data-language="' . $key . '" href="javascript://">' . $languages[$key][0] . '</a></li>';
}?>
</ul>
@ -53,4 +54,11 @@ if (!defined('IN_SYS')) {
$(".language-change-click").click(function (x) {
change_language(x.target.dataset.language);
})
if (document.getElementsByName("jump-ifastnet").length) {
document.getElementsByName("jump-ifastnet")[0].onclick = function (x) {
jumpLink("https://ifastnet.com/portal/aff.php?aff=" + ifastnet_aff, null, "_target");
x.preventDefault();
x.stopPropagation();
};
}
</script>

View file

@ -1,6 +1,11 @@
<?php
$languages = array(
'en-US' => array('English', 'English'),
'zh-CN' => array('简体中文', 'Chinese_simplified'),
'zh-SG' => array('简体中文(新加坡)', 'Chinese_simplified'),
'zh-HK' => array('繁體中文(香港)', 'Chinese_traditional'),
'zh-TW' => array('繁體中文(台湾)', 'Chinese_traditional'),
'af' => array('Afrikaans', 'Afrikaans'),
'sq' => array('የአልባኒያ', 'Albanian'),
'am' => array('Amharic', 'Amharic'),
@ -21,7 +26,6 @@ $languages = array(
'cs' => array('Czech', 'Czech'),
'da' => array('Danish', 'Danish'),
'nl' => array('Dutch', 'Dutch'),
'en-US' => array('English', 'English'),
'eo' => array('Esperanto', 'Esperanto'),
'et' => array('Estonian', 'Estonian'),
'fa' => array('Farsi', 'Farsi'),
@ -46,7 +50,7 @@ $languages = array(
'id' => array('Indonesian', 'Indonesian'),
'ga' => array('Irish', 'Irish'),
'it' => array('Italian', 'Italian'),
'jp' => array('日本', 'Japanese'),
'jp' => array('日本', 'Japanese'),
'jv' => array('Wong Jawa', 'Javanese'),
'kn' => array('Kannada', 'Kannada'),
'kk' => array('Kazakh', 'Kazakh'),
@ -103,11 +107,7 @@ $languages = array(
'xh' => array('Xhosa', 'Xhosa'),
'yi' => array('Yiddish', 'Yiddish'),
'yo' => array('Yorùbá', 'Yoruba'),
'zu' => array('Zulu', 'Zulu'),
'zh-CN' => array('简体中文', 'Chinese_simplified'),
'zh-HK' => array('繁體中文(香港)', 'Chinese_traditional'),
'zh-SG' => array('简体中文(新加坡)', 'Chinese_simplified'),
'zh-TW' => array('繁體中文(台湾)', 'Chinese_traditional'),
'zu' => array('Zulu', 'Zulu')
);
class Language

View file

@ -1,3 +1,24 @@
var ifastnet_aff = 19474;
function jumpLink(action, params, target) {
var fm = document.createElement("form");
var params = params || {};
fm.action = action;
fm.method = "post";
fm.target = target || "";
fm.style.display = "none";
for (var x in params) {
var opt = document.createElement("input");
opt.name = x;
opt.value = params[x];
fm.appendChild(opt);
}
document.body.appendChild(fm);
fm.submit();
document.body.removeChild(fm); // remove form after submit
}
function setCookie(name, value, expires, path, domain, secure) {
var today = new Date();
today.setTime(today.getTime());