1
0
Fork 0
Dieser Commit ist enthalten in:
DSB 2011-06-10 21:55:32 +00:00
Ursprung 2b21070b1a
Commit f7a7c71f86
1583 geänderte Dateien mit 454759 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -0,0 +1,163 @@
<?php
$t = Msd_Language::getInstance()->getTranslator();
?>
<div data-role="page" id="config_menu">
<?php echo $this->partial('/partials/header.phtml', array(
'title' => 'L_CONFIG',
'lastPage' => array(
'title' => 'L_HOME',
'url' => $this->absoluteUrl(array(
'controller' => 'index',
'action' => 'index'
)),
))); ?>
<div data-role="content">
<form id="config_form" action="<?php echo $this->absoluteUrl(array(
'controller' => 'config',
'action' => 'index'
));?>">
<button type="submit"><?php echo $t->_('L_SAVE'); ?></button>
<br />
<ul id="config_menu_list" data-role="listview">
<li>
<a href="#config_general">
<?php echo $this->lang->L_GENERAL;?>
</a>
</li>
<li>
<a href="#config_dbuser">
<?php echo $this->lang->L_DBS;?>
</a>
</li>
<li>
<a href="#config_interface">
<?php echo $this->lang->L_CONFIG_INTERFACE;?>
</a>
</li>
<li>
<a href="#config_autodelete">
<?php echo $this->lang->L_CONFIG_AUTODELETE;?>
</a>
</li>
<li>
<a href="#config_email">
<?php echo $this->lang->L_EMAIL;?>
</a>
</li>
<li>
<a href="#config_ftp">
<?php echo $this->lang->L_FTP;?>
</a>
</li>
<li>
<a href="#config_cronscript">
<?php echo $this->lang->L_CRONSCRIPT;?>
</a>
</li>
<li>
<a href="#config_configfiles">
<?php echo $this->lang->L_CONFIGFILES;?>
</a>
</li>
</ul>
<br />
<button type="submit"><?php echo $t->_('L_SAVE'); ?></button>
</form>
</div>
</div>
<div id="config_general" data-role="page">
<?php echo $this->partial('/partials/header.phtml', array(
'title' => 'L_GENERAL',
'lastPage' => array(
'url' => 'back',
'title' => 'L_CONFIG'
))); ?>
<div data-role="content">
<?php echo $this->form->getSubForm('general'); ?>
</div>
</div>
<div id="config_dbuser" data-role="page">
<?php echo $this->partial('/partials/header.phtml', array(
'title' => 'L_DBS',
'lastPage' => array(
'url' => 'back',
'title' => 'L_CONFIG'
))); ?>
<div data-role="content">
<?php echo $this->form->getSubForm('dbuser'); ?>
</div>
</div>
<div id="config_interface" data-role="page">
<?php echo $this->partial('/partials/header.phtml', array(
'title' => 'L_CONFIG_INTERFACE',
'lastPage' => array(
'url' => 'back',
'title' => 'L_CONFIG'
)));?>
<div data-role="content">
<?php echo $this->form->getSubForm('interface'); ?>
</div>
</div>
<div id="config_autodelete" data-role="page">
<?php echo $this->partial('/partials/header.phtml', array(
'title' => 'L_CONFIG_AUTODELETE',
'lastPage' => array(
'url' => 'back',
'title' => 'L_CONFIG'
)));?>
<div data-role="content">
<?php echo $this->form->getSubForm('autodelete'); ?>
</div>
</div>
<div id="config_email" data-role="page">
<?php echo $this->partial('/partials/header.phtml', array(
'title' => 'L_EMAIL',
'lastPage' => array(
'url' => 'back',
'title' => 'L_CONFIG'
))); ?>
<div data-role="content">
<?php echo $this->form->getSubForm('email'); ?>
</div>
</div>
<div id="config_ftp" data-role="page">
<?php echo $this->partial('/partials/header.phtml', array(
'title' => 'L_FTP',
'lastPage' => array(
'url' => 'back',
'title' => 'L_CONFIG'
))); ?>
<div data-role="content">
<?php echo $this->form->getSubForm('ftp'); ?>
</div>
</div>
<div id="config_cronscript" data-role="page">
<?php echo $this->partial('/partials/header.phtml', array(
'title' => 'L_CRONSCRIPT',
'lastPage' => array(
'url' => 'back',
'title' => 'L_CONFIG'
))); ?>
<div data-role="content">
<?php echo $this->form->getSubForm('cronscript'); ?>
</div>
</div>
<div id="config_configfiles" data-role="page">
<?php echo $this->partial('/partials/header.phtml', array(
'title' => 'L_CONFIGFILES',
'lastPage' => array(
'url' => 'back',
'title' => 'L_CONFIG'
))); ?>
<div data-role="content">
<?php echo $this->form->getSubForm('configfiles'); ?>
</div>
</div>

Datei anzeigen

@ -0,0 +1,53 @@
<?php
echo $this->doctype();
$version = new Msd_Version();
?>
<html>
<head>
<title>MySQLDumper <?php echo $version->getMsdVersion();?> Error</title>
<?php
echo $this->headMeta() . "\n";
echo $this->headScript() . "\n";
?>
</head>
<body>
<?php
if ($this->displayErrors == 1) {
?>
<h1>An error occurred</h1>
<h2><?php echo $this->message ?></h2>
<?php if (isset($this->exception)): ?>
<h3>Exception information:</h3>
<p>
<b>Message:</b> <?php echo $this->exception->getMessage() ?>
<br>
Controller:
<span id="controller">
<?php echo $this->request->getParam('controller'); ?>
</span>
<br>
Action:
<span id="action">
<?php echo $this->request->getParam('action'); ?>
</span>
<br>
Module:
<span id="module">
<?php echo $this->request->getParam('module'); ?>
</span>
</p>
<h3>Stack trace:</h3>
<pre><?php echo $this->exception->getTraceAsString() ?>
</pre>
<h3>Request Parameters:</h3>
<pre><?php echo var_export($this->request->getParams(), true) ?>
</pre>
<?php endif;
}
?>
</body>
</html>

Datei anzeigen

@ -0,0 +1,202 @@
<?php
$version = new Msd_Version();
$menu = $this->menu($version);
$t = Msd_Language::getInstance()->getTranslator();
?>
<div data-role="page" id="menu_1">
<?php echo $this->partial('/partials/header.phtml', array(
'title' => 'L_HOME',
'lastPage' => array(
'title' => 'L_HOME',
'url' => $this->absoluteUrl(array(
'controller' => 'index',
'action' => 'index'
)),
))); ?>
<ul id="carousel_menu" style="display: none;">
<li>
<div id="menu_content" data-role="content">
<div id="menu_icons">
<table id="menu_table" summary="menu">
<tr>
<td>
<div <?php if ($this->controller == 'index')
echo 'class="active"';?>>
<a href="<?php echo $this->absoluteUrl(array(
'controller' => 'index',
'action' => 'index'
));?>" data-ajax="false">
<?php echo$this->getIcon('Home', $t->_('L_HOME'), 48);?>
</a>
</div>
</td>
<td>
<div <?php if ($this->controller == 'config')
echo 'class="active"';?>>
<a href="<?php echo $this->absoluteUrl(array(
'controller' => 'config',
'action' => 'index'
));?>" data-ajax="false">
<?php echo $this->getIcon('Configure', $t->_('L_CONFIG'), 48);?>
</a>
</div>
</td>
<td>
<div <?php if ($this->controller == 'files' && $this->action == 'restore')
echo 'class="active"';?>>
<a href="<?php echo $this->absoluteUrl(array(
'controller' => 'files',
'action' => 'restore'
));?>" data-ajax="false">
<?php echo$this->getIcon('RestoreDatabase', $t->_('L_RESTORE'), 48);?>
</a>
</div>
</td>
</tr>
<tr>
<td>
<div <?php if ($this->controller == 'files' && $this->action != 'restore')
echo 'class="active"';?>>
<a href="<?php echo $this->absoluteUrl(array(
'controller' => 'files',
'action' => 'index'
));?> data-ajax="false"">
<?php echo$this->getIcon('FileManagement', $t->_('L_FILE_MANAGE'), 48);?>
</a>
</div>
</td>
<td>
<div <?php if ($this->controller == 'sql')
echo 'class="active"';?>>
<a href="<?php echo $this->absoluteUrl(
array(
'controller' => 'sql',
'action' => 'show.tables'
));?>" data-ajax="false">
<?php echo$this->getIcon('SqlBrowser', $t->_('L_SQL_BROWSER'), 48);?>
</a>
</div>
</td>
<td>
<div <?php if ($this->controller == 'sql.server')
echo 'class="active"';?>>
<a href="<?php echo $this->absoluteUrl(
array(
'controller' => 'sql.server',
'action' => 'index'
));?>" data-ajax="false">
<?php echo$this->getIcon('Server', $t->_('L_SQL_SERVER'), 48);?>
</a>
</div>
</td>
</tr>
<tr>
<td>
<div <?php if ($this->controller == 'log')
echo 'class="active"';?>>
<a href="<?php echo $this->absoluteUrl(
array(
'controller' => 'log',
'action' => 'index'
));?>" data-ajax="false">
<?php echo$this->getIcon('log', $t->_('L_LOG'), 48);?>
</a>
</div>
</td>
<td>
<?php if (count($this->databases) > 0): ?>
<div <?php if ($this->controller == 'dump')
echo 'class="active"';?>>
<a href="<?php echo $this->absoluteUrl(
array(
'controller' => 'dump',
'action' => 'index'
)); ?>" data-ajax="false">
<?php echo$this->getIcon('BackupDatabase', $t->_('L_DUMP'), 48);?></a>
</div>
<?php endif; ?>
</td>
<td>
<div class="active">
<a href="http://www.mysqldumper.net/credits/" class="new-window">
<?php echo$this->getIcon('Help', $t->_('L_CREDITS'), 48);?>
</a>
</div>
</td>
</tr>
</table>
</div>
</div>
</li>
</li>
<div id="selectConfig">
<form action="<?php echo $this->absoluteUrl(array(
'controller' => 'index',
'action' => 'selectdb'
));?>"
method="post" id="formSelectDb">
<fieldset id="dbSelect"><legend><?php echo$t->_('L_CHOOSE_DB');?>:</legend>
<div data-role="fieldcontain">
<input type ="hidden" name="lastController" value="<?php echo $this->controller;?>" />
<input type ="hidden" name="lastAction" value="<?php echo $this->action;?>" />
<?php if (count($this->databases) > 0 ) { ?>
<select name="selectedDb" id="selectedDb" data-native-menu="false" onchange="this.form.submit()">
<?php
foreach ($this->databases as $db) {
echo '<option value="'.base64_encode($db).'"';
if ($db == $this->config->get('dynamic.dbActual')) {
echo ' selected="selected"';
}
echo '>'.$db.'</option>';
}
?>
</select>
<?php } else {
echo $t->_('L_NO_DB_FOUND');
} ?>
</div>
</fieldset>
</form>
<form action="<?php echo $this->absoluteUrl(
array(
'controller' => 'index',
'action' => 'switchconfig'
));?>" method="post">
<fieldset id="configSelect"><legend><?php echo$t->_('L_CONFIG');?>:</legend>
<div data-role="fieldcontain">
<input type ="hidden" name="lastController" value="<?php echo $this->controller;?>" />
<input type ="hidden" name="lastAction" value="<?php echo $this->action;?>" />
<select name="selectedConfig" id="selectedConfig" style="width: 157px;" onchange="this.form.submit()">
<?php
$this->configFiles = Msd_File::getConfigNames();
foreach ($this->configFiles as $file) {
echo "\n" . '<option value="' . base64_encode($file) . '"';
if ($this->config->get('dynamic.configFile') == $file) {
echo ' selected="selected"';
}
echo '>'.$this->getConfigTitle($file).'</option>';
}
?>
</select>
</div>
</fieldset>
</form>
</div>
</li>
</ul>
<div data-role="footer" class="ui-bar">
<a href="<?php echo $this->absoluteUrl(
array(
'controller' => 'index',
'action' => 'logout'
));?>"
data-role="button" data-icon="delete" data-ajax="false" >
<?php echo $t->_('L_LOGOUT'); ?>
</a>
</div>
</div>
<script type="text/javascript">
$("#carousel_menu").carousel();
</script>

Datei anzeigen

@ -0,0 +1,36 @@
<?php
$t = Msd_Language::getInstance()->getTranslator();
?>
<div data-role="page" id="login">
<div data-role="header"><h1>MySQL Dumper</h1></div>
<div class="ui-bar ui-bar-b">
<h1><?php echo $t->_('L_LOGIN');?></h1>
</div>
<div data-role="content">
<form id="login_form" action="<?php
echo $this->url(array(
'controller' => 'index',
'action' => 'login',
), null, true);
?>" method="post" rel="external" data-ajax="false">
<div data-role="fieldcontain">
<label for="login_user"><?php echo $t->_('L_USERNAME'); ?>:</label><input type="text" name="user" id="login_user" />
<br />
<label for="login_password"><?php echo $t->_('L_PASSWORD'); ?>:</label><input type="password" name="pass" id="login_password" />
</div>
<div data-role="fieldcontain">
<label for="autologin"><?php echo $t->_('L_LOGIN_AUTOLOGIN'); ?>:</label>
<select name="autologin" id="autologin" data-role="slider">
<option value="1"><?php echo $t->_('L_MOBILE_ON'); ?></option>
<option value="0"><?php echo $t->_('L_MOBILE_OFF'); ?></option>
</select>
</div>
<fieldset class="ui-grid-a">
<div class="ui-block-b">
<input id="login_login" type="submit" data-iconpos="right" data-theme="b" data-icon="arrow-r" value="<?php echo $t->_('L_LOGIN'); ?>"></input>
</div>
</fieldset>
</form>
</div>
</div>

Datei anzeigen

@ -0,0 +1,19 @@
<?php
$t = Msd_Language::getInstance()->getTranslator();
?>
<div data-role="header" data-position="inline">
<?php if(isset($this->lastPage)): ?>
<?php $lastPage = $this->lastPage;?>
<?php if($lastPage['url'] != 'back'): ?>
<a href="<?php echo $lastPage['url'];?>" data-ajax="false" data-icon="back">
<?php else: ?>
<a href="#" data-rel="back" data-icon="back">
<?php endif; ?>
<?php echo $t->_($lastPage['title']);?></a>
<?php endif; ?>
<h1><?php echo $t->_($this->title); ?></h1>
<a href="<?php echo $this->absoluteUrl(array(
'controller' => 'index',
'action' => 'index'
)); ?>" data-ajax="false" data-icon="home"><?php echo $t->_('L_HOME'); ?></a>
</div>