log-bin=mysql-bin
log-error=mysql-bin.err
";'."\n".
'var c_ignore = "binlog_ignore_db=";'."\n".
'var c_do = "binlog_do_db=";'."\n".
'$(\'db_reset_href\').addEvent(\'click\', function() {'."\n".
' $(\'db_select\').getSelected().each(function(el) {'."\n".
' el.selected = false;'."\n".
' });'."\n".
' $(\'rep\').set(\'html\', c_text);'."\n".
'});'."\n".
'$(\'db_type\').addEvent(\'change\',function() {'."\n".
' if ($(\'db_type\').getSelected().get(\'value\')=="all")'."\n".
' $(\'rep\').set(\'html\', c_text+c_ignore+c_output+\';\');'."\n".
' else'."\n".
' $(\'rep\').set(\'html\', c_text+c_do+c_output+\';\');'."\n".
'});'."\n".
'$(\'db_select\').addEvent(\'change\',function() {'."\n".
' var count = 0;'."\n".
' $(\'db_select\').getSelected().each(function(el) { '."\n".
' if (count==0)'."\n".
' c_output = el.get(\'value\');'."\n".
' else'."\n".
' c_output = c_output + \',\' +el.get(\'value\');'."\n".
' count=count+1;'."\n".
' if ($(\'db_select\').getSelected().length==count) {'."\n".
' if ($(\'db_type\').getSelected().get(\'value\')=="all")'."\n".
' $(\'rep\').set(\'html\', c_text+c_ignore+c_output);'."\n".
' else'."\n".
' $(\'rep\').set(\'html\', c_text+c_do+c_output);'."\n".
' count = 0;'."\n".
' }'."\n".
' });'."\n".
'});'."\n";
$jscode['slave_control'] =
'divShowHideFunc(\'slave_status_href\', \'replication_slave_section\');'."\n".
'divShowHideFunc(\'slave_control_href\', \'slave_control_gui\');'."\n".
'divShowHideFunc(\'slave_errormanagement_href\',\'slave_errormanagement_gui\'); '."\n";
$jscode['slave_control_sync'] =
'divShowHideFunc(\'slave_synchronization_href\', \'slave_synchronization_gui\');'."\n";
/**
* returns code for selecting databases
*
* @return String HTML code
*/
function PMA_replication_db_multibox()
{
$multi_values = '';
$multi_values .= '';
$multi_values .= '
Uncheck all';
return $multi_values;
}
/**
* prints out code for changing master
*
* @param String $submitname - submit button name
*/
function PMA_replication_gui_changemaster($submitname) {
global $username_length;
global $hostname_length;
echo '