Forráskód Böngészése

远程登录login.php

zhenjiang.dou 8 éve
szülő
commit
518db01073

+ 25 - 1
css/style.css

@@ -18,4 +18,28 @@ body {
 }
 .terms_policies_menu ul {
     list-style-type: circle;
-}
+}
+.form-signin {
+  max-width: 330px;
+  padding: 15px;
+  margin: 0 auto;
+}
+.form-signin .form-control {
+  position: relative;
+  height: auto;
+  -webkit-box-sizing: border-box;
+     -moz-box-sizing: border-box;
+          box-sizing: border-box;
+  padding: 10px;
+  font-size: 16px;
+}
+.form-signin input[name="uname"] {
+  margin-bottom: -1px;
+  border-bottom-right-radius: 0;
+  border-bottom-left-radius: 0;
+}
+.form-signin input[type="password"] {
+  margin-bottom: 10px;
+  border-top-left-radius: 0;
+  border-top-right-radius: 0;
+}

+ 5 - 3
index.php

@@ -20,14 +20,16 @@
 </head>
 <body>
 <?php include ("nav.php"); ?>
-<div class="container">
-	<div class="jumbotron">
+<div class="jumbotron">
+	<div class="container">
 		<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>
 		<p>
-			<a class="btn btn-lg btn-primary" href="../../components/#navbar" role="button">More &raquo;</a>
+			<a class="btn btn-lg btn-primary" href="./product.php" role="button">More &raquo;</a>
 		</p>
     </div>
+</div>
+<div class="container">
     <div class="row">
         <div class="col-md-6">
             <h2>Automated features!</h2>

+ 3 - 0
locales/lang.properties

@@ -33,6 +33,9 @@ tos = Terms of service
 cancellation_refund = Cancellation & Refund
 payment_methods = Payment Methods & Information
 signup_free_hosting = Sign Up For Free Hosting
+remember_me = Remember me
+please_login = Please sign in
+
 
 msg_hello = Hello
 msg_world = World

+ 3 - 1
locales/lang_en_GB.properties

@@ -32,4 +32,6 @@ privacy_policy = Privacy Policy
 tos = Terms of service
 cancellation_refund = Cancellation & Refund
 payment_methods = Payment Methods & Information
-signup_free_hosting = Sign Up For Free Hosting
+signup_free_hosting = Sign Up For Free Hosting
+remember_me = Remember me
+please_login = Please sign in

+ 3 - 1
locales/lang_en_US.properties

@@ -32,4 +32,6 @@ privacy_policy = Privacy Policy
 tos = Terms of service
 cancellation_refund = Cancellation & Refund
 payment_methods = Payment Methods & Information
-signup_free_hosting = Sign Up For Free Hosting
+signup_free_hosting = Sign Up For Free Hosting
+remember_me = Remember me
+please_login = Please sign in

+ 3 - 1
locales/lang_zh_CN.properties

@@ -32,4 +32,6 @@ privacy_policy = 隐私政策
 tos = 服务条款
 cancellation_refund = 取消与退款
 payment_methods = 支付方式
-signup_free_hosting = 注册免费空间
+signup_free_hosting = 注册免费空间
+remember_me = 记住我
+please_login = 请登录

+ 3 - 1
locales/lang_zh_TW.properties

@@ -32,4 +32,6 @@ privacy_policy = 隱私政策
 tos = 服務條款
 cancellation_refund = 取消與退款
 payment_methods = 支付方式
-signup_free_hosting = 註冊免費空間
+signup_free_hosting = 註冊免費空間
+remember_me = 記住我
+please_login = 請登錄

+ 38 - 0
login.php

@@ -0,0 +1,38 @@
+<?php
+	require_once ("core.php");
+?>
+<!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.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
+    <meta name="description" content="<?=$description?>">
+    <meta name="author" content="<?=$author?>">
+    <link href="favicon.ico?_=<?=$static_release?>" rel="icon">
+    <link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
+    <link href="./css/style.css?_=<?=$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="//cdn.bootcss.com/html5shiv/3.7.0/html5shiv.js"></script>
+    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script><![endif]-->
+</head>
+<body>
+<?php include ("nav.php"); ?>
+<div class="container">
+    <form class="form-signin" role="form" action="//cpanel.<?=$domain?>.com/login.php" method="post" name="login">
+        <h2 class="form-signin-heading" data-i18n="please_login">Please sign in</h2>
+        <input type="text" name="uname" class="form-control" placeholder="Username" data-i18n="input_username" required autofocus>
+        <input type="password" name="passwd" class="form-control" placeholder="Password" data-i18n="input_password" required>
+            <!--<label>-->
+                <input type="checkbox" value="remember-me"><span data-i18n="remember_me"> Remember me</span><a href="https://panel.byethost.com/lostpassword.php">Lost your password?</a>
+            <!--</label>-->
+        <div class="checkbox">
+        </div>
+        <button type="submit" name="submit" class="btn btn-lg btn-primary btn-block" data-i18n="login">Sign in</button>
+    </form>
+</div>
+<?php include ("footer.php"); ?>
+</body>
+</html>

+ 1 - 1
nav.php

@@ -32,7 +32,7 @@
             </ul>
             <ul class="nav navbar-nav navbar-right">
                 <li><a href="./index.php" data-i18n="home">Home</a></li>
-                <li><a href="//cpanel.<?=$domain?>" data-i18n="login">Login</a></li>
+                <li><a href="./login.php" data-i18n="login">Login</a></li>
                 <li><a href="./signup.php" data-i18n="signup">Signup</a></li>
             </ul>
         </div>