mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-13 18:04:54 +02:00
When uploading guild images, it will give you an error message if it fails.
Guild motd will display on guild page, and the leader can also update it. Fixed two bugs with name change in shop. (sync error and name validation) Fixed some warnings. My account now shows how many days you have of premium account.
This commit is contained in:
@@ -460,7 +460,7 @@ function check_image($image) {
|
||||
if ($path_info['extension'] === 'gif') {
|
||||
|
||||
// Resize image
|
||||
$img = resize_imagex($image_data, 150, 150);
|
||||
$img = resize_imagex($image_data, 100, 100);
|
||||
|
||||
if ($img) {
|
||||
|
||||
@@ -470,25 +470,25 @@ function check_image($image) {
|
||||
|
||||
} else {
|
||||
|
||||
header('Location: guilds.php?name='. $_GET['name']);
|
||||
header('Location: guilds.php?error=Only gif images accepted, you uploaded:['.$path_info['extension'].'].&name='. $_GET['name']);
|
||||
exit();
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
header('Location: guilds.php?name='. $_GET['name']);
|
||||
header('Location: guilds.php?error=Only gif images accepted, you uploaded:['.$check['mime'].'].&name='. $_GET['name']);
|
||||
exit();
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
header('Location: guilds.php?name='. $_GET['name']);
|
||||
header('Location: guilds.php?error=Uploaded image is invalid.&name='. $_GET['name']);
|
||||
exit();
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
header('Location: guilds.php?name='. $_GET['name']);
|
||||
header('Location: guilds.php?error=Only gif images are accepted, you uploaded:['.$image_data['type'].'].&name='. $_GET['name']);
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user