Skip to content

Commit 2bf7fa9

Browse files
Update and rename update-0-0-1-alpha-2-0-0-1-beta-1/update.php to update-0-0-1-beta-1-0-0-1-beta-2/update.php
Implemented most of the new code changes. TODO: add the new files to the repo, write a script to update the database, write a script to modify functions.php without losing server data.
1 parent 5264e61 commit 2bf7fa9

File tree

2 files changed

+35
-29
lines changed

2 files changed

+35
-29
lines changed

update-0-0-1-alpha-2-0-0-1-beta-1/update.php

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
//Update Script for Updating BlogDraw from v0.0.1-alpha-2 to v0.0.1-beta-1
3+
//Changes to .htaccess
4+
echo '<h1>Starting Update...</h1>';
5+
echo '<p>Thank you for your patience.</p>';
6+
7+
//Alter Database
8+
9+
//Figure out how to alter thefunctions file
10+
11+
echo '<p>% Complete.</p>';
12+
//Changes to /Back/functions_back.php
13+
file_put_contents('../Back/functions_back.php', file_get_contents('./functions_back.php.new'));
14+
echo '<p>% Complete.</p>';
15+
//Changes to /index.php
16+
file_put_contents('../index.php', file_get_contents('./index.php.new'));
17+
echo '<p>% Complete.</p>';
18+
//Changes to /template/BlogDraw2018/index.php
19+
file_put_contents('../template/BlogDraw2018/index.php', file_get_contents('./template-blogdraw2018-index.php.new'));
20+
echo '<p>% Complete.</p>';
21+
//Changes to /template/DarkBlogDraw2018/index.php
22+
file_put_contents('../template/DarkBlogDraw2018/index.php', file_get_contents('./template-darkblogdraw2018-index.php.new'));
23+
echo '<p>% Complete.</p>';
24+
//Changes to /Uploads/1.png
25+
file_put_contents('../Uploads/1.png', file_get_contents('./1.png'));
26+
echo '<p>% Complete.</p>';
27+
//Changes to /Uploads/apple-touch-icon.png
28+
file_put_contents('../Uploads/apple-touch-icon.png', file_get_contents('./apple-touch-icon.png'));
29+
echo '<p>% Complete.</p>';
30+
//Changes to /Uploads/favicon.ico
31+
file_put_contents('../Uploads/favicon.ico', file_get_contents('./favicon.ico'));
32+
echo '<p>100% Complete.</p>';
33+
echo '<p>Done! You can now close this window.</p>
34+
<strong>It is highly recommended that you now delete the &quot;update-0-0-1-alpha-2-0-0-1-beta-1&quot; folder.</strong';
35+
?>

0 commit comments

Comments
 (0)