Skip to content

Commit

Permalink
Dropped footer.inc.php
Browse files Browse the repository at this point in the history
  • Loading branch information
roccivic committed Jun 11, 2012
1 parent 4d83b7f commit eb98110
Show file tree
Hide file tree
Showing 65 changed files with 30 additions and 314 deletions.
1 change: 0 additions & 1 deletion db_datadict.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -283,5 +283,4 @@
*/ */
PMA_printButton(); PMA_printButton();


require 'libraries/footer.inc.php';
?> ?>
5 changes: 0 additions & 5 deletions db_export.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
// exit if no tables in db found // exit if no tables in db found
if ($num_tables < 1) { if ($num_tables < 1) {
PMA_Message::error(__('No tables found in database.'))->display(); PMA_Message::error(__('No tables found in database.'))->display();
include 'libraries/footer.inc.php';
exit; exit;
} // end if } // end if


Expand Down Expand Up @@ -84,8 +83,4 @@
$export_type = 'database'; $export_type = 'database';
require_once 'libraries/display_export.lib.php'; require_once 'libraries/display_export.lib.php';


/**
* Displays the footer
*/
require 'libraries/footer.inc.php';
?> ?>
4 changes: 0 additions & 4 deletions db_import.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -24,9 +24,5 @@
$import_type = 'database'; $import_type = 'database';
require 'libraries/display_import.lib.php'; require 'libraries/display_import.lib.php';


/**
* Displays the footer
*/
require 'libraries/footer.inc.php';
?> ?>


4 changes: 0 additions & 4 deletions db_operations.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -636,8 +636,4 @@
echo __('Edit or export relational schema') . '</a></fieldset></div>'; echo __('Edit or export relational schema') . '</a></fieldset></div>';
} // end if } // end if


/**
* Displays the footer
*/
require 'libraries/footer.inc.php';
?> ?>
2 changes: 0 additions & 2 deletions db_printview.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -248,6 +248,4 @@
PMA_printButton(); PMA_printButton();


echo "<div id='PMA_disable_floating_menubar'></div>\n"; echo "<div id='PMA_disable_floating_menubar'></div>\n";

require 'libraries/footer.inc.php';
?> ?>
7 changes: 0 additions & 7 deletions db_qbe.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@
$tbl_result_cnt = PMA_DBI_num_rows($tbl_result); $tbl_result_cnt = PMA_DBI_num_rows($tbl_result);
if (0 == $tbl_result_cnt) { if (0 == $tbl_result_cnt) {
PMA_Message::error(__('No tables found in database.'))->display(); PMA_Message::error(__('No tables found in database.'))->display();
include 'libraries/footer.inc.php';
exit; exit;
} }


Expand Down Expand Up @@ -949,9 +948,3 @@ function showColumnSelectCell($columns, $column_number, $selected = '')
</fieldset> </fieldset>
</div> </div>
</form> </form>
<?php
/**
* Displays the footer
*/
require 'libraries/footer.inc.php';
?>
6 changes: 0 additions & 6 deletions db_search.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -371,9 +371,3 @@ function PMA_getSearchSqls($table, $field, $search_str, $search_option)
<!-- toggle query box link--> <!-- toggle query box link-->
<a id="togglequerybox"></a> <a id="togglequerybox"></a>


<?php
/**
* Displays the footer
*/
require 'libraries/footer.inc.php';
?>
4 changes: 0 additions & 4 deletions db_sql.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -62,8 +62,4 @@
isset($_REQUEST['delimiter']) ? htmlspecialchars($_REQUEST['delimiter']) : ';' isset($_REQUEST['delimiter']) ? htmlspecialchars($_REQUEST['delimiter']) : ';'
); );


/**
* Displays the footer
*/
require 'libraries/footer.inc.php';
?> ?>
9 changes: 0 additions & 9 deletions db_structure.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -89,11 +89,6 @@
if (empty($db_is_information_schema)) { if (empty($db_is_information_schema)) {
include 'libraries/display_create_table.lib.php'; include 'libraries/display_create_table.lib.php';
} // end if (Create Table dialog) } // end if (Create Table dialog)

/**
* Displays the footer
*/
include_once 'libraries/footer.inc.php';
exit; exit;
} }


Expand Down Expand Up @@ -759,8 +754,4 @@ class="center">
include 'libraries/display_create_table.lib.php'; include 'libraries/display_create_table.lib.php';
} // end if (Create Table dialog) } // end if (Create Table dialog)


/**
* Displays the footer
*/
require 'libraries/footer.inc.php';
?> ?>
7 changes: 0 additions & 7 deletions db_tracking.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@
if (empty($db_is_information_schema)) { if (empty($db_is_information_schema)) {
include 'libraries/display_create_table.lib.php'; include 'libraries/display_create_table.lib.php';
} }

// Display the footer
include 'libraries/footer.inc.php';
exit; exit;
} }


Expand Down Expand Up @@ -231,8 +228,4 @@
echo PMA_getMessage(__('Database Log'), $log); echo PMA_getMessage(__('Database Log'), $log);
} }


/**
* Display the footer
*/
require 'libraries/footer.inc.php';
?> ?>
4 changes: 2 additions & 2 deletions export.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ function PMA_exportOutputHandler($line)
} }
} }


/* If ve saved on server, we have to close file now */ /* If we saved on server, we have to close file now */
if ($save_on_server) { if ($save_on_server) {
$write_result = @fwrite($file_handle, $dump_buffer); $write_result = @fwrite($file_handle, $dump_buffer);
fclose($file_handle); fclose($file_handle);
Expand Down Expand Up @@ -797,6 +797,7 @@ function PMA_exportOutputHandler($line)
} }
exit(); exit();
} else { } else {
PMA_Response::getInstance()->disable();
echo $dump_buffer; echo $dump_buffer;
} }
} else { } else {
Expand Down Expand Up @@ -834,6 +835,5 @@ function PMA_exportOutputHandler($line)
//]]> //]]>
</script> </script>
<?php <?php
include 'libraries/footer.inc.php';
} // end if } // end if
?> ?>
3 changes: 1 addition & 2 deletions import.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
$_SESSION['Import_message']['go_back_url'] = $goto; $_SESSION['Import_message']['go_back_url'] = $goto;


$message->display(); $message->display();
include 'libraries/footer.inc.php'; exit; // the footer is displayed automatically
} }


/** /**
Expand Down Expand Up @@ -524,5 +524,4 @@
$active_page = $goto; $active_page = $goto;
include '' . $goto; include '' . $goto;
} }
exit();
?> ?>
2 changes: 1 addition & 1 deletion js/common.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function markDbTable(db, table)
} }


/** /**
* sets current selected server, table and db (called from libraries/footer.inc.php) * sets current selected server, table and db (called from the footer)
*/ */
function setAll( new_lang, new_collation_connection, new_server, new_db, new_table, new_token ) function setAll( new_lang, new_collation_connection, new_server, new_db, new_table, new_token )
{ {
Expand Down
2 changes: 1 addition & 1 deletion libraries/PDF.class.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function Error($error_message = '')
$response = PMA_Response::getInstance(); $response = PMA_Response::getInstance();
$response->getHeader()->display(); $response->getHeader()->display();
PMA_Message::error(__('Error while creating PDF:') . ' ' . $error_message)->display(); PMA_Message::error(__('Error while creating PDF:') . ' ' . $error_message)->display();
include './libraries/footer.inc.php'; exit;
} }


/** /**
Expand Down
5 changes: 1 addition & 4 deletions libraries/common.lib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -703,10 +703,7 @@ function PMA_mysqlDie(
} }


echo $error_msg; echo $error_msg;
/** exit;
* display footer and exit
*/
include './libraries/footer.inc.php';
} else { } else {
echo $error_msg; echo $error_msg;
} }
Expand Down
2 changes: 1 addition & 1 deletion libraries/display_export.lib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function PMA_exportIsActive($what, $val)
/* Fail if we didn't find any plugin */ /* Fail if we didn't find any plugin */
if (empty($export_list)) { if (empty($export_list)) {
PMA_Message::error(__('Could not load export plugins, please check your installation!'))->display(); PMA_Message::error(__('Could not load export plugins, please check your installation!'))->display();
include './libraries/footer.inc.php'; exit;
} }
?> ?>


Expand Down
2 changes: 1 addition & 1 deletion libraries/display_import.lib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/* Fail if we didn't find any plugin */ /* Fail if we didn't find any plugin */
if (empty($import_list)) { if (empty($import_list)) {
PMA_Message::error(__('Could not load import plugins, please check your installation!'))->display(); PMA_Message::error(__('Could not load import plugins, please check your installation!'))->display();
include './libraries/footer.inc.php'; exit;
} }
?> ?>


Expand Down
27 changes: 0 additions & 27 deletions libraries/footer.inc.php

This file was deleted.

3 changes: 1 addition & 2 deletions libraries/insert_edit.lib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ function PMA_showEmptyResultMessageOrSetUniqueCondition($rows, $key_id,
if (! $rows[$key_id]) { if (! $rows[$key_id]) {
unset($rows[$key_id], $where_clause_array[$key_id]); unset($rows[$key_id], $where_clause_array[$key_id]);
PMA_showMessage(__('MySQL returned an empty result set (i.e. zero rows).'), $local_query); PMA_showMessage(__('MySQL returned an empty result set (i.e. zero rows).'), $local_query);
echo "\n"; exit;
include 'libraries/footer.inc.php';
} else {// end if (no row returned) } else {// end if (no row returned)
$meta = PMA_DBI_get_fields_meta($result[$key_id]); $meta = PMA_DBI_get_fields_meta($result[$key_id]);
list($unique_condition, $tmp_clause_is_unique) list($unique_condition, $tmp_clause_is_unique)
Expand Down
2 changes: 1 addition & 1 deletion libraries/mult_submits.inc.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
</fieldset> </fieldset>
<?php <?php
} }
include './libraries/footer.inc.php'; exit;


} elseif ($mult_btn == __('Yes')) { } elseif ($mult_btn == __('Yes')) {
/** /**
Expand Down
3 changes: 1 addition & 2 deletions libraries/rte/rte_events.lib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -205,9 +205,8 @@ function PMA_EVN_handleEditor()
} else { } else {
echo "\n\n<h2>$title</h2>\n\n$editor"; echo "\n\n<h2>$title</h2>\n\n$editor";
unset($_POST); unset($_POST);
include './libraries/footer.inc.php';
} }
// exit; exit;
} else { } else {
$message = __('Error in processing request') . ' : '; $message = __('Error in processing request') . ' : ';
$message .= sprintf( $message .= sprintf(
Expand Down
7 changes: 0 additions & 7 deletions libraries/rte/rte_main.inc.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -87,11 +87,4 @@
break; break;
} }


/**
* Display the footer, if necessary
*/
if ($GLOBALS['is_ajax_request'] != true) {
include './libraries/footer.inc.php';
}

?> ?>
6 changes: 2 additions & 4 deletions libraries/rte/rte_routines.lib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -366,8 +366,7 @@ function PMA_RTN_handleEditor()
PMA_ajaxResponse($editor, true, $extra_data); PMA_ajaxResponse($editor, true, $extra_data);
} }
echo "\n\n<h2>$title</h2>\n\n$editor"; echo "\n\n<h2>$title</h2>\n\n$editor";
include './libraries/footer.inc.php'; exit;
// exit;
} else { } else {
$message = __('Error in processing request') . ' : '; $message = __('Error in processing request') . ' : ';
$message .= sprintf( $message .= sprintf(
Expand Down Expand Up @@ -1317,8 +1316,7 @@ function PMA_RTN_handleExecute()
} else { } else {
echo "\n\n<h2>" . __("Execute routine") . "</h2>\n\n"; echo "\n\n<h2>" . __("Execute routine") . "</h2>\n\n";
echo $form; echo $form;
include './libraries/footer.inc.php'; exit;
// exit;
} }
} else if (($GLOBALS['is_ajax_request'] == true)) { } else if (($GLOBALS['is_ajax_request'] == true)) {
$message = __('Error in processing request') . ' : '; $message = __('Error in processing request') . ' : ';
Expand Down
3 changes: 1 addition & 2 deletions libraries/rte/rte_triggers.lib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -180,9 +180,8 @@ function PMA_TRI_handleEditor()
} else { } else {
echo "\n\n<h2>$title</h2>\n\n$editor"; echo "\n\n<h2>$title</h2>\n\n$editor";
unset($_POST); unset($_POST);
include './libraries/footer.inc.php';
} }
// exit; exit;
} else { } else {
$message = __('Error in processing request') . ' : '; $message = __('Error in processing request') . ' : ';
$message .= sprintf( $message .= sprintf(
Expand Down
3 changes: 1 addition & 2 deletions libraries/schema/Export_Relation_Schema.class.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -239,8 +239,7 @@ function dieSchema($pageNumber, $type = '', $error_message = '')
. '&do=selectpage&chpage=' . $pageNumber . '&action_choose=0' . '&do=selectpage&chpage=' . $pageNumber . '&action_choose=0'
. '">' . __('Back') . '</a>'; . '">' . __('Back') . '</a>';
echo "\n"; echo "\n";
include_once './libraries/footer.inc.php'; exit;
exit();
} }
} }
?> ?>
5 changes: 0 additions & 5 deletions main.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -453,9 +453,4 @@ function PMA_printListItem($name, $id = null, $url = null, $mysql_help_page = nu
} }
echo '</li>'; echo '</li>';
} }

/**
* Displays the footer
*/
require 'libraries/footer.inc.php';
?> ?>
5 changes: 0 additions & 5 deletions prefs_forms.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -89,9 +89,4 @@
<?php <?php
} }
$form_display->display(true, true); $form_display->display(true, true);

/**
* Displays the footer
*/
require 'libraries/footer.inc.php';
?> ?>
9 changes: 1 addition & 8 deletions prefs_manage.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@
<input type="submit" name="submit_ignore" value="<?php echo __('No') ?>" /> <input type="submit" name="submit_ignore" value="<?php echo __('No') ?>" />
</form> </form>
<?php <?php
include 'libraries/footer.inc.php'; exit;
return;
} }


// check for ThemeDefault and fontsize // check for ThemeDefault and fontsize
Expand Down Expand Up @@ -339,9 +338,3 @@
</div> </div>
<br class="clearfloat" /> <br class="clearfloat" />
</div> </div>
<?php
/**
* Displays the footer
*/
require 'libraries/footer.inc.php';
?>
Loading

0 comments on commit eb98110

Please sign in to comment.