| Server IP : 61.19.30.66 / Your IP : 216.73.216.59 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /var/www/phpmyadming/ |
Upload File : |
<?php
/* $Id: pmd_save_pos.php 9929 2007-02-06 09:56:31Z cybot_tm $ */
// vim: expandtab sw=4 ts=4 sts=4:
include_once 'pmd_common.php';
require_once './libraries/relation.lib.php';
$alltab_rs = PMA_query_as_cu('SHOW TABLES FROM '.PMA_backquote($cfg['Server']['pmadb']),FALSE,PMA_DBI_QUERY_STORE) or PMD_err_sav();
$seen_pmd_table = false;
while ($tab_name = @PMA_DBI_fetch_row($alltab_rs)) {
if (stristr($tab_name[0],$GLOBALS['cfgRelation']['designer_coords'])) {
$seen_pmd_table = true;
break;
}
}
if ( ! $seen_pmd_table) {
PMD_err_sav();
}
foreach ($t_x as $key => $value) {
$KEY = empty($IS_AJAX) ? urldecode($key) : $key; // table name decode (post PDF exp/imp)
list($DB,$TAB) = explode(".", $KEY);
PMA_query_as_cu('DELETE FROM '.$GLOBALS['cfgRelation']['designer_coords'].'
WHERE `db_name` = \'' . PMA_sqlAddslashes($DB) . '\'
AND `table_name` = \'' . PMA_sqlAddslashes($TAB) . '\'', 1, PMA_DBI_QUERY_STORE);
PMA_query_as_cu('INSERT INTO '.$GLOBALS['cfgRelation']['designer_coords'].'
(db_name, table_name, x, y, v, h)
VALUES ('
. '\'' . PMA_sqlAddslashes($DB) . '\', '
. '\'' . PMA_sqlAddslashes($TAB) . '\', '
. '\'' . PMA_sqlAddslashes($t_x[$key]) . '\', '
. '\'' . PMA_sqlAddslashes($t_y[$key]) . '\', '
. '\'' . PMA_sqlAddslashes($t_v[$key]) . '\', '
. '\'' . PMA_sqlAddslashes($t_h[$key]) . '\''
. ')', 1 ,PMA_DBI_QUERY_STORE);
}
//----------------------------------------------------------------------------
function PMD_err_sav() {
global $die_save_pos; // if this file included
if (! empty($die_save_pos)) {
header("Content-Type: text/xml; charset=utf-8");
header("Cache-Control: no-cache");
die('<root act="save_pos" return="strErrorSaveTable"></root>');
}
}
if(! empty($die_save_pos)) {
header("Content-Type: text/xml; charset=utf-8");
header("Cache-Control: no-cache");
?>
<root act='save_pos' return='<?php echo 'strModifications'; ?>'></root>
<?php
}
?>