zhenjiang.dou 8 anos atrás
pai
commit
2d391a5036
11 arquivos alterados com 239 adições e 77 exclusões
  1. 5 0
      .htaccess1
  2. 6 1
      footer.php
  3. 14 11
      header.php
  4. 2 0
      home.html
  5. 2 5
      index1.php
  6. 25 0
      js/common.js
  7. 32 0
      legal_cancellation-refund.php
  8. 32 0
      legal_payment-methods.php
  9. 32 0
      legal_privacy.php
  10. 32 0
      legal_terms.php
  11. 57 60
      signup1.php

+ 5 - 0
.htaccess1

@@ -0,0 +1,5 @@
+php_value display_errors Off
+php_flag magic_quotes 1
+php_flag magic_quotes_gpc 1
+php_value mbstring.http_input auto
+php_value date.timezone Asia/Shanghai

+ 6 - 1
footer.php

@@ -13,4 +13,9 @@
             </ul>
         </div>
     </div>
-</nav>
+</nav>
+<script src="https://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
+<script src="https://cdn.bootcss.com/jquery.pjax/1.9.6/jquery.pjax.min.js"></script>
+<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
+<script src="./js/ie10-viewport-bug-workaround.js"></script>
+<script src="./js/common.js"></script>

+ 14 - 11
header.php

@@ -14,22 +14,25 @@
                 <li class="active"><a href="index1.php">Home</a></li>
                 <li><a href="product1.php">Product</a></li>
                 <li><a href="contact1.php">Contact</a></li>
-                <li class="dropdown"><a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown">About <span class="caret"></span></a>
-                <ul class="dropdown-menu" role="menu">
-                    <li><a href="javascript:void(0)">home</a></li>
-                    <li><a href="javascript:void(0)">Another action</a></li>
-                    <li><a href="javascript:void(0)">Something else here</a></li>
-                    <li class="divider"></li>
-                    <li class="dropdown-header">Nav header</li>
-                    <li><a href="javascript:void(0)">Separated link</a></li>
-                    <li><a href="javascript:void(0)">One more separated link</a></li>
-                </ul>
+                <li class="dropdown"><a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown">Others <span class="caret"></span></a>
+                    <ul class="dropdown-menu" role="menu">
+                        <li><a href="javascript:void(0)">home</a></li>
+                        <li><a href="javascript:void(0)">Another action</a></li>
+                        <li><a href="javascript:void(0)">Something else here</a></li>
+                        <li><a href="javascript:void(0)" onclick="turnPage('http://www.baidu.com')">Terms of service</a></li>
+                        <li class="divider"></li>
+                        <li class="dropdown-header">Legal Information</li>
+                        <li><a href="./legal_terms.php">Terms of Service</a></li>
+                        <li><a href="./legal_cancellation-refund.php">Cancellation & Refund</a></li>
+                        <li><a href="./legal_privacy.php">Privacy Policy</a></li>
+                        <li><a href="./legal_payment-methods.php">Payment Methods & Information</a></li>
+                    </ul>
                 </li>
             </ul>
             <ul class="nav navbar-nav navbar-right">
                 <li><a href="./index.php">Home</a></li>
                 <li class="active"><a href="https://cpanel.<?=$domain?>">Login</a></li>
-                <li><a href="signup1.php" accesskey="A">Signup</a></li>
+                <li><a href="./signup1.php">Signup</a></li>
             </ul>
         </div>
     </div>

+ 2 - 0
home.html

@@ -0,0 +1,2 @@
+<h1>
+	这是首页</h1>

+ 2 - 5
index1.php

@@ -5,11 +5,11 @@
 <html lang="en">
 <head>
     <meta charset="utf-8">
+    <title><?=$title?></title>
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1">
     <meta name="description" content="<?=$description?>">
     <meta name="author" content="<?=$author?>">
-    <title><?=$title?></title>
     <link href="favicon.ico" rel="icon">
     <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
     <link href="./css/style.css?v=<?=$static_release?>" rel="stylesheet"><!--[if lt IE 9]>
@@ -20,7 +20,7 @@
 </head>
 <body>
 <?php include ("header.php"); ?>
-<div class="container" id="result">
+<div class="container">
 	<div class="jumbotron">
 		<h1>Instant activation</h1>
         <p>Free hosting accounts are activated instantly, no need to wait for manual approval, you can start building your pages immediately!  A powerful Vista Panel control panel is provided to manage your website, packed with hundreds of great features including Email, FTP add-on domain ...</p>
@@ -45,8 +45,5 @@
     </div>
 </div>
 <?php include ("footer.php"); ?>
-<script src="https://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
-<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
-<script src="./js/ie10-viewport-bug-workaround.js"></script>
 </body>
 </html>

+ 25 - 0
js/common.js

@@ -0,0 +1,25 @@
+function turnPage(url) {
+    $.ajax({
+        url: url,
+        cache: false,
+        success: function (html) {
+            $("#content").html(html);
+        },
+        error: function () {
+            $.ajax({
+                type: "post",
+                url: url,
+                cache: false,
+                dataType: "jsonp",
+                jsonp: "callback", // 传递给请求处理程序或页面的,用以获得jsonp回调函数名的参数名(默认为:callback)
+                jsonpCallback: "success_jsonpCallback", // 自定义的jsonp回调函数名称,默认为jQuery自动生成的随机函数名
+                success: function (html) {
+                    $("#content").html(html);
+                },
+                error: function () {
+                    alert('fail');
+                }
+            });
+        }
+    });
+}

+ 32 - 0
legal_cancellation-refund.php

@@ -0,0 +1,32 @@
+<?php
+	require_once ("core.php");
+    $html = file_get_contents('https://ifastnet.com/portal/cancellation-refund.php');
+    // preg_match('/<footer[^>]*id="footer"[^>]*>(.*?) <//footer>/si', $html, $match);
+?>
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="utf-8">
+    <title><?=$title?></title>
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width,initial-scale=1">
+    <meta name="description" content="<?=$description?>">
+    <meta name="author" content="<?=$author?>">
+    <link href="favicon.ico" rel="icon">
+    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
+    <link href="./css/style.css?v=<?=$static_release?>" rel="stylesheet"><!--[if lt IE 9]>
+    <script src="./js/ie8-responsive-file-warning.js"></script><![endif]-->
+    <script src="./js/ie-emulation-modes-warning.js"></script><!--[if lt IE 9]>
+    <script src="https://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.js"></script>
+    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script><![endif]-->
+</head>
+<body>
+<?php include ("header.php"); ?>
+<div class="container">
+    <div class="row">
+        <?=$html?>
+    </div>
+</div>
+<?php include ("footer.php"); ?>
+</body>
+</html>

+ 32 - 0
legal_payment-methods.php

@@ -0,0 +1,32 @@
+<?php
+	require_once ("core.php");
+    $html = file_get_contents('https://ifastnet.com/payment-methods.php');
+    // preg_match('/<footer[^>]*id="footer"[^>]*>(.*?) <//footer>/si', $html, $match);
+?>
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="utf-8">
+    <title><?=$title?></title>
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width,initial-scale=1">
+    <meta name="description" content="<?=$description?>">
+    <meta name="author" content="<?=$author?>">
+    <link href="favicon.ico" rel="icon">
+    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
+    <link href="./css/style.css?v=<?=$static_release?>" rel="stylesheet"><!--[if lt IE 9]>
+    <script src="./js/ie8-responsive-file-warning.js"></script><![endif]-->
+    <script src="./js/ie-emulation-modes-warning.js"></script><!--[if lt IE 9]>
+    <script src="https://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.js"></script>
+    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script><![endif]-->
+</head>
+<body>
+<?php include ("header.php"); ?>
+<div class="container">
+    <div class="row">
+        <?=$html?>
+    </div>
+</div>
+<?php include ("footer.php"); ?>
+</body>
+</html>

+ 32 - 0
legal_privacy.php

@@ -0,0 +1,32 @@
+<?php
+	require_once ("core.php");
+    $html = file_get_contents('https://ifastnet.com/privacy.php');
+    // preg_match('/<footer[^>]*id="footer"[^>]*>(.*?) <//footer>/si', $html, $match);
+?>
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="utf-8">
+    <title><?=$title?></title>
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width,initial-scale=1">
+    <meta name="description" content="<?=$description?>">
+    <meta name="author" content="<?=$author?>">
+    <link href="favicon.ico" rel="icon">
+    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
+    <link href="./css/style.css?v=<?=$static_release?>" rel="stylesheet"><!--[if lt IE 9]>
+    <script src="./js/ie8-responsive-file-warning.js"></script><![endif]-->
+    <script src="./js/ie-emulation-modes-warning.js"></script><!--[if lt IE 9]>
+    <script src="https://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.js"></script>
+    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script><![endif]-->
+</head>
+<body>
+<?php include ("header.php"); ?>
+<div class="container">
+    <div class="row">
+        <?=$html?>
+    </div>
+</div>
+<?php include ("footer.php"); ?>
+</body>
+</html>

+ 32 - 0
legal_terms.php

@@ -0,0 +1,32 @@
+<?php
+	require_once ("core.php");
+    $html = file_get_contents('https://ifastnet.com/portal/terms.php');
+    // preg_match('/<footer[^>]*id="footer"[^>]*>(.*?) <//footer>/si', $html, $match);
+?>
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="utf-8">
+    <title><?=$title?></title>
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width,initial-scale=1">
+    <meta name="description" content="<?=$description?>">
+    <meta name="author" content="<?=$author?>">
+    <link href="favicon.ico" rel="icon">
+    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
+    <link href="./css/style.css?v=<?=$static_release?>" rel="stylesheet"><!--[if lt IE 9]>
+    <script src="./js/ie8-responsive-file-warning.js"></script><![endif]-->
+    <script src="./js/ie-emulation-modes-warning.js"></script><!--[if lt IE 9]>
+    <script src="https://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.js"></script>
+    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script><![endif]-->
+</head>
+<body>
+<?php include ("header.php"); ?>
+<div class="container">
+    <div class="row">
+        <?=$html?>
+    </div>
+</div>
+<?php include ("footer.php"); ?>
+</body>
+</html>

+ 57 - 60
signup1.php

@@ -6,12 +6,12 @@
 <html lang="en">
 <head>
     <meta charset="utf-8">
+    <title><?=$domain?></title>
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1">
     <meta name="description" content="<?=$description?>">
     <meta name="author" content="<?=$author?>">
     <link rel="icon" href="favicon.ico">
-    <title><?=$domain?></title>
     <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
     <link href="./css/style.css?v=<?=$static_release?>" rel="stylesheet"><!--[if lt IE 9]>
     <script src="./js/ie8-responsive-file-warning.js"></script><![endif]-->
@@ -23,78 +23,75 @@
 <?php include ("header.php"); ?>
 <div class="container">
     <div class="row">
-        <h2>Sign Up For Free Hosting</h2>
+        <h2>Sign Up<!-- For Free Hosting--></h2>
         <p>You can sign up here for fast free PHP & MySQL hosting including a free sub domain. 
         Fill out the form below and your free hosting account will be created.  <em>Enjoy :)</em><br>
         </p>
     </div>
-        <form class="form-horizontal" role="form" method=post action="https://order.<?=$domain?>/register.php">
-            <div class="form-group">
-                <label for="inputUsername" class="col-sm-4 control-label">Username</label>
-                <div class="col-sm-5">
-                <input type="text" name="username" class="form-control" id="inputUsername" placeholder="Username" value="<?php if (isset($_GET['username'])) { echo $_GET['username']; }?>">
-                </div>
+    <form class="form-horizontal" role="form" method=post action="https://order.<?=$domain?>/register.php">
+        <div class="form-group">
+            <label for="inputUsername" class="col-sm-4 control-label">Username</label>
+            <div class="col-sm-5">
+            <input type="text" name="username" class="form-control" id="inputUsername" placeholder="Username" value="<?php if (isset($_GET['username'])) { echo $_GET['username']; }?>">
             </div>
-            <div class="form-group">
-                <label for="inputPassword" class="col-sm-4 control-label">Password</label>
-                <div class="col-sm-5">
-                <input type="password" name="password" class="form-control" id="inputPassword" placeholder="Password">
-                </div>
+        </div>
+        <div class="form-group">
+            <label for="inputPassword" class="col-sm-4 control-label">Password</label>
+            <div class="col-sm-5">
+            <input type="password" name="password" class="form-control" id="inputPassword" placeholder="Password">
             </div>
-            <div class="form-group">
-                <label for="inputEmail" class="col-sm-4 control-label">Email Address</label>
-                <div class="col-sm-5">
-                <input type="email" name="email" class="form-control" id="inputEmail" placeholder="Email Address" value="<?php if (isset($_GET['email'])) { echo $_GET['email']; }?>">
-                </div>
+        </div>
+        <div class="form-group">
+            <label for="inputEmail" class="col-sm-4 control-label">Email Address</label>
+            <div class="col-sm-5">
+            <input type="email" name="email" class="form-control" id="inputEmail" placeholder="Email Address" value="<?php if (isset($_GET['email'])) { echo $_GET['email']; }?>">
             </div>
-            <div class="form-group">
-                <label for="inputCategory" class="col-sm-4 control-label">Site Category</label>
-                <div class="col-sm-5">
-                    <select class="form-control" name="website_category" id="inputCategory">
-                        <option>Choose from Below</option>
-                        <option>Personal</option>
-                        <option>Business</option>
-                        <option>Hobby</option>
-                        <option>Forum</option>
-                        <option>Adult</option>
-                        <option>Dating</option>
-                        <option>Software / Download</option>
-                    </select>
-                </div>
+        </div>
+        <div class="form-group">
+            <label for="inputCategory" class="col-sm-4 control-label">Site Category</label>
+            <div class="col-sm-5">
+                <select class="form-control" name="website_category" id="inputCategory">
+                    <option>Choose from Below</option>
+                    <option>Personal</option>
+                    <option>Business</option>
+                    <option>Hobby</option>
+                    <option>Forum</option>
+                    <option>Adult</option>
+                    <option>Dating</option>
+                    <option>Software / Download</option>
+                </select>
             </div>
-            <div class="form-group">
-                <label for="inputLanguage" class="col-sm-4 control-label">Site Language</label>
-                <div class="col-sm-5">
-                    <select class="form-control" name="website_language" id="inputLanguage">
-                        <option>Choose from Below</option>
-                        <option>English</option>
-                        <option>Non-English</option>
-                    </select>
-                </div>
+        </div>
+        <div class="form-group">
+            <label for="inputLanguage" class="col-sm-4 control-label">Site Language</label>
+            <div class="col-sm-5">
+                <select class="form-control" name="website_language" id="inputLanguage">
+                    <option>Choose from Below</option>
+                    <option>English</option>
+                    <option>Non-English</option>
+                </select>
             </div>
-            <div class="form-group">
-                <label for="inputID" class="col-sm-4 control-label">Security Code</label>
-                <div class="col-sm-5">
-                <img width="90px" height="25px" src="https://order.<?=$domain?>/image.php?id=<?=$security_id?>">
-                <input type="hidden" name="id" class="form-control" id="inputID" placeholder="ID" value="<?=$security_id?>">
-                </div>
+        </div>
+        <div class="form-group">
+            <label for="inputID" class="col-sm-4 control-label">Security Code</label>
+            <div class="col-sm-5">
+            <img width="90px" height="25px" src="https://order.<?=$domain?>/image.php?id=<?=$security_id?>">
+            <input type="hidden" name="id" class="form-control" id="inputID" placeholder="ID" value="<?=$security_id?>">
             </div>
-            <div class="form-group">
-                <label for="inputSecurityCode" class="col-sm-4 control-label">Enter Security Code</label>
-                <div class="col-sm-5">
-                <input type="text" name="number" class="form-control" id="inputSecurityCode" placeholder="Security Code">
-                </div>
+        </div>
+        <div class="form-group">
+            <label for="inputSecurityCode" class="col-sm-4 control-label">Enter Security Code</label>
+            <div class="col-sm-5">
+            <input type="text" name="number" class="form-control" id="inputSecurityCode" placeholder="Security Code">
             </div>
-            <div class="form-group">
-                <div class="col-sm-offset-4 col-sm-6">
-                <button type="submit" name="submit" class="btn btn-default">Register</button>
-                </div>
+        </div>
+        <div class="form-group">
+            <div class="col-sm-offset-4 col-sm-6">
+            <button type="submit" name="submit" class="btn btn-default">Register</button>
             </div>
-        </form>
+        </div>
+    </form>
 </div>
 <?php include ("footer.php"); ?>
-<script src="https://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
-<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
-<script src="./js/ie10-viewport-bug-workaround.js"></script>
 </body>
 </html>