|
| 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 "update-0-0-1-alpha-2-0-0-1-beta-1" folder.</strong'; |
| 35 | +?> |
0 commit comments