You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update Script for Updating BlogDraw to v0.0.1-rc-1
4
+
**/
5
+
////Development error reporting. Should usually be turned off in production systems.
2
6
//error_reporting(E_ALL);
3
7
//ini_set('display_errors', 'On');
4
-
//Update Script for Updating BlogDraw to v0.0.1-beta-2.1
8
+
5
9
echo'<h1>Starting Update...</h1>';
6
10
echo'<p>Thank you for your patience.</p>';
7
11
8
-
file_put_contents("BlogDrawSrc.tar.gz", fopen("https://github.com/TuxSoftLimited/BlogDraw/archive/v0.0.1-beta-2.1.tar.gz", 'r'));// Get the release from GitHub.
12
+
file_put_contents("BlogDrawSrc.tar.gz", fopen("https://github.com/TuxSoftLimited/BlogDraw/archive/v0.0.1-rc-1.tar.gz", 'r'));// Get the release from GitHub.
$DBQuery = "ALTER TABLE ". DBPREFIX . "_LoginTable ADD COLUMN DisplayName VARCHAR(25) NOT NULL;";// Add the rc-1 DisplayName feature.
41
+
mysqli_query($DBConnection,$DBQuery);
42
+
mysqli_close($DBConnection);
43
+
44
+
echo"<p>Done! You can now close this window and delete the "updater" directory.</p>";
45
+
echo"<p><strong>NEXT STEPS: </strong> For your previous uploads to appear in future versions of BlogDraw, please copy and paste them from the \"Uploads\"directory to the \"uploads\" directory. To ensure better system security, please delete the \"Back\" directory. New versions of those files are now available in the \"control\" directory.</p>";
46
+
51
47
/**
52
48
* This recursively reads a directory and all of it's subdirectories given a relative filepath, then replaces the old files with the new ones.
53
49
* Essentially filesystem traversal.
@@ -68,11 +64,12 @@ function scan_folder($dir)
68
64
if ($file != ".htaccess" && $file != "functions.php" && $file != "install.php" )// Files we don't want to deal with.
0 commit comments