?> </td> <td> <?php echo T_('This checks a few key tables to make sure that you have successfully inserted the Ampache database and that the user has access to the database'); ?> </td> </tr> <tr> <td valign="top"><?php echo T_('Web path'); ?> </td> <td valign="top"> <?php if (check_config_values($results)) { echo " <img src=\"" . AmpConfig::get('web_path') . "/images/icon_enable.png\" /> "; } else { echo debug_result(false, "SKIPPED"); } ?> </td> <td> <?php echo T_('This test makes sure that your web_path variable is set correctly and that we are able to get to the index page. If you do not see a check mark here then your web_path is not set correctly.'); ?> </td> </tr> <?php }
</div> <div class="col-sm-4 control-label"><?php echo T_('config/ampache.cfg.php exists?'); ?> </div> <div class="col-sm-8"><?php echo debug_result(is_readable($configfile)); ?> </div> <div class="col-sm-4 control-label"><?php echo T_('config/ampache.cfg.php configured?'); ?> </div> <div class="col-sm-8"><?php $results = @parse_ini_file($configfile); echo debug_result(check_config_values($results)); ?> </div> <div class="col-sm-4"> </div><div class="col-sm-8"> </div> <div class="col-sm-4"></div> <?php $check_url = $web_path . "/install.php?action=show_create_config&htmllang={$htmllang}&charset={$charset}&local_db=" . $_REQUEST['local_db'] . "&local_host=" . $_REQUEST['local_host']; ?> <div class="col-sm-8"> <a href="<?php echo $check_url; ?> ">[<?php echo T_('Recheck Config'); ?>
$created_config = $created_config && install_rewrite_rules($htaccess_rest_file, $_POST['web_path'], $download_htaccess_rest); } if ($write_htaccess_play || $download_htaccess_play || $all) { $created_config = $created_config && install_rewrite_rules($htaccess_play_file, $_POST['web_path'], $download_htaccess_play); } if ($write || $download || $all) { $created_config = $created_config && install_create_config($download); } } case 'show_create_account': $results = parse_ini_file($configfile); if (!isset($created_config)) { $created_config = true; } /* Make sure we've got a valid config file */ if (!check_config_values($results) || !$created_config) { AmpError::add('general', T_('Error: Config files not found or unreadable')); require_once AmpConfig::get('prefix') . UI::find_template('show_install_config.inc.php'); break; } // Don't try to add administrator user on existing database if (install_check_status($configfile)) { require_once AmpConfig::get('prefix') . UI::find_template('show_install_account.inc.php'); } else { header("Location: " . $web_path . '/login.php'); } break; case 'create_account': $results = parse_ini_file($configfile); AmpConfig::set_by_array($results, true); $password2 = $_REQUEST['local_pass2'];