We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 9d86bdac authored by jurgbohn's avatar jurgbohn

Changed 'role' to style to pass w3c-validation.

Added install_path to config.php
parent 65435079
......@@ -23,8 +23,8 @@ require_once('database.php');
</head>
<body>
<div id="doc3" class="yui-t7">
<div id="hd" role="banner"><h1><a href="http://libre.fm/">Libre.fm Gobble Server</a></h1></div>
<div id="bd" role="main">
<div id="hd" style="banner"><h1><a href="http://libre.fm/">Libre.fm Gobble Server</a></h1></div>
<div id="bd" style="main">
<div id="yui-main">
<div class="yui-b"><div class="yui-g">
......@@ -138,7 +138,7 @@ if ($req_user) {
</div>
</div>
<div id="ft" role="contentinfo">
<div id="ft" style="contentinfo">
<p>This site handles <em>gobble</em> and <em>now playing</em>
submissions from client applications and offers access to our web
......
......@@ -101,9 +101,10 @@ if (isset($_POST['install'])) {
$mdb2->disconnect();
$submissions_server = $_POST['submissions'];
$install_path = dirname(__FILE__) . "/";
//Write out the configuration
$config = "<?php \$config_version = " . $version .";\n \$connect_string = '" . $connect_string . "';\n \$submissions_server = '" . $submissions_server . "'; ?>";
$config = "<?php \$config_version = " . $version .";\n \$connect_string = '" . $connect_string . "';\n \$submissions_server = '" . $submissions_server . "';\n\$install_path = '" . $install_path . "'; ?>";
$conf_file = fopen("config.php", "w");
$result = fwrite($conf_file, $config);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment