|
@@ -24,8 +24,8 @@ discard block |
|
|
block discarded – undo |
|
24
|
24
|
$img_name = classSupernova::$config->int_userbar_background; |
|
25
|
25
|
break; |
|
26
|
26
|
} |
|
27
|
|
- $size = getimagesize(SN_ROOT_PHYSICAL . $img_name); |
|
28
|
|
- $im = imagecreatefrompng(SN_ROOT_PHYSICAL . $img_name); |
|
|
27
|
+ $size = getimagesize(SN_ROOT_PHYSICAL.$img_name); |
|
|
28
|
+ $im = imagecreatefrompng(SN_ROOT_PHYSICAL.$img_name); |
|
29
|
29
|
$image = imagecreatetruecolor($size[0], $size[1]); |
|
30
|
30
|
imagecopy($image, $im, 0, 0, 0, 0, $size[0], $size[1]); |
|
31
|
31
|
imagedestroy($im); |
|
@@ -37,10 +37,10 @@ discard block |
|
|
block discarded – undo |
|
37
|
37
|
$txt_color2 = imagecolorallocatealpha($image, 255, 255, 255, 40); |
|
38
|
38
|
|
|
39
|
39
|
$fonts = array( |
|
40
|
|
- 'userbar' => SN_ROOT_PHYSICAL . "design/fonts/" . classSupernova::$config->int_userbar_font, |
|
41
|
|
- 'universe' => SN_ROOT_PHYSICAL . "design/fonts/" . classSupernova::$config->int_banner_fontUniverse, |
|
42
|
|
- 'raids' => SN_ROOT_PHYSICAL . "design/fonts/" . classSupernova::$config->int_banner_fontRaids, |
|
43
|
|
- 'info' => SN_ROOT_PHYSICAL . "design/fonts/" . classSupernova::$config->int_banner_fontInfo, |
|
|
40
|
+ 'userbar' => SN_ROOT_PHYSICAL."design/fonts/".classSupernova::$config->int_userbar_font, |
|
|
41
|
+ 'universe' => SN_ROOT_PHYSICAL."design/fonts/".classSupernova::$config->int_banner_fontUniverse, |
|
|
42
|
+ 'raids' => SN_ROOT_PHYSICAL."design/fonts/".classSupernova::$config->int_banner_fontRaids, |
|
|
43
|
+ 'info' => SN_ROOT_PHYSICAL."design/fonts/".classSupernova::$config->int_banner_fontInfo, |
|
44
|
44
|
); |
|
45
|
45
|
|
|
46
|
46
|
if ($id) { |
|
@@ -52,8 +52,8 @@ discard block |
|
|
block discarded – undo |
|
52
|
52
|
$b_user = $user['username']; |
|
53
|
53
|
$b_ally = $user['ally_name']; |
|
54
|
54
|
$b_planet = $planet_row['name']; |
|
55
|
|
- $b_xyz = "[" . $planet_row['galaxy'] . ":" . $planet_row['system'] . ":" . $planet_row['planet'] . "]"; |
|
56
|
|
- $b_lvl = ($user['total_rank'] ? $user['total_rank'] : classSupernova::$config->users_amount) . "/" . classSupernova::$config->users_amount; |
|
|
55
|
+ $b_xyz = "[".$planet_row['galaxy'].":".$planet_row['system'].":".$planet_row['planet']."]"; |
|
|
56
|
+ $b_lvl = ($user['total_rank'] ? $user['total_rank'] : classSupernova::$config->users_amount)."/".classSupernova::$config->users_amount; |
|
57
|
57
|
} else { |
|
58
|
58
|
$b_user = classLocale::$lang['ov_banner_empty_id']; |
|
59
|
59
|
$b_lvl = ''; |
|
@@ -88,11 +88,11 @@ discard block |
|
|
block discarded – undo |
|
88
|
88
|
imagettftext($image, 9, 0, 410 - $is[2], 35, $txt_color, $fonts['info'], $b_ally); |
|
89
|
89
|
|
|
90
|
90
|
// Player b_planet |
|
91
|
|
- imagettftext($image, 6, 0, 8, 10, $txt_shadow2, $fonts['raids'], $b_planet . " " . $b_xyz); |
|
92
|
|
- imagettftext($image, 6, 0, 6, 9, $txt_color2, $fonts['raids'], $b_planet . " " . $b_xyz); |
|
|
91
|
+ imagettftext($image, 6, 0, 8, 10, $txt_shadow2, $fonts['raids'], $b_planet." ".$b_xyz); |
|
|
92
|
+ imagettftext($image, 6, 0, 6, 9, $txt_color2, $fonts['raids'], $b_planet." ".$b_xyz); |
|
93
|
93
|
|
|
94
|
94
|
//StatPoint |
|
95
|
|
- $b_points = classLocale::$lang['ov_points'] . ": " . pretty_number(!empty($user['total_points']) ? $user['total_points'] : 0); |
|
|
95
|
+ $b_points = classLocale::$lang['ov_points'].": ".pretty_number(!empty($user['total_points']) ? $user['total_points'] : 0); |
|
96
|
96
|
$is = imagettfbbox(8, 0, $fonts['info'], $b_points); |
|
97
|
97
|
imagettftext($image, 8, 0, 412 - $is[2], 11, $txt_shadow, $fonts['info'], $b_points); |
|
98
|
98
|
imagettftext($image, 8, 0, 410 - $is[2], 9, $txt_color, $fonts['info'], $b_points); |
|
@@ -100,21 +100,21 @@ discard block |
|
|
block discarded – undo |
|
100
|
100
|
//Raids Total |
|
101
|
101
|
imagettftext($image, 6, 0, 8, 37, $txt_shadow2, $fonts['raids'], classLocale::$lang['NumberOfRaids']); |
|
102
|
102
|
imagettftext($image, 6, 0, 6, 35, $txt_color2, $fonts['raids'], classLocale::$lang['NumberOfRaids']); |
|
103
|
|
- $b_points = ": " . pretty_number(!empty($user['raids']) ? $user['raids'] : 0); |
|
|
103
|
+ $b_points = ": ".pretty_number(!empty($user['raids']) ? $user['raids'] : 0); |
|
104
|
104
|
imagettftext($image, 6, 0, 61, 37, $txt_shadow2, $fonts['raids'], $b_points); |
|
105
|
105
|
imagettftext($image, 6, 0, 59, 35, $txt_color2, $fonts['raids'], $b_points); |
|
106
|
106
|
|
|
107
|
107
|
//Raids Won |
|
108
|
108
|
imagettftext($image, 6, 0, 8, 47, $txt_shadow2, $fonts['raids'], classLocale::$lang['RaidsWin']); |
|
109
|
109
|
imagettftext($image, 6, 0, 6, 45, $txt_color2, $fonts['raids'], classLocale::$lang['RaidsWin']); |
|
110
|
|
- $b_points = ": " . pretty_number(!empty($user['raidswin']) ? $user['raidswin'] : 0); |
|
|
110
|
+ $b_points = ": ".pretty_number(!empty($user['raidswin']) ? $user['raidswin'] : 0); |
|
111
|
111
|
imagettftext($image, 6, 0, 61, 47, $txt_shadow2, $fonts['raids'], $b_points); |
|
112
|
112
|
imagettftext($image, 6, 0, 59, 45, $txt_color2, $fonts['raids'], $b_points); |
|
113
|
113
|
|
|
114
|
114
|
//Raids Lost |
|
115
|
115
|
imagettftext($image, 6, 0, 8, 57, $txt_shadow2, $fonts['raids'], classLocale::$lang['RaidsLoose']); |
|
116
|
116
|
imagettftext($image, 6, 0, 6, 55, $txt_color2, $fonts['raids'], classLocale::$lang['RaidsLoose']); |
|
117
|
|
- $b_points = ": " . pretty_number(!empty($user['raidsloose']) ? $user['raidsloose'] : 0); |
|
|
117
|
+ $b_points = ": ".pretty_number(!empty($user['raidsloose']) ? $user['raidsloose'] : 0); |
|
118
|
118
|
imagettftext($image, 6, 0, 61, 57, $txt_shadow2, $fonts['raids'], $b_points); |
|
119
|
119
|
imagettftext($image, 6, 0, 59, 55, $txt_color2, $fonts['raids'], $b_points); |
|
120
|
120
|
} |