function obclean() { ob_end_clean(); obstart(); }
$_POST = Html::trimDeep($_POST); $_GET = Html::trimDeep($_GET); // get Page to include $p = isset($_GET['p']) ? (string) $_GET['p'] : 'home'; if (isset($_POST['p'])) { $p = (string) $_POST['p']; } $action = isset($_GET['action']) ? (string) $_GET['action'] : ''; if (isset($_POST['action'])) { $action = (string) $_POST['action']; } $dbo = null; $log = new Log(); if ($action != 'dl') { // don't send HTML-Header if download of file is started obstart(); $tplGlobalHeader = new MSDTemplate(); $tplGlobalHeader->set_filenames(array('tplGlobalHeader' => 'tpl/globalHeader.tpl')); $language = explode('_', $config['language'], 2); $language = $language[0]; $tplGlobalHeader->assign_vars(array('LANGUAGE' => $language, 'MSD_VERSION' => MSD_VERSION, 'THEME' => $config['theme'], 'DIRECTION' => 'ltr')); } // in some cases (config changed, reload database list, etc.) the menu must be // rendered before the content // is handled to update parameters that are used if (isset($_POST['selected_config']) || isset($_GET['config']) || isset($_GET['dbrefresh']) || isset($_POST['dbindex']) || isset($_GET['dbindex'])) { include './inc/menu.php'; } switch ($p) { case 'dump': include './inc/dump.php';
* @version $Rev: $ * @author $Author: $ * @lastmodified $Date: $ */ error_reporting(E_ALL); chdir('./../'); include './inc/classes/db/MsdDbFactory.php'; include './inc/classes/helper/Html.php'; include './inc/functions/functions.php'; include './inc/runtime.php'; include './inc/mysql.php'; include './inc/functions/functions_global.php'; include './lib/template.php'; include './inc/functions/functions_restore.php'; include './lib/json.php'; obstart(true); include './inc/functions/functions_sql.php'; $tplSqlbrowserTableShowTabledataEntry = new MSDTemplate(); $tplSqlbrowserTableShowTabledataEntry->set_filenames(array('tplSqlbrowserTableShowTabledataEntry' => './tpl/sqlbrowser/table/show_tabledata_entry.tpl')); /* * Fetch and check _GET variables */ $validModes = array('VIEW', 'EDIT', 'NEW'); $db = isset($_GET['db']) ? base64_decode($_GET['db']) : $config['db_actual']; $tablename = isset($_GET['tablename']) ? base64_decode($_GET['tablename']) : ''; $rowKey = isset($_GET['key']) ? base64_decode($_GET['key']) : ''; $mode = 'VIEW'; if (isset($_GET['do'])) { $mode = strtoupper((string) $_GET['do']); } if (!in_array($mode, $validModes)) {