mirror of
https://github.com/Daichimarukana/uwuzu.git
synced 2026-06-05 03:24:41 +00:00
uwuzu version 1.2.28
This commit is contained in:
@@ -15,22 +15,13 @@ function createUniqId(){
|
||||
}
|
||||
|
||||
require('db.php');
|
||||
$servericonfile = "server/servericon.txt";
|
||||
|
||||
$servernamefile = "server/servername.txt";
|
||||
$serversettings_file = "server/serversettings.ini";
|
||||
$serversettings = parse_ini_file($serversettings_file, true);
|
||||
|
||||
$serverlogofile = "server/serverlogo.txt";
|
||||
$serverlogodata = file_get_contents($serverlogofile);
|
||||
$serverlogodata = explode( "\n", $serverlogodata );
|
||||
$cnt = count( $serverlogodata );
|
||||
for( $i=0;$i<$cnt;$i++ ){
|
||||
$serverlogo_link[$i] = ($serverlogodata[$i]);
|
||||
}
|
||||
|
||||
$onlyuserfile = "server/onlyuser.txt";
|
||||
$onlyuser = file_get_contents($onlyuserfile);
|
||||
|
||||
session_name('uwuzu_s_id');
|
||||
session_set_cookie_params(0, '', '', true, true);
|
||||
session_start();
|
||||
|
||||
// 変数の初期化
|
||||
@@ -149,7 +140,7 @@ if( !empty($_POST['btn_submit']) ) {
|
||||
|
||||
$profile = $_POST['profile'];
|
||||
|
||||
if($onlyuser === "true"){
|
||||
if(htmlspecialchars($serversettings["serverinfo"]["server_invitation"], ENT_QUOTES, 'UTF-8') === "true"){
|
||||
$invitationcode = $_POST['invitationcode'];
|
||||
}
|
||||
|
||||
@@ -273,7 +264,7 @@ if( !empty($_POST['btn_submit']) ) {
|
||||
|
||||
$dbh = new PDO('mysql:charset=UTF8;dbname='.DB_NAME.';host='.DB_HOST , DB_USER, DB_PASS, $option);
|
||||
|
||||
if($onlyuser === "true"){
|
||||
if(htmlspecialchars($serversettings["serverinfo"]["server_invitation"], ENT_QUOTES, 'UTF-8') === "true"){
|
||||
$query = $dbh->prepare('SELECT * FROM invitation WHERE code = :code limit 1');
|
||||
|
||||
$query->execute(array(':code' => $invitationcode));
|
||||
@@ -308,8 +299,8 @@ if( !empty($_POST['btn_submit']) ) {
|
||||
$error_message[] = '表示名を入力してください。';
|
||||
} else {
|
||||
// 文字数を確認
|
||||
if( 25 < mb_strlen($username, 'UTF-8') ) {
|
||||
$error_message[] = 'ユーザーネームは25文字以内で入力してください。';
|
||||
if( 50 < mb_strlen($username, 'UTF-8') ) {
|
||||
$error_message[] = 'ユーザーネームは50文字以内で入力してください。';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -518,19 +509,23 @@ $pdo = null;
|
||||
<head prefix="og:http://ogp.me/ns#">
|
||||
<meta charset="utf-8">
|
||||
<!--OGPはじまり-->
|
||||
<meta property="og:title" content="アカウント登録 - <?php echo file_get_contents($servernamefile);?>">
|
||||
<meta property="og:description" content="<?php echo file_get_contents($servernamefile);?>にアカウント登録">
|
||||
<meta property="og:title" content="アカウント登録 - <?php echo htmlspecialchars($serversettings["serverinfo"]["server_name"], ENT_QUOTES, 'UTF-8');?>">
|
||||
<meta property="og:description" content="<?php echo htmlspecialchars($serversettings["serverinfo"]["server_name"], ENT_QUOTES, 'UTF-8');?>にアカウント登録">
|
||||
<meta property="og:url" content="https://<?php echo htmlentities($domain, ENT_QUOTES, 'UTF-8'); ?>/new">
|
||||
<meta property="og:image" content="<?php echo htmlspecialchars(file_get_contents($servericonfile), ENT_QUOTES, 'UTF-8'); ?>">
|
||||
<meta property="og:image" content="<?php echo htmlspecialchars($serversettings["serverinfo"]["server_icon"], ENT_QUOTES, 'UTF-8');?>">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:site_name" content="アカウント登録 - <?php echo file_get_contents($servernamefile);?>">
|
||||
<meta property="og:site_name" content="アカウント登録 - <?php echo htmlspecialchars($serversettings["serverinfo"]["server_name"], ENT_QUOTES, 'UTF-8');?>">
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="アカウント登録 - <?php echo htmlspecialchars($serversettings["serverinfo"]["server_name"], ENT_QUOTES, 'UTF-8');?>"/>
|
||||
<meta name="twitter:description" content="<?php echo htmlentities($serverinfo);?>"/>
|
||||
<!--OGPここまで-->
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<script src="js/unsupported.js"></script>
|
||||
<link rel="stylesheet" href="css/style.css?<?php echo date('Ymd-Hi'); ?>">
|
||||
<script src="js/unsupported.js?<?php echo date('Ymd-Hi'); ?>"></script>
|
||||
<link rel="apple-touch-icon" type="image/png" href="favicon/apple-touch-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" href="favicon/icon-192x192.png">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>アカウント登録 - <?php echo file_get_contents($servernamefile);?></title>
|
||||
<title>アカウント登録 - <?php echo htmlspecialchars($serversettings["serverinfo"]["server_name"], ENT_QUOTES, 'UTF-8');?></title>
|
||||
</head>
|
||||
|
||||
|
||||
@@ -539,9 +534,9 @@ $pdo = null;
|
||||
|
||||
|
||||
<div class="leftbox">
|
||||
<?php if(!empty($serverlogo_link[1])){ ?>
|
||||
<?php if(!empty(htmlspecialchars($serversettings["serverinfo"]["server_logo_login"], ENT_QUOTES, 'UTF-8'))){ ?>
|
||||
<div class="logo">
|
||||
<a href="../index.php"><img src=<?php echo htmlspecialchars($serverlogo_link[1], ENT_QUOTES, 'UTF-8');?>></a>
|
||||
<a href="../index.php"><img src=<?php echo htmlspecialchars($serversettings["serverinfo"]["server_logo_login"], ENT_QUOTES, 'UTF-8');?>></a>
|
||||
</div>
|
||||
<?php }else{?>
|
||||
<div class="logo">
|
||||
@@ -591,12 +586,12 @@ $pdo = null;
|
||||
<div>
|
||||
<p>パスワード *</p>
|
||||
<div class="p2">ログイン時に必要となります。<br>※サービス管理者が確認できません。</div>
|
||||
<input onInput="checkForm(this)" placeholder="" class="inbox" id="password" type="text" name="password" value="<?php if( !empty($_SESSION['password']) ){ echo htmlspecialchars( $_SESSION['password'], ENT_QUOTES, 'UTF-8'); } ?>">
|
||||
<input placeholder="" class="inbox" id="password" type="text" name="password" value="<?php if( !empty($_SESSION['password']) ){ echo htmlspecialchars( $_SESSION['password'], ENT_QUOTES, 'UTF-8'); } ?>">
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>パスワード再確認 *</p>
|
||||
<input onInput="checkForm(this)" placeholder="" class="inbox" oncopy="return false" onpaste="return false" oncontextmenu="return false" id="chkpass" type="text" style="-webkit-text-security:disc;" name="chkpass" value="<?php if( !empty($_SESSION['chkpass']) ){ echo htmlspecialchars( $_SESSION['chkpass'], ENT_QUOTES, 'UTF-8'); } ?>">
|
||||
<input placeholder="" class="inbox" oncopy="return false" onpaste="return false" oncontextmenu="return false" id="chkpass" type="text" style="-webkit-text-security:disc;" name="chkpass" value="<?php if( !empty($_SESSION['chkpass']) ){ echo htmlspecialchars( $_SESSION['chkpass'], ENT_QUOTES, 'UTF-8'); } ?>">
|
||||
</div>
|
||||
|
||||
<div>
|
||||
@@ -617,7 +612,7 @@ $pdo = null;
|
||||
</div>
|
||||
|
||||
<p>登録を押すと利用規約とプライバシーポリシーに同意したこととなります。<br>未確認の場合は上のボタンよりお読みください。</p>
|
||||
<?php if($onlyuser === "true"){?>
|
||||
<?php if(htmlspecialchars($serversettings["serverinfo"]["server_invitation"], ENT_QUOTES, 'UTF-8') === "true"){?>
|
||||
<div>
|
||||
<p>招待コード</p>
|
||||
<div class="p2">招待コードがないとこのサーバーには登録できません。</div>
|
||||
|
||||
Reference in New Issue
Block a user