X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=install.php;h=b94a9293607e7928659c4da53e09323283d61f5b;hb=205d8afe546b385100103dafc439d0397c36cbf4;hp=32915200b29054f92bb433f06c6b89087448a393;hpb=a325144fa0ba769de1cdb554cac04e0116912b66;p=quix0rs-gnu-social.git
diff --git a/install.php b/install.php
index 32915200b2..b94a929360 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;
}
- return true;
+ return $pass;
}
function checkExtension($name)
@@ -86,7 +88,6 @@ function checkExtension($name)
function showForm()
{
- $config_path = htmlentities(trim(dirname($_SERVER['REQUEST_URI']), '/'));
echo<<
@@ -119,11 +120,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 +161,6 @@ function handlePost()
$username = $_POST['username'];
$password = $_POST['password'];
$sitename = $_POST['sitename'];
- $path = $_POST['path'];
$fancy = !empty($_POST['fancy']);
?>
@@ -173,36 +168,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 +287,13 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
Install Laconica
-
+
-
-
-
+
+
+