1
0
Fork 0

Continued to switch the old configuration handling to the new one.

Dieser Commit ist enthalten in:
DSB 2012-08-04 17:09:48 +00:00
Ursprung 025b5c339d
Commit ae87af916f
54 geänderte Dateien mit 501 neuen und 269 gelöschten Zeilen

Datei anzeigen

@ -41,16 +41,22 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
*/
public function _initConfiguration()
{
$dynamicConfig = new Msd_Config_Dynamic();
$configFile = $dynamicConfig->getParam('configFile', 'defaultConfig.ini');
$config = new Msd_Config(
'Default',
array('directories' => APPLICATION_PATH . '/configs')
);
$config->load($configFile);
Msd_Registry::setConfig($config);
$dynamicConfig = Msd_Registry::getDynamicConfig();
if ($dynamicConfig === null) {
$dynamicConfig = new Msd_Config_Dynamic();
Msd_Registry::setDynamicConfig($dynamicConfig);
}
Msd_Registry::setDynamicConfig($dynamicConfig);
$config = Msd_Registry::getConfig();
if ($config === null) {
$configFile = $dynamicConfig->getParam('configFile', 'defaultConfig.ini');
$config = new Msd_Config(
'Default',
array('directories' => APPLICATION_PATH . '/configs')
);
$config->load($configFile);
}
Msd_Registry::setConfig($config);
}
/**

Datei anzeigen

@ -16,7 +16,7 @@
* @package MySQLDumper
* @subpackage Controllers
*/
class ConfigController extends Zend_Controller_Action
class ConfigController extends Msd_Controller_Action
{
/**
* Active jQuery tab Id
@ -61,7 +61,7 @@ class ConfigController extends Zend_Controller_Action
$formGeneral = $this->_getSubformIni('general');
$elementTitle = $formGeneral->getElement('title');
$elementTitle->setValue(
$this->view->config->get('config.general.title')
$this->view->config->getParam('general.title')
);
$form->addSubForm($formGeneral, 'general');
@ -184,9 +184,9 @@ class ConfigController extends Zend_Controller_Action
// set dynamic actual database if it's changed in the panel
if ($this->_request->isPost()) {
$actualDb = $this->view->config->get('dynamic.dbActual');
$actualDb = $this->view->dynamicConfig->getParam('dbActual');
if (isset($_POST['defaultDb']) && ($_POST['defaultDb'] != $actualDb)) {
$this->view->config->set('dynamic.dbActual', $_POST['defaultDb']);
$this->view->dynamicConfig->setParam('dbActual', $_POST['defaultDb']);
}
}
@ -214,7 +214,7 @@ class ConfigController extends Zend_Controller_Action
*/
public function addRecipientCcAction()
{
$recipientsCc = $this->view->config->get('config.email.RecipientCc');
$recipientsCc = $this->view->config->Param('email.RecipientCc');
if ($recipientsCc === null) {
$recipientsCc = array();
}
@ -222,7 +222,7 @@ class ConfigController extends Zend_Controller_Action
$recipientsCc[$index]['Name'] = '';
$recipientsCc[$index]['Address'] = '';
$recipientsCc = array_values($recipientsCc);
$this->view->config->set('config.email.RecipientCc', $recipientsCc);
$this->view->config->setParam('email.RecipientCc', $recipientsCc);
$this->_forward('index');
}
@ -234,11 +234,11 @@ class ConfigController extends Zend_Controller_Action
public function deleteRecipientCcAction()
{
$recipientToDelete = (int)$this->_request->getPost('param');
$recipientsCc = $this->view->config->get('config.email.RecipientCc');
$recipientsCc = $this->view->config->getParam('email.RecipientCc');
if (isset($recipientsCc[$recipientToDelete])) {
unset($recipientsCc[$recipientToDelete]);
}
$this->view->config->set('config.email.RecipientCc', $recipientsCc);
$this->view->config->setParam('email.RecipientCc', $recipientsCc);
$this->_forward('index');
}
@ -249,18 +249,15 @@ class ConfigController extends Zend_Controller_Action
*/
public function addFtpConnectionAction()
{
$ftpConfig = $this->view->config->get('config.ftp');
$ftpConfig = $this->view->config->getParam('ftp');
$index = 0;
if (!empty($ftpConfig)) {
$index = max(array_keys($ftpConfig)) + 1;
}
$default = $this->view->config->loadConfiguration(
'defaultConfig',
false
);
$default = $this->view->config->load('defaultConfig');
$default = $default->toArray();
$ftpConfig[$index] = $default['ftp'][0];
$this->view->config->set('config.ftp', $ftpConfig);
$this->view->config->Param('ftp', $ftpConfig);
$this->_forward('index');
}
@ -272,13 +269,13 @@ class ConfigController extends Zend_Controller_Action
public function deleteFtpConnectionAction()
{
$index = (int)$this->_request->getPost('param');
$ftpConfig = $this->view->config->get('config.ftp');
$ftpConfig = $this->view->config->getParam('ftp');
if (count($ftpConfig) > 1) {
if (isset($ftpConfig[$index])) {
unset($ftpConfig[$index]);
sort($ftpConfig);
}
$this->view->config->set('config.ftp', $ftpConfig);
$this->view->config->setParam('ftp', $ftpConfig);
}
$this->_forward('index');
}
@ -403,7 +400,7 @@ class ConfigController extends Zend_Controller_Action
foreach ($elements as $element) {
$element = str_replace($group . '_', '', $element);
$element = str_replace('_', '.', $element);
$value = $this->view->config->get('config.' . $group . '.' . $element);
$value = $this->view->config->getParam($group . '.' . $element);
if ($value !== null) {
$subForm->setDefault($element, $value);
}
@ -455,8 +452,7 @@ class ConfigController extends Zend_Controller_Action
*/
private function _addNonConfigurableConfigParams($configData)
{
$config = Msd_Configuration::getInstance();
$configData['systemDatabases'] = $config->get('config.systemDatabases');
$configData['systemDatabases'] = $this->view->config->getParam('systemDatabases');
return $configData;
}
@ -479,7 +475,7 @@ class ConfigController extends Zend_Controller_Action
$smtpConfig = $emailForm->getDisplayGroup('smtpConfig');
$sendmailVisibility = false;
$smtpVisibility = false;
switch ($this->view->config->get('config.email.Program')) {
switch ($this->view->config->getParam('email.Program')) {
case 'sendmail':
$sendmailVisibility = true;
break;

Datei anzeigen

@ -16,7 +16,7 @@
* @package MySQLDumper
* @subpackage Controllers
*/
class DumpController extends Zend_Controller_Action
class DumpController extends Msd_Controller_Action
{
/**
* Show dump page
@ -46,7 +46,6 @@ class DumpController extends Zend_Controller_Action
{
$taskList = Msd_TaskManager::getInstance('backupTasks');
$tasks = $taskList->getTasks();
$this->view->config = Msd_Configuration::getInstance();
$this->view->sessionId = Zend_Session::getId();
}
@ -63,7 +62,7 @@ class DumpController extends Zend_Controller_Action
$tasks = $taskList->getTasks();
$ret = array(
'backup_in_progress' => false,
'config_file' => $this->view->config->get('dynamic.configFile')
'config_file' => $this->view->dynamicConfig->getParam('configFile')
);
echo json_encode($ret);

Datei anzeigen

@ -16,7 +16,7 @@
* @package MySQLDumper
* @subpackage Controllers
*/
class FilesController extends Zend_Controller_Action
class FilesController extends Msd_Controller_Action
{
public function indexAction()

Datei anzeigen

@ -16,7 +16,7 @@
* @package MySQLDumper
* @subpackage Controllers
*/
class IndexController extends Zend_Controller_Action
class IndexController extends Msd_Controller_Action
{
/**
* Remember last controler
@ -37,9 +37,9 @@ class IndexController extends Zend_Controller_Action
*/
public function init()
{
$request = $this->getRequest();
$request = $this->getRequest();
$this->_lastController = $request->getParam('lastController', 'index');
$this->_lastAction = $request->getParam('lastAction', 'index');
$this->_lastAction = $request->getParam('lastAction', 'index');
}
/**
@ -60,22 +60,21 @@ class IndexController extends Zend_Controller_Action
}
try {
$dbo = Msd_Db::getAdapter();
$dbo = Msd_Db::getAdapter();
$data = Msd_File::getLatestBackupInfo();
if (!empty($data)) {
$statusline = Msd_File_Dump::getStatusline($data['filename']);
$statusline = Msd_File_Dump::getStatusline($data['filename']);
$data['filename'] = $statusline['dbname'];
} else {
$data['filename'] = '';
}
$data['mysqlServerVersion'] = $dbo->getServerInfo();
$data['mysqlClientVersion'] = $dbo->getClientInfo();
$data['serverMaxExecutionTime'] =
(int)@get_cfg_var('max_execution_time');
$data['mysqlServerVersion'] = $dbo->getServerInfo();
$data['mysqlClientVersion'] = $dbo->getClientInfo();
$data['serverMaxExecutionTime'] = (int)@get_cfg_var('max_execution_time');
$this->view->assign($data);
if ($this->view->config->get('dynamic.dbActual') == '') {
if ($this->view->dynamicConfig->getParam('dbActual', '') == '') {
$dbNames = $dbo->getDatabaseNames();
$this->view->config->set('dynamic.dbActual', $dbNames[0]);
$this->view->dynamicConfig->setParam('dbActual', $dbNames[0]);
}
} catch (Exception $e) {
$configNames = Msd_File::getConfigNames();
@ -97,7 +96,7 @@ class IndexController extends Zend_Controller_Action
array('message' => 'L_MYSQL_VERSION_TOO_OLD')
);
}
$this->view->version = $version;
$this->view->version = $version;
$this->view->dbAdapter = get_class($dbo);
}
@ -112,9 +111,9 @@ class IndexController extends Zend_Controller_Action
{
$this->_helper->viewRenderer->setNoRender(true);
$request = $this->getRequest();
$file = base64_decode($request->getParam('selectedConfig'));
$this->view->config = Msd_Configuration::getInstance();
$this->view->config->loadConfiguration($file);
$file = base64_decode($request->getParam('selectedConfig'));
$this->_config->load($file);
$this->view->config->load($file);
if ($this->_lastAction != 'switchconfig') { //prevent endless loop
$this->_forward($this->_lastAction, $this->_lastController);
}
@ -128,14 +127,14 @@ class IndexController extends Zend_Controller_Action
public function selectdbAction()
{
$this->_helper->viewRenderer->setNoRender(true);
$request = $this->getRequest();
$request = $this->getRequest();
$selectedDb = base64_decode($request->getParam('selectedDb'));
$this->view->config->set('dynamic.dbActual', $selectedDb);
$this->view->dynamicConfig->setParam('dbActual', $selectedDb);
if ($this->_lastAction != 'selectdb') { //prevent endless loop
$redirectUrl = $this->view->url(
array(
'controller' => $this->_lastController,
'action' => $this->_lastAction,
'controller' => $this->_lastController,
'action' => $this->_lastAction,
),
null,
true
@ -152,19 +151,19 @@ class IndexController extends Zend_Controller_Action
public function dbrefreshAction()
{
$this->_helper->viewRenderer->setNoRender(true);
$dbo = Msd_Db::getAdapter();
$dbo = Msd_Db::getAdapter();
$databases = $dbo->getDatabaseNames();
$this->view->config->set('dynamic.databases', $databases);
$actualDb = $this->view->config->get('dynamic.dbActual');
$this->view->dynamicConfig->setParam('databases', $databases);
$actualDb = $this->view->dynamicConfig->getParam('dbActual');
if ($dbo->selectDb($actualDb) !== true) {
//actual db is no longer available -> switch to first one
$this->view->config->set('dynamic.dbActual', $databases[0]);
$this->view->dynamicConfig->setParam('dbActual', $databases[0]);
}
if ($this->_lastAction != 'refreshdb') { //prevent endless loop
$redirectUrl = $this->view->url(
array(
'controller' => $this->_lastController,
'action' => $this->_lastAction,
'controller' => $this->_lastController,
'action' => $this->_lastAction,
),
null,
true
@ -208,8 +207,8 @@ class IndexController extends Zend_Controller_Action
}
$this->_doRedirect(
array(
'controller' => 'index',
'action' => 'login'
'controller' => 'index',
'action' => 'login'
)
);
}
@ -223,11 +222,11 @@ class IndexController extends Zend_Controller_Action
{
$form = new Application_Form_Login();
if ($this->_request->isPost()) {
$user = new Msd_User();
$user = new Msd_User();
$postData = $this->_request->getParams();
if ($form->isValid($postData)) {
$autoLogin = ($postData['autologin'] == 1) ? true : false;
$loginResult = $user->login(
$autoLogin = ($postData['autologin'] == 1) ? true : false;
$loginResult = $user->login(
$postData['user'],
$postData['pass'],
$autoLogin
@ -239,8 +238,8 @@ class IndexController extends Zend_Controller_Action
// users.ini doesn't exist or doesn't have entries
$this->_doRedirect(
array(
'controller' => 'install',
'action' => 'index'
'controller' => 'install',
'action' => 'index'
)
);
break;
@ -248,21 +247,17 @@ class IndexController extends Zend_Controller_Action
// user is not listed in users.ini
break;
case Msd_User::SUCCESS:
$defaultDb = $this->view->config->get(
'config.dbuser.defaultDb'
$defaultDb = $this->view->config->getParam('dbuser.defaultDb'
);
// set actualDb to defaultDb
if ($defaultDb != '') {
$this->view->config->set(
'dynamic.dbActual',
$defaultDb
);
$this->view->dynamicConfig->setParam('dbActual', $defaultDb);
}
$this->_doRedirect(
array(
'controller' => 'index',
'action' => 'index'
'controller' => 'index',
'action' => 'index'
)
);
return;
@ -270,15 +265,15 @@ class IndexController extends Zend_Controller_Action
}
// if we get here wrong credentials are given
$this->view->popUpMessage()
->addMessage(
'login-message',
'L_LOGIN',
$user->getAuthMessages(),
array(
'modal' => true,
'dialogClass' => 'error'
)
);
->addMessage(
'login-message',
'L_LOGIN',
$user->getAuthMessages(),
array(
'modal' => true,
'dialogClass' => 'error'
)
);
}
}
$this->view->form = $form;

Datei anzeigen

@ -143,7 +143,7 @@ class InstallController extends Zend_Controller_Action
'config' => $config->get('paths.config'),
'log' => $config->get('paths.log'),
'backup' => $config->get('paths.backup'),
'iconpath' => $config->get('paths.iconpath')
'iconpath' => $config->get('paths.iconPath')
);
foreach ($checkDirs as $checkDir) {

Datei anzeigen

@ -16,7 +16,7 @@
* @package MySQLDumper
* @subpackage Controllers
*/
class LogController extends Zend_Controller_Action
class LogController extends Msd_Controller_Action
{
/**
* Delete a log file
@ -78,7 +78,7 @@ class LogController extends Zend_Controller_Action
$reverse = $this->_getParam('reverse', 0);
$page = $this->_getParam('offset', 1);
$entriesPerPage =
$this->view->config->get('config.interface.recordsPerPage');
$this->view->config->getParam('interface.recordsPerPage');
$this->_helper->layout()->disableLayout();
$logger = Msd_Log::getInstance();
$lines = $logger->read($logType, $reverse);

Datei anzeigen

@ -16,7 +16,7 @@
* @package MySQLDumper
* @subpackage Controllers
*/
class RestoreController extends Zend_Controller_Action
class RestoreController extends Msd_Controller_Action
{
public function indexAction()
{

Datei anzeigen

@ -16,7 +16,7 @@
* @package MySQLDumper
* @subpackage Controllers
*/
class SqlController extends Zend_Controller_Action
class SqlController extends Msd_Controller_Action
{
/**
* Db-handle
@ -54,7 +54,7 @@ class SqlController extends Zend_Controller_Action
$this->_helper->viewRenderer('databases/show-databases');
$databases = $this->_db->getDatabases(true);
$dbNames = $this->_db->getDatabaseNames();
$dbActual = $this->view->config->get('dynamic.dbActual');
$dbActual = $this->view->dynamicConfig->getParam('dbActual');
//Fallback to first found db if actual db doesn't exist
if (!in_array($dbActual, $dbNames)) {
$dbActual = $dbNames[0];
@ -72,13 +72,11 @@ class SqlController extends Zend_Controller_Action
{
$this->_helper->viewRenderer('tables/show-tables');
$pageNum = $this->_getParam('offset', 1);
$itemCountPerPage = $this->view->config->get(
'config.interface.recordsPerPage'
);
$itemCountPerPage = $this->view->config->getParam('interface.recordsPerPage');
$dbActual = $this->_getParam(
'database',
$this->view->config->get('dynamic.dbActual')
$this->view->dynamicConfig->getParam('dbActual')
);
if ($this->_getParam('dbName') !== null) {
$dbActual = base64_decode($this->_getParam('dbName'));
@ -106,11 +104,11 @@ class SqlController extends Zend_Controller_Action
public function showTableDataAction()
{
$this->_getDynamicParams();
$dbName = $this->view->config->get('dynamic.dbActual');
$dbName = $this->view->dynamicConfig->getParam('dbActual');
$offset = (int)$this->_getParam('offset', 0);
$limit = $this->view->config->get('config.interface.recordsPerPage');
$limit = $this->view->config->getParam('interface.recordsPerPage');
$this->_db->selectDb($dbName);
$tableName = $this->view->config->get('dynamic.tableActual');
$tableName = $this->view->dynamicConfig->getParam('tableActual');
try {
$this->view->columns = $this->_db->getTableColumns($tableName);
$tables = $this->_db->getTableStatus($tableName);
@ -127,7 +125,7 @@ class SqlController extends Zend_Controller_Action
$tableName = '';
}
}
$this->view->config->set('dynamic.tableActual', $tableName);
$this->view->dynamicConfig->setParam('tableActual', $tableName);
if (!empty($tables)) {
$query = sprintf(
'SELECT SQL_CALC_FOUND_ROWS * FROM `%s` LIMIT %s, %s',
@ -253,7 +251,7 @@ class SqlController extends Zend_Controller_Action
$tables = $this->_request->getParam('tables', array());
$optimizeResults = array();
$this->view->action = $this->view->lang->L_OPTIMIZE;
$database = $this->view->config->get('dynamic.dbActual');
$database = $this->view->dynamicConfig->getParam('dbActual');
$this->_db->selectDb($database);
if ($this->_request->isPost() && !empty($tables)) {
@ -278,7 +276,7 @@ class SqlController extends Zend_Controller_Action
$tables = $this->_request->getParam('tables', array());
$analyzeResults = array();
$this->view->action = $this->view->lang->L_ANALYZE;
$database = $this->view->config->get('dynamic.dbActual');
$database = $this->view->dynamicConfig->getParam('dbActual');
$this->_db->selectDb($database);
if ($this->_request->isPost() && !empty($tables)) {
@ -303,7 +301,7 @@ class SqlController extends Zend_Controller_Action
$tables = $this->_request->getParam('tables', array());
$analyzeResults = array();
$this->view->action = $this->view->lang->L_ANALYZE;
$database = $this->view->config->get('dynamic.dbActual');
$database = $this->view->dynamicConfig->getParam('dbActual');
$this->_db->selectDb($database);
if ($this->_request->isPost() && !empty($tables)) {
@ -328,7 +326,7 @@ class SqlController extends Zend_Controller_Action
$tables = $this->_request->getParam('tables', array());
$analyzeResults = array();
$this->view->action = $this->view->lang->L_ANALYZE;
$database = $this->view->config->get('dynamic.dbActual');
$database = $this->view->dynamicConfig->getParam('dbActual');
$this->_db->selectDb($database);
if ($this->_request->isPost() && !empty($tables)) {
@ -353,7 +351,7 @@ class SqlController extends Zend_Controller_Action
$tables = $this->_request->getParam('tables', array());
$truncateResults = array();
$this->view->action = $this->view->lang->L_TRUNCATE;
$database = $this->view->config->get('dynamic.dbActual');
$database = $this->view->dynamicConfig->getParam('dbActual');
$this->_db->selectDb($database);
if ($this->_request->isPost() && !empty($tables)) {
@ -377,17 +375,17 @@ class SqlController extends Zend_Controller_Action
$sqlboxModel = new Application_Model_Sqlbox();
$this->view->tableSelectBox = $sqlboxModel->getTableSelectBox();
$request = $this->getRequest();
$config = $this->view->config;
$dynamicConfig = $this->view->dynamicConfig;
$query = '';
if ($lastQuery = $config->get('dynamic.sqlboxQuery')) {
if ($lastQuery = $dynamicConfig->getParam('sqlboxQuery')) {
$query = $lastQuery;
}
if ($request->isPost()) {
$query = $request->getParam('sqltextarea', '');
$config->set('dynamic.sqlboxQuery', $query);
$dynamicConfig->setParam('sqlboxQuery', $query);
$query = trim($query);
if ($query > '') {
$this->_db->selectDb($config->get('dynamic.dbActual'));
$this->_db->selectDb($dynamicConfig->getParam('dbActual'));
$sqlObject = new Msd_Sql_Object($query);
$parser = new Msd_Sql_Parser($sqlObject, true);
$parser->parse();
@ -430,7 +428,7 @@ class SqlController extends Zend_Controller_Action
private function _refreshDbList()
{
$databases = $this->_db->getDatabaseNames();
$this->view->config->set('dynamic.databases', $databases);
$this->view->dynamicConfig->setParam('databases', $databases);
}
/**
@ -444,10 +442,10 @@ class SqlController extends Zend_Controller_Action
private function _setDynamicParams($dbActual = false, $tableActual = '')
{
if ($dbActual === false) {
$dbActual = $this->view->config->get('dynamic.dbActual');
$dbActual = $this->view->dynamicConfig->getParam('dbActual');
}
$this->view->config->set('dynamic.dbActual', $dbActual);
$this->view->config->set('dynamic.tableActual', $tableActual);
$this->view->dynamicConfig->setParam('dbActual', $dbActual);
$this->view->dynamicConfig->setParam('tableActual', $tableActual);
}
/**
@ -460,12 +458,12 @@ class SqlController extends Zend_Controller_Action
$params = $this->_request->getParams();
if (isset($params['dbName'])) {
$dbName = base64_decode($params['dbName']);
$this->view->config->set('dynamic.dbActual', $dbName);
$this->view->dynamicConfig->setParam('dbActual', $dbName);
}
if (isset($params['tableName'])) {
$dbName = base64_decode($params['tableName']);
$this->view->config->set('dynamic.tableActual', $dbName);
$this->view->dynamicConfig->setParam('tableActual', $dbName);
}
}
}

Datei anzeigen

@ -16,7 +16,7 @@
* @package MySQLDumper
* @subpackage Controllers
*/
class SqlServerController extends Zend_Controller_Action
class SqlServerController extends Msd_Controller_Action
{
/**
* Init

Datei anzeigen

@ -36,7 +36,7 @@ class Application_Form_Config_Email extends Zend_Form_SubForm
*/
public function init()
{
$this->_config = Msd_Configuration::getInstance();
$this->_config = Msd_Registry::getConfig();
$this->_lang = Msd_Language::getInstance();
$this->setDisableLoadDefaultDecorators(true);
$this->setDecorators(array('SubForm'));
@ -58,7 +58,7 @@ class Application_Form_Config_Email extends Zend_Form_SubForm
// add Recipients CC
$ccElements = $this->_setRecipientCc(
$this->_config->get('config.email.RecipientCc'),
$this->_config->getParam('email.RecipientCc'),
$activateValidator
);

Datei anzeigen

@ -29,7 +29,7 @@ class Application_Form_Config_Ftp extends Zend_Form_SubForm
*/
public function init()
{
$config = Msd_Configuration::getInstance();
$config = Msd_Registry::getConfig();
$this->_lang = Msd_Language::getInstance();
$this->setDisableLoadDefaultDecorators(true);
$this->setDecorators(array('SubForm'));
@ -40,7 +40,7 @@ class Application_Form_Config_Ftp extends Zend_Form_SubForm
$this->setDisplayGroupDecorators(array('DisplayGroup'));
$this->_addButtonFtpAdd();
$ftpConfig = $config->get('config.ftp');
$ftpConfig = $config->getParam('ftp');
$ftpKeys = array_keys($ftpConfig);
$nrOfFtpProfiles = count($ftpKeys, 1);
foreach ($ftpKeys as $ftpConnectionId) {

Datei anzeigen

@ -51,7 +51,7 @@ class Application_Model_Config_FormValidator
public function validate(Zend_View $view)
{
$saveConfig = false;
$config = Msd_Configuration::getInstance();
$config = $view->config;
$translator = Msd_Language::getInstance()->getTranslator();
$db = Msd_Db::getAdapter($this->_configData['dbuser']);
try {
@ -73,13 +73,13 @@ class Application_Model_Config_FormValidator
if ($saveConfig) {
$config->save(
$config->get('dynamic.configFile'),
$view->dynamicConfig->getParam('configFile'),
$this->_configData
);
$view->popUpMessage()->addMessage(
'save-config',
'L_NOTICE',
array('L_SAVE_SUCCESS', $config->get('dynamic.configFile')),
array('L_SAVE_SUCCESS', $view->dynamicConfig->getParam('configFile')),
array(
'modal' => true,
'dialogClass' => 'notice'

Datei anzeigen

@ -21,8 +21,8 @@ class Application_Model_Sqlbox
public function getTableSelectBox()
{
$this->_db = Msd_Db::getAdapter();
$config = Msd_Configuration::getInstance();
$db = $config->get('dynamic.dbActual');
$dynamicConfig = Msd_Registry::getDynamicConfig();
$db = $dynamicConfig->getParam('dbActual');
$tableNames = $this->_db->getTables($db);
$options = array();
foreach ($tableNames as $table) {

Datei anzeigen

@ -19,8 +19,6 @@ class Msd_View_Helper_GetConfigTitle extends Zend_View_Helper_Abstract
{
public function getConfigTitle($configName)
{
$config = Msd_Configuration::getInstance();
$configData = $config->loadConfiguration($configName, false);
return $configData->general->title;
return $this->view->config->getConfigTitle($configName);
}
}

Datei anzeigen

@ -28,6 +28,7 @@ class Msd_View_Helper_GetIcon extends Zend_View_Helper_Abstract
*/
public function getIcon($name, $title='', $size='')
{
//return true;
static $baseUrl = false;
if (!$baseUrl) {
$baseUrl = Zend_Controller_Front::getInstance()->getBaseUrl();
@ -38,13 +39,12 @@ class Msd_View_Helper_GetIcon extends Zend_View_Helper_Abstract
'GetIcon: unknown icon \''.$name .'\' requested'
);
}
$config = Msd_Configuration::getInstance();
$img = '<img src="'.$baseUrl.'/%s/%s" alt="%s" title="%s" />';
if ($size>'') {
$img = '<img src="'.$baseUrl.'/%s/%sx%s/%s" alt="%s" title="%s" />';
$ret = sprintf(
$img,
$config->get('paths.iconpath'),
$this->view->config->getParam('paths.iconPath'),
$size,
$size,
$icons[$name],
@ -53,7 +53,7 @@ class Msd_View_Helper_GetIcon extends Zend_View_Helper_Abstract
} else {
$ret = sprintf(
$img,
$config->get('paths.iconpath'),
$this->view->config->getParam('paths.iconPath'),
$icons[$name],
$title,
$title
@ -71,10 +71,10 @@ class Msd_View_Helper_GetIcon extends Zend_View_Helper_Abstract
{
static $icons = false;
if (!$icons) {
$config = Msd_Configuration::getInstance();
$config = $this->view->config;
$file = realpath(
APPLICATION_PATH . '/../public/'
. $config->get('paths.iconpath') . '/icon.ini'
. $config->getParam('paths.iconPath') . '/icon.ini'
);
$iconsIni = new Zend_Config_Ini($file, 'icons');
$icons = $iconsIni->toArray();

Datei anzeigen

@ -37,20 +37,20 @@ class Msd_View_Helper_GetIconSrc extends Zend_View_Helper_Abstract
'GetIconSrc: unknown icon \''.$name . '\' requested'
);
}
$config = Msd_Configuration::getInstance();
$config = Msd_Registry::getConfig();
$img = $baseUrl.'/%s/%s';
if ($size>'') {
$img = $baseUrl.'/%s/%sx%s/%s';
$ret = sprintf(
$img,
$config->get('paths.iconpath'),
$config->getParam('paths.iconPath'),
$size,
$size,
$icons[$name]
);
} else {
$ret = sprintf(
$img, $config->get('paths.iconpath'), $icons[$name]
$img, $config->getParam('paths.iconPath'), $icons[$name]
);
}
return $ret;
@ -65,10 +65,10 @@ class Msd_View_Helper_GetIconSrc extends Zend_View_Helper_Abstract
{
static $icons = false;
if (!$icons) {
$config = Msd_Configuration::getInstance();
$config = Msd_Registry::getConfig();
$file = realpath(
APPLICATION_PATH . '/../public/'
. $config->get('paths.iconpath') . '/icon.ini'
. $config->getParam('paths.iconPath') . '/icon.ini'
);
$iconsIni = new Zend_Config_Ini($file, 'icons');
$icons = $iconsIni->toArray();

Datei anzeigen

@ -53,15 +53,15 @@ class Msd_View_Helper_Menu extends Zend_View_Helper_Abstract
*/
private function _getDatabases()
{
$actualDb = $this->view->config->get('dynamic.dbActual');
$databases = $this->view->config->get('dynamic.databases');
$actualDb = $this->view->dynamicConfig->getParam('dbActual');
$databases = $this->view->dynamicConfig->getParam('databases', array());
$dbo = Msd_Db::getAdapter();
if (empty($databases) || $dbo->selectDb($actualDb) !== true) {
// couldn't connect to db - refresh db-list
$databases = $dbo->getDatabaseNames();
// if database was deleted or is not accessible by user
// fallback to default db
$defaultDb = $this->view->config->get('config.dbuser.defaultDb');
$defaultDb = $this->view->config->getParam('dbuser.defaultDb');
if ($defaultDb != '') {
$actualDb = $defaultDb;
if ($dbo->selectDb($actualDb) !== true) {
@ -70,8 +70,8 @@ class Msd_View_Helper_Menu extends Zend_View_Helper_Abstract
$dbo->selectDb($actualDb);
}
}
$this->view->config->set('dynamic.dbActual', $actualDb);
$this->view->config->set('dynamic.databases', $databases);
$this->view->dynamicConfig->setParam('dbActual', $actualDb);
$this->view->dynamicConfig->setParam('databases', $databases);
}
return $databases;
}

Datei anzeigen

@ -167,8 +167,7 @@ class Msd_View_Helper_PopUpMessage extends Zend_View_Helper_Abstract
*/
private function _getDefaultPosition()
{
$config = Msd_Configuration::getInstance();
$position = $config->get('config.interface.notificationWindowPosition');
$position = $this->view->config->getParam('interface.notificationWindowPosition');
if (isset($this->_positions[$position])) {
$position = $this->_positions[$position];
}

Datei anzeigen

@ -1,9 +1,9 @@
<?php
$version = new Msd_Version();
$config = Msd_Configuration::getInstance();
$config = Msd_Registry::getConfig();
$lang = Msd_Language::getInstance();
$theme = $config->get('config.interface.theme');
$language = $config->get('config.interface.language');
$theme = $config->getParam('interface.theme');
$language = $config->getParam('interface.language');
$this->headMeta()->appendHttpEquiv('content-language', $language);
$this->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=utf-8')
->appendHttpEquiv('expires', 'Wed, 26 Feb 1997 08:21:57 GMT')

Datei anzeigen

@ -1,10 +1,9 @@
<?php
$version = new Msd_Version();
$config = Msd_Configuration::getInstance();
$config = Msd_Registry::getConfig();
$lang = Msd_Language::getInstance();
$theme = $config->get('config.interface.theme'); //@todo why theme?
$language = $config->get('config.interface.language');
$theme = $config->getParam('interface.theme'); //@todo why theme?
$language = $config->getParam('interface.language');
$this->headMeta()->appendHttpEquiv('content-language', $language);
$this->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=utf-8')
->appendHttpEquiv('expires', 'Wed, 26 Feb 1997 08:21:57 GMT')
@ -47,4 +46,4 @@ $messages = (string) $this->popUpMessage();
echo $this->layout()->content;
?>
</body>
</html>
</html>

Datei anzeigen

@ -146,7 +146,7 @@ $t = Msd_Language::getInstance()->getTranslator();
<?php
foreach ($this->databases as $db) {
echo '<option value="'.base64_encode($db).'"';
if ($db == $this->config->get('dynamic.dbActual')) {
if ($db == $this->dynamicConfig->getParam('dbActual')) {
echo ' selected="selected"';
}
echo '>'.$db.'</option>';
@ -173,7 +173,7 @@ $t = Msd_Language::getInstance()->getTranslator();
$this->configFiles = Msd_File::getConfigNames();
foreach ($this->configFiles as $file) {
echo "\n" . '<option value="' . base64_encode($file) . '"';
if ($this->config->get('dynamic.configFile') == $file) {
if ($this->dynamicConfig->getParam('configFile') == $file) {
echo ' selected="selected"';
}
echo '>'.$this->getConfigTitle($file).'</option>';

Datei anzeigen

@ -109,11 +109,11 @@
</td>
</tr>
<?php
$dbs = $this->config->get('config.databases');
$dbs = $this->config->getParam('databases');
echo $this->partial(
'config/databases/listDbs.phtml',
array('databases' => $dbs,
'dbActual' => $this->config->get('dynamic.dbActual'),
'dbActual' => $this->dynamicConfig->getParam('dbActual'),
'parent' => $this,
)
);

Datei anzeigen

@ -189,8 +189,8 @@ $testFtpConnectionUrl = $this->url(
</script>
<div id="content">
<h2><?php echo $this->lang->L_CONFIG_HEADLINE;?>: <?php echo $this->config->get('dynamic.configFile');?>
<span class="small">(<?php echo $this->lang->L_MSD_MODE;?>: <?php echo $this->config->get('config.general.mode');?>)</span></h2>
<h2><?php echo $this->lang->L_CONFIG_HEADLINE;?>: <?php echo $this->dynamicConfig->getParam('configFile');?>
<span class="small">(<?php echo $this->lang->L_MSD_MODE;?>: <?php echo $this->config->getParam('general.mode');?>)</span></h2>
<form method="post" action="<?php
echo $this->url(
array(
@ -254,7 +254,7 @@ echo $this->url(
<script type="text/javascript">
/* <![CDATA[ */
<?php if (count((array) $this->config->get('dynamic.databases')) == 0): ?>
<?php if (count((array) $this->dynamicConfig->getParam('databases')) == 0): ?>
mySlideDown('connection-params');
<?php endif; ?>
/*]]>*/

Datei anzeigen

@ -6,7 +6,7 @@ $this->lang = $this->parent->lang;
<td class="small"><?php echo $this->lang->L_SEND_MAIL_FORM?>:</td>
<td class="small right">
<?php
if ($this->config->get('config.email.sendMail') == 0) {
if ($this->config->getParam('email.sendMail') == 0) {
echo $this->lang->L_NO;
} else {
echo $this->lang->L_YES;

Datei anzeigen

@ -2,9 +2,10 @@
$this->config = $this->parent->config;
$this->lang = $this->parent->lang;
if (count($this->config->get('config.ftp'))>0) {
$ftpConfigurations = $this->config->getParam('ftp');
if (count($ftpConfigurations) > 0) {
$ftpNr = 1;
foreach ($this->config->get('config.ftp') as $ftp) {
foreach ($ftpConfigurations as $ftp) {
if ($ftp['use'] == 'y') {
?>
<tr class="row-even">

Datei anzeigen

@ -54,7 +54,7 @@ $d = $this->dumpData;
</td>
</tr>
<?php if ($this->config->get('config.mode') > 0) { ?>
<?php if ($this->config->getParam('mode', 0) > 0) { ?>
<tr class="row-odd">
<td><label for="backup_using_updates">Update (REPLACE Command):</label></td>
<td><input type="checkbox" class="checkbox noleftmargin" name="backup_using_updates" id="backup_using_updates" value="1" /></td>
@ -76,10 +76,14 @@ $d = $this->dumpData;
</div>
<br />
<?php
echo $this->partial('dump/settings.phtml',array('parent' => $this));
echo $this->partial('dump/settings.phtml', array(
'parent' => $this,
'config' => $this->config,
'dynamicConfig' => $this->dynamicConfig)
);
?>
<div id="panel_perl" class="panel" style="display:none">
<h3><?php echo $this->lang->L_DUMP?> PERL (<?php echo $this->lang->L_CONFIG_HEADLINE;?>: <?php echo $this->config->get('dynamic.configFile')?>)</h3>
<h3><?php echo $this->lang->L_DUMP?> PERL (<?php echo $this->lang->L_CONFIG_HEADLINE;?>: <?php echo $this->dynamicConfig->getParam('configFile');?>)</h3>
<button class="Formbutton" name="DoCronscript" onclick="show_perl_output('<?php echo $d->PERL_HTTP_CALL?>')"><?php echo $this->lang->L_DOCRONBUTTON?></button>
<button class="Formbutton" name="DoSimpleTest" onclick="show_perl_output('<?php echo $d->PERL_TEST?>')"><?php echo $this->lang->L_DOSIMPLETEST?></button>
<button class="Formbutton" name="DoPerlTest" onclick="show_perl_output('<?php echo PERL_MODULTEST?>')"><?php echo $this->lang->L_DOPERLTEST?></button>

Datei anzeigen

@ -2,7 +2,7 @@
$this->config = $this->parent->config;
$this->lang = $this->parent->lang;
$d = $this->parent->dumpData;
if ($this->config->get('config.general.multiPart') == 0) { ?>
if ($this->config->getParam('general.multiPart') == 0) { ?>
<tr class="row-odd">
<td class="small"><?php echo $this->lang->L_MULTI_PART?>:</td>
<td class="small right" colspan="2"><?php echo $this->lang->L_NO?></td>
@ -16,4 +16,4 @@ if ($this->config->get('config.general.multiPart') == 0) { ?>
<td class="small">&nbsp;&nbsp;<?php echo $this->lang->L_MULTIPART_SIZE?>:</td>
<td class="small right"><?php echo$this->byteOutput($this->config->multipartGroesse);?></td>
</tr>
<?php }
<?php }

Datei anzeigen

@ -9,7 +9,7 @@ $this->config = $this->parent->config;
<table class="bdr floatLeft" summary="Dump settings">
<tr class="row-even">
<td class="small"><?php echo $this->lang->L_CONFIG_HEADLINE?></td>
<td class="small right"><?php echo $this->config->get('dynamic.configFile')?></td>
<td class="small right"><?php echo $this->dynamicConfig->getParam('configFile')?></td>
</tr>
<tr class="dbrow">
<td class="small"><?php echo $this->lang->L_DBS?>:</td>
@ -38,7 +38,7 @@ $this->config = $this->parent->config;
<tr class="dbrow">
<td class="small nowrap"><?php echo $this->lang->L_GZIP?>:</td>
<td class="small right"><?php echo $this->config->get('dynamic.compression') ? $this->lang->L_YES: $this->lang->L_NO; ?></td>
<td class="small right"><?php echo $this->dynamicConfig->getParam('compression') ? $this->lang->L_YES: $this->lang->L_NO; ?></td>
</tr>
<?php
@ -110,4 +110,4 @@ if (!empty($sumTotal['tables'])) {
</tr>
</table>
<?php } ?>
</div>
</div>

Datei anzeigen

@ -102,7 +102,7 @@ $(document).ready( function () {
<td class="small"><?php echo $this->lang->L_CONFIG;?>:</td>
<td class="small right">
<span id="config_file">
<?php echo $this->config->get('dynamic.configFile')?>
<?php echo $this->dynamicConfig->getParam('configFile')?>
</span>
</td>
</tr>
@ -274,4 +274,4 @@ $(document).ready( function () {
<h3><?php echo $this->lang->L_LOG;?>:</h3>
<div id="log" class="bdr small" style="height:100px;overflow:auto;" onmouseover="scroll_log=false" onmouseout="scroll_log=true"></div>
</div>
<br /><br />
<br /><br />

Datei anzeigen

@ -12,7 +12,7 @@ $version = new Msd_Version();
</head>
<body>
<?php
if ($this->displayErrors == 1) {
//if ($this->displayErrors == 1) {
?>
<h1>An error occurred</h1>
<h2><?php echo $this->message ?></h2>
@ -47,7 +47,7 @@ if ($this->displayErrors == 1) {
<pre><?php echo var_export($this->request->getParams(), true) ?>
</pre>
<?php endif;
}
//}
?>
</body>
</html>
</html>

Datei anzeigen

@ -5,7 +5,7 @@
</a>
<br />
<h3><?php echo $this->lang->L_VERSIONSINFORMATIONEN;?></h3>
<img src="<?php echo $this->baseUrl();?>/css/<?php echo $this->config->get('config.interface.theme');?>/pics/loveyourdata.gif"
<img src="<?php echo $this->baseUrl();?>/css/<?php echo $this->config->getParam('interface.theme');?>/pics/loveyourdata.gif"
style="float:right;padding-left:10px;" alt="love your data" title="love your data" />
<table class="bdr" summary="Version information">
<tr class="row-even">
@ -28,7 +28,7 @@
<td><?php echo $this->lang->L_MEMORY;?>:</td>
<td>
<strong>
<?php echo $this->byteOutput($this->config->get('dynamic.phpRam')*1024*1024, 0);?>
<?php echo $this->byteOutput($this->dynamicConfig->getParam('phpRam')*1024*1024, 0);?>
</strong>
</td>
</tr>
@ -37,7 +37,7 @@
<td>
<strong><?php echo $this->serverMaxExecutionTime;?>
<?php echo $this->lang->L_SECONDS;?>
(<?php echo $this->config->get('dynamic.maxExecutionTime');?>
(<?php echo $this->dynamicConfig->getParam('maxExecutionTime');?>
<?php echo $this->lang->L_SECONDS;?>)
</strong>
</td>
@ -49,9 +49,9 @@
<tr class="row-odd">
<td><?php echo $this->lang->L_PHP_EXTENSIONS;?>:</td>
<td class="small"><?php echo $this->config->get('dynamic.phpextensions');?>
<td class="small"><?php echo $this->dynamicConfig->getParam('phpExtensions');?>
<?php
if (!$this->config->get('dynamic.compression')) { ?>
if (!$this->dynamicConfig->getParam('compression')) { ?>
<br /><span class="error"><?php echo $this->lang->L_NOGZPOSSIBLE;?></span>
<?php }
if (!extension_loaded('ftp')) { ?>
@ -59,10 +59,10 @@
<?php } ?>
</td>
</tr>
<?php if ($this->config->get('dynamic.disabledPhpFunctions') > '') { ?>
<?php if ($this->dynamicConfig->getParam('disabledPhpFunctions') > '') { ?>
<tr class="row-even nowrap">
<td><?php echo $this->lang->L_DISABLEDFUNCTIONS;?>:</td>
<td class="small"><?php echo $this->config->get('dynamic.disabledPhpFunctions');?></td>
<td class="small"><?php echo $this->dynamicConfig->getParam('disabledPhpFunctions');?></td>
</tr>
<?php } ?>
</table>
@ -83,7 +83,7 @@
</tr>
<tr class="row-odd">
<td><?php echo $this->lang->L_INFO_ACTDB;?>:</td>
<td><strong><?php echo $this->config->get('dynamic.dbActual');?></strong></td>
<td><strong><?php echo $this->dynamicConfig->getParam('dbActual');?></strong></td>
</tr>
<tr class="row-even">
<td><?php echo $this->lang->L_FM_FREESPACE;?>:</td>

Datei anzeigen

@ -1,5 +1,5 @@
<?php
$theme = $this->config->get('config.interface.theme');
$theme = $this->config->getParam('interface.theme', 'msd');
$request = Zend_Controller_Front::getInstance()->getRequest();
$this->controller = $request->getControllerName();
$this->action = $request->getActionName();
@ -41,7 +41,7 @@ $('#fadeMenuIn').click(function() {
return false;
});
<?php
if ($this->config->get('config.interface.showTooltips') == 'y') { ?>
if ($this->config->getParam('interface.showTooltips') == 'y') { ?>
SetupTooltips();
<?php }
$this->jQuery()->onLoadCaptureEnd();
@ -58,11 +58,11 @@ $this->jQuery()->onLoadCaptureEnd();
<div id="version">
<div id="fadeMenuOut" title="blend out menu">
<img style="margin-left:6px;" src="<?php echo $this->baseUrl(); ?>/css/<?php echo$theme?>/icons/handLeft.png"
<img style="margin-left:6px;" src="<?php echo $this->baseUrl(); ?>/css/<?php echo $theme?>/icons/handLeft.png"
alt="<?php echo $this->lang->L_MENU_HIDE;?>" title="<?php echo $this->lang->L_MENU_HIDE;?>" />
</div>
<span class="version-line">Version <?php echo $this->msdVersion;?></span>
<?php if ($this->config->get('config.general.mode') == 'easy') {?>
<?php if ($this->config->getParam('general.mode') == 'easy') {?>
<img src="<?php echo $this->baseUrl(); ?>/css/<?php echo$theme?>/pics/navi_bg.jpg" alt="" />
<?php } else { ?>
<img src="<?php echo $this->baseUrl(); ?>/css/<?php echo$theme?>/pics/navi_bg_expert.jpg" alt="" />
@ -143,7 +143,7 @@ $this->jQuery()->onLoadCaptureEnd();
$this->databases = $dbAdapter->getDatabaseNames();
foreach ($this->databases as $db) {
echo '<option value="'.base64_encode($db).'"';
if ($db == $this->config->get('dynamic.dbActual')) {
if ($db == $this->dynamicConfig->getParam('dbActual')) {
echo ' selected="selected"';
}
echo '>'.$db.'</option>';
@ -165,16 +165,16 @@ $this->jQuery()->onLoadCaptureEnd();
$this->configFiles = Msd_File::getConfigNames();
foreach ($this->configFiles as $file) {
echo "\n" . '<option value="' . base64_encode($file) . '"';
if ($this->config->get('dynamic.configFile') == $file) {
if ($this->dynamicConfig->getParam('configFile') == $file) {
echo ' selected="selected"';
}
echo '>'.$this->getConfigTitle($file).'</option>';
echo '>'. $this->config->getConfigTitle($file) . '</option>';
}
?>
</select>
</fieldset>
</form>
<?php if (in_array($this->config->get('config.interface.language'), array('de', 'ch'))) {; ?>
<?php if (in_array($this->config->getParam('interface.language'), array('de', 'ch'))) {; ?>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<p style="text-align:center">
<input type="image" src="<?php echo $this->baseUrl();?>/images/paypal-de.gif" name="submit" alt="Spende an MySQLDumper" />
@ -198,7 +198,7 @@ $this->jQuery()->onLoadCaptureEnd();
</div>
<?php
if ($this->config->get('config.interface.showServerCaption') == "y") {
if ($this->config->getParam('interface.showServerCaption') == "y") {
?>
<div id="server0">
<?php echo$this->lang->L_SERVER;?>:

Datei anzeigen

@ -1,10 +1,10 @@
<?php
$systemDatabases = $this->config->get('config.systemDatabases');
$systemDatabases = $this->config->getParam('systemDatabases');
$formUrl = $this->url(array('controller'=>'sql','action'=>'index'));
$cycleHelper = $this->getHelper('cycle')->cycle(array('row-even', 'row-odd'));
?>
<div id="content">
<h2><?php echo $this->lang->L_DATABASES_OF_USER;?> '<?php echo $this->config->get('config.dbuser.user').'\'@\''.$this->config->get('config.dbuser.host');?>'</h2>
<h2><?php echo $this->lang->L_DATABASES_OF_USER;?> '<?php echo $this->config->getParam('dbuser.user').'\'@\''.$this->config->getParam('dbuser.host');?>'</h2>
<?php echo $this->sqlHeadNavi(); ?>
<?php
if (isset($this->actionResults)) {
@ -100,7 +100,7 @@ if (isset($this->actionResults)) {
?>
<tr class="nowrap
<?php
if ($dbName == $this->config->get('dynamic.dbActual')) {
if ($dbName == $this->dynamicConfig->getParam('dbActual')) {
echo 'row-highlight';
} else {
echo $this->cycle(array('row-even', 'row-odd'))->next();

Datei anzeigen

@ -22,9 +22,9 @@ $this->jQuery()->javascriptCaptureStart(); ?>
<a href="#">
<?php
echo $this->getIcon('Server', '', 16)
. $this->config->get('config.dbuser.user') .'@'
. $this->config->get('config.dbuser.host');
$port = $this->config->get('config.dbuser.port');
. $this->config->getParam('dbuser.user') .'@'
. $this->config->getParam('dbuser.host');
$port = $this->config->getParam('dbuser.port');
if ($port > 0) {
echo ':' . $port;
}
@ -34,11 +34,11 @@ $this->jQuery()->javascriptCaptureStart(); ?>
<li>
<a href="<?php echo $showDatabasesUrl;?>">
<?php echo$this->getIcon('Database', '', 16);?>
<?php echo $this->out($this->config->get('dynamic.dbActual'));?>
<?php echo $this->out($this->dynamicConfig->getParam('dbActual'));?>
</a>
</li>
<?php
$actualTable = $this->config->get('dynamic.tableActual');
$actualTable = $this->dynamicConfig->getParam('tableActual');
if ($actualTable > '') {
?>
<li>

Datei anzeigen

@ -25,7 +25,7 @@ $('#sqltextarea').bind('keyup', function(e){
<br class="clear" />
</div>
<div>
<textarea style="height:<?php echo $this->config->get('config.interface.sqlboxHeight');?>px;" name="sqltextarea" id="sqltextarea" rows="4" cols="10"><?php echo $this->boxcontent;?></textarea>
<textarea style="height:<?php echo $this->config->getParam('interface.sqlboxHeight');?>px;" name="sqltextarea" id="sqltextarea" rows="4" cols="10"><?php echo $this->boxcontent;?></textarea>
<div class="sqlbox-warning small center"><?php echo $this->lang->L_SQL_WARNING;?></div>
</div>
</form>
@ -130,4 +130,4 @@ if (isset($this->resultSummary)) {
</table>
<?php
} ?>
</div>
</div>

Datei anzeigen

@ -1,5 +1,5 @@
<div id="content">
<h2><?php echo $this->lang->L_SQL_TABLESOFDB;?> `<?php echo $this->config->get('dynamic.dbActual');?>`
<h2><?php echo $this->lang->L_SQL_TABLESOFDB;?> `<?php echo $this->dynamicConfig->getParam('dbActual');?>`
</h2>
<?php
echo $this->sqlHeadNavi();