-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchgprof.php
62 lines (60 loc) · 2.43 KB
/
chgprof.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
include('/var/www/twiverse.php');
$s = [
'name' => [ 'ja' => "グレたノコノコ", 'en' => "Gray Koopa Troopa", ],
'desc' => [
'ja' => "BlueHood の夜の姿。
すきなものはカメラ、カメン、ツタンカ~メン。
カメオカート8デラックスでは、カロンはいつもほうたいをもちあるいてます。
ヘイホーはカメンをかぶってるからなかまです。
パタパタにあこがれてます。
ヨッシーがてんてき。
",
//This joke doesn't really work as well in English due to the different sounds:
'en' => "BlueHood's night appearance.
My favorite things are cameras, masks, and Tutankhamen.
In Kameo Kart 8 Deluxe, Dry Bones always has fantastic taste.
Shy Guy is my friend because he wears a mask.
I look up to Paratroopa.
Yoshi is strange.
",
//"Dry Bones always has fantastic taste." might actually be: "Dry Bones always carries around bandages."
],
//'' => ['ja' => "", 'en' => "", ],
];
try{
if (getdate()['hours'] == 6){
$name = 'BlueHood';
$desc = "Twitter のイメージをつなげるコミュニティ。
The community to link images on Twitter.
https://t.co/DxLYhFbFhM
GitHub: https://t.co/voYZ2lrpjv
";
$avatar = '/var/www/html/img/twiverse/default.png';
$banner = '';
}else if (getdate()['hours'] == 18){
$name = 'グレたノコノコ';
$desc = "BlueHood の夜の姿。
すきなものはカメラ、カメン、ツタンカ~メン。
カメオカート8デラックスでは、カロンはいつもほうたいをもちあるいてます。
ヘイホーはカメンをかぶってるからなかまです。
パタパタにあこがれてます。
ヨッシーがてんてき。
";
$avatar = '/var/www/html/img/twiverse/banwolf.png';
$banner = '/var/www/html/img/banner/stray_troopa.jpg';
}
if (isset($name)){
$twitter_admin = twitter_admin();
twitter_throw($twitter_admin->post('account/update_profile', ['name' => $name, 'description' => $desc]));
twitter_throw($twitter_admin->post('account/update_profile_image', ['image' => base64_encode(file_get_contents($avatar))]));
if ($banner){
twitter_throw($twitter_admin->post('account/update_profile_banner', ['banner' => base64_encode(file_get_contents($banner))]));
}else{
twitter_throw($twitter_admin->post('account/remove_profile_banner', []));
}
}
}catch(Exception $e){
catch_default($e);
}
?>