Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit 10d0841

Browse files
authored
Add files via upload
1 parent 20703a6 commit 10d0841

File tree

14 files changed

+42
-93
lines changed

14 files changed

+42
-93
lines changed

163Music/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
/*
2+
/**
33
* By SkiMkino
44
* GitHub: https://github.com/XMSMApi
55
* License: GPLv3

AcFunVideo/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
/*
2+
/**
33
* By SkiMkino
44
* GitHub: https://github.com/XMSMApi
55
* License: GPLv3

BiliBiliUserInfo/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
/*
2+
/**
33
* By SkiMkino
44
* GitHub: https://github.com/XMSMApi
55
* License: GPLv3

BingImage/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
/*
2+
/**
33
* By SkiMkino
44
* GitHub: https://github.com/XMSMApi
55
* License: GPLv3

GitHubUserCard/index.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
/*
2+
/**
33
* By SkiMkino
44
* GitHub: https://github.com/XMSMApi
55
* License: GPLv3
@@ -9,7 +9,7 @@
99
$name = $_GET['name'];
1010
if ($name != '') {
1111
header('Content-Type: image/svg+xml');
12-
$data = json_decode(curl('https://api.github.com/users/' . $name . '?client_id='));
12+
$data = json_decode(curl('https://api.github.com/users/' . $name . '?client_id=981bfe3c46b4bd37198d3a6af249ad03a7d5952a'));
1313
$bg = '#'.$_GET['bg_color'];
1414
if ($bg == '#') {
1515
$bg = 'white';
@@ -127,4 +127,4 @@ class="header"
127127
} else {
128128
echo json_code('', 500, 'No set name');
129129
}
130-
?>
130+
?>

GitHubUserInfo/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
/*
2+
/**
33
* By SkiMkino
44
* GitHub: https://github.com/XMSMApi
55
* License: GPLv3

GoogleDrive/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
/*
2+
/**
33
* By SkiMkino
44
* GitHub: https://github.com/XMSMApi
55
* License: GPLv3

KuGouMusic/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
/*
2+
/**
33
* By SkiMkino
44
* GitHub: https://github.com/XMSMApi
55
* License: GPLv3

KuWoMusic/index.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
/*
2+
/**
33
* By SkiMkino
44
* GitHub: https://github.com/XMSMApi
55
* License: GPLv3
@@ -18,6 +18,6 @@
1818
echo json_code($json, 200);
1919
} else {
2020
echo json_code('', 500, 'No set id');
21-
exit();
21+
exit;
2222
}
2323
?>

MCServerQuery/index.php

+7-76
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
/*
2+
/**
33
* By SkiMkino
44
* GitHub: https://github.com/XMSMApi
55
* License: GPLv3
@@ -8,85 +8,14 @@
88

99
$host = $_GET['host'];
1010
$port = $_GET['port'];
11-
$name = $_GET['sn'];
12-
$theme = $_GET['theme'];
13-
$fon = $_GET['font'];
1411
$font = str_replace(':enand:', '&', $fon);
1512

1613
require_once 'ApiQuery.php';
1714
require_once 'ApiPing.php';
1815

1916
require_once 'closeTags.php';
2017

21-
if (isset($_GET['image'])) {
22-
header("Content-type: image/JPEG");
23-
if (isset($theme)) {
24-
if ($theme == 'light') {
25-
$im = imagecreatefromjpeg('./theme/light.jpg');
26-
$color = ImageColorAllocate($im, 255,255,153);
27-
} elseif ($theme == 'dark') {
28-
$im = imagecreatefromjpeg('./theme/dark.jpg');
29-
$color = ImageColorAllocate($im, 127,255,170);
30-
} else {
31-
$im = imagecreatefromjpeg('./theme/defult.jpg');
32-
$color = ImageColorAllocate($im, 0,204,255);
33-
}
34-
} else {
35-
$im = imagecreatefromjpeg('./theme/defult.jpg');
36-
$color = ImageColorAllocate($im, 0,204,255);
37-
}
38-
39-
//定义字体
40-
if ($font == null) {
41-
$font = 'defult.ttf';
42-
}
43-
44-
//定义颜色&字体
45-
$black = ImageColorAllocate($im, 0,0,0);
46-
$pink = ImageColorAllocate($im, 255,119,201);
47-
48-
//Ping
49-
require_once 'ApiQuery.php';
50-
require_once 'ApiPing.php';
51-
52-
//读取Info
53-
require_once 'closeTags.php';
54-
55-
$players = $InfoPing['players']['online'].'/'.$InfoPing['players']['max'];
56-
$version = explode(" ", $InfoPing['version']['name'], 2);
57-
58-
//判定是否在线
59-
if ($InfoPing !== false) {
60-
61-
/*
62-
在线
63-
输出
64-
*/
65-
$Ping = $Timer * 1000;
66-
imagettftext($im, 20, 0, 12, 40, $color, $font, $name);
67-
imagettftext($im, 20, 0, 12, 72, $color, $font, ' Host:'.$host);
68-
imagettftext($im, 20, 0, 12, 104, $color, $font,' Port:'.$port);
69-
imagettftext($im, 20, 0, 12, 147, $color, $font,' Players:'.$players);
70-
imagettftext($im, 20, 0, 12, 185, $pink, $font,' Version:'.$version[1]);
71-
imagettftext($im, 20, 0, 12, 210, $pink, $font, ' Ping:'.$Ping.'ms');
72-
imagettftext($im, 20, 0, 12, 250, $pink, $font, ' Powered By SkiMino');
73-
ImageGif($im);
74-
ImageDestroy($im);
75-
} else {
76-
77-
/*
78-
离线&不存在
79-
输出
80-
*/
81-
imagettftext($im, 20, 0, 12, 40, $color, $font, $name);
82-
imagettftext($im, 20, 0, 12, 72, $color, $font, ' Host:'.$host);
83-
imagettftext($im, 20, 0, 12, 104, $color, $font,' Port:'.$port);
84-
imagettftext($im, 20, 0, 12, 210, $pink, $font,' Offline/Not such Host');
85-
imagettftext($im, 20, 0, 12, 250, $pink, $font, ' Powered By SkiMino');
86-
ImageGif($im);
87-
ImageDestroy($im);
88-
}
89-
} else {
18+
if ($host != null) {
9019
if (($Info = $Query->GetInfo()) !== false) {
9120

9221
if ($Info['GameName'] == 'MINECRAFT') {
@@ -108,10 +37,10 @@
10837
}
10938

11039
$json = array(
111-
'status' => 'Yes',
40+
'status' => 'Online',
11241
'platform' => $platform,
11342
'gametype' => $Info['GameType'],
114-
'icon' => $Info['favicon'],
43+
'icon' => str_replace("\n", "", $Info['favicon']),
11544
'motd' => array(
11645
'ingame' => $Info['HostName']
11746
),
@@ -157,11 +86,13 @@
15786
);
15887
} else {
15988
$json = array(
160-
'status' => 'No',
89+
'status' => 'Offline',
16190
'host' => $host,
16291
'port' => $port
16392
);
16493
}
16594
echo json_code($json, 200);
95+
} else {
96+
echo json_code('', 500, 'No set host');
16697
}
16798
?>

PixivImage/index.php

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
/**
3+
* By SkiMkino
4+
* GitHub: https://github.com/XMSMApi
5+
* License: GPLv3
6+
*/
7+
include '../lib/func.php';
8+
9+
$pid = $_GET['pid'];
10+
if ($pid != null) {
11+
$d = curl('https://www.pixiv.net/ajax/illust/' . $pid . '/pages');
12+
$e = str_replace('"error":false,', '', $d);
13+
echo $e;
14+
15+
} else {
16+
json_code('', 500, 'No set pid');
17+
}
18+
?>

QQGroupAvatar/index.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
/*
2+
/**
33
* By SkiMkino
44
* GitHub: https://github.com/XMSMApi
55
* License: GPLv3
@@ -16,7 +16,7 @@
1616
$json = array(
1717
"qqgcode" => $qgc,
1818
"size" => $size,
19-
"url" => "https://p.qlogo.cn/gh/{$qgc}/{$qgc}/{$size}"
19+
"avatar" => "https://p.qlogo.cn/gh/{$qgc}/{$qgc}/{$size}"
2020
);
2121
echo json_code($json, 200);
2222
} else {
@@ -26,4 +26,4 @@
2626
} else {
2727
echo json_code('', 500, 'No set qgc');
2828
}
29-
?>
29+
?>

QQUserAvatar/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
/*
2+
/**
33
* By SkiMkino
44
* GitHub: https://github.com/XMSMApi
55
* License: GPLv3

RealUrl/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
/*
2+
/**
33
* By SkiMkino
44
* GitHub: https://github.com/XMSMApi
55
* License: GPLv3

0 commit comments

Comments
 (0)