Fix: add player until 20 for maestro test

This commit is contained in:
2018-09-04 16:02:13 +09:00
parent e9da9b9bba
commit ae16c020ee
3 changed files with 72 additions and 28 deletions
+65 -24
View File
@@ -18,9 +18,12 @@ PermitRootLogin no
#1 Apache, mariadb, php7.1 설치
https://www.dazzii.com/centos7-apache-mariadb-php-webserver/
https://www.if-not-true-then-false.com/2010/install-apache-php-on-fedora-centos-red-hat-rhel/
# MariaDB 설치 확인
https://www.dazzii.com/centos7-apache-mariadb-php-webserver/
systemctl start mysql
mysql --version
@@ -47,12 +50,31 @@ default-character-set = utf8
# php용 remi repository 추가만
https://blog.asamaru.net/2018/02/14/install-php-7-2-on-centos-with-remi-rpm-repository/
# php 설치후 /etc/httpd/conf/httpd.conf 수정
LoadModule php7_module modules/libphp7.so
DirectoryIndex index.html index.html.var index.php index.php3
AddType application/x-httpd-php .php .html .htm .inc
AddType application/x-httpd-php-source .phps
# phpMyAdmin 설치
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum --enablerepo=remi,remi-test install -y phpMyAdmin
cp -a /etc/httpd/conf.d/phpMyAdmin.conf /etc/httpd/conf.d/phpMyAdmin.conf.original
sed -i '15,17s/Require local/Require all granted/' /etc/httpd/conf.d/phpMyAdmin.conf
systemctl restart httpd
http://luckyyowu.tistory.com/287
yum install -y phpMyAdmin
vi /etc/httpd/conf.d/phpMyAdmin.conf
<Directory /usr/share/phpMyAdmin/>
AddDefaultCharset UTF-8
Order Allow,Deny
Allow from All
</Directory>
vi /etc/httpd/conf/httpd.conf
<Directory />
AllowOverride none
Require all granted
</Directory>
@@ -80,24 +102,6 @@ https://blog.asamaru.net/2018/02/14/install-php-7-2-on-centos-with-remi-rpm-repo
# phpinfo.php
<?php phpinfo(); ?>
# phpMyAdmin 설치
http://luckyyowu.tistory.com/287
yum install -y phpMyAdmin
vi /etc/httpd/conf.d/phpMyAdmin.conf
<Directory /usr/share/phpMyAdmin/>
AddDefaultCharset UTF-8
Order Allow,Deny
Allow from All
</Directory>
vi /etc/httpd/conf/httpd.conf
<Directory />
AllowOverride none
Require all granted
</Directory>
#2 php 설치 확인
@@ -111,6 +115,43 @@ http://ellordnet.tistory.com/166
git 설치
yum install git
git 세팅
adduser git
passwd git
mkdir /git_repository
chown git:git /git_repository
mkdir /git_repository/mouse_typing.git
chown git:git /git_repository/mouse_typing.git
vi /git_reposotory/mouse_typing.git/hooks/post-receive
#!/bin/sh
# GIT_WORK_TREE=/var/www/html/mouse_typing git checkout -f
while read oldrev newrev ref
do
branch=`echo $ref | cut -d/ -f3`
if [ "master" == "$branch" ]; then
echo 'Changes pushed live.'
fi
if [ "release" == "$branch" ]; then
git --work-tree=/var/www/html/mouse_typing/ checkout -f $branch
echo 'Changes pushed to dev.'
fi
done
(root) mkdir /var/www/html/mouse_typing
(root) chown git:git /var/www/html/mouse_typing
----
@@ -2,7 +2,10 @@
function get_max_player_count($accountType) {
switch($accountType) {
case 0:
case 1:
case 100:
case 101:
return 20;
case 2:
return 50;
+4 -4
View File
@@ -9,8 +9,8 @@ INSERT INTO `app` (`AppID`, `AppName`, `KoreanName`, `AppType`, `Status`, `HowTo
(6, 'practice_korean_right_lower', '오른손 밑글쇠', 1, 1, '오른손 밑글쇠 연습.\\n항상 양 손은 기본 자리 위치에 두고 시작합니다.'),
(7, 'practice_korean_left_upper_double', '왼손 쌍자음', 1, 1, '왼손 쌍자음. 오른손 새끼손가락으로\\n쉬프트키를 누르고 왼손 윗글쇠를 누르세요.'),
(8, 'practice_korean_right_upper_double', '오른손 쌍모음', 1, 1, '오른손 쌍모음. 왼손 새끼손가락으로\\n쉬프트키를 누르고 오른손 윗글쇠를 누르세요.'),
(9, 'practice_korean_word', '', 1, 1, '한글 단어 입력으로 타자를 연습합니다.'),
(10, 'practice_korean_sentence', '', 1, 1, '한글 문장 입력으로 타자를 연습합니다.'),
(9, 'practice_korean_word', '', 1, 0, '한글 단어 입력으로 타자를 연습합니다.'),
(10, 'practice_korean_sentence', '', 1, 0, '한글 문장 입력으로 타자를 연습합니다.'),
(11, 'practice_english_basic', 'Basic', 2, 1, '왼손 검지를 [F] 자판위에,\\n오른손 검지를 [J] 자판위에 올린채\\n손을 움직이지 말고 글자를 입력하세요.'),
(12, 'practice_english_left_upper', 'Left upper', 2, 1, '왼손 윗글쇠 연습.\\n항상 양 손은 기본 자리 위치에 두고 시작합니다.'),
(13, 'practice_english_second_finger', 'Second finger', 2, 1, '기본 자리에 손을 두고, 양 손 검지 손가락으로\\n키보드 안쪽의 글쇠를 눌러주세요.'),
@@ -18,8 +18,8 @@ INSERT INTO `app` (`AppID`, `AppName`, `KoreanName`, `AppType`, `Status`, `HowTo
(15, 'practice_english_left_lower', 'Left lower', 2, 1, '왼손 밑글쇠 연습.\\n항상 양 손은 기본 자리 위치에 두고 시작합니다.'),
(16, 'practice_english_right_lower', 'Right lower', 2, 1, '오른손 밑글쇠 연습.\\n항상 양 손은 기본 자리 위치에 두고 시작합니다.'),
(17, 'practice_english_upper_lower', 'Upper/Lower', 2, 1, '대문자, 소문자 연습.\\n대문자를 입력할 때에는 반대편 손\\n새끼손가락으로 [shift] 키를 누르세요.'),
(19, 'practice_english_word', '', 2, 1, '영문 단어 입력으로 타자를 연습합니다.'),
(20, 'practice_english_sentence', '', 2, 1, '영문 문장 입력으로 타자를 연습합니다.'),
(19, 'practice_english_word', '', 2, 0, '영문 단어 입력으로 타자를 연습합니다.'),
(20, 'practice_english_sentence', '', 2, 0, '영문 문장 입력으로 타자를 연습합니다.'),
(21, 'test_korean_basic', '기본 자리', 11, 1, ''),
(22, 'test_korean_left_upper', '왼손 윗글쇠', 11, 1, ''),
(23, 'test_korean_second_finger', '검지 글쇠', 11, 1, ''),