From: Christian Weiske Date: Fri, 4 Jul 2014 19:46:42 +0000 (+0200) Subject: put config.php.dist in textarea for easier selecting and copying X-Git-Tag: v0.4.0~17 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/40c42534b9daa1f8386b836128866d4383572bae put config.php.dist in textarea for easier selecting and copying --- diff --git a/www/setup.php b/www/setup.php index f0be905..485c19f 100644 --- a/www/setup.php +++ b/www/setup.php @@ -103,6 +103,7 @@ if (array_sum($GLOBALS['phorkie']['cfgfiles']) == 0) { $cfgFileTemplate = htmlspecialchars( file_get_contents(__DIR__ . '/../data/config.php.dist') ); + $cfgFileLines = count(explode("\n", $cfgFileTemplate)); $out .= <<Configuration file @@ -114,7 +115,7 @@ if (array_sum($GLOBALS['phorkie']['cfgfiles']) == 0) {

from the following template:

-
$cfgFileTemplate
+

Remove the leading // from a line if you want to adjust it.

@@ -122,8 +123,8 @@ HTM; } $out .= << - back to the index +

+ back to the index