X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=install.php;h=570b08edf473b13e709ece605656a279d89016de;hb=854d24b05a052bffe21f112b705d58c9abf126a9;hp=32915200b29054f92bb433f06c6b89087448a393;hpb=003c63e587128c6d095386c563c2615c2ac245c2;p=quix0rs-gnu-social.git
diff --git a/install.php b/install.php
index 32915200b2..570b08edf4 100644
--- a/install.php
+++ b/install.php
@@ -1,7 +1,7 @@
Config file "config.php" already exists.
Require PHP version 5 or greater.
Cannot load required extension:
Cannot write config file to:
On your server, try this command: chmod a+w
Cannot write avatar directory: /avatar/
On your server, try this command: chmod a+w /avatar/
- return false;
+ $pass = false;
+ }
+ if (!is_writable(INSTALLDIR.'/background/')) {
+ ?>Cannot write background directory: /background/
+ On your server, try this command: chmod a+w /background/
+
+ $pass = false;
}
- return true;
+ return $pass;
}
function checkExtension($name)
@@ -86,7 +94,6 @@ function checkExtension($name)
function showForm()
{
- $config_path = htmlentities(trim(dirname($_SERVER['REQUEST_URI']), '/'));
echo<<
@@ -119,11 +126,6 @@ function showForm()
Database hostname
-
-
-
- Site path, following the "/" after the domain name in the URL. Empty is fine. Field should be filled automatically.
-
@@ -165,7 +167,6 @@ function handlePost()
$username = $_POST['username'];
$password = $_POST['password'];
$sitename = $_POST['sitename'];
- $path = $_POST['path'];
$fancy = !empty($_POST['fancy']);
?>
@@ -173,36 +174,38 @@ function handlePost()
-
new Laconica sitenew Laconica site.");
?>
");
return $res;
}
function runDbScript($filename, $conn)
{
-return true;
$sql = trim(file_get_contents($filename));
$stmts = explode(';', $sql);
foreach ($stmts as $stmt) {
@@ -290,13 +293,13 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
Install Laconica
-
+
-
-
-
+
+
+