Skip to content
Snippets Groups Projects
Unverified Commit a3965d03 authored by Andreas Gohr's avatar Andreas Gohr Committed by GitHub
Browse files

Merge pull request #2342 from ivanovich/patch-1

Add simple catch-all to left install.php div
parents ddb94cf0 7ac1baa0
No related branches found
No related tags found
No related merge requests found
...@@ -103,24 +103,28 @@ header('Content-Type: text/html; charset=utf-8'); ...@@ -103,24 +103,28 @@ header('Content-Type: text/html; charset=utf-8');
<div style="float: left; width: 58%;"> <div style="float: left; width: 58%;">
<?php <?php
if(! (check_functions() && check_permissions()) ){ try {
echo '<p>'.$lang['i_problems'].'</p>'; if(! (check_functions() && check_permissions()) ){
print_errors(); echo '<p>'.$lang['i_problems'].'</p>';
print_retry();
}elseif(!check_configs()){
echo '<p>'.$lang['i_modified'].'</p>';
print_errors();
}elseif(check_data($_REQUEST['d'])){
// check_data has sanitized all input parameters
if(!store_data($_REQUEST['d'])){
echo '<p>'.$lang['i_failure'].'</p>';
print_errors(); print_errors();
print_retry();
}elseif(!check_configs()){
echo '<p>'.$lang['i_modified'].'</p>';
print_errors();
}elseif(check_data($_REQUEST['d'])){
// check_data has sanitized all input parameters
if(!store_data($_REQUEST['d'])){
echo '<p>'.$lang['i_failure'].'</p>';
print_errors();
}else{
echo '<p>'.$lang['i_success'].'</p>';
}
}else{ }else{
echo '<p>'.$lang['i_success'].'</p>'; print_errors();
print_form($_REQUEST['d']);
} }
}else{ } catch (Exception $e) {
print_errors(); echo 'Caught exception: ', $e->getMessage(), "\n";
print_form($_REQUEST['d']);
} }
?> ?>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment