Beispiel #1
0
    $msg->display();
}
// Export as SQL dump
if (isset($_REQUEST['report_export']) && $_REQUEST['export_type'] == 'sqldump') {
    $new_query = "# " . $strTrackingYouCanExecute . "\n" . "# " . $strTrackingCommentOut . "\n" . "\n" . "CREATE database IF NOT EXISTS pma_temp_db; \n" . "USE pma_temp_db; \n" . "\n";
    foreach ($entries as $entry) {
        $new_query .= $entry['statement'];
    }
    $msg = PMA_Message::success($strTrackingSQLExported);
    $msg->display();
    $db_temp = $db;
    $table_temp = $table;
    $db = $table = '';
    $GLOBALS['js_include'][] = 'functions.js';
    require_once './libraries/sql_query_form.lib.php';
    PMA_sqlQueryForm($new_query, 'sql');
    $db = $db_temp;
    $table = $table_temp;
}
/*
 * Schema snapshot
 */
if (isset($_REQUEST['snapshot'])) {
    ?>
    <h3><?php 
    echo $strTrackingStructureSnapshot;
    ?>
  [<a href="tbl_tracking.php?<?php 
    echo $url_query;
    ?>
"><?php 
Beispiel #2
0
require 'libraries/tbl_common.inc.php';
$url_query .= '&amp;goto=tbl_sql.php&amp;back=tbl_sql.php';

require_once 'libraries/sql_query_form.lib.php';

$err_url   = 'tbl_sql.php' . $err_url;
// After a syntax error, we return to this script
// with the typed query in the textarea.
$goto = 'tbl_sql.php';
$back = 'tbl_sql.php';

/**
 * Get table information
 */
require_once 'libraries/tbl_info.inc.php';

/**
 * Query box, bookmark, insert data from textfile
 */
PMA_sqlQueryForm(
    true, false,
    isset($_REQUEST['delimiter']) ? htmlspecialchars($_REQUEST['delimiter']) : ';'
);

/**
 * Displays the footer
 */
require 'libraries/footer.inc.php';
?>
Beispiel #3
0
 *
 */
require_once './libraries/common.inc.php';
/**
 * Runs common work
 */
require './libraries/db_common.inc.php';
require_once './libraries/sql_query_form.lib.php';
// The Back link after a syntax error will return to this script
// with the typed query in the textarea.
$goto = 'db_sql.php';
$back = 'db_sql.php';
/**
 * Gets informations about the database and, if it is empty, move to the
 * "db_structure.php" script where table can be created
 */
require './libraries/db_info.inc.php';
if ($num_tables == 0 && empty($db_query_force)) {
    $sub_part = '';
    $is_info = TRUE;
    require './db_structure.php';
    exit;
}
/**
 * Query box, bookmark, insert data from textfile
 */
PMA_sqlQueryForm(true, false, isset($_REQUEST['delimiter']) ? $_REQUEST['delimiter'] : ';');
/**
 * Displays the footer
 */
require_once './libraries/footer.inc.php';
Beispiel #4
0
<?php

/* $Id: tbl_properties.php,v 2.11 2006/02/04 18:37:47 lem9 Exp $ */
// vim: expandtab sw=4 ts=4 sts=4:
require_once './libraries/common.lib.php';
/**
 * Runs common work
 */
require './libraries/tbl_properties_common.php';
$url_query .= '&amp;goto=tbl_properties.php&amp;back=tbl_properties.php';
require_once './libraries/sql_query_form.lib.php';
$err_url = 'tbl_properties.php' . $err_url;
$goto = 'tbl_properties.php';
$back = 'tbl_properties.php';
/**
 * Get table information
 */
require_once './libraries/tbl_properties_table_info.inc.php';
/**
 * Displays top menu links
 */
require_once './libraries/tbl_properties_links.inc.php';
/**
 * Query box, bookmark, insert data from textfile
 */
PMA_sqlQueryForm();
/**
 * Displays the footer
 */
require_once './libraries/footer.inc.php';
require_once './libraries/header_http.inc.php';
require_once './libraries/header_meta_style.inc.php';
require_once './libraries/header_scripts.inc.php';
?>
</head>

<body id="bodyquerywindow">
<div id="querywindowcontainer">
<?php

if ($tabs) {
    echo PMA_getTabs($tabs, array());
    unset($tabs);
}

PMA_sqlQueryForm($query_to_display, $querydisplay_tab);

// Hidden forms and query frame interaction stuff

$_sql_history = PMA_getHistory($GLOBALS['cfg']['Server']['user']);
if (! empty($_sql_history)
 && ($querydisplay_tab == 'history' || $querydisplay_tab == 'full')) {
    $tab = $querydisplay_tab != 'full' ? 'sql' : 'full';
    echo $GLOBALS['strQuerySQLHistory'] . ':<br />' . "\n"
        .'<ul>';
    foreach ($_sql_history as $query) {
        echo '<li>' . "\n";

        // edit link
        $url_params = array(
            'querydisplay_tab' => $tab,