Author SHA1 Message Date
Hide_D 2bed18136f 롤시나리오 2024-12-10 02:51:08 +09:00
Hide_D e0030cc390 강서유서월드 이미지 업데이트 2024-12-07 15:11:42 +09:00
Hide_D 885ab4502e 강서유서월드 전콘 2024-12-07 00:14:29 +09:00
sars 8c630f2b63 롤 시나리오 아이콘 1.0 업데이트 2024-12-04 22:50:13 -08:00
sars d2be68899d 롤시나리오 아이콘 추가 2024-12-02 19:16:40 -08:00
Hide_D 90b7fb8679 cr 지도 인식 편의를 위해 배 이미지 추가 2023-03-20 00:53:36 +09:00
Hide_D 972aebc0be cr 이미지 추가 2023-03-15 03:19:16 +09:00
Hide_D 3ee857c50a 삼모시네마틱유니버스 시나리오 2022-06-07 01:46:06 +09:00
Hide_D 0d60a63308 feat: 걸그룹 대전 이미지 업데이트 2022-04-20 21:28:32 +09:00
Hide_D e1ee13d2d9 백이병 추가.
- 임시 이미지로 구 근위병 이미지 사용용
2021-12-09 01:22:11 +09:00
Hide_D 711e951ddd 쿠키런킹덤 2021-09-19 02:43:50 +09:00
Hide_D 3a50184bb8 병종이미지형태 변경
weap숫자 -> crewtype숫자
신엔진용
2020-04-30 06:30:33 +09:00
Hide_D b341ed376c .htaccess 버림 2019-10-27 20:10:21 +09:00
Hide_D 2d106cf5fe 포켓몬스터 이미지셋 업로드 2019-10-03 15:35:36 +09:00
Hide_D b7f62fd70a Hash Key Installer 추가 2019-09-23 00:01:06 +09:00
Hide_D 4bfa257b02 git_pull이 CLI에서도 동작하게 변경 2019-09-22 23:15:29 +09:00
Hide_D 0b4ef0e333 결과값 반환 2019-09-22 22:48:57 +09:00
Hide_D 0a8b35d528 버그 수정 2019-09-22 22:46:04 +09:00
Hide_D 09052ec21d git_pull request 추가 2019-09-22 22:45:06 +09:00
Hide_D 100a0cb9be 스1 김가을 추가 2019-06-14 23:52:58 +09:00
Hide_D fd07bae0bc chess판 추가 2019-05-01 22:52:12 +09:00
Hide_D a501219eee 스타1프로게이머 이미지 등록 2019-04-08 00:03:13 +09:00
Hide_D fbb0cb0149 걸그룹 추가 이미지 반영 2018-12-09 20:13:41 +09:00
Hide_D 9240d2e328 걸그룹 이미지 추가 반영 2018-12-09 18:02:54 +09:00
Hide_D 1b54cc1c43 걸그룹 전콘 초안 반영 2018-12-08 20:49:49 +09:00
Hide_D b42e2ad627 htaccess 반영 2018-10-27 21:48:17 +09:00
Hide_DandGogs 1c11f0c2df Merge branch 'master' of cappu/image into master 2018-08-28 13:30:34 +09:00
1736 changed files with 153 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
/hook/gogs_key.php
/hook/logs.txt
/hook/list.json
/hook/HashKey.php
Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 648 KiB

+7
View File
@@ -0,0 +1,7 @@
<?php
namespace sammo\img_service;
class HashKey{
const KEY = '=HashKey=';
}
+36
View File
@@ -0,0 +1,36 @@
<?php
namespace sammo\img_service;
header('Content-Type: application/json');
$json_response = [
'result'=>false,
'reason'=>'Unknown',
];
$key = $_REQUEST['key']??'';
if (!$key) {
$json_response['reason'] = 'no key';
die(json_encode($json_response));
}
if (strlen($key)<16) {
$json_response['reason'] = 'key is too short';
die(json_encode($json_response));
}
$keyExists = file_exists(__DIR__.'/HashKey.php');
if($keyExists){
$json_response['reason'] = 'already exists';
die(json_encode($json_response));
}
$keyTemplate = file_get_contents(__DIR__.'/HashKey.orig.php');
$keyFile = str_replace('=HashKey=', $key, $keyTemplate);
file_put_contents(__DIR__.'/HashKey.php', $keyFile);
$json_response['result'] = true;
$json_response['reason'] = 'success';
die(json_encode($json_response));
+109
View File
@@ -0,0 +1,109 @@
<?php
namespace sammo\img_service;
include(__DIR__.'/HashKey.php');
function hashPassword($salt, $password)
{
return hash('sha512', $salt.$password.$salt);
}
function getVersion($target=null){
if($target){
$command = sprintf('git describe %s --long --tags', escapeshellarg($target));
}
else{
$command = 'git describe --long --tags';
}
exec($command, $output);
if(is_array($output)){
$output = join('', $output);
}
return trim($output);
}
function isCommandLineInterface()
{
return (php_sapi_name() === 'cli');
}
header('Content-Type: application/json');
$json_response = [
'result'=>false,
'reason'=>'Unknown',
'version'=>null,
];
if (!isCommandLineInterface()) {
$req_hash = $_REQUEST['req']??'';
$req_time = $_REQUEST['time']??0;
if (!$req_hash) {
$json_response['reason'] = 'no req';
die(json_encode($json_response));
}
if (!$req_time || !is_numeric($req_time)) {
$json_response['reason'] = 'invalid time';
die(json_encode($json_response));
}
$key = HashKey::KEY;
if (strlen($key)<16) {
$json_response['reason'] = 'key is too short';
die(json_encode($json_response));
}
$timestamp = time();
if (abs($timestamp - $req_time) > 300) {
$json_response['reason'] = 'time difference';
die(json_encode($json_response));
}
$ans_hash = hashPassword(sprintf("%016x", $req_time), $key);
if ($ans_hash != $req_hash) {
$json_response['reason'] = 'hash mismatch';
die(json_encode($json_response));
}
}
exec("git pull -q 2>&1", $output);
exec("git ls-files -z ../icons", $raw_img_list);
$raw_img_list = explode("\x00", $raw_img_list[0]);
$img_list = [];
foreach ($raw_img_list as $path) {
$pos = strpos($path, '../icons/');
if($pos === false){
continue;
}
$path = substr($path, $pos + 9);
$pathinfo = pathinfo($path);
$dpath = $pathinfo['dirname'];
$basename = $pathinfo['basename'];
$filename = $pathinfo['filename'];
if(!\key_exists($dpath, $img_list)){
$img_list[$dpath] = [];
}
$img_list[$dpath][$filename] = $basename;
}
file_put_contents('list.json', json_encode($img_list));
$json_response['result'] = true;
$json_response['reason'] = 'success';
$json_response['version'] = getVersion();
die(json_encode($json_response));
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Some files were not shown because too many files have changed in this diff Show More