|
|
@ -101,6 +101,7 @@ class SetUp
|
|
|
|
|
|
|
|
|
|
|
|
$backup = $request->getUploadedFiles();
|
|
|
|
$backup = $request->getUploadedFiles();
|
|
|
|
$file = $backup["backup-upload"];
|
|
|
|
$file = $backup["backup-upload"];
|
|
|
|
|
|
|
|
$size = $file->getSize();
|
|
|
|
$name = $file->getClientFileName();
|
|
|
|
$name = $file->getClientFileName();
|
|
|
|
|
|
|
|
|
|
|
|
//park it so it can be read
|
|
|
|
//park it so it can be read
|
|
|
@ -151,15 +152,22 @@ class SetUp
|
|
|
|
|
|
|
|
|
|
|
|
rename("../content/settings/tags.json", "../config/tags.json");
|
|
|
|
rename("../content/settings/tags.json", "../config/tags.json");
|
|
|
|
|
|
|
|
|
|
|
|
rename(
|
|
|
|
//images path for blog and user
|
|
|
|
"../content/public/assets/images/blog",
|
|
|
|
$blogImagePath = "../public/assets/images/blog";
|
|
|
|
"../public/assets/images/blog"
|
|
|
|
$userImagePath = "../public/assets/images/user";
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rename(
|
|
|
|
//check to see if image dirs are empty, if not chill
|
|
|
|
"../content/public/assets/images/user",
|
|
|
|
if ($globs = glob($blogImagePath . "/*")) {
|
|
|
|
"../public/assets/images/user"
|
|
|
|
//directory not empty, relax
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
|
|
|
|
rename("../content/public/assets/images/blog", $blogImagePath);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($globs = glob($userImagePath . "/*")) {
|
|
|
|
|
|
|
|
//directory not empty, relax
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
rename("../content/public/assets/images/user", $userImagePath);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
rename("../content/content/pages/", "../content/pages");
|
|
|
|
rename("../content/content/pages/", "../content/pages");
|
|
|
|
|
|
|
|
|
|
|
|