Move avatar folder to <mibew_root>/files

This commit is contained in:
Dmitriy Simushev 2013-12-16 15:27:14 +00:00
parent 80d500413d
commit 87d993da35
3 changed files with 7 additions and 7 deletions

View File

@ -24,18 +24,18 @@ INSTALLATION
9. Change your password and name.
10. Wait for your visitors on 'Pending users' page.
On unix/linux platforms change the owner of /mibew/images/avatar folder
On unix/linux platforms change the owner of /mibew/files/avatar folder
to the user, under which the web server is running (for instance, www).
The owner should have all rights on the folder /mibew/images/avatar
(chmod 700 /mibew/images/avatar).
The owner should have all rights on the folder /mibew/files/avatar
(chmod 700 /mibew/files/avatar).
UPDATE
1. Backup your /mibew/libs/config.php
2. Backup your /mibew/images/avatar folder.
2. Backup your /mibew/files/avatar folder.
3. Delete the items in the mibew folder on the server.
4. Upload all the files contained in the downloaded archive (retaining the directory structure) into mibew folder.
5. Re-edit the MySQL database settings you config.php
6. Visit http://<yourdomain>/mibew/install/ and follow the instructions to update database (if needed).
7. Remove /mibew/install/ directory from your server
8. Restore contents of /mibew/images/avatar folder.
8. Restore contents of /mibew/files/avatar folder.

View File

@ -55,7 +55,7 @@ if (!$op) {
} elseif (!in_array($ext, $valid_types)) {
$errors[] = failed_uploading_file($orig_filename, "errors.invalid.file.type");
} else {
$avatar_local_dir = dirname(dirname(__FILE__)).'/images/avatar/';
$avatar_local_dir = dirname(dirname(__FILE__)).'/files/avatar/';
$full_file_path = $avatar_local_dir . $new_file_name;
if (file_exists($full_file_path)) {
unlink($full_file_path);
@ -63,7 +63,7 @@ if (!$op) {
if (!@move_uploaded_file($_FILES['avatarFile']['tmp_name'], $full_file_path)) {
$errors[] = failed_uploading_file($orig_filename, "errors.file.move.error");
} else {
$avatar = "$mibewroot/images/avatar/$new_file_name";
$avatar = "$mibewroot/files/avatar/$new_file_name";
}
}
} else {