Commit 35907bf6 authored by Mike Sheldon's avatar Mike Sheldon

Remove the need for media_url

parent a6a79876
......@@ -54,11 +54,10 @@ if (isset($_POST['install'])) {
$default_theme = $_POST['default_theme'];
$base_url = $_POST['base_url'];
$media_url = $_POST['media_url'];
$submissions_server = $_POST['submissions_server'];
//Write out the configuration
$config = "<?php\n \$config_version = " . $version .";\n \$connect_string = '" . $connect_string . "';\n \$default_theme = '" . $default_theme . "';\n \$media_url = '" . $media_url . "';\n \$base_url = '" . $base_url . "';\n \$submissions_server = '" . $submissions_server . "';\n \$install_path = '" . $install_path . "';\n \$adodb_connect_string = '" . $adodb_connect_string . "'; ";
$config = "<?php\n \$config_version = " . $version .";\n \$connect_string = '" . $connect_string . "';\n \$default_theme = '" . $default_theme . "';\n \$base_url = '" . $base_url . "';\n \$submissions_server = '" . $submissions_server . "';\n \$install_path = '" . $install_path . "';\n \$adodb_connect_string = '" . $adodb_connect_string . "'; ";
$conf_file = fopen('config.php', 'w');
$result = fwrite($conf_file, $config);
......@@ -123,7 +122,6 @@ if (isset($_POST['install'])) {
?>
</select><br />
Base URL: <input type="text" name="base_url" value="<?php echo getAbsoluteURL(); ?>" /><br />
Media URL: <input type="text" name="media_url" value="http://localhost/meeja" /><br />
Submissions Server: <input type="text" name="submissions_server" /> (URL to your gnukebox install)<br />
<br /><br />
<input type="submit" value="Install" name="install" />
......
......@@ -57,7 +57,6 @@ $smarty->cache_dir = $install_path. '/cache/';
$smarty->assign('current_lang', 'en');
/* $smarty->assign('lang_selector_array', array(($current_lang) => 1)); */
$smarty->assign('base_url', $base_url);
$smarty->assign('media_url', $media_url);
$smarty->assign('default_theme', $default_theme);
$smarty->assign('img_url', $base_url . '/themes/' . $default_theme . '/img/');
$smarty->assign('this_page', $_SERVER['REQUEST_URI']);
......
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