Initial commit

This commit is contained in:
2022-11-21 09:47:28 +01:00
commit 76cec83d26
11652 changed files with 1980467 additions and 0 deletions

View File

@ -0,0 +1,8 @@
<tr class="noclick <?= ($odd_row ? 'odd' : 'even'); ?>">
<td><?= $value['Log_name']; ?></td>
<td class="right"><?= $value['Pos']; ?></td>
<td><?= $value['Event_type']; ?></td>
<td class="right"><?= $value['Server_id']; ?></td>
<td class="right"><?= (isset($value['Orig_log_pos']) ? $value['Orig_log_pos'] : $value['End_log_pos']); ?></td>
<td><?= \PMA\libraries\Util::formatSql($value['Info'], ! $dontlimitchars); ?></td>
</tr>

View File

@ -0,0 +1,27 @@
<form action="server_binlog.php" method="get">
<?= PMA_URL_getHiddenInputs($url_params); ?>
<fieldset>
<legend>
<?= __('Select binary log to view'); ?>
</legend>
<?php $full_size = 0; ?>
<select name="log">
<?php foreach ($binary_logs as $each_log): ?>
<option value="<?= htmlspecialchars($each_log['Log_name']); ?>"<?= ($each_log['Log_name'] == $_REQUEST['log'] ? ' selected="selected"' : ''); ?>>
<?= htmlspecialchars($each_log['Log_name']); ?>
<?php if (isset($each_log['File_size'])): ?>
(<?= implode(' ', \PMA\libraries\Util::formatByteDown($each_log['File_size'], 3, 2)); ?>)
<?php $full_size += $each_log['File_size']; ?>
<?php endif; ?>
</option>
<?php endforeach; ?>
</select>
<?= count($binary_logs) . ' ' . __('Files') . ', '; ?>
<?php if ($full_size > 0): ?>
<?= implode(' ', \PMA\libraries\Util::formatByteDown($full_size)); ?>
<?php endif; ?>
</fieldset>
<fieldset class="tblFooters">
<input type="submit" value="<?= __('Go'); ?>" />
</fieldset>
</form>

View File

@ -0,0 +1,30 @@
<div id="div_mysql_charset_collations">
<table class="data noclick">
<tr>
<th id="collationHeader"><?= __('Collation'); ?></th>
<th><?= __('Description'); ?></th>
</tr>
<?php foreach ($mysqlCharsets as $current_charset): ?>
<tr>
<th colspan="2" class="right">
<?= htmlspecialchars($current_charset); ?>
<?php if (! empty($mysqlCharsetsDesc[$current_charset])): ?>
(<i><?= htmlspecialchars($mysqlCharsetsDesc[$current_charset]); ?></i>)
<?php endif; ?>
</th>
</tr>
<?php $odd_row = true; ?>
<?php foreach ($mysqlCollations[$current_charset] as $current_collation): ?>
<tr class="
<?= ($odd_row ? 'odd' : 'even'); ?>
<?= ($mysqlDftCollations[$current_charset] == $current_collation ? ' marked' : ''); ?>
<?= ($mysqlCollAvailable[$current_collation] ? '' : ' disabled'); ?>
">
<td><?= htmlspecialchars($current_collation); ?></td>
<td><?= PMA_getCollationDescr($current_collation); ?></td>
</tr>
<?php $odd_row = ! $odd_row; ?>
<?php endforeach; ?>
<?php endforeach; ?>
</table>
</div>

View File

@ -0,0 +1,36 @@
<ul>
<li id="li_create_database" class="no_bullets">
<?php if ($GLOBALS['is_create_db_priv']): ?>
<form method="post" action="server_databases.php" id="create_database_form" class="ajax">
<strong>
<label for="text_create_db">
<?= \PMA\libraries\Util::getImage('b_newdb.png') , ' ' , __('Create database'); ?>
</label>&nbsp;<?= \PMA\libraries\Util::showMySQLDocu('CREATE_DATABASE'); ?>
</strong>
<br />
<?= PMA_URL_getHiddenInputs('', '', 5); ?>
<input type="hidden" name="reload" value="1" />
<?php if (! empty($dbstats)): ?>
<input type="hidden" name="dbstats" value="1" />
<?php endif; ?>
<input type="text" name="new_db" value="<?= htmlspecialchars($GLOBALS['db_to_create']); ?>"
maxlength="64" class="textfield" id="text_create_db" required
placeholder="<?= __('Database name'); ?>" />
<?= PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION, 'db_collation', null, null, true); ?>
<input type="submit" value="<?= __('Create'); ?>" id="buttonGo" />
</form>
<?php else: ?>
<!-- db creation no privileges message -->
<strong>
<?= \PMA\libraries\Util::getImage('b_newdb.png') , ' ' , __('Create database'); ?>&nbsp;<?= \PMA\libraries\Util::showMySQLDocu('CREATE_DATABASE'); ?>
</strong>
<br />
<span class="noPrivileges">
<?= \PMA\libraries\Util::getImage('s_error2.png', '', array('hspace' => 2, 'border' => 0, 'align' => 'middle')) , ' ' , __('No Privileges'); ?>
</span>
<?php endif; ?>
</li>
</ul>

View File

@ -0,0 +1,42 @@
<tfoot>
<tr>
<?php if ($GLOBALS['is_superuser'] || $GLOBALS['cfg']['AllowUserDropDatabase']): ?>
<th></th>
<?php endif; ?>
<th>
<?= __('Total'); ?>: <span id="databases_count"><?= $databaseCount; ?></span>
</th>
<?php foreach ($column_order as $stat_name => $stat):
if (! array_key_exists($stat_name, $first_database)) {
continue;
}
if ($stat['format'] === 'byte') {
list($value, $unit) = \PMA\libraries\Util::formatByteDown($stat['footer'], 3, 1);
} elseif ($stat['format'] === 'number') {
$value = \PMA\libraries\Util::formatNumber($stat['footer'], 0);
} else {
$value = htmlentities($stat['footer'], 0);
} ?>
<th class="value">
<?php if (isset($stat['description_function'])): ?>
<dfn title="<?= $stat['description_function']($stat['footer']); ?>">
<?= $value; ?>
</dfn>
<?php else: ?>
<?= $value; ?>
<?php endif; ?>
</th>
<?php if ($stat['format'] === 'byte'): ?>
<th class="unit"><?= $unit; ?></th>
<?php endif; ?>
<?php endforeach; ?>
<?php if ($master_replication): ?>
<th></th>
<?php endif; ?>
<?php if ($slave_replication): ?>
<th></th>
<?php endif; ?>
<th></th>
</tr>
</tfoot>

View File

@ -0,0 +1,40 @@
<thead>
<tr>
<?php if ($GLOBALS['is_superuser'] || $GLOBALS['cfg']['AllowUserDropDatabase']): ?>
<th></th>
<?php endif; ?>
<th>
<a href="server_databases.php<?= PMA_URL_getCommon($_url_params); ?>">
<?= __('Database'); ?>
<?= ($sort_by == 'SCHEMA_NAME' ? \PMA\libraries\Util::getImage('s_' . $sort_order . '.png', $sort_order_text) : ''); ?>
</a>
</th>
<?php foreach ($column_order as $stat_name => $stat):
if (! array_key_exists($stat_name, $first_database)) {
continue;
}
$_url_params['sort_by'] = $stat_name;
$_url_params['sort_order'] = ($sort_by == $stat_name && $sort_order == 'desc') ? 'asc' : 'desc'; ?>
<th <?php if ($stat['format'] === 'byte'): ?>colspan="2"<?php endif; ?>>
<a href="server_databases.php<?= PMA_URL_getCommon($_url_params); ?>">
<?= $stat['disp_name']; ?>
<?= ($sort_by == $stat_name ? \PMA\libraries\Util::getImage('s_' . $sort_order . '.png', $sort_order_text) : ''); ?>
</a>
</th>
<?php endforeach; ?>
<?php if ($master_replication): ?>
<th>
<?= __('Master replication'); ?>
</th>
<?php endif; ?>
<?php if ($slave_replication): ?>
<th>
<?= __('Slave replication'); ?>
</th>
<?php endif; ?>
<th>
<?= __('Action'); ?>
</th>
</tr>
</thead>

View File

@ -0,0 +1,65 @@
<tr <?= $tr_class ? ('class="' . $tr_class . '"') : ''; ?>>
<?php if ($GLOBALS['is_superuser'] || $GLOBALS['cfg']['AllowUserDropDatabase']): ?>
<td class="tool">
<input type="checkbox" name="selected_dbs[]" class="checkall"
title="<?= htmlspecialchars($current['SCHEMA_NAME']); ?>"
value="<?= htmlspecialchars($current['SCHEMA_NAME']); ?>"
<?php if ($GLOBALS['dbi']->isSystemSchema($current['SCHEMA_NAME'], true)): ?>
disabled="disabled";
<?php endif; ?>
/>
</td>
<?php endif; ?>
<td class="name">
<a href="<?= \PMA\libraries\Util::getScriptNameForOption($GLOBALS['cfg']['DefaultTabDatabase'], 'database') , $url_query , '&amp;db=' , urlencode($current['SCHEMA_NAME']); ?>"
title="<?= sprintf(__('Jump to database'), htmlspecialchars($current['SCHEMA_NAME'])); ?>">
<?= htmlspecialchars($current['SCHEMA_NAME']); ?>
</a>
</td>
<?php foreach ($column_order as $stat_name => $stat):
if (! array_key_exists($stat_name, $current)) {
continue;
}
if ($stat['format'] === 'byte') {
list($value, $unit) = \PMA\libraries\Util::formatByteDown($current[$stat_name], 3, 1);
} elseif ($stat['format'] === 'number') {
$value = \PMA\libraries\Util::formatNumber($current[$stat_name], 0);
} else {
$value = htmlentities($current[$stat_name], 0);
} ?>
<td class="value">
<?php if (isset($stat['description_function'])): ?>
<dfn title="<?= $stat['description_function']($stat['footer']); ?>">
<?= $value; ?>
</dfn>
<?php else: ?>
<?= $value; ?>
<?php endif; ?>
</td>
<?php if ($stat['format'] === 'byte'): ?>
<td class="unit"><?= $unit; ?></td>
<?php endif; ?>
<?php endforeach; ?>
<?php if ($master_replication_status): ?>
<td class="tool" style="text-align: center;">
<?= $master_replication; ?>
</td>
<?php endif; ?>
<?php if ($slave_replication_status): ?>
<td class="tool" style="text-align: center;">
<?= $slave_replication; ?>
</td>
<?php endif; ?>
<td class="tool">
<a onclick="PMA_commonActions.setDb('<?= PMA_jsFormat($current['SCHEMA_NAME']) ?>');"
href="server_privileges.php<?= $url_query; ?>&amp;db=<?= urlencode($current['SCHEMA_NAME']); ?>&amp;checkprivsdb=<?= urlencode($current['SCHEMA_NAME']); ?>"
title="<?= htmlspecialchars(sprintf(__('Check privileges for database "%s".'), $current['SCHEMA_NAME'])); ?>">
<?= \PMA\libraries\Util::getIcon('s_rights.png', __('Check privileges')); ?>
</a>
</td>
</tr>

View File

@ -0,0 +1,42 @@
<h2>
<?= \PMA\libraries\Util::getImage('b_engine.png'),
' ', htmlspecialchars($title),
' ', \PMA\libraries\Util::showMySQLDocu($helpPage); ?>
</h2>
<p>
<em>
<?= htmlspecialchars($comment); ?>
</em>
</p>
<?php if (! empty($infoPages) && is_array($infoPages)): ?>
<p>
<strong>[</strong>
<?php if (empty($_REQUEST['page'])): ?>
<strong><?= __('Variables'); ?></strong>
<?php else: ?>
<a href="server_engines.php<?= PMA_URL_getCommon(array('engine' => $_REQUEST['engine'])); ?>">
<?= __('Variables'); ?>
</a>
<?php endif; ?>
<?php foreach ($infoPages as $current => $label): ?>
<strong>|</strong>
<?php if (isset($_REQUEST['page']) && $_REQUEST['page'] == $current): ?>
<strong><?= htmlspecialchars($label); ?></strong>
<?php else: ?>
<a href="server_engines.php<?= PMA_URL_getCommon(array('engine' => $_REQUEST['engine'], 'page' => $current)); ?>">
<?= htmlspecialchars($label); ?>
</a>
<?php endif; ?>
<?php endforeach; ?>
<strong>]</strong>
</p>
<?php endif; ?>
<?php if (! empty($pageOutput)): ?>
<?= $pageOutput; ?>
<?php else: ?>
<p>
<?= $support; ?>
</p>
<?= $variables; ?>
<?php endif; ?>

View File

@ -0,0 +1,25 @@
<table class="noclick">
<thead>
<tr>
<th><?= __('Storage Engine'); ?></th>
<th><?= __('Description'); ?></th>
</tr>
</thead>
<tbody>
<?php $odd_row = true; ?>
<?php foreach ($engines as $engine => $details): ?>
<tr class="
<?= $odd_row ? 'odd' : 'even'; ?>
<?= $details['Support'] == 'NO' || $details['Support'] == 'DISABLED' ? ' disabled' : ''; ?>
<?= $details['Support'] == 'DEFAULT' ? ' marked' : ''; ?>">
<td>
<a rel="newpage" href="server_engines.php<?= PMA_URL_getCommon(array('engine' => $engine)); ?>">
<?= htmlspecialchars($details['Engine']); ?>
</a>
</td>
<td><?= htmlspecialchars($details['Comment']); ?></td>
</tr>
<?php $odd_row = !$odd_row; ?>
<?php endforeach; ?>
</tbody>
</table>

View File

@ -0,0 +1,33 @@
<table class="data_full_width"
id="plugins-<?= preg_replace('/[^a-z]/', '', mb_strtolower($plugin_type)); ?>">
<caption class="tblHeaders">
<?= htmlspecialchars($plugin_type); ?>
</caption>
<thead>
<tr>
<th><?= __('Plugin'); ?></th>
<th><?= __('Description'); ?></th>
<th><?= __('Version'); ?></th>
<th><?= __('Author'); ?></th>
<th><?= __('License'); ?></th>
</tr>
</thead>
<tbody>
<?php $odd_row = true; ?>
<?php foreach ($plugin_list as $plugin): ?>
<tr class="noclick <?= ($odd_row ? 'odd' : 'even'); ?>">
<th>
<?= htmlspecialchars($plugin['plugin_name']); ?>
<?php if (! $plugin['is_active']): ?>
<small class="attention"><?= __('disabled'); ?></small>
<?php endif; ?>
</th>
<td><?= htmlspecialchars($plugin['plugin_description']); ?></td>
<td><?= htmlspecialchars($plugin['plugin_type_version']); ?></td>
<td><?= htmlspecialchars($plugin['plugin_author']); ?></td>
<td><?= htmlspecialchars($plugin['plugin_license']); ?></td>
</tr>
<?php $odd_row = !$odd_row; ?>
<?php endforeach; ?>
</tbody>
</table>

View File

@ -0,0 +1,8 @@
<div id="sectionlinks">
<?php foreach ($plugins as $plugin_type => $plugin_list): ?>
<a href="#plugins-<?= preg_replace('/[^a-z]/', '', mb_strtolower($plugin_type)); ?>">
<?= htmlspecialchars($plugin_type); ?>
</a>
<?php endforeach; ?>
</div>
<br />

View File

@ -0,0 +1,11 @@
<a style="display: none;" href="<?= $url; ?>" class="ajax saveLink">
<?= \PMA\libraries\Util::getIcon('b_save.png', __('Save')); ?>
</a>
<a style="display: none;" href="#" class="cancelLink">
<?= \PMA\libraries\Util::getIcon('b_close.png', __('Cancel')); ?>
</a>
<?= \PMA\libraries\Util::getImage(
'b_help.png',
__('Documentation'),
array('style' => 'display:none', 'id' => 'docImage')
) ?>

View File

@ -0,0 +1,5 @@
<tr class="var-row <?= $rowClass; ?>">
<td class="var-action"></td>
<td class="var-name session">(<?= __('Session value'); ?> )</td>
<td class="var-value value">&nbsp;<?= htmlspecialchars($value); ?></td>
</tr>

View File

@ -0,0 +1,9 @@
<fieldset id="tableFilter">
<legend><?= __('Filters'); ?></legend>
<div class="formelement">
<label for="filterText"><?= __('Containing the word:'); ?></label>
<input name="filterText" type="text" id="filterText"
style="vertical-align: baseline;"
value="<?= htmlspecialchars($filterValue); ?>" />
</div>
</fieldset>

View File

@ -0,0 +1,24 @@
<tr class="var-row <?= $rowClass; ?>">
<td class="var-action">
<?php if ($editable): ?>
<a href="#" data-variable="<?= htmlspecialchars($name) ?>" class="editLink"><?= \PMA\libraries\Util::getIcon('b_edit.png', __('Edit')) ?></a>
<?php else: ?>
<span title="<?= __('This is a read-only variable and can not be edited') ?>" class="read_only_var">
<?= \PMA\libraries\Util::getIcon('bd_edit.png', __('Edit')) ?>
</span>
<?php endif; ?>
</td>
<td class="var-name">
<?php if ($docLink != null): ?>
<span title="<?= htmlspecialchars(str_replace('_', ' ', $name)); ?>">
<?= \PMA\libraries\Util::showMySQLDocu($docLink[1], false, $docLink[2] . '_' . $docLink[0], true)
, htmlspecialchars(str_replace('_', ' ', $name))
, '</a>'
?>
</span>
<?php else: ?>
<?= htmlspecialchars(str_replace('_', ' ', $name)); ?>
<?php endif; ?>
</td>
<td class="var-value value <?= ($isSuperuser ? ' editable' : '') ?>">&nbsp;<?= htmlspecialchars($value); ?></td>
</tr>

View File

@ -0,0 +1,7 @@
<thead>
<tr class="var-header var-row">
<td class="var-action"><?= __('Action'); ?></td>
<td class="var-name"><?= __('Variable'); ?></td>
<td class="var-value"><?= __('Session value'); ?> / <?= __('Global value'); ?></td>
</tr>
</thead>