Git
Threads by month
- ----- 2026 -----
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- 9 participants
- 39110 discussions
[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_3_1-11683-g3f8badd
by Michal Čihař 22 Jul '11
by Michal Čihař 22 Jul '11
22 Jul '11
The branch, master has been updated
via 3f8badd37f3e7ea78a718660e615ecf1c856e2f0 (commit)
via b8d5cee5d7dd90aecdd109da06b3f7e4cbf8ea08 (commit)
from bf9def5d50aab33dda6a38e4aa9b820a1f0c086a (commit)
- Log -----------------------------------------------------------------
commit 3f8badd37f3e7ea78a718660e615ecf1c856e2f0
Author: Michal Čihař <mcihar(a)suse.cz>
Date: Fri Jul 22 09:53:41 2011 +0200
Replace tabs with spaces, cleanup identation
commit b8d5cee5d7dd90aecdd109da06b3f7e4cbf8ea08
Author: Michal Čihař <mcihar(a)suse.cz>
Date: Fri Jul 22 09:39:00 2011 +0200
Fix indentation
-----------------------------------------------------------------------
Summary of changes:
db_structure.php | 20 +-
docs.css | 30 ++--
js/functions.js | 220 +++++++++---------
js/navigation.js | 16 +-
libraries/auth/swekey/swekey.auth.lib.php | 176 +++++++-------
libraries/auth/swekey/swekey.php | 208 +++++++++---------
libraries/engines/pbms.lib.php | 2 +-
libraries/import.lib.php | 360 ++++++++++++++--------------
libraries/rte/rte_words.lib.php | 86 ++++----
pmd/styles/default/style1.css | 182 ++++++++--------
pmd_general.php | 142 ++++++------
server_synchronize.php | 116 +++++-----
setup/config.php | 38 ++--
13 files changed, 798 insertions(+), 798 deletions(-)
diff --git a/db_structure.php b/db_structure.php
index 2bae5a7..01c2156 100644
--- a/db_structure.php
+++ b/db_structure.php
@@ -58,17 +58,17 @@ $titles = PMA_buildActionTitles();
// 1. No tables
if ($num_tables == 0) {
- echo '<p>' . __('No tables found in database') . '</p>' . "\n";
+ echo '<p>' . __('No tables found in database') . '</p>' . "\n";
- if (empty($db_is_information_schema)) {
- require './libraries/display_create_table.lib.php';
- } // end if (Create Table dialog)
+ if (empty($db_is_information_schema)) {
+ require './libraries/display_create_table.lib.php';
+ } // end if (Create Table dialog)
- /**
- * Displays the footer
- */
- require_once './libraries/footer.inc.php';
- exit;
+ /**
+ * Displays the footer
+ */
+ require_once './libraries/footer.inc.php';
+ exit;
}
// else
@@ -176,7 +176,7 @@ foreach ($tables as $keyname => $each_table) {
}
//$display_rows = ' - ';
break;
- // Mysql 5.0.x (and lower) uses MRG_MyISAM and MySQL 5.1.x (and higher) uses MRG_MYISAM
+ // Mysql 5.0.x (and lower) uses MRG_MyISAM and MySQL 5.1.x (and higher) uses MRG_MYISAM
// Both are aliases for MERGE
case 'MRG_MyISAM' :
case 'MRG_MYISAM' :
diff --git a/docs.css b/docs.css
index 96574d9..7e15537 100644
--- a/docs.css
+++ b/docs.css
@@ -18,8 +18,8 @@ img {
#header {
margin: 0px;
padding: 1em 0.5em 0.5em 1em;
- background: #036;
- border: 0px;
+ background: #036;
+ border: 0px;
border-bottom: 1px solid black;
}
@@ -31,16 +31,16 @@ img {
}
#header h1 a {
- color: #7584b3;
+ color: #7584b3;
}
#header h1 a .myadmin {
- color: #ffad17;
+ color: #ffad17;
}
#body {
- margin: 2em 1em 1em 1em;
- padding: 0px;
+ margin: 2em 1em 1em 1em;
+ padding: 0px;
padding-right: 13em;
}
@@ -54,13 +54,13 @@ ul#footer {
font-size: smaller;
list-style: none;
float: left;
- padding: 1em;
+ padding: 1em;
color: gray;
border: none;
}
#footer a {
- color: #c19e66;
+ color: #c19e66;
}
abbr, acronym {
@@ -73,12 +73,12 @@ abbr, acronym {
a {
text-decoration: none;
- color: #c17d11;
+ color: #c17d11;
}
a:hover {
- text-decoration: underline;
- color: #8f5902;
+ text-decoration: underline;
+ color: #8f5902;
}
sup {
@@ -128,22 +128,22 @@ ul.header a:hover {
}
h2 {
- color: #727e0a;
+ color: #727e0a;
max-width: 70em;
}
h3 {
- color: #727e0a;
+ color: #727e0a;
max-width: 70em;
}
h4, h5 {
- color: #727e0a;
+ color: #727e0a;
max-width: 70em;
}
h4 a {
- color: #727e0a;
+ color: #727e0a;
}
p {
diff --git a/js/functions.js b/js/functions.js
index dbb962d..1e2cced 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -28,7 +28,7 @@ var codemirror_editor = false;
* @var chart_activeTimeouts object active timeouts that refresh the charts. When disabling a realtime chart, this can be used to stop the continuous ajax requests
*/
var chart_activeTimeouts = new Object();
-
+
/**
* Add a hidden field to the form to indicate that this will be an
@@ -140,8 +140,8 @@ function PMA_addDatepicker($this_element, options) {
if ($this_element.is('.datetimefield')) {
showTimeOption = true;
}
-
- var defaultOptions = {
+
+ var defaultOptions = {
showOn: 'button',
buttonImage: themeCalendarImage, // defined in js/messages.php
buttonImageOnly: true,
@@ -159,11 +159,11 @@ function PMA_addDatepicker($this_element, options) {
// Fix wrong timepicker z-index, doesn't work without timeout
setTimeout(function() {
- $('#ui-timepicker-div').css('z-index',$('#ui-datepicker-div').css('z-index'))
+ $('#ui-timepicker-div').css('z-index',$('#ui-datepicker-div').css('z-index'))
},0);
},
constrainInput: false
- };
+ };
$this_element.datepicker($.extend(defaultOptions, options));
}
@@ -630,13 +630,13 @@ $(document).ready(function() {
return;
}
var $tr = $(this);
-
+
// make the table unselectable (to prevent default highlighting when shift+click)
$tr.parents('table').noSelect();
-
+
if (!e.shiftKey || last_clicked_row == -1) {
// usual click
-
+
// XXX: FF fires two click events for <label> (label and checkbox), so we need to handle this differently
var $checkbox = $tr.find(':checkbox');
if ($checkbox.length) {
@@ -657,14 +657,14 @@ $(document).ready(function() {
$tr.toggleClass('marked');
last_click_checked = false;
}
-
+
// remember the last clicked row
last_clicked_row = last_click_checked ? $('tr.odd:not(.noclick), tr.even:not(.noclick)').index(this) : -1;
last_shift_clicked_row = -1;
} else {
// handle the shift click
var start, end;
-
+
// clear last shift click result
if (last_shift_clicked_row >= 0) {
if (last_shift_clicked_row >= last_clicked_row) {
@@ -680,7 +680,7 @@ $(document).ready(function() {
.find(':checkbox')
.attr('checked', false);
}
-
+
// handle new shift click
var curr_row = $('tr.odd:not(.noclick), tr.even:not(.noclick)').index(this);
if (curr_row >= last_clicked_row) {
@@ -695,7 +695,7 @@ $(document).ready(function() {
.addClass('marked')
.find(':checkbox')
.attr('checked', true);
-
+
// remember the last shift clicked row
last_shift_clicked_row = curr_row;
}
@@ -1452,17 +1452,17 @@ function PMA_createTableDialog( div, url , target) {
* realtime: {
* url: adress to get the data from (will always add token, ajax_request=1 and chart_data=1 to the GET request)
* type: the GET request will also add type=[value of the type property] to the request
- * callback: Callback function that should draw the point, it's called with 4 parameters in this order:
+ * callback: Callback function that should draw the point, it's called with 4 parameters in this order:
* - the chart object
* - the current response value of the GET request, JSON parsed
* - the previous response value of the GET request, JSON parsed
* - the number of added points
- *
+ *
* @return object The created highcharts instance
*/
function PMA_createChart(passedSettings) {
var container = passedSettings.chart.renderTo;
-
+
var settings = {
chart: {
type: 'spline',
@@ -1475,45 +1475,45 @@ function PMA_createChart(passedSettings) {
var lastValue = null, curValue = null;
var numLoadedPoints = 0, otherSum = 0;
var diff;
-
+
// No realtime updates for graphs that are being exported, and disabled when realtime is not set
// Also don't do live charting if we don't have the server time
- if(thisChart.options.chart.forExport == true ||
- ! thisChart.options.realtime ||
+ if(thisChart.options.chart.forExport == true ||
+ ! thisChart.options.realtime ||
! thisChart.options.realtime.callback ||
! server_time_diff) return;
-
+
thisChart.options.realtime.timeoutCallBack = function() {
thisChart.options.realtime.postRequest = $.post(
thisChart.options.realtime.url,
thisChart.options.realtime.postData,
function(data) {
curValue = jQuery.parseJSON(data);
-
+
if(lastValue==null) diff = curValue.x - thisChart.xAxis[0].getExtremes().max;
else diff = parseInt(curValue.x - lastValue.x);
-
+
thisChart.xAxis[0].setExtremes(
- thisChart.xAxis[0].getExtremes().min+diff,
- thisChart.xAxis[0].getExtremes().max+diff,
+ thisChart.xAxis[0].getExtremes().min+diff,
+ thisChart.xAxis[0].getExtremes().max+diff,
false
);
-
+
thisChart.options.realtime.callback(thisChart,curValue,lastValue,numLoadedPoints);
-
+
lastValue = curValue;
numLoadedPoints++;
-
+
// Timeout has been cleared => don't start a new timeout
if(chart_activeTimeouts[container] == null) return;
-
+
chart_activeTimeouts[container] = setTimeout(
- thisChart.options.realtime.timeoutCallBack,
+ thisChart.options.realtime.timeoutCallBack,
thisChart.options.realtime.refreshRate
- );
+ );
});
}
-
+
chart_activeTimeouts[container] = setTimeout(thisChart.options.realtime.timeoutCallBack, 5);
}
}
@@ -1545,7 +1545,7 @@ function PMA_createChart(passedSettings) {
tooltip: {
formatter: function() {
return '<b>' + this.series.name +'</b><br/>' +
- Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x) + '<br/>' +
+ Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x) + '<br/>' +
Highcharts.numberFormat(this.y, 2);
}
},
@@ -1554,18 +1554,18 @@ function PMA_createChart(passedSettings) {
},
series: []
}
-
+
/* Set/Get realtime chart default values */
- if(passedSettings.realtime) {
- if(!passedSettings.realtime.refreshRate)
+ if(passedSettings.realtime) {
+ if(!passedSettings.realtime.refreshRate)
passedSettings.realtime.refreshRate = 5000;
-
- if(!passedSettings.realtime.numMaxPoints)
+
+ if(!passedSettings.realtime.numMaxPoints)
passedSettings.realtime.numMaxPoints = 30;
-
+
// Allow custom POST vars to be added
passedSettings.realtime.postData = $.extend(false,{ ajax_request: true, chart_data: 1, type: passedSettings.realtime.type },passedSettings.realtime.postData);
-
+
if(server_time_diff) {
settings.xAxis.min = new Date().getTime() - server_time_diff - passedSettings.realtime.numMaxPoints * passedSettings.realtime.refreshRate;
settings.xAxis.max = new Date().getTime() - server_time_diff + passedSettings.realtime.refreshRate;
@@ -2284,9 +2284,9 @@ function checkIndexName(form_id)
/**
* function to convert the footnotes to tooltips
*
- * @param jquery-Object $div a div jquery object which specifies the
- * domain for searching footnootes. If we
- * ommit this parameter the function searches
+ * @param jquery-Object $div a div jquery object which specifies the
+ * domain for searching footnootes. If we
+ * ommit this parameter the function searches
* the footnotes in the whole body
**/
function PMA_convertFootnotesToTooltips($div) {
@@ -2485,65 +2485,65 @@ var toggleButton = function ($obj) {
} else {
var right = 'left';
}
- /**
- * var h Height of the button, used to scale the
- * background image and position the layers
- */
- var h = $obj.height();
- $('img', $obj).height(h);
- $('table', $obj).css('bottom', h-1);
- /**
- * var on Width of the "ON" part of the toggle switch
- * var off Width of the "OFF" part of the toggle switch
- */
- var on = $('.toggleOn', $obj).width();
- var off = $('.toggleOff', $obj).width();
- // Make the "ON" and "OFF" parts of the switch the same size
- $('.toggleOn > div', $obj).width(Math.max(on, off));
- $('.toggleOff > div', $obj).width(Math.max(on, off));
- /**
- * var w Width of the central part of the switch
- */
- var w = parseInt(($('img', $obj).height() / 16) * 22, 10);
- // Resize the central part of the switch on the top
- // layer to match the background
- $('table td:nth-child(2) > div', $obj).width(w);
- /**
- * var imgw Width of the background image
- * var tblw Width of the foreground layer
- * var offset By how many pixels to move the background
- * image, so that it matches the top layer
- */
- var imgw = $('img', $obj).width();
- var tblw = $('table', $obj).width();
- var offset = parseInt(((imgw - tblw) / 2), 10);
- // Move the background to match the layout of the top layer
- $obj.find('img').css(right, offset);
- /**
- * var offw Outer width of the "ON" part of the toggle switch
- * var btnw Outer width of the central part of the switch
- */
- var offw = $('.toggleOff', $obj).outerWidth();
- var btnw = $('table td:nth-child(2)', $obj).outerWidth();
- // Resize the main div so that exactly one side of
- // the switch plus the central part fit into it.
- $obj.width(offw + btnw + 2);
- /**
- * var move How many pixels to move the
- * switch by when toggling
- */
- var move = $('.toggleOff', $obj).outerWidth();
- // If the switch is initialized to the
- // OFF state we need to move it now.
- if ($('.container', $obj).hasClass('off')) {
+ /**
+ * var h Height of the button, used to scale the
+ * background image and position the layers
+ */
+ var h = $obj.height();
+ $('img', $obj).height(h);
+ $('table', $obj).css('bottom', h-1);
+ /**
+ * var on Width of the "ON" part of the toggle switch
+ * var off Width of the "OFF" part of the toggle switch
+ */
+ var on = $('.toggleOn', $obj).width();
+ var off = $('.toggleOff', $obj).width();
+ // Make the "ON" and "OFF" parts of the switch the same size
+ $('.toggleOn > div', $obj).width(Math.max(on, off));
+ $('.toggleOff > div', $obj).width(Math.max(on, off));
+ /**
+ * var w Width of the central part of the switch
+ */
+ var w = parseInt(($('img', $obj).height() / 16) * 22, 10);
+ // Resize the central part of the switch on the top
+ // layer to match the background
+ $('table td:nth-child(2) > div', $obj).width(w);
+ /**
+ * var imgw Width of the background image
+ * var tblw Width of the foreground layer
+ * var offset By how many pixels to move the background
+ * image, so that it matches the top layer
+ */
+ var imgw = $('img', $obj).width();
+ var tblw = $('table', $obj).width();
+ var offset = parseInt(((imgw - tblw) / 2), 10);
+ // Move the background to match the layout of the top layer
+ $obj.find('img').css(right, offset);
+ /**
+ * var offw Outer width of the "ON" part of the toggle switch
+ * var btnw Outer width of the central part of the switch
+ */
+ var offw = $('.toggleOff', $obj).outerWidth();
+ var btnw = $('table td:nth-child(2)', $obj).outerWidth();
+ // Resize the main div so that exactly one side of
+ // the switch plus the central part fit into it.
+ $obj.width(offw + btnw + 2);
+ /**
+ * var move How many pixels to move the
+ * switch by when toggling
+ */
+ var move = $('.toggleOff', $obj).outerWidth();
+ // If the switch is initialized to the
+ // OFF state we need to move it now.
+ if ($('.container', $obj).hasClass('off')) {
if (right == 'right') {
- $('table, img', $obj).animate({'left': '-=' + move + 'px'}, 0);
+ $('table, img', $obj).animate({'left': '-=' + move + 'px'}, 0);
} else {
- $('table, img', $obj).animate({'left': '+=' + move + 'px'}, 0);
+ $('table, img', $obj).animate({'left': '+=' + move + 'px'}, 0);
}
- }
- // Attach an 'onclick' event to the switch
- $('.container', $obj).click(function () {
+ }
+ // Attach an 'onclick' event to the switch
+ $('.container', $obj).click(function () {
if ($(this).hasClass('isActive')) {
return false;
} else {
@@ -2552,8 +2552,8 @@ var toggleButton = function ($obj) {
var $msg = PMA_ajaxShowMessage(PMA_messages['strLoading']);
var $container = $(this);
var callback = $('.callback', this).text();
- // Perform the actual toggle
- if ($(this).hasClass('on')) {
+ // Perform the actual toggle
+ if ($(this).hasClass('on')) {
if (right == 'right') {
var operator = '-=';
} else {
@@ -2562,7 +2562,7 @@ var toggleButton = function ($obj) {
var url = $(this).find('.toggleOff > span').text();
var removeClass = 'on';
var addClass = 'off';
- } else {
+ } else {
if (right == 'right') {
var operator = '+=';
} else {
@@ -2575,10 +2575,10 @@ var toggleButton = function ($obj) {
$.post(url, {'ajax_request': true}, function(data) {
if(data.success == true) {
PMA_ajaxRemoveMessage($msg);
- $container
- .removeClass(removeClass)
- .addClass(addClass)
- .animate({'left': operator + move + 'px'}, function () {
+ $container
+ .removeClass(removeClass)
+ .addClass(addClass)
+ .animate({'left': operator + move + 'px'}, function () {
$container.removeClass('isActive');
});
eval(callback);
@@ -2587,7 +2587,7 @@ var toggleButton = function ($obj) {
$container.removeClass('isActive');
}
});
- });
+ });
};
/**
@@ -2598,8 +2598,8 @@ $(window).load(function () {
$(this)
.show()
.find('.toggleButton')
- toggleButton($(this));
- });
+ toggleButton($(this));
+ });
});
/**
@@ -2641,7 +2641,7 @@ $(document).ready(function() {
$checkbox.attr('checked', checked);
}
// for all td of the same vertical row, toggle the marked class
- if (checked) {
+ if (checked) {
$('.vmarker').filter('.row_' + row_num).addClass('marked');
} else {
$('.vmarker').filter('.row_' + row_num).removeClass('marked');
@@ -2905,7 +2905,7 @@ $(document).ready(function() {
else $(this).removeAttr('unselectable', 'on');
});
}
- }; //end noSelect
+ }; //end noSelect
})(jQuery);
/**
@@ -2943,7 +2943,7 @@ function PMA_createqTip($elements, content, options) {
}
}
}
-
+
$elements.qtip($.extend(true, o, options));
}
diff --git a/js/navigation.js b/js/navigation.js
index 167eb37..5ce805c 100644
--- a/js/navigation.js
+++ b/js/navigation.js
@@ -58,7 +58,7 @@ function PMA_saveFrameSizeReal()
if (parent.text_dir == 'ltr') {
pma_navi_width = parseInt(parent.document.getElementById('mainFrameset').cols)
} else {
- pma_navi_width = parent.document.getElementById('mainFrameset').cols.match(/\d+$/)
+ pma_navi_width = parent.document.getElementById('mainFrameset').cols.match(/\d+$/)
}
if ((pma_navi_width > 0) && (pma_navi_width != PMA_getCookie('pma_navi_width'))) {
PMA_setCookie('pma_navi_width', pma_navi_width, expires);
@@ -209,18 +209,18 @@ $(document).ready(function(){
/* Create table */
$('#newtable a.ajax').click(function(event){
event.preventDefault();
- /*Getting the url */
+ /*Getting the url */
var url = $('#newtable a').attr("href");
if (url.substring(0, 15) == "tbl_create.php?") {
url = url.substring(15);
}
- url = url +"&num_fields=&ajax_request=true";
- /*Creating a div on the frame_content frame */
- var div = parent.frame_content.$('<div id="create_table_dialog"></div>');
- var target = "tbl_create.php";
+ url = url +"&num_fields=&ajax_request=true";
+ /*Creating a div on the frame_content frame */
+ var div = parent.frame_content.$('<div id="create_table_dialog"></div>');
+ var target = "tbl_create.php";
- /*Calling to the createTableDialog function*/
- PMA_createTableDialog(div , url , target);
+ /*Calling to the createTableDialog function*/
+ PMA_createTableDialog(div , url , target);
});//end of create new table
});//end of document get ready
diff --git a/libraries/auth/swekey/swekey.auth.lib.php b/libraries/auth/swekey/swekey.auth.lib.php
index c5f613b..184c845 100644
--- a/libraries/auth/swekey/swekey.auth.lib.php
+++ b/libraries/auth/swekey/swekey.auth.lib.php
@@ -11,24 +11,24 @@ function Swekey_auth_check()
global $cfg;
$confFile = $cfg['Server']['auth_swekey_config'];
- if (! isset($_SESSION['SWEKEY'])) {
+ if (! isset($_SESSION['SWEKEY'])) {
$_SESSION['SWEKEY'] = array();
}
$_SESSION['SWEKEY']['ENABLED'] = (! empty($confFile) && file_exists($confFile));
// Load the swekey.conf file the first time
- if ($_SESSION['SWEKEY']['ENABLED'] && empty($_SESSION['SWEKEY']['CONF_LOADED'])) {
+ if ($_SESSION['SWEKEY']['ENABLED'] && empty($_SESSION['SWEKEY']['CONF_LOADED'])) {
$_SESSION['SWEKEY']['CONF_LOADED'] = true;
$_SESSION['SWEKEY']['VALID_SWEKEYS'] = array();
$valid_swekeys = explode("\n", @file_get_contents($confFile));
foreach ($valid_swekeys as $line) {
if (preg_match("/^[0-9A-F]{32}:.+$/", $line) != false)
- {
- $items = explode(":", $line);
- if (count($items) == 2)
+ {
+ $items = explode(":", $line);
+ if (count($items) == 2)
$_SESSION['SWEKEY']['VALID_SWEKEYS'][$items[0]] = trim($items[1]);
- }
+ }
else if (preg_match("/^[A-Z_]+=.*$/", $line) != false) {
$items = explode("=", $line);
$_SESSION['SWEKEY']['CONF_'.trim($items[0])] = trim($items[1]);
@@ -36,27 +36,27 @@ function Swekey_auth_check()
}
// Set default values for settings
- if (! isset($_SESSION['SWEKEY']['CONF_SERVER_CHECK']))
- $_SESSION['SWEKEY']['CONF_SERVER_CHECK'] = "";
- if (! isset($_SESSION['SWEKEY']['CONF_SERVER_RNDTOKEN']))
- $_SESSION['SWEKEY']['CONF_SERVER_RNDTOKEN'] = "";
- if (! isset($_SESSION['SWEKEY']['CONF_SERVER_STATUS']))
- $_SESSION['SWEKEY']['CONF_SERVER_STATUS'] = "";
- if (! isset($_SESSION['SWEKEY']['CONF_CA_FILE']))
- $_SESSION['SWEKEY']['CONF_CA_FILE'] = "";
- if (! isset($_SESSION['SWEKEY']['CONF_ENABLE_TOKEN_CACHE']))
- $_SESSION['SWEKEY']['CONF_ENABLE_TOKEN_CACHE'] = true;
- if (! isset($_SESSION['SWEKEY']['CONF_DEBUG']))
- $_SESSION['SWEKEY']['CONF_DEBUG'] = false;
+ if (! isset($_SESSION['SWEKEY']['CONF_SERVER_CHECK']))
+ $_SESSION['SWEKEY']['CONF_SERVER_CHECK'] = "";
+ if (! isset($_SESSION['SWEKEY']['CONF_SERVER_RNDTOKEN']))
+ $_SESSION['SWEKEY']['CONF_SERVER_RNDTOKEN'] = "";
+ if (! isset($_SESSION['SWEKEY']['CONF_SERVER_STATUS']))
+ $_SESSION['SWEKEY']['CONF_SERVER_STATUS'] = "";
+ if (! isset($_SESSION['SWEKEY']['CONF_CA_FILE']))
+ $_SESSION['SWEKEY']['CONF_CA_FILE'] = "";
+ if (! isset($_SESSION['SWEKEY']['CONF_ENABLE_TOKEN_CACHE']))
+ $_SESSION['SWEKEY']['CONF_ENABLE_TOKEN_CACHE'] = true;
+ if (! isset($_SESSION['SWEKEY']['CONF_DEBUG']))
+ $_SESSION['SWEKEY']['CONF_DEBUG'] = false;
}
// check if a web key has been authenticated
if ($_SESSION['SWEKEY']['ENABLED']) {
if (empty($_SESSION['SWEKEY']['AUTHENTICATED_SWEKEY']))
return false;
- }
+ }
- return true;
+ return true;
}
@@ -68,32 +68,32 @@ function Swekey_auth_error()
if (! isset($_SESSION['SWEKEY']))
return null;
- if (! $_SESSION['SWEKEY']['ENABLED'])
+ if (! $_SESSION['SWEKEY']['ENABLED'])
return null;
- require_once './libraries/auth/swekey/authentication.inc.php';
+ require_once './libraries/auth/swekey/authentication.inc.php';
?>
<script>
function Swekey_GetValidKey()
- {
- var valids = "<?php
- foreach ($_SESSION['SWEKEY']['VALID_SWEKEYS'] as $key => $value)
- echo $key.',';
- ?>";
- var connected_keys = Swekey_ListKeyIds().split(",");
- for (i in connected_keys)
- if (connected_keys[i] != null && connected_keys[i].length == 32)
- if (valids.indexOf(connected_keys[i]) >= 0)
- return connected_keys[i];
+ {
+ var valids = "<?php
+ foreach ($_SESSION['SWEKEY']['VALID_SWEKEYS'] as $key => $value)
+ echo $key.',';
+ ?>";
+ var connected_keys = Swekey_ListKeyIds().split(",");
+ for (i in connected_keys)
+ if (connected_keys[i] != null && connected_keys[i].length == 32)
+ if (valids.indexOf(connected_keys[i]) >= 0)
+ return connected_keys[i];
if (connected_keys.length > 0)
- if (connected_keys[0].length == 32)
- return "unknown_key_" + connected_keys[0];
+ if (connected_keys[0].length == 32)
+ return "unknown_key_" + connected_keys[0];
- return "none";
- }
+ return "none";
+ }
var key = Swekey_GetValidKey();
@@ -103,16 +103,16 @@ function Swekey_auth_error()
{
window.location.search = "?swekey_reset";
}
- else
- setTimeout("timedCheck()",1000);
+ else
+ setTimeout("timedCheck()",1000);
}
- setTimeout("timedCheck()",1000);
+ setTimeout("timedCheck()",1000);
</script>
- <?php
+ <?php
- if (! empty($_SESSION['SWEKEY']['AUTHENTICATED_SWEKEY']))
- return null;
+ if (! empty($_SESSION['SWEKEY']['AUTHENTICATED_SWEKEY']))
+ return null;
if (count($_SESSION['SWEKEY']['VALID_SWEKEYS']) == 0)
return sprintf(__('File %s does not contain any key id'), $GLOBALS['cfg']['Server']['auth_swekey_config']);
@@ -158,7 +158,7 @@ function Swekey_auth_error()
}
else {
$_SESSION['SWEKEY']['AUTHENTICATED_SWEKEY'] = $swekey_id;
- $_SESSION['SWEKEY']['FORCE_USER'] = $_SESSION['SWEKEY']['VALID_SWEKEYS'][$swekey_id];
+ $_SESSION['SWEKEY']['FORCE_USER'] = $_SESSION['SWEKEY']['VALID_SWEKEYS'][$swekey_id];
return null;
}
}
@@ -184,19 +184,19 @@ function Swekey_auth_error()
if (! isset($swekey_id)) {
?>
<script>
- if (key.length != 32)
- {
- window.location.search="?swekey_id=" + key;
- }
- else
- {
- var url = "" + window.location;
- if (url.indexOf("?") > 0)
- url = url.substr(0, url.indexOf("?"));
- Swekey_SetUnplugUrl(key, "pma_login", url + "?session_to_unset=<?php echo session_id();?>");
- var otp = Swekey_GetOtp(key, <?php echo '"'.$_SESSION['SWEKEY']['RND_TOKEN'].'"';?>);
- window.location.search="?swekey_id=" + key + "&swekey_otp=" + otp;
- }
+ if (key.length != 32)
+ {
+ window.location.search="?swekey_id=" + key;
+ }
+ else
+ {
+ var url = "" + window.location;
+ if (url.indexOf("?") > 0)
+ url = url.substr(0, url.indexOf("?"));
+ Swekey_SetUnplugUrl(key, "pma_login", url + "?session_to_unset=<?php echo session_id();?>");
+ var otp = Swekey_GetOtp(key, <?php echo '"'.$_SESSION['SWEKEY']['RND_TOKEN'].'"';?>);
+ window.location.search="?swekey_id=" + key + "&swekey_otp=" + otp;
+ }
</script>
<?php
return __('Authenticating...');
@@ -225,7 +225,7 @@ function Swekey_login($input_name, $input_go)
echo '<script type="text/javascript">';
if (empty($_SESSION['SWEKEY']['FORCE_USER']))
echo 'var user = null;';
- else
+ else
echo 'var user = "'.$_SESSION['SWEKEY']['FORCE_USER'].'";';
?>
@@ -236,47 +236,47 @@ function Swekey_login($input_name, $input_go)
var input_username = document.getElementById("<?php echo $input_name; ?>");
var input_go = document.getElementById("<?php echo $input_go; ?>");
- var swekey_status = document.createElement('img');
- swekey_status.setAttribute('onClick', 'open_swekey_site()');
- swekey_status.setAttribute('style', 'width:8px; height:16px; border:0px; vspace:0px; hspace:0px; frameborder:no');
+ var swekey_status = document.createElement('img');
+ swekey_status.setAttribute('onClick', 'open_swekey_site()');
+ swekey_status.setAttribute('style', 'width:8px; height:16px; border:0px; vspace:0px; hspace:0px; frameborder:no');
if (user == null)
- {
- swekey_status.setAttribute('src', 'http://artwork.swekey.com/unplugged-8x16.png');
- //swekey_status.setAttribute('title', 'No swekey plugged');
- input_go.disabled = true;
- }
- else
- {
- swekey_status.setAttribute('src', 'http://artwork.swekey.com/plugged-8x16.png');
- //swekey_status.setAttribute('title', 'swekey plugged');
- input_username.value = user;
- }
- input_username.readOnly = true;
-
- if (input_username.nextSibling == null)
- input_username.parentNode.appendChild(swekey_status);
- else
- input_username.parentNode.insertBefore(swekey_status, input_username.nextSibling);
-
- <?php
+ {
+ swekey_status.setAttribute('src', 'http://artwork.swekey.com/unplugged-8x16.png');
+ //swekey_status.setAttribute('title', 'No swekey plugged');
+ input_go.disabled = true;
+ }
+ else
+ {
+ swekey_status.setAttribute('src', 'http://artwork.swekey.com/plugged-8x16.png');
+ //swekey_status.setAttribute('title', 'swekey plugged');
+ input_username.value = user;
+ }
+ input_username.readOnly = true;
+
+ if (input_username.nextSibling == null)
+ input_username.parentNode.appendChild(swekey_status);
+ else
+ input_username.parentNode.insertBefore(swekey_status, input_username.nextSibling);
+
+ <?php
echo '</script>';
- }
+ }
}
if (!empty($_GET['session_to_unset']))
{
- session_write_close();
- session_id($_GET['session_to_unset']);
- session_start();
- $_SESSION = array();
- session_write_close();
- session_destroy();
- exit;
+ session_write_close();
+ session_id($_GET['session_to_unset']);
+ session_start();
+ $_SESSION = array();
+ session_write_close();
+ session_destroy();
+ exit;
}
if (isset($_GET['swekey_reset']))
{
- unset($_SESSION['SWEKEY']);
+ unset($_SESSION['SWEKEY']);
}
?>
diff --git a/libraries/auth/swekey/swekey.php b/libraries/auth/swekey/swekey.php
index b456061..869d3d5 100644
--- a/libraries/auth/swekey/swekey.php
+++ b/libraries/auth/swekey/swekey.php
@@ -128,7 +128,7 @@ function Swekey_SetStatusServer($server)
function Swekey_SetCAFile($cafile)
{
global $gSwekeyCA;
- $gSwekeyCA = $cafile;
+ $gSwekeyCA = $cafile;
}
/**
@@ -142,7 +142,7 @@ function Swekey_SetCAFile($cafile)
function Swekey_EnableTokenCache($enable)
{
global $gSwekeyTokenCacheEnabled;
- $gSwekeyTokenCacheEnabled = ! empty($enable);
+ $gSwekeyTokenCacheEnabled = ! empty($enable);
}
@@ -186,51 +186,51 @@ function Swekey_HttpGet($url, &$response_code)
global $gSwekeyLastResult;
$gSwekeyLastResult = "<not set>";
- // use curl if available
- if (function_exists('curl_init'))
- {
- $sess = curl_init($url);
- if (substr($url, 0, 8) == "https://")
- {
- global $gSwekeyCA;
-
- if (! empty($gSwekeyCA))
- {
- if (file_exists($gSwekeyCA))
- {
- if (! curl_setopt($sess, CURLOPT_CAINFO, $gSwekeyCA))
- error_log("SWEKEY_ERROR:Could not set CA file : ".curl_error($sess));
- else
- $caFileOk = true;
- }
- else
- error_log("SWEKEY_ERROR:Could not find CA file $gSwekeyCA getting $url");
- }
-
- curl_setopt($sess, CURLOPT_SSL_VERIFYHOST, '2');
- curl_setopt($sess, CURLOPT_SSL_VERIFYPEER, '2');
- curl_setopt($sess, CURLOPT_CONNECTTIMEOUT, '20');
- curl_setopt($sess, CURLOPT_TIMEOUT, '20');
- }
- else
- {
- curl_setopt($sess, CURLOPT_CONNECTTIMEOUT, '3');
- curl_setopt($sess, CURLOPT_TIMEOUT, '5');
- }
-
- curl_setopt($sess, CURLOPT_RETURNTRANSFER, '1');
- $res=curl_exec($sess);
- $response_code = curl_getinfo($sess, CURLINFO_HTTP_CODE);
- $curlerr = curl_error($sess);
- curl_close($sess);
-
- if ($response_code == 200)
- {
- $gSwekeyLastResult = $res;
- return $res;
- }
-
- if (! empty($response_code))
+ // use curl if available
+ if (function_exists('curl_init'))
+ {
+ $sess = curl_init($url);
+ if (substr($url, 0, 8) == "https://")
+ {
+ global $gSwekeyCA;
+
+ if (! empty($gSwekeyCA))
+ {
+ if (file_exists($gSwekeyCA))
+ {
+ if (! curl_setopt($sess, CURLOPT_CAINFO, $gSwekeyCA))
+ error_log("SWEKEY_ERROR:Could not set CA file : ".curl_error($sess));
+ else
+ $caFileOk = true;
+ }
+ else
+ error_log("SWEKEY_ERROR:Could not find CA file $gSwekeyCA getting $url");
+ }
+
+ curl_setopt($sess, CURLOPT_SSL_VERIFYHOST, '2');
+ curl_setopt($sess, CURLOPT_SSL_VERIFYPEER, '2');
+ curl_setopt($sess, CURLOPT_CONNECTTIMEOUT, '20');
+ curl_setopt($sess, CURLOPT_TIMEOUT, '20');
+ }
+ else
+ {
+ curl_setopt($sess, CURLOPT_CONNECTTIMEOUT, '3');
+ curl_setopt($sess, CURLOPT_TIMEOUT, '5');
+ }
+
+ curl_setopt($sess, CURLOPT_RETURNTRANSFER, '1');
+ $res=curl_exec($sess);
+ $response_code = curl_getinfo($sess, CURLINFO_HTTP_CODE);
+ $curlerr = curl_error($sess);
+ curl_close($sess);
+
+ if ($response_code == 200)
+ {
+ $gSwekeyLastResult = $res;
+ return $res;
+ }
+
+ if (! empty($response_code))
{
$gSwekeyLastError = $response_code;
error_log("SWEKEY_ERROR:Error $gSwekeyLastError ($curlerr) getting $url");
@@ -241,9 +241,9 @@ function Swekey_HttpGet($url, &$response_code)
$gSwekeyLastError = $response_code;
error_log("SWEKEY_ERROR:Error $curlerr getting $url");
return "";
- }
+ }
- // use pecl_http if available
+ // use pecl_http if available
if (class_exists('HttpRequest'))
{
// retry if one of the server is down
@@ -276,18 +276,18 @@ function Swekey_HttpGet($url, &$response_code)
{
$reply = $r->send();
$res = $reply->getBody();
- $info = $r->getResponseInfo();
- $response_code = $info['response_code'];
- if ($response_code != 200)
- {
+ $info = $r->getResponseInfo();
+ $response_code = $info['response_code'];
+ if ($response_code != 200)
+ {
$gSwekeyLastError = $response_code;
error_log("SWEKEY_ERROR:Error ".$gSwekeyLastError." getting ".$url);
return "";
}
- $gSwekeyLastResult = $res;
- return $res;
+ $gSwekeyLastResult = $res;
+ return $res;
}
// catch (HttpException $e)
// {
@@ -301,14 +301,14 @@ function Swekey_HttpGet($url, &$response_code)
return "";
}
- global $http_response_header;
- $res = @file_get_contents($url);
- $response_code = substr($http_response_header[0], 9, 3); //HTTP/1.0
- if ($response_code == 200)
- {
- $gSwekeyLastResult = $res;
- return $res;
- }
+ global $http_response_header;
+ $res = @file_get_contents($url);
+ $response_code = substr($http_response_header[0], 9, 3); //HTTP/1.0
+ if ($response_code == 200)
+ {
+ $gSwekeyLastResult = $res;
+ return $res;
+ }
$gSwekeyLastError = $response_code;
error_log("SWEKEY_ERROR:Error ".$response_code." getting ".$url);
@@ -336,7 +336,7 @@ function Swekey_GetRndToken()
function Swekey_GetHalfRndToken()
{
global $gSwekeyRndTokenServer;
- return Swekey_HttpGet($gSwekeyRndTokenServer.'/HALF-RND-TOKEN', $response_code);
+ return Swekey_HttpGet($gSwekeyRndTokenServer.'/HALF-RND-TOKEN', $response_code);
}
/**
@@ -357,7 +357,7 @@ function Swekey_GetFastHalfRndToken()
// We check if we have a valid RT is the session
if (isset($_SESSION['rnd-token-date']))
if (time() - $_SESSION['rnd-token-date'] < 30)
- $res = $_SESSION['rnd-token'];
+ $res = $_SESSION['rnd-token'];
// If not we try to get it from a temp file (PHP >= 5.2.1 only)
if (strlen($res) != 32 && $gSwekeyTokenCacheEnabled)
@@ -367,18 +367,18 @@ function Swekey_GetFastHalfRndToken()
$tempdir = sys_get_temp_dir();
$cachefile = $tempdir."/swekey-rnd-token-".get_current_user();
$modif = filemtime($cachefile);
- if ($modif != false)
+ if ($modif != false)
if (time() - $modif < 30)
- {
- $res = @file_get_contents($cachefile);
- if (strlen($res) != 32)
- $res = "";
- else
- {
- $_SESSION['rnd-token'] = $res;
- $_SESSION['rnd-token-date'] = $modif;
- }
- }
+ {
+ $res = @file_get_contents($cachefile);
+ if (strlen($res) != 32)
+ $res = "";
+ else
+ {
+ $_SESSION['rnd-token'] = $res;
+ $_SESSION['rnd-token-date'] = $modif;
+ }
+ }
}
}
@@ -390,14 +390,14 @@ function Swekey_GetFastHalfRndToken()
$_SESSION['rnd-token-date'] = time();
if (! empty($cachefile))
{
- // we unlink the file so no possible tempfile race attack
- unlink($cachefile);
- $file = fopen($cachefile , "x");
- if ($file != false)
- {
- @fwrite($file, $res);
- @fclose($file);
- }
+ // we unlink the file so no possible tempfile race attack
+ unlink($cachefile);
+ $file = fopen($cachefile , "x");
+ if ($file != false)
+ {
+ @fwrite($file, $res);
+ @fclose($file);
+ }
}
}
@@ -434,8 +434,8 @@ function Swekey_GetFastRndToken()
function Swekey_CheckOtp($id, $rt, $otp)
{
global $gSwekeyCheckServer;
- $res = Swekey_HttpGet($gSwekeyCheckServer.'/CHECK-OTP/'.$id.'/'.$rt.'/'.$otp, $response_code);
- return $response_code == 200 && $res == "OK";
+ $res = Swekey_HttpGet($gSwekeyCheckServer.'/CHECK-OTP/'.$id.'/'.$rt.'/'.$otp, $response_code);
+ return $response_code == 200 && $res == "OK";
}
/**
@@ -445,9 +445,9 @@ function Swekey_CheckOtp($id, $rt, $otp)
define ("SWEKEY_STATUS_OK",0);
define ("SWEKEY_STATUS_NOT_FOUND",1); // The key does not exist in the db
define ("SWEKEY_STATUS_INACTIVE",2); // The key has never been activated
-define ("SWEKEY_STATUS_LOST",3); // The user has lost his key
-define ("SWEKEY_STATUS_STOLEN",4); // The key was stolen
-define ("SWEKEY_STATUS_FEE_DUE",5); // The annual fee was not paid
+define ("SWEKEY_STATUS_LOST",3); // The user has lost his key
+define ("SWEKEY_STATUS_STOLEN",4); // The key was stolen
+define ("SWEKEY_STATUS_FEE_DUE",5); // The annual fee was not paid
define ("SWEKEY_STATUS_OBSOLETE",6); // The hardware is no longer supported
define ("SWEKEY_STATUS_UNKOWN",201); // We could not connect to the authentication server
@@ -455,7 +455,7 @@ define ("SWEKEY_STATUS_UNKOWN",201); // We could not connect to the authentica
* Values that are associated with a key.
* The Javascript Api can also return the following values
*/
-define ("SWEKEY_STATUS_REPLACED",100); // This key has been replaced by a backup key
+define ("SWEKEY_STATUS_REPLACED",100); // This key has been replaced by a backup key
define ("SWEKEY_STATUS_BACKUP_KEY",101); // This key is a backup key that is not activated yet
define ("SWEKEY_STATUS_NOTPLUGGED",200); // This key is not plugged in the computer
@@ -469,21 +469,21 @@ define ("SWEKEY_STATUS_NOTPLUGGED",200); // This key is not plugged in the compu
*/
function Swekey_GetStatusStr($status)
{
- switch($status)
- {
- case SWEKEY_STATUS_OK : return 'OK';
- case SWEKEY_STATUS_NOT_FOUND : return 'Key does not exist in the db';
- case SWEKEY_STATUS_INACTIVE : return 'Key not activated';
- case SWEKEY_STATUS_LOST : return 'Key was lost';
- case SWEKEY_STATUS_STOLEN : return 'Key was stolen';
- case SWEKEY_STATUS_FEE_DUE : return 'The annual fee was not paid';
- case SWEKEY_STATUS_OBSOLETE : return 'Key no longer supported';
- case SWEKEY_STATUS_REPLACED : return 'This key has been replaced by a backup key';
+ switch($status)
+ {
+ case SWEKEY_STATUS_OK : return 'OK';
+ case SWEKEY_STATUS_NOT_FOUND : return 'Key does not exist in the db';
+ case SWEKEY_STATUS_INACTIVE : return 'Key not activated';
+ case SWEKEY_STATUS_LOST : return 'Key was lost';
+ case SWEKEY_STATUS_STOLEN : return 'Key was stolen';
+ case SWEKEY_STATUS_FEE_DUE : return 'The annual fee was not paid';
+ case SWEKEY_STATUS_OBSOLETE : return 'Key no longer supported';
+ case SWEKEY_STATUS_REPLACED : return 'This key has been replaced by a backup key';
case SWEKEY_STATUS_BACKUP_KEY : return 'This key is a backup key that is not activated yet';
case SWEKEY_STATUS_NOTPLUGGED : return 'This key is not plugged in the computer';
- case SWEKEY_STATUS_UNKOWN : return 'Unknow Status, could not connect to the authentication server';
- }
- return 'unknown status '.$status;
+ case SWEKEY_STATUS_UNKOWN : return 'Unknow Status, could not connect to the authentication server';
+ }
+ return 'unknown status '.$status;
}
/**
@@ -497,7 +497,7 @@ function Swekey_GetStatusStr($status)
function Swekey_GetStatus($id)
{
global $gSwekeyStatusServer;
- $res = Swekey_HttpGet($gSwekeyStatusServer.'/GET-STATUS/'.$id, $response_code);
+ $res = Swekey_HttpGet($gSwekeyStatusServer.'/GET-STATUS/'.$id, $response_code);
if ($response_code == 200)
return intval($res);
diff --git a/libraries/engines/pbms.lib.php b/libraries/engines/pbms.lib.php
index 7f8c44b..7f8f58c 100644
--- a/libraries/engines/pbms.lib.php
+++ b/libraries/engines/pbms.lib.php
@@ -23,7 +23,7 @@ class PMA_StorageEngine_pbms extends PMA_StorageEngine
$this->support = PMA_ENGINE_SUPPORT_YES;
}
- function getVariables()
+ function getVariables()
{
return array(
'pbms_garbage_threshold' => array(
diff --git a/libraries/import.lib.php b/libraries/import.lib.php
index 73f9008..f257205 100644
--- a/libraries/import.lib.php
+++ b/libraries/import.lib.php
@@ -336,35 +336,35 @@ function PMA_importGetNextChunk($size = 32768)
*/
function PMA_getColumnAlphaName($num)
{
- $A = 65; // ASCII value for capital "A"
- $col_name = "";
-
- if ($num > 26) {
- $div = (int)($num / 26);
- $remain = (int)($num % 26);
-
- // subtract 1 of divided value in case the modulus is 0,
- // this is necessary because A-Z has no 'zero'
- if ($remain == 0) {
- $div--;
- }
-
- // recursive function call
- $col_name = PMA_getColumnAlphaName($div);
- // use modulus as new column number
- $num = $remain;
- }
-
- if ($num == 0) {
- // use 'Z' if column number is 0,
- // this is necessary because A-Z has no 'zero'
- $col_name .= chr(($A + 26) - 1);
- } else {
- // convert column number to ASCII character
- $col_name .= chr(($A + $num) - 1);
- }
-
- return $col_name;
+ $A = 65; // ASCII value for capital "A"
+ $col_name = "";
+
+ if ($num > 26) {
+ $div = (int)($num / 26);
+ $remain = (int)($num % 26);
+
+ // subtract 1 of divided value in case the modulus is 0,
+ // this is necessary because A-Z has no 'zero'
+ if ($remain == 0) {
+ $div--;
+ }
+
+ // recursive function call
+ $col_name = PMA_getColumnAlphaName($div);
+ // use modulus as new column number
+ $num = $remain;
+ }
+
+ if ($num == 0) {
+ // use 'Z' if column number is 0,
+ // this is necessary because A-Z has no 'zero'
+ $col_name .= chr(($A + 26) - 1);
+ } else {
+ // convert column number to ASCII character
+ $col_name .= chr(($A + $num) - 1);
+ }
+
+ return $col_name;
}
/**
@@ -387,19 +387,19 @@ function PMA_getColumnNumberFromName($name) {
$num_chars = strlen($name);
$column_number = 0;
for ($i = 0; $i < $num_chars; ++$i) {
- // read string from back to front
- $char_pos = ($num_chars - 1) - $i;
-
- // convert capital character to ASCII value
- // and subtract 64 to get corresponding decimal value
- // ASCII value of "A" is 65, "B" is 66, etc.
- // Decimal equivalent of "A" is 1, "B" is 2, etc.
- $number = (ord($name[$char_pos]) - 64);
-
- // base26 to base10 conversion : multiply each number
- // with corresponding value of the position, in this case
- // $i=0 : 1; $i=1 : 26; $i=2 : 676; ...
- $column_number += $number * pow(26,$i);
+ // read string from back to front
+ $char_pos = ($num_chars - 1) - $i;
+
+ // convert capital character to ASCII value
+ // and subtract 64 to get corresponding decimal value
+ // ASCII value of "A" is 65, "B" is 66, etc.
+ // Decimal equivalent of "A" is 1, "B" is 2, etc.
+ $number = (ord($name[$char_pos]) - 64);
+
+ // base26 to base10 conversion : multiply each number
+ // with corresponding value of the position, in this case
+ // $i=0 : 1; $i=1 : 26; $i=2 : 676; ...
+ $column_number += $number * pow(26,$i);
}
return $column_number;
} else {
@@ -453,7 +453,7 @@ function PMA_getM($last_cumulative_size) {
* @return int Scale of the given decimal size notation
*/
function PMA_getD($last_cumulative_size) {
- return (int)substr($last_cumulative_size, (strpos($last_cumulative_size, ",") + 1), (strlen($last_cumulative_size) - strpos($last_cumulative_size, ",")));
+ return (int)substr($last_cumulative_size, (strpos($last_cumulative_size, ",") + 1), (strlen($last_cumulative_size) - strpos($last_cumulative_size, ",")));
}
/**
@@ -489,7 +489,7 @@ function PMA_getDecimalSize(&$cell) {
* @return string Size of the given cell in the type-appropriate format
*/
function PMA_detectSize($last_cumulative_size, $last_cumulative_type, $curr_type, &$cell) {
- $curr_size = strlen((string)$cell);
+ $curr_size = strlen((string)$cell);
/**
* If the cell is NULL, don't treat it as a varchar
@@ -500,17 +500,17 @@ function PMA_detectSize($last_cumulative_size, $last_cumulative_type, $curr_type
/**
* What to do if the current cell is of type VARCHAR
*/
- elseif ($curr_type == VARCHAR) {
+ elseif ($curr_type == VARCHAR) {
/**
* The last cumulative type was VARCHAR
*/
- if ($last_cumulative_type == VARCHAR) {
- if ($curr_size >= $last_cumulative_size) {
- return $curr_size;
+ if ($last_cumulative_type == VARCHAR) {
+ if ($curr_size >= $last_cumulative_size) {
+ return $curr_size;
} else {
- return $last_cumulative_size;
+ return $last_cumulative_size;
}
- }
+ }
/**
* The last cumulative type was DECIMAL
*/
@@ -522,7 +522,7 @@ function PMA_detectSize($last_cumulative_size, $last_cumulative_type, $curr_type
} else {
return $oldM;
}
- }
+ }
/**
* The last cumulative type was BIGINT or INT
*/
@@ -532,7 +532,7 @@ function PMA_detectSize($last_cumulative_size, $last_cumulative_type, $curr_type
} else {
return $last_cumulative_size;
}
- }
+ }
/**
* This is the first row to be analyzed
*/
@@ -549,7 +549,7 @@ function PMA_detectSize($last_cumulative_size, $last_cumulative_type, $curr_type
return -1;
}
- }
+ }
/**
* What to do if the current cell is of type DECIMAL
*/
@@ -557,66 +557,66 @@ function PMA_detectSize($last_cumulative_size, $last_cumulative_type, $curr_type
/**
* The last cumulative type was VARCHAR
*/
- if ($last_cumulative_type == VARCHAR) {
+ if ($last_cumulative_type == VARCHAR) {
/* Convert $last_cumulative_size from varchar to decimal format */
- $size = PMA_getDecimalSize($cell);
+ $size = PMA_getDecimalSize($cell);
- if ($size[M] >= $last_cumulative_size) {
- return $size[M];
+ if ($size[M] >= $last_cumulative_size) {
+ return $size[M];
} else {
- return $last_cumulative_size;
+ return $last_cumulative_size;
}
- }
+ }
/**
* The last cumulative type was DECIMAL
*/
elseif ($last_cumulative_type == DECIMAL) {
- $size = PMA_getDecimalSize($cell);
+ $size = PMA_getDecimalSize($cell);
- $oldM = PMA_getM($last_cumulative_size);
- $oldD = PMA_getD($last_cumulative_size);
+ $oldM = PMA_getM($last_cumulative_size);
+ $oldD = PMA_getD($last_cumulative_size);
- /* New val if M or D is greater than current largest */
- if ($size[M] > $oldM || $size[D] > $oldD) {
- /* Take the largest of both types */
- return (string)((($size[M] > $oldM) ? $size[M] : $oldM) . "," . (($size[D] > $oldD) ? $size[D] : $oldD));
+ /* New val if M or D is greater than current largest */
+ if ($size[M] > $oldM || $size[D] > $oldD) {
+ /* Take the largest of both types */
+ return (string)((($size[M] > $oldM) ? $size[M] : $oldM) . "," . (($size[D] > $oldD) ? $size[D] : $oldD));
} else {
- return $last_cumulative_size;
+ return $last_cumulative_size;
}
- }
+ }
/**
* The last cumulative type was BIGINT or INT
*/
elseif ($last_cumulative_type == BIGINT || $last_cumulative_type == INT) {
- /* Convert $last_cumulative_size from int to decimal format */
- $size = PMA_getDecimalSize($cell);
+ /* Convert $last_cumulative_size from int to decimal format */
+ $size = PMA_getDecimalSize($cell);
- if ($size[M] >= $last_cumulative_size) {
- return $size[FULL];
+ if ($size[M] >= $last_cumulative_size) {
+ return $size[FULL];
} else {
- return ($last_cumulative_size.",".$size[D]);
+ return ($last_cumulative_size.",".$size[D]);
}
- }
+ }
/**
* This is the first row to be analyzed
*/
elseif (! isset($last_cumulative_type) || $last_cumulative_type == NONE) {
/* First row of the column */
- $size = PMA_getDecimalSize($cell);
+ $size = PMA_getDecimalSize($cell);
- return $size[FULL];
- }
+ return $size[FULL];
+ }
/**
* An error has DEFINITELY occurred
*/
- else {
+ else {
/**
* TODO: Handle this MUCH more elegantly
*/
return -1;
}
- }
+ }
/**
* What to do if the current cell is of type BIGINT or INT
*/
@@ -624,41 +624,41 @@ function PMA_detectSize($last_cumulative_size, $last_cumulative_type, $curr_type
/**
* The last cumulative type was VARCHAR
*/
- if ($last_cumulative_type == VARCHAR) {
- if ($curr_size >= $last_cumulative_size) {
- return $curr_size;
+ if ($last_cumulative_type == VARCHAR) {
+ if ($curr_size >= $last_cumulative_size) {
+ return $curr_size;
} else {
- return $last_cumulative_size;
+ return $last_cumulative_size;
}
- }
+ }
/**
* The last cumulative type was DECIMAL
*/
elseif ($last_cumulative_type == DECIMAL) {
$oldM = PMA_getM($last_cumulative_size);
- $oldD = PMA_getD($last_cumulative_size);
- $oldInt = $oldM - $oldD;
- $newInt = strlen((string)$cell);
-
- /* See which has the larger integer length */
- if ($oldInt >= $newInt) {
- /* Use old decimal size */
- return $last_cumulative_size;
+ $oldD = PMA_getD($last_cumulative_size);
+ $oldInt = $oldM - $oldD;
+ $newInt = strlen((string)$cell);
+
+ /* See which has the larger integer length */
+ if ($oldInt >= $newInt) {
+ /* Use old decimal size */
+ return $last_cumulative_size;
} else {
- /* Use $newInt + $oldD as new M */
- return (($newInt + $oldD) . "," . $oldD);
+ /* Use $newInt + $oldD as new M */
+ return (($newInt + $oldD) . "," . $oldD);
}
- }
+ }
/**
* The last cumulative type was BIGINT or INT
*/
elseif ($last_cumulative_type == BIGINT || $last_cumulative_type == INT) {
- if ($curr_size >= $last_cumulative_size) {
- return $curr_size;
+ if ($curr_size >= $last_cumulative_size) {
+ return $curr_size;
} else {
- return $last_cumulative_size;
+ return $last_cumulative_size;
}
- }
+ }
/**
* This is the first row to be analyzed
*/
@@ -668,18 +668,18 @@ function PMA_detectSize($last_cumulative_size, $last_cumulative_type, $curr_type
/**
* An error has DEFINITELY occurred
*/
- else {
+ else {
/**
* TODO: Handle this MUCH more elegantly
*/
return -1;
}
- }
+ }
/**
* An error has DEFINITELY occurred
*/
- else {
+ else {
/**
* TODO: Handle this MUCH more elegantly
*/
@@ -713,11 +713,11 @@ function PMA_detectType($last_cumulative_type, &$cell) {
if ($cell == (string)(float)$cell && strpos($cell, ".") !== false && substr_count($cell, ".") == 1) {
return DECIMAL;
} else {
- if (abs($cell) > 2147483647) {
- return BIGINT;
- } else {
- return INT;
- }
+ if (abs($cell) > 2147483647) {
+ return BIGINT;
+ } else {
+ return INT;
+ }
}
} else {
return VARCHAR;
@@ -737,62 +737,62 @@ function PMA_detectType($last_cumulative_type, &$cell) {
* @return array array(array $types, array $sizes)
*/
function PMA_analyzeTable(&$table) {
- /* Get number of rows in table */
- $numRows = count($table[ROWS]);
- /* Get number of columns */
- $numCols = count($table[COL_NAMES]);
- /* Current type for each column */
- $types = array();
- $sizes = array();
-
- /* Initialize $sizes to all 0's */
- for ($i = 0; $i < $numCols; ++$i) {
- $sizes[$i] = 0;
- }
+ /* Get number of rows in table */
+ $numRows = count($table[ROWS]);
+ /* Get number of columns */
+ $numCols = count($table[COL_NAMES]);
+ /* Current type for each column */
+ $types = array();
+ $sizes = array();
+
+ /* Initialize $sizes to all 0's */
+ for ($i = 0; $i < $numCols; ++$i) {
+ $sizes[$i] = 0;
+ }
/* Initialize $types to NONE */
for ($i = 0; $i < $numCols; ++$i) {
$types[$i] = NONE;
}
- /* Temp vars */
- $curr_type = NONE;
- $curr_size = 0;
-
- /* If the passed array is not of the correct form, do not process it */
- if (is_array($table) && ! is_array($table[TBL_NAME]) && is_array($table[COL_NAMES]) && is_array($table[ROWS])) {
- /* Analyze each column */
- for ($i = 0; $i < $numCols; ++$i) {
- /* Analyze the column in each row */
- for ($j = 0; $j < $numRows; ++$j) {
- /* Determine type of the current cell */
- $curr_type = PMA_detectType($types[$i], $table[ROWS][$j][$i]);
- /* Determine size of the current cell */
- $sizes[$i] = PMA_detectSize($sizes[$i], $types[$i], $curr_type, $table[ROWS][$j][$i]);
-
- /**
- * If a type for this column has already been declared,
- * only alter it if it was a number and a varchar was found
- */
- if ($curr_type != NONE) {
- if ($curr_type == VARCHAR) {
- $types[$i] = VARCHAR;
- } else if ($curr_type == DECIMAL) {
- if ($types[$i] != VARCHAR) {
- $types[$i] = DECIMAL;
- }
- } else if ($curr_type == BIGINT) {
- if ($types[$i] != VARCHAR && $types[$i] != DECIMAL) {
- $types[$i] = BIGINT;
- }
- } else if ($curr_type == INT) {
- if ($types[$i] != VARCHAR && $types[$i] != DECIMAL && $types[$i] != BIGINT) {
- $types[$i] = INT;
- }
- }
- }
- }
- }
+ /* Temp vars */
+ $curr_type = NONE;
+ $curr_size = 0;
+
+ /* If the passed array is not of the correct form, do not process it */
+ if (is_array($table) && ! is_array($table[TBL_NAME]) && is_array($table[COL_NAMES]) && is_array($table[ROWS])) {
+ /* Analyze each column */
+ for ($i = 0; $i < $numCols; ++$i) {
+ /* Analyze the column in each row */
+ for ($j = 0; $j < $numRows; ++$j) {
+ /* Determine type of the current cell */
+ $curr_type = PMA_detectType($types[$i], $table[ROWS][$j][$i]);
+ /* Determine size of the current cell */
+ $sizes[$i] = PMA_detectSize($sizes[$i], $types[$i], $curr_type, $table[ROWS][$j][$i]);
+
+ /**
+ * If a type for this column has already been declared,
+ * only alter it if it was a number and a varchar was found
+ */
+ if ($curr_type != NONE) {
+ if ($curr_type == VARCHAR) {
+ $types[$i] = VARCHAR;
+ } else if ($curr_type == DECIMAL) {
+ if ($types[$i] != VARCHAR) {
+ $types[$i] = DECIMAL;
+ }
+ } else if ($curr_type == BIGINT) {
+ if ($types[$i] != VARCHAR && $types[$i] != DECIMAL) {
+ $types[$i] = BIGINT;
+ }
+ } else if ($curr_type == INT) {
+ if ($types[$i] != VARCHAR && $types[$i] != DECIMAL && $types[$i] != BIGINT) {
+ $types[$i] = INT;
+ }
+ }
+ }
+ }
+ }
/* Check to ensure that all types are valid */
$len = count($types);
@@ -803,16 +803,16 @@ function PMA_analyzeTable(&$table) {
}
}
- return array($types, $sizes);
- }
- else
- {
+ return array($types, $sizes);
+ }
+ else
+ {
/**
* TODO: Handle this better
*/
- return false;
- }
+ return false;
+ }
}
/* Needed to quell the beast that is PMA_Message */
@@ -944,10 +944,10 @@ function PMA_buildSQL($db_name, &$tables, &$analyses = null, &$additional_sql =
*
* Only one insert query is formed for each table
*/
- $tempSQLStr = "";
- $col_count = 0;
+ $tempSQLStr = "";
+ $col_count = 0;
$num_tables = count($tables);
- for ($i = 0; $i < $num_tables; ++$i) {
+ for ($i = 0; $i < $num_tables; ++$i) {
$num_cols = count($tables[$i][COL_NAMES]);
$num_rows = count($tables[$i][ROWS]);
@@ -963,10 +963,10 @@ function PMA_buildSQL($db_name, &$tables, &$analyses = null, &$additional_sql =
$tempSQLStr .= ") VALUES ";
- for ($j = 0; $j < $num_rows; ++$j) {
+ for ($j = 0; $j < $num_rows; ++$j) {
$tempSQLStr .= "(";
- for ($k = 0; $k < $num_cols; ++$k) {
+ for ($k = 0; $k < $num_cols; ++$k) {
if ($analyses != null) {
$is_varchar = ($analyses[$i][TYPES][$col_count] === VARCHAR);
} else {
@@ -979,22 +979,22 @@ function PMA_buildSQL($db_name, &$tables, &$analyses = null, &$additional_sql =
}
$tempSQLStr .= (($is_varchar) ? "'" : "");
- $tempSQLStr .= PMA_sqlAddSlashes((string)$tables[$i][ROWS][$j][$k]);
- $tempSQLStr .= (($is_varchar) ? "'" : "");
+ $tempSQLStr .= PMA_sqlAddSlashes((string)$tables[$i][ROWS][$j][$k]);
+ $tempSQLStr .= (($is_varchar) ? "'" : "");
- if ($k != ($num_cols - 1)) {
- $tempSQLStr .= ", ";
+ if ($k != ($num_cols - 1)) {
+ $tempSQLStr .= ", ";
}
- if ($col_count == ($num_cols - 1)) {
- $col_count = 0;
- } else {
- $col_count++;
+ if ($col_count == ($num_cols - 1)) {
+ $col_count = 0;
+ } else {
+ $col_count++;
}
/* Delete the cell after we are done with it */
unset($tables[$i][ROWS][$j][$k]);
- }
+ }
$tempSQLStr .= ")";
@@ -1002,10 +1002,10 @@ function PMA_buildSQL($db_name, &$tables, &$analyses = null, &$additional_sql =
$tempSQLStr .= ",\n ";
}
- $col_count = 0;
+ $col_count = 0;
/* Delete the row after we are done with it */
unset($tables[$i][ROWS][$j]);
- }
+ }
$tempSQLStr .= ";";
@@ -1015,7 +1015,7 @@ function PMA_buildSQL($db_name, &$tables, &$analyses = null, &$additional_sql =
* to store them in a (possibly large) buffer
*/
PMA_importRunQuery($tempSQLStr, $tempSQLStr);
- }
+ }
/* No longer needed */
unset($tempSQLStr);
diff --git a/libraries/rte/rte_words.lib.php b/libraries/rte/rte_words.lib.php
index 6e7836a..e046ac2 100644
--- a/libraries/rte/rte_words.lib.php
+++ b/libraries/rte/rte_words.lib.php
@@ -1,5 +1,5 @@
<?php
-
+/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* This function is used to retreive some language strings that are used
* in functionalities that are common to routines, triggers and events.
@@ -10,49 +10,49 @@
*/
function PMA_RTE_getWord($index)
{
- global $_PMA_RTE;
+ global $_PMA_RTE;
- switch ($_PMA_RTE) {
- case 'RTN':
- $words = array(
- 'add' => __('Add routine'),
- 'docu' => 'STORED_ROUTINES',
- 'export' => __('Export of routine %s'),
- 'human' => __('routine'),
- 'no_create' => __('You do not have the necessary privileges to create a routine'),
- 'not_found' => __('No routine with name %1$s found in database %2$s'),
- 'nothing' => __('There are no routines to display.'),
- 'title' => __('Routines'),
- );
- break;
- case 'TRI':
- $words = array(
- 'add' => __('Add trigger'),
- 'docu' => 'TRIGGERS',
- 'export' => __('Export of trigger %s'),
- 'human' => __('trigger'),
- 'no_create' => __('You do not have the necessary privileges to create a trigger'),
- 'not_found' => __('No trigger with name %1$s found in database %2$s'),
- 'nothing' => __('There are no triggers to display.'),
- 'title' => __('Triggers'),
- );
- break;
- case 'EVN':
- $words = array(
- 'add' => __('Add event'),
- 'docu' => 'EVENTS',
- 'export' => __('Export of event %s'),
- 'human' => __('event'),
- 'no_create' => __('You do not have the necessary privileges to create an event'),
- 'not_found' => __('No event with name %1$s found in database %2$s'),
- 'nothing' => __('There are no events to display.'),
- 'title' => __('Events'),
- );
- break;
- default:
- $words = array();
- break;
- }
+ switch ($_PMA_RTE) {
+ case 'RTN':
+ $words = array(
+ 'add' => __('Add routine'),
+ 'docu' => 'STORED_ROUTINES',
+ 'export' => __('Export of routine %s'),
+ 'human' => __('routine'),
+ 'no_create' => __('You do not have the necessary privileges to create a routine'),
+ 'not_found' => __('No routine with name %1$s found in database %2$s'),
+ 'nothing' => __('There are no routines to display.'),
+ 'title' => __('Routines'),
+ );
+ break;
+ case 'TRI':
+ $words = array(
+ 'add' => __('Add trigger'),
+ 'docu' => 'TRIGGERS',
+ 'export' => __('Export of trigger %s'),
+ 'human' => __('trigger'),
+ 'no_create' => __('You do not have the necessary privileges to create a trigger'),
+ 'not_found' => __('No trigger with name %1$s found in database %2$s'),
+ 'nothing' => __('There are no triggers to display.'),
+ 'title' => __('Triggers'),
+ );
+ break;
+ case 'EVN':
+ $words = array(
+ 'add' => __('Add event'),
+ 'docu' => 'EVENTS',
+ 'export' => __('Export of event %s'),
+ 'human' => __('event'),
+ 'no_create' => __('You do not have the necessary privileges to create an event'),
+ 'not_found' => __('No event with name %1$s found in database %2$s'),
+ 'nothing' => __('There are no events to display.'),
+ 'title' => __('Events'),
+ );
+ break;
+ default:
+ $words = array();
+ break;
+ }
return isset($words[$index]) ? $words[$index] : '';
} // end PMA_RTE_getWord()
diff --git a/pmd/styles/default/style1.css b/pmd/styles/default/style1.css
index eb3d690..21ddbce 100644
--- a/pmd/styles/default/style1.css
+++ b/pmd/styles/default/style1.css
@@ -147,19 +147,19 @@ form {
}
.option_tab {
- padding-left: 2px;
- padding-right: 2px;
- width: 5px;
+ padding-left: 2px;
+ padding-right: 2px;
+ width: 5px;
}
.select_all {
- vertical-align: top;
- padding-left: 2px;
- padding-right: 2px;
- cursor: default;
- width: 1px;
- color: #000000;
- background-image: url(images/Header.png);
+ vertical-align: top;
+ padding-left: 2px;
+ padding-right: 2px;
+ cursor: default;
+ width: 1px;
+ color: #000000;
+ background-image: url(images/Header.png);
background-repeat: repeat-x;
}
@@ -456,127 +456,127 @@ z-index:999;
}
h2.tiger{
- background-repeat: repeat-x;
+ background-repeat: repeat-x;
padding: 1px;
font-weight: bold;
- font-size:14px;
- padding: 50 20 50 20px;
- margin: 0 0 5px 0;
- width: 250px;
- float: left;
- color : #333;
- text-align: center;
+ font-size:14px;
+ padding: 50 20 50 20px;
+ margin: 0 0 5px 0;
+ width: 250px;
+ float: left;
+ color : #333;
+ text-align: center;
}
h2.tiger a {
- background-image: url(images/Header.png);
- text-align: center;
- text-decoration: none;
- color : #333;
- display: block;
+ background-image: url(images/Header.png);
+ text-align: center;
+ text-decoration: none;
+ color : #333;
+ display: block;
}
h2.tiger a:hover {
- color: #000;
- background-image: url(images/Header_Linked.png);
+ color: #000;
+ background-image: url(images/Header_Linked.png);
}
h2.active {
- background-image: url(images/Header.png);
+ background-image: url(images/Header.png);
background-repeat: repeat-x;
padding: 1px;
- background-position: left bottom;
+ background-position: left bottom;
}
.toggle_container {
- margin: 0 0 5px;
- padding: 0;
- border-top: 1px solid #d6d6d6;
- background: #FFF ;
- width: 250px;
- overflow: hidden;
- font-size: 1.2em;
- clear: both;
+ margin: 0 0 5px;
+ padding: 0;
+ border-top: 1px solid #d6d6d6;
+ background: #FFF ;
+ width: 250px;
+ overflow: hidden;
+ font-size: 1.2em;
+ clear: both;
}
.toggle_container .block {
- background-color: #DBE4E8;
- padding:40 15 40 15px; /*--Padding of Container--*/
- border:1px solid #999;
- color:#000;
+ background-color: #DBE4E8;
+ padding:40 15 40 15px; /*--Padding of Container--*/
+ border:1px solid #999;
+ color:#000;
}
.history_table {
- text-align: center;
- background-color: #9999CC;
+ text-align: center;
+ background-color: #9999CC;
}
.history_table2 {
- text-align: center;
- background-color: #DBE4E8;
+ text-align: center;
+ background-color: #DBE4E8;
}
#filter {
- display: none;
- position: absolute;
- top: 0%;
- left: 0%;
- width: 100%;
- height: 100%;
- background-color: #CCA;
- z-index:10;
- opacity:0.5;
- filter: alpha(opacity=50);
+ display: none;
+ position: absolute;
+ top: 0%;
+ left: 0%;
+ width: 100%;
+ height: 100%;
+ background-color: #CCA;
+ z-index:10;
+ opacity:0.5;
+ filter: alpha(opacity=50);
}
#box {
- display: none;
- position: absolute;
- top: 20%;
- left: 30%;
- width: 500px;
- height: 220px;
- padding: 48px;
- margin:0;
- border: 1px solid black;
- background-color: white;
- z-index:101;
- overflow: visible;
+ display: none;
+ position: absolute;
+ top: 20%;
+ left: 30%;
+ width: 500px;
+ height: 220px;
+ padding: 48px;
+ margin:0;
+ border: 1px solid black;
+ background-color: white;
+ z-index:101;
+ overflow: visible;
}
#boxtitle {
- position:absolute;
- float:center;
- top:0;
- left:0;
- width:593px;
- height:20px;
- padding:0;
- padding-top:4px;
- left-padding:8px;
- margin:0;
- border-bottom:4px solid #3CF;
- background-color: #D0DCE0; //#09c;
- color:black;
- font-weight:bold;
- padding-left: 2px;
- font-family:"Times New Roman", Times, serif;
- font-size:16px;
- text-align:left;
+ position:absolute;
+ float:center;
+ top:0;
+ left:0;
+ width:593px;
+ height:20px;
+ padding:0;
+ padding-top:4px;
+ left-padding:8px;
+ margin:0;
+ border-bottom:4px solid #3CF;
+ background-color: #D0DCE0; //#09c;
+ color:black;
+ font-weight:bold;
+ padding-left: 2px;
+ font-family:"Times New Roman", Times, serif;
+ font-size:16px;
+ text-align:left;
}
#tblfooter {
- background-color: D3DCE3;
- float: right;
- padding-top:10px;
- color: black;
- font-weight: normal;
+ background-color: D3DCE3;
+ float: right;
+ padding-top:10px;
+ color: black;
+ font-weight: normal;
}
input.btn {
- color:#333;
- font: bold 84%'trebuchet ms',helvetica,sans-serif;
- background-color: #D0DCE0;
+ color:#333;
+ font: bold 84%'trebuchet ms',helvetica,sans-serif;
+ background-color: #D0DCE0;
}
diff --git a/pmd_general.php b/pmd_general.php
index 74ff124..a93265e 100644
--- a/pmd_general.php
+++ b/pmd_general.php
@@ -41,23 +41,23 @@ echo '
var server = "' . PMA_escapeJsString($server) . '";
var db = "' . PMA_escapeJsString($db) . '";
var token = "' . PMA_escapeJsString($token) . '";';
- echo "\n";
- if ($_REQUEST['query']) {
- echo '
- $(document).ready(function() {
- $(".trigger").click(function() {
- $(".panel").toggle("fast");
- $(this).toggleClass("active");
- return false;
- });
- });';
- }
+ echo "\n";
+ if ($_REQUEST['query']) {
+ echo '
+ $(document).ready(function() {
+ $(".trigger").click(function() {
+ $(".panel").toggle("fast");
+ $(this).toggleClass("active");
+ return false;
+ });
+ });';
+ }
?>
// ]]>
</script>
<script src="pmd/scripts/ajax.js" type="text/javascript"></script>
<script src="pmd/scripts/history.js" type="text/javascript"></script>
- <script src="pmd/scripts/move.js" type="text/javascript"></script>
+ <script src="pmd/scripts/move.js" type="text/javascript"></script>
<!--[if IE]>
<script src="pmd/scripts/iecanvas.js" type="text/javascript"></script>
<![endif]-->
@@ -205,12 +205,12 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
<thead>
<tr>
<?php
- if (isset($_REQUEST['query'])) {
- echo '<td class="select_all">';
- echo '<input type="checkbox" value="select_all_'.htmlspecialchars($t_n_url).'" style="margin: 0px;" ';
+ if (isset($_REQUEST['query'])) {
+ echo '<td class="select_all">';
+ echo '<input type="checkbox" value="select_all_'.htmlspecialchars($t_n_url).'" style="margin: 0px;" ';
echo 'id="select_all_'.htmlspecialchars($t_n_url).'" title="select all" ';
echo 'onclick="Select_all(\''. htmlspecialchars($t_n_url) .'\',\''.htmlspecialchars($GLOBALS['PMD_OUT']["OWNER"][$i]).'\')"></td>';
- }?>
+ }?>
<td class="small_tab" onmouseover="this.className='small_tab2';"
onmouseout="this.className='small_tab';"
id="id_hide_tbody_<?php echo $t_n_url ?>"
@@ -238,11 +238,11 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
echo $GLOBALS['PMD_OUT']["TABLE_NAME_SMALL"][$i];
?></td>
<?php
- if (isset($_REQUEST['query'])) {
- echo '<td class="tab_zag" onmouseover="Table_onover(\''.htmlspecialchars($t_n_url).'\',0,1)" id="id_zag_'.htmlspecialchars($t_n_url).'_2"';
+ if (isset($_REQUEST['query'])) {
+ echo '<td class="tab_zag" onmouseover="Table_onover(\''.htmlspecialchars($t_n_url).'\',0,1)" id="id_zag_'.htmlspecialchars($t_n_url).'_2"';
echo 'onmousedown="cur_click=document.getElementById(\''.htmlspecialchars($t_n_url).'\');"';
echo 'onmouseout="Table_onover(\''.htmlspecialchars($t_n_url).'\',1,1)">';
- }?>
+ }?>
</tr>
</thead>
<tbody id="id_tbody_<?php echo $t_n_url ?>"
@@ -274,13 +274,13 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
}
?>)">
<?php
- if (isset($_REQUEST['query'])) {
- echo '<td class="select_all">';
- echo '<input value="'.htmlspecialchars($t_n_url).urlencode($tab_column[$t_n]["COLUMN_NAME"][$j]).'"';
+ if (isset($_REQUEST['query'])) {
+ echo '<td class="select_all">';
+ echo '<input value="'.htmlspecialchars($t_n_url).urlencode($tab_column[$t_n]["COLUMN_NAME"][$j]).'"';
echo 'type="checkbox" id="select_'.htmlspecialchars($t_n_url).'._'.urlencode($tab_column[$t_n]["COLUMN_NAME"][$j]).'" ';
- echo 'style="margin: 0px;" title="select_'.urlencode($tab_column[$t_n]["COLUMN_NAME"][$j]).'" ';
- echo 'onclick="store_column(\''.urlencode($GLOBALS['PMD_OUT']["TABLE_NAME_SMALL"][$i]).'\',\''.htmlspecialchars($GLOBALS['PMD_OUT']["OWNER"][$i]).'\',\''.urlencode($tab_column[$t_n]["COLUMN_NAME"][$j]).'\')"></td>';
- }?>
+ echo 'style="margin: 0px;" title="select_'.urlencode($tab_column[$t_n]["COLUMN_NAME"][$j]).'" ';
+ echo 'onclick="store_column(\''.urlencode($GLOBALS['PMD_OUT']["TABLE_NAME_SMALL"][$i]).'\',\''.htmlspecialchars($GLOBALS['PMD_OUT']["OWNER"][$i]).'\',\''.urlencode($tab_column[$t_n]["COLUMN_NAME"][$j]).'\')"></td>';
+ }?>
<td width="10px" colspan="3"
id="<?php echo $t_n_url.".".urlencode($tab_column[$t_n]["COLUMN_NAME"][$j]) ?>">
<div style="white-space:nowrap">
@@ -316,12 +316,12 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
</td>
<?php
if (isset($_REQUEST['query'])) {
- //$temp = $GLOBALS['PMD_OUT']["OWNER"][$i].'.'.$GLOBALS['PMD_OUT']["TABLE_NAME_SMALL"][$i];
- echo '<td class="small_tab_pref" onmouseover="this.className=\'small_tab_pref2\';"';
- echo 'onmouseout="this.className=\'small_tab_pref\';"';
- echo 'onclick="Click_option(\'pmd_optionse\',\''.urlencode($tab_column[$t_n]["COLUMN_NAME"][$j]).'\',\''.$GLOBALS['PMD_OUT']["TABLE_NAME_SMALL"][$i].'\')" >';
- echo '<img src="pmd/images/exec_small.png" title="options" alt="" /></td> ';
- } ?>
+ //$temp = $GLOBALS['PMD_OUT']["OWNER"][$i].'.'.$GLOBALS['PMD_OUT']["TABLE_NAME_SMALL"][$i];
+ echo '<td class="small_tab_pref" onmouseover="this.className=\'small_tab_pref2\';"';
+ echo 'onmouseout="this.className=\'small_tab_pref\';"';
+ echo 'onclick="Click_option(\'pmd_optionse\',\''.urlencode($tab_column[$t_n]["COLUMN_NAME"][$j]).'\',\''.$GLOBALS['PMD_OUT']["TABLE_NAME_SMALL"][$i].'\')" >';
+ echo '<img src="pmd/images/exec_small.png" title="options" alt="" /></td> ';
+ } ?>
</tr>
<?php
}
@@ -451,7 +451,7 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
<table width="168" border="0" align="center" cellpadding="2" cellspacing="0">
<thead>
<tr>
- <td colspan="2" rowspan="2" id="option_col_name" nowrap="nowrap" align="center"></td>
+ <td colspan="2" rowspan="2" id="option_col_name" nowrap="nowrap" align="center"></td>
</tr>
</thead>
<tbody id="where">
@@ -480,7 +480,7 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
<tr><td align="center" nowrap="nowrap"><b><?php echo __('Rename to'); ?></b></td></tr>
<tr>
<td width="58" nowrap="nowrap"><?php echo __('New name'); ?></td>
- <td width="102"><input type="text" value="" id="new_name"/></td>
+ <td width="102"><input type="text" value="" id="new_name"/></td>
</tr>
<tr><td align="center" nowrap="nowrap"><b><?php echo __('Aggregate'); ?></b></td></tr>
<tr>
@@ -495,11 +495,11 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
</select>
</td></tr>
<tr>
- <td nowrap="nowrap" width="58" align="center"><b>GROUP BY</b></td>
+ <td nowrap="nowrap" width="58" align="center"><b>GROUP BY</b></td>
<td><input type="checkbox" value="groupby" id="groupby"/></td>
</tr>
<tr>
- <td nowrap="nowrap" width="58" align="center"><b>ORDER BY</b></td>
+ <td nowrap="nowrap" width="58" align="center"><b>ORDER BY</b></td>
<td><input type="checkbox" value="orderby" id="orderby"/></td>
</tr>
<tr><td align="center" nowrap="nowrap"><b>HAVING</b></td></tr>
@@ -514,7 +514,7 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
<option value="avg"> AVG </option>
<option value="count"> COUNT </option>
</select>
- </td></tr>
+ </td></tr>
<tr>
<td width="58" nowrap="nowrap"><?php echo __('Relation operator'); ?></td>
<td width="102"><select name="h_rel_opt" id="h_rel_opt">
@@ -530,11 +530,11 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
<option value="NOT IN"> NOT IN </option>
</select>
</td>
- </tr>
+ </tr>
<tr>
<td width="58" nowrap="nowrap"><?php echo __('Value'); ?>/<br/><?php echo __('subquery'); ?></td>
- <td width="102"><textarea id="having" value="" cols="18"></textarea></td>
- </tr>
+ <td width="102"><textarea id="having" value="" cols="18"></textarea></td>
+ </tr>
</tbody>
<tbody>
<tr>
@@ -580,7 +580,7 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
<tr>
<td width="58" nowrap="nowrap"><?php echo __('New name'); ?></td>
<td width="102">
- <input type="text" value="" id="e_rename"/>
+ <input type="text" value="" id="e_rename"/>
</td>
</tr>
</tbody>
@@ -610,11 +610,11 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
<table id="query_having" style="visibility:<?php echo $hidden ?>;"
width="5%" border="0" cellpadding="0" cellspacing="0">
<tbody>
- <tr>
- <td class="frams1" width="10px"></td>
- <td class="frams5" width="99%" ></td>
- <td class="frams2" width="10px"><div class="bor"></div></td>
- </tr>
+ <tr>
+ <td class="frams1" width="10px"></td>
+ <td class="frams5" width="99%" ></td>
+ <td class="frams2" width="10px"><div class="bor"></div></td>
+ </tr>
<tr>
<td class="frams8"></td>
<td class="input_tab">
@@ -641,7 +641,7 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
<tr>
<td width="58" nowrap="nowrap"><?php echo __('Operator'); ?></td>
<td width="102"><select name="hrel_opt" id="hrel_opt">
- <option value="--" selected="selected"> -- </option>
+ <option value="--" selected="selected"> -- </option>
<option value="=" > = </option>
<option value=">"> > </option>
<option value="<"> < </option>
@@ -658,7 +658,7 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
<td nowrap="nowrap"><?php echo __('Value'); ?>/<br /><?php echo __('subquery'); ?></td>
<td><textarea id="hQuery" value="" cols="18"></textarea>
</td>
- </tr>
+ </tr>
</tbody>
<tbody>
<tr>
@@ -704,13 +704,13 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
<tr>
<td width="58" nowrap="nowrap"><?php echo __('Operator'); ?></td>
<td width="102">
- <select name="operator" id="e_operator">
- <option value="---" selected="selected">---</option>
- <option value="sum" > SUM </option>
- <option value="min"> MIN </option>
- <option value="max"> MAX </option>
- <option value="avg"> AVG </option>
- <option value="avg"> COUNT </option>
+ <select name="operator" id="e_operator">
+ <option value="---" selected="selected">---</option>
+ <option value="sum" > SUM </option>
+ <option value="min"> MIN </option>
+ <option value="max"> MAX </option>
+ <option value="avg"> AVG </option>
+ <option value="avg"> COUNT </option>
</select>
</td></tr>
</tbody>
@@ -740,11 +740,11 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
<table id="query_where" style="visibility:<?php echo $hidden ?>;"
width="5%" border="0" cellpadding="0" cellspacing="0">
<tbody>
- <tr>
- <td class="frams1" width="10px"></td>
- <td class="frams5" width="99%" ></td>
- <td class="frams2" width="10px"><div class="bor"></div></td>
- </tr>
+ <tr>
+ <td class="frams1" width="10px"></td>
+ <td class="frams5" width="99%" ></td>
+ <td class="frams2" width="10px"><div class="bor"></div></td>
+ </tr>
<tr>
<td class="frams8"></td>
<td class="input_tab">
@@ -758,7 +758,7 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
<tr>
<td width="58" nowrap="nowrap"><?php echo __('Operator'); ?></td>
<td width="102"><select name="erel_opt" id="erel_opt">
- <option value="--" selected="selected"> -- </option>
+ <option value="--" selected="selected"> -- </option>
<option value="=" > = </option>
<option value=">"> > </option>
<option value="<"> < </option>
@@ -775,7 +775,7 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
<td nowrap="nowrap"><?php echo __('Value'); ?>/<br /><?php echo __('subquery'); ?></td>
<td><textarea id="eQuery" value="" cols="18"></textarea>
</td>
- </tr>
+ </tr>
</tbody>
<tbody>
<tr>
@@ -802,16 +802,16 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
<?php
if ($_REQUEST['query']) {
- echo '<div class="panel">';
- echo '<div style="clear:both;"></div>';
- echo '<div id="ab"></div>';
- echo '<div style="clear:both;"></div>';
- echo '</div>';
- echo '<a class="trigger" href="#">' . __('Active options') . '</a>';
- echo '<div id="filter"></div>';
- echo '<div id="box">';
- echo '<span id="boxtitle"></span>';
- echo '<form method="post" action="db_qbe.php" >';
+ echo '<div class="panel">';
+ echo '<div style="clear:both;"></div>';
+ echo '<div id="ab"></div>';
+ echo '<div style="clear:both;"></div>';
+ echo '</div>';
+ echo '<a class="trigger" href="#">' . __('Active options') . '</a>';
+ echo '<div id="filter"></div>';
+ echo '<div id="box">';
+ echo '<span id="boxtitle"></span>';
+ echo '<form method="post" action="db_qbe.php" >';
echo '<textarea cols="80" name="sql_query" id="textSqlquery" rows="15"></textarea><div id="tblfooter">';
echo ' <input type="submit" name="submit_sql" class="btn">';
echo ' <input type="button" name="cancel" value="Cancel" onClick="closebox()" class="btn">';
diff --git a/server_synchronize.php b/server_synchronize.php
index 431ae6b..6c23d97 100644
--- a/server_synchronize.php
+++ b/server_synchronize.php
@@ -60,22 +60,22 @@ if ((isset($_REQUEST['submit_connect']))) {
${"{$con}_port"} = $_REQUEST[$con . '_port'];
${"{$con}_socket"} = $_REQUEST[$con . '_socket'];
${"{$con}_db"} = $_REQUEST[$con . '_db'];
- ${"{$con}_type"} = $_REQUEST[$con . '_type'];
+ ${"{$con}_type"} = $_REQUEST[$con . '_type'];
if (${"{$con}_type"} == 'cur') {
- ${"{$con}_connection"} = null;
- ${"{$con}_server"} = null;
- ${"{$con}_db"} = $_REQUEST[$con . '_db_sel'];
- continue;
+ ${"{$con}_connection"} = null;
+ ${"{$con}_server"} = null;
+ ${"{$con}_db"} = $_REQUEST[$con . '_db_sel'];
+ continue;
}
if (isset(${"{$con}_socket"}) && ! empty(${"{$con}_socket"})) {
- ${"{$con}_server"}['socket'] = ${"{$con}_socket"};
+ ${"{$con}_server"}['socket'] = ${"{$con}_socket"};
} else {
- ${"{$con}_server"}['host'] = ${"{$con}_host"};
- if (isset(${"{$con}_port"}) && ! empty(${"{$con}_port"}) && ((int)${"{$con}_port"} * 1) > 0) {
- ${"{$con}_server"}['port'] = (int)${"{$con}_port"};
- }
+ ${"{$con}_server"}['host'] = ${"{$con}_host"};
+ if (isset(${"{$con}_port"}) && ! empty(${"{$con}_port"}) && ((int)${"{$con}_port"} * 1) > 0) {
+ ${"{$con}_server"}['port'] = (int)${"{$con}_port"};
+ }
}
${"{$con}_connection"} = PMA_DBI_connect(${"{$con}_username"}, ${"{$con}_password"}, $is_controluser = false, ${"{$con}_server"}, $auxiliary_connection = true);
@@ -102,14 +102,14 @@ if ((isset($_REQUEST['submit_connect']))) {
* Creating the link object for both source and target databases and
* selecting the source and target databases using these links
*/
- foreach ($cons as $con) {
- if (${"{$con}_connection"} != null) {
- ${"{$con}_link"} = PMA_DBI_connect(${"{$con}_username"}, ${"{$con}_password"}, $is_controluser = false, ${"{$con}_server"});
- } else {
+ foreach ($cons as $con) {
+ if (${"{$con}_connection"} != null) {
+ ${"{$con}_link"} = PMA_DBI_connect(${"{$con}_username"}, ${"{$con}_password"}, $is_controluser = false, ${"{$con}_server"});
+ } else {
${"{$con}_link"} = null;
}
- ${"{$con}_db_selected"} = PMA_DBI_select_db(${"{$con}_db"}, ${"{$con}_link"});
- } // end foreach ($cons as $con)
+ ${"{$con}_db_selected"} = PMA_DBI_select_db(${"{$con}_db"}, ${"{$con}_link"});
+ } // end foreach ($cons as $con)
if (($src_db_selected != 1) || ($trg_db_selected != 1)) {
/**
@@ -225,10 +225,10 @@ if ((isset($_REQUEST['submit_connect']))) {
$_SESSION['src_password'] = $src_password;
$_SESSION['trg_password'] = $trg_password;
$_SESSION['trg_password'] = $trg_password;
- $_SESSION['src_server'] = $src_server;
- $_SESSION['trg_server'] = $trg_server;
- $_SESSION['src_type'] = $src_type;
- $_SESSION['trg_type'] = $trg_type;
+ $_SESSION['src_server'] = $src_server;
+ $_SESSION['trg_server'] = $trg_server;
+ $_SESSION['src_type'] = $src_type;
+ $_SESSION['trg_type'] = $trg_type;
$_SESSION['matching_tables_keys'] = $matching_tables_keys;
$_SESSION['uncommon_tables_fields'] = $uncommon_tables_fields;
$_SESSION['uncommon_tables_row_count'] = $row_count;
@@ -731,7 +731,7 @@ if (isset($_REQUEST['Table_ids'])) {
if (($num_alter_cols > 0) || ($num_insert_cols > 0) || ($num_remove_cols > 0) || ($num_add_index > 0) || ($num_remove_index > 0)) {
echo '<img class="icon struct_img" src="' . $pmaThemeImage . 'new_struct.jpg" width="29" height="29"
- alt="' . __('Click to select') . '"
+ alt="' . __('Click to select') . '"
onclick="showDetails(' . "'MS" . $i . "','" . $num_alter_cols . "','" . $num_insert_cols . "','" . $num_remove_cols . "','" . $num_add_index . "','" . $num_remove_index . "'" .',
this ,' . "'" . htmlspecialchars($matching_tables[$i]) . "'" . ')"/>';
}
@@ -799,7 +799,7 @@ if (isset($_REQUEST['Table_ids'])) {
if (!(in_array($j, $uncommon_table_data_diff))) {
if (isset($row_count[$j]) && ($row_count > 0)) {
echo '<img class="icon data_img" src="' . $pmaThemeImage . 'new_data.jpg" width="29" height="29"
- alt="' . __('Click to select') . '"
+ alt="' . __('Click to select') . '"
onclick="showDetails(' . "'UD" . $j . "','" . null ."','" . $row_count[$j] ."','"
. null . "','" . null . "','" . null . "'" . ', this ,' . "'". htmlspecialchars($source_tables_uncommon[$j]) . "'" . ')" />';
}
@@ -1117,8 +1117,8 @@ if (isset($_REQUEST['synchronize_db'])) {
<table id="serverconnection_<?php echo $type; ?>_remote" class="data">
<caption class="tblHeaders"><?php echo $database_header; ?></caption>
<tr class="odd">
- <td colspan="2" style="text-align: center">
- <select name="<?php echo $type; ?>_type" id="<?php echo $type; ?>_type" class="server_selector">
+ <td colspan="2" style="text-align: center">
+ <select name="<?php echo $type; ?>_type" id="<?php echo $type; ?>_type" class="server_selector">
<?php
if ($GLOBALS['cfg']['AllowArbitraryServer']) {
$preselected_option = 'rmt';
@@ -1162,53 +1162,53 @@ if (isset($_REQUEST['synchronize_db'])) {
. htmlspecialchars(sprintf(__('Configuration: %s'), $label)) . '</option>';
} // end foreach
?>
- </select>
- </td>
+ </select>
+ </td>
</tr>
- <tr class="even toggler remote-server">
- <td><?php echo __('Server'); ?></td>
+ <tr class="even toggler remote-server">
+ <td><?php echo __('Server'); ?></td>
<td><input type="text" name="<?php echo $type; ?>_host" class="server-host" <?php echo $possibly_readonly; ?>/></td>
- </tr>
- <tr class="odd toggler remote-server">
- <td><?php echo __('Port'); ?></td>
+ </tr>
+ <tr class="odd toggler remote-server">
+ <td><?php echo __('Port'); ?></td>
<td><input type="text" name="<?php echo $type; ?>_port" class="server-port" <?php echo $possibly_readonly; ?> value="3306" maxlength="5" size="5" /></td>
- </tr>
- <tr class="even toggler remote-server">
- <td><?php echo __('Socket'); ?></td>
+ </tr>
+ <tr class="even toggler remote-server">
+ <td><?php echo __('Socket'); ?></td>
<td><input type="text" name="<?php echo $type; ?>_socket" class="server-socket" <?php echo $possibly_readonly; ?>/></td>
- </tr>
- <tr class="odd toggler remote-server">
- <td><?php echo __('User name'); ?></td>
+ </tr>
+ <tr class="odd toggler remote-server">
+ <td><?php echo __('User name'); ?></td>
<td><input type="text" name="<?php echo $type; ?>_username" class="server-user" /></td>
- </tr>
- <tr class="even toggler remote-server">
- <td><?php echo __('Password'); ?></td>
+ </tr>
+ <tr class="even toggler remote-server">
+ <td><?php echo __('Password'); ?></td>
<td><input type="password" name="<?php echo $type; ?>_pass" class="server-pass" /> </td>
- </tr>
- <tr class="odd toggler remote-server">
- <td><?php echo __('Database'); ?></td>
+ </tr>
+ <tr class="odd toggler remote-server">
+ <td><?php echo __('Database'); ?></td>
<td><input type="text" name="<?php echo $type; ?>_db" class="server-db" /></td>
- </tr>
- <tr class="even toggler current-server" style="display: none;">
- <td><?php echo __('Database'); ?></td>
- <td>
+ </tr>
+ <tr class="even toggler current-server" style="display: none;">
+ <td><?php echo __('Database'); ?></td>
+ <td>
<?php
// these unset() do not complain if the elements do not exist
unset($databases['mysql']);
unset($databases['information_schema']);
- if (count($databases) == 0) {
- echo __('No databases');
- } else {
- echo '
- <select name="' . $type . '_db_sel">
- ';
- foreach ($databases as $db) {
- echo ' <option>' . htmlspecialchars($db['SCHEMA_NAME']) . '</option>';
- }
+ if (count($databases) == 0) {
+ echo __('No databases');
+ } else {
+ echo '
+ <select name="' . $type . '_db_sel">
+ ';
+ foreach ($databases as $db) {
+ echo ' <option>' . htmlspecialchars($db['SCHEMA_NAME']) . '</option>';
+ }
echo '</select>';
- }
- echo '</td> </tr>
+ }
+ echo '</td> </tr>
</table>';
}
unset ($types, $type);
diff --git a/setup/config.php b/setup/config.php
index 193b57f..5333cb0 100644
--- a/setup/config.php
+++ b/setup/config.php
@@ -26,34 +26,34 @@ if (isset($_POST['eol'])) {
}
if (PMA_ifSetOr($_POST['submit_clear'], '')) {
- //
- // Clear current config and return to main page
- //
- ConfigFile::getInstance()->resetConfigData();
+ //
+ // Clear current config and return to main page
+ //
+ ConfigFile::getInstance()->resetConfigData();
// drop post data
header('HTTP/1.1 303 See Other');
header('Location: index.php');
exit;
} elseif (PMA_ifSetOr($_POST['submit_download'], '')) {
- //
- // Output generated config file
- //
+ //
+ // Output generated config file
+ //
header('Content-Type: text/plain');
header('Content-Disposition: attachment; filename="config.inc.php"');
echo ConfigGenerator::getConfigFile();
exit;
} elseif (PMA_ifSetOr($_POST['submit_save'], '')) {
- //
- // Save generated config file on the server
- //
+ //
+ // Save generated config file on the server
+ //
file_put_contents($config_file_path, ConfigGenerator::getConfigFile());
header('HTTP/1.1 303 See Other');
header('Location: index.php?action_done=config_saved');
exit;
} elseif (PMA_ifSetOr($_POST['submit_load'], '')) {
- //
- // Load config file from the server
- //
+ //
+ // Load config file from the server
+ //
$cfg = array();
require_once $config_file_path;
ConfigFile::getInstance()->setConfigData($cfg);
@@ -61,17 +61,17 @@ if (PMA_ifSetOr($_POST['submit_clear'], '')) {
header('Location: index.php');
exit;
} elseif (PMA_ifSetOr($_POST['submit_delete'], '')) {
- //
- // Delete config file on the server
- //
+ //
+ // Delete config file on the server
+ //
@unlink($config_file_path);
header('HTTP/1.1 303 See Other');
header('Location: index.php');
exit;
} else {
- //
- // Show generated config file in a <textarea>
- //
+ //
+ // Show generated config file in a <textarea>
+ //
header('HTTP/1.1 303 See Other');
header('Location: index.php?page=config');
exit;
hooks/post-receive
--
phpMyAdmin
1
0
[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_3_1-11681-gbf9def5
by Michal Čihař 22 Jul '11
by Michal Čihař 22 Jul '11
22 Jul '11
The branch, master has been updated
via bf9def5d50aab33dda6a38e4aa9b820a1f0c086a (commit)
from 6b75d60e91d8a937e3356ce1aad673be0ee0bfaa (commit)
- Log -----------------------------------------------------------------
commit bf9def5d50aab33dda6a38e4aa9b820a1f0c086a
Author: Michal Čihař <mcihar(a)suse.cz>
Date: Fri Jul 22 09:29:41 2011 +0200
Wrap some long lines
-----------------------------------------------------------------------
Summary of changes:
libraries/sqlparser.lib.php | 23 ++++++++++++++++++-----
1 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/libraries/sqlparser.lib.php b/libraries/sqlparser.lib.php
index 91ec780..fa77136 100644
--- a/libraries/sqlparser.lib.php
+++ b/libraries/sqlparser.lib.php
@@ -72,7 +72,11 @@ if (! defined('PMA_MINIMUM_COMMON')) {
global $timer;
$t = $timer;
- $arr[] = array('type' => $type, 'data' => $data, 'pos' => $pos, 'time' => $t);
+ $arr[] = array(
+ 'type' => $type,
+ 'data' => $data,
+ 'pos' => $pos,
+ 'time' => $t);
$timer = microtime();
$arrsize++;
} // end of the "PMA_SQP_arrayAdd()" function
@@ -151,7 +155,8 @@ if (! defined('PMA_MINIMUM_COMMON')) {
global $SQP_errorString;
$debugstr = 'ERROR: ' . $message . "\n";
$debugstr .= 'MySQL: '.PMA_MYSQL_STR_VERSION . "\n";
- $debugstr .= 'USR OS, AGENT, VER: ' . PMA_USR_OS . ' ' . PMA_USR_BROWSER_AGENT . ' ' . PMA_USR_BROWSER_VER . "\n";
+ $debugstr .= 'USR OS, AGENT, VER: ' . PMA_USR_OS . ' ';
+ $debugstr .= PMA_USR_BROWSER_AGENT . ' ' . PMA_USR_BROWSER_VER . "\n";
$debugstr .= 'PMA: ' . PMA_VERSION . "\n";
$debugstr .= 'PHP VER,OS: ' . PMA_PHP_STR_VERSION . ' ' . PHP_OS . "\n";
$debugstr .= 'LANG: ' . $GLOBALS['lang'] . "\n";
@@ -161,7 +166,10 @@ if (! defined('PMA_MINIMUM_COMMON')) {
if (@function_exists('gzcompress')) {
$encodedstr = gzcompress($debugstr, 9);
}
- $encodedstr = preg_replace("/(\015\012)|(\015)|(\012)/", '<br />' . "\n", chunk_split(base64_encode($encodedstr)));
+ $encodedstr = preg_replace(
+ "/(\015\012)|(\015)|(\012)/",
+ '<br />' . "\n",
+ chunk_split(base64_encode($encodedstr)));
$SQP_errorString .= __('There is a chance that you may have found a bug in the SQL parser. Please examine your query closely, and check that the quotes are correct and not mis-matched. Other possible failure causes may be that you are uploading a file with binary outside of a quoted text area. You can also try your query on the MySQL command line interface. The MySQL server error output below, if there is any, may also help you in diagnosing the problem. If you still have problems or if the parser fails where the command line interface succeeds, please reduce your SQL query input to the single query that causes problems, and submit a bug report with the data chunk in the CUT section below:')
@@ -2706,7 +2714,9 @@ function PMA_SQP_buildCssData()
}
for ($i = 0; $i < 8; $i++) {
- $css_string .= PMA_SQP_buildCssRule('syntax_indent' . $i, 'margin-left', ($i * $cfg['SQP']['fmtInd']) . $cfg['SQP']['fmtIndUnit']);
+ $css_string .= PMA_SQP_buildCssRule(
+ 'syntax_indent' . $i, 'margin-left',
+ ($i * $cfg['SQP']['fmtInd']) . $cfg['SQP']['fmtIndUnit']);
}
return $css_string;
@@ -2725,7 +2735,10 @@ if (! defined('PMA_MINIMUM_COMMON')) {
function PMA_SQP_formatNone($arr)
{
$formatted_sql = htmlspecialchars($arr['raw']);
- $formatted_sql = preg_replace("@((\015\012)|(\015)|(\012)){3,}@", "\n\n", $formatted_sql);
+ $formatted_sql = preg_replace(
+ "@((\015\012)|(\015)|(\012)){3,}@",
+ "\n\n",
+ $formatted_sql);
return $formatted_sql;
} // end of the "PMA_SQP_formatNone()" function
hooks/post-receive
--
phpMyAdmin
1
0
[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_3_1-11680-g6b75d60
by Michal Čihař 22 Jul '11
by Michal Čihař 22 Jul '11
22 Jul '11
The branch, master has been updated
via 6b75d60e91d8a937e3356ce1aad673be0ee0bfaa (commit)
from 236582fb4f86ed8ae6022afc17af37e1d4a19cb9 (commit)
- Log -----------------------------------------------------------------
commit 6b75d60e91d8a937e3356ce1aad673be0ee0bfaa
Author: Michal Čihař <mcihar(a)suse.cz>
Date: Fri Jul 22 09:27:49 2011 +0200
Document that this is IPv4 only
-----------------------------------------------------------------------
Summary of changes:
libraries/ip_allow_deny.lib.php | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libraries/ip_allow_deny.lib.php b/libraries/ip_allow_deny.lib.php
index 2b969d1..ad4b4a3 100644
--- a/libraries/ip_allow_deny.lib.php
+++ b/libraries/ip_allow_deny.lib.php
@@ -4,6 +4,8 @@
* This library is used with the server IP allow/deny host authentication
* feature
*
+ * @todo Broken for IPv6
+ *
* @package phpMyAdmin
*/
hooks/post-receive
--
phpMyAdmin
1
0
[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_3_1-11679-g236582f
by Michal Čihař 22 Jul '11
by Michal Čihař 22 Jul '11
22 Jul '11
The branch, master has been updated
via 236582fb4f86ed8ae6022afc17af37e1d4a19cb9 (commit)
from 9405dbb82a38ca03e0d5a54e06b73be80ec51692 (commit)
- Log -----------------------------------------------------------------
commit 236582fb4f86ed8ae6022afc17af37e1d4a19cb9
Author: Michal Čihař <mcihar(a)suse.cz>
Date: Fri Jul 22 09:25:14 2011 +0200
Fix mistakenly broken regexp
-----------------------------------------------------------------------
Summary of changes:
libraries/common.lib.php | 2 +-
libraries/ip_allow_deny.lib.php | 4 ++--
libraries/sqlparser.lib.php | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/libraries/common.lib.php b/libraries/common.lib.php
index 1607d6e..27d99bc 100644
--- a/libraries/common.lib.php
+++ b/libraries/common.lib.php
@@ -567,7 +567,7 @@ function PMA_mysqlDie($error_message = '', $the_query = '',
} // end if
if (!empty($error_message)) {
- $error_message = preg_replace("@((\015\012)|(\015)|(\012)) {3,}@", "\n\n", $error_message);
+ $error_message = preg_replace("@((\015\012)|(\015)|(\012)){3,}@", "\n\n", $error_message);
}
// modified to show the help on error-returns
// (now error-messages-server)
diff --git a/libraries/ip_allow_deny.lib.php b/libraries/ip_allow_deny.lib.php
index c8481ba..2b969d1 100644
--- a/libraries/ip_allow_deny.lib.php
+++ b/libraries/ip_allow_deny.lib.php
@@ -30,7 +30,7 @@ function PMA_getIp()
$trusted_header_value = PMA_getenv($GLOBALS['cfg']['TrustedProxies'][$direct_ip]);
$matches = array();
// the $ checks that the header contains only one IP address, ?: makes sure the () don't capture
- $is_ip = preg_match('|^(?:[0-9]{1,3}\.) {3,3}[0-9]{1,3}$|', $trusted_header_value, $matches);
+ $is_ip = preg_match('|^(?:[0-9]{1,3}\.){3,3}[0-9]{1,3}$|', $trusted_header_value, $matches);
if ($is_ip && (count($matches) == 1)) {
// True IP behind a proxy
return $matches[0];
@@ -46,7 +46,7 @@ function PMA_getIp()
* Based on IP Pattern Matcher
* Originally by J.Adams <jna(a)retina.net>
* Found on <http://www.php.net/manual/en/function.ip2long.php>
- * Modified for phpMyAdmin
+ * Modified for phpMyAdmin
*
* Matches:
* xxx.xxx.xxx.xxx (exact)
diff --git a/libraries/sqlparser.lib.php b/libraries/sqlparser.lib.php
index 267d99b..91ec780 100644
--- a/libraries/sqlparser.lib.php
+++ b/libraries/sqlparser.lib.php
@@ -2725,7 +2725,7 @@ if (! defined('PMA_MINIMUM_COMMON')) {
function PMA_SQP_formatNone($arr)
{
$formatted_sql = htmlspecialchars($arr['raw']);
- $formatted_sql = preg_replace("@((\015\012)|(\015)|(\012)) {3,}@", "\n\n", $formatted_sql);
+ $formatted_sql = preg_replace("@((\015\012)|(\015)|(\012)){3,}@", "\n\n", $formatted_sql);
return $formatted_sql;
} // end of the "PMA_SQP_formatNone()" function
hooks/post-receive
--
phpMyAdmin
1
0
[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_3_1-11678-g9405dbb
by Michal Čihař 22 Jul '11
by Michal Čihař 22 Jul '11
22 Jul '11
The branch, master has been updated
via 9405dbb82a38ca03e0d5a54e06b73be80ec51692 (commit)
from 25bda8e991f2820971c343315cd3ab3d974b2684 (commit)
- Log -----------------------------------------------------------------
commit 9405dbb82a38ca03e0d5a54e06b73be80ec51692
Author: Michal Čihař <mcihar(a)suse.cz>
Date: Fri Jul 22 09:21:55 2011 +0200
Fix spacing after @param
-----------------------------------------------------------------------
Summary of changes:
db_search.php | 8 +-
export.php | 2 +-
libraries/Config.class.php | 30 ++--
libraries/Error.class.php | 18 +-
libraries/Error_Handler.class.php | 22 ++--
libraries/File.class.php | 32 ++--
libraries/Index.class.php | 28 ++--
libraries/List.class.php | 6 +-
libraries/List_Database.class.php | 14 +-
libraries/Message.class.php | 72 ++++----
libraries/StorageEngine.class.php | 16 +-
libraries/Table.class.php | 108 ++++++------
libraries/Theme.class.php | 16 +-
libraries/Theme_Manager.class.php | 10 +-
libraries/Tracker.class.php | 72 ++++----
libraries/blowfish.php | 8 +-
libraries/bookmark.lib.php | 20 +-
libraries/charset_conversion.lib.php | 6 +-
libraries/common.lib.php | 222 +++++++++++++-------------
libraries/core.lib.php | 58 ++++----
libraries/database_interface.lib.php | 122 +++++++-------
libraries/db_info.inc.php | 6 +-
libraries/db_structure.lib.php | 10 +-
libraries/display_select_lang.lib.php | 4 +-
libraries/display_tbl.lib.php | 148 ++++++++--------
libraries/export/codegen.php | 16 +-
libraries/export/csv.php | 16 +-
libraries/export/htmlword.php | 36 ++--
libraries/export/json.php | 16 +-
libraries/export/latex.php | 38 ++--
libraries/export/mediawiki.php | 16 +-
libraries/export/ods.php | 16 +-
libraries/export/odt.php | 36 ++--
libraries/export/pdf.php | 16 +-
libraries/export/php_array.php | 16 +-
libraries/export/sql.php | 70 ++++----
libraries/export/texytext.php | 36 ++--
libraries/export/xls.php | 16 +-
libraries/export/xlsx.php | 16 +-
libraries/export/xml.php | 16 +-
libraries/export/yaml.php | 16 +-
libraries/file_listing.php | 10 +-
libraries/grab_globals.lib.php | 6 +-
libraries/iconv_wrapper.lib.php | 6 +-
libraries/import.lib.php | 50 +++---
libraries/ip_allow_deny.lib.php | 6 +-
libraries/js_escape.lib.php | 6 +-
libraries/kanji-encoding.lib.php | 14 +-
libraries/mysql_charsets.lib.php | 4 +-
libraries/opendocument.lib.php | 4 +-
libraries/plugin_interface.lib.php | 40 +++---
libraries/relation.lib.php | 86 +++++-----
libraries/sanitizing.lib.php | 4 +-
libraries/select_lang.lib.php | 6 +-
libraries/select_server.lib.php | 4 +-
libraries/server_synchronize.lib.php | 294 ++++++++++++++++----------------
libraries/sql_query_form.lib.php | 12 +-
libraries/sqlparser.lib.php | 34 ++--
libraries/sqlvalidator.class.php | 68 ++++----
libraries/sqlvalidator.lib.php | 2 +-
libraries/string.lib.php | 16 +-
libraries/string_mb.lib.php | 16 +-
libraries/string_native.lib.php | 16 +-
libraries/string_type_ctype.lib.php | 14 +-
libraries/string_type_native.lib.php | 14 +-
libraries/transformations.lib.php | 22 ++--
libraries/url_generating.lib.php | 16 +-
libraries/zip.lib.php | 8 +-
libraries/zip_extension.lib.php | 4 +-
main.php | 16 +-
navigation.php | 14 +-
pmd_common.php | 2 +-
server_privileges.php | 14 +-
tbl_relation.php | 8 +-
tbl_tracking.php | 8 +-
75 files changed, 1147 insertions(+), 1147 deletions(-)
diff --git a/db_search.php b/db_search.php
index 6191b14..acbe0cb 100644
--- a/db_search.php
+++ b/db_search.php
@@ -113,10 +113,10 @@ if (isset($_REQUEST['submit_search'])) {
* explode
* count
* strlen
- * @param string the table name
- * @param string restrict the search to this field
- * @param string the string to search
- * @param integer type of search (1 -> 1 word at least, 2 -> all words,
+ * @param string the table name
+ * @param string restrict the search to this field
+ * @param string the string to search
+ * @param integer type of search (1 -> 1 word at least, 2 -> all words,
* 3 -> exact string, 4 -> regexp)
*
* @return array 3 SQL querys (for count, display and delete results)
diff --git a/export.php b/export.php
index 36c1d58..d7c2f87 100644
--- a/export.php
+++ b/export.php
@@ -129,7 +129,7 @@ $time_start = time();
* Output handler for all exports, if needed buffering, it stores data into
* $dump_buffer, otherwise it prints thems out.
*
- * @param string $line the insert statement
+ * @param string $line the insert statement
* @return bool Whether output suceeded
*/
function PMA_exportOutputHandler($line)
diff --git a/libraries/Config.class.php b/libraries/Config.class.php
index 28f9ac3..0130252 100644
--- a/libraries/Config.class.php
+++ b/libraries/Config.class.php
@@ -75,7 +75,7 @@ class PMA_Config
/**
* constructor
*
- * @param string source to read config from
+ * @param string source to read config from
*/
function __construct($source = null)
{
@@ -333,7 +333,7 @@ class PMA_Config
* loads configuration from $source, usally the config file
* should be called on object creation
*
- * @param string $source config file
+ * @param string $source config file
*/
function load($source = null)
{
@@ -563,7 +563,7 @@ class PMA_Config
/**
* set source
- * @param string $source
+ * @param string $source
*/
function setSource($source)
{
@@ -635,7 +635,7 @@ class PMA_Config
/**
* returns specific config setting
- * @param string $setting
+ * @param string $setting
* @return mixed value
*/
function get($setting)
@@ -649,8 +649,8 @@ class PMA_Config
/**
* sets configuration variable
*
- * @param string $setting configuration option
- * @param string $value new value for configuration option
+ * @param string $setting configuration option
+ * @param string $value new value for configuration option
*/
function set($setting, $value)
{
@@ -1075,7 +1075,7 @@ class PMA_Config
* returns options for font size selection
*
* @static
- * @param string $current_size current selected font size with unit
+ * @param string $current_size current selected font size with unit
* @return array selectable font sizes
*/
static protected function _getFontsizeOptions($current_size = '82%')
@@ -1135,7 +1135,7 @@ class PMA_Config
* returns html selectbox for font sizes
*
* @static
- * @param string $current_size currently slected font size with unit
+ * @param string $current_size currently slected font size with unit
* @return string html selectbox
*/
static protected function _getFontsizeSelection()
@@ -1169,7 +1169,7 @@ class PMA_Config
* return complete font size selection form
*
* @static
- * @param string $current_size currently slected font size with unit
+ * @param string $current_size currently slected font size with unit
* @return string html selectbox
*/
static public function getFontsizeForm()
@@ -1187,7 +1187,7 @@ class PMA_Config
/**
* removes cookie
*
- * @param string $cookie name of cookie to remove
+ * @param string $cookie name of cookie to remove
* @return boolean result of setcookie()
*/
function removeCookie($cookie)
@@ -1200,11 +1200,11 @@ class PMA_Config
* sets cookie if value is different from current cokkie value,
* or removes if value is equal to default
*
- * @param string $cookie name of cookie to remove
- * @param mixed $value new cookie value
- * @param string $default default value
- * @param int $validity validity of cookie in seconds (default is one month)
- * @param bool $httponlt whether cookie is only for HTTP (and not for scripts)
+ * @param string $cookie name of cookie to remove
+ * @param mixed $value new cookie value
+ * @param string $default default value
+ * @param int $validity validity of cookie in seconds (default is one month)
+ * @param bool $httponlt whether cookie is only for HTTP (and not for scripts)
* @return boolean result of setcookie()
*/
function setCookie($cookie, $value, $default = null, $validity = null, $httponly = true)
diff --git a/libraries/Error.class.php b/libraries/Error.class.php
index e5d105c..1925a61 100644
--- a/libraries/Error.class.php
+++ b/libraries/Error.class.php
@@ -93,10 +93,10 @@ class PMA_Error extends PMA_Message
/**
* Constructor
*
- * @param integer $errno
- * @param string $errstr
- * @param string $errfile
- * @param integer $errline
+ * @param integer $errno
+ * @param string $errstr
+ * @param string $errfile
+ * @param integer $errline
*/
public function __construct($errno, $errstr, $errfile, $errline)
{
@@ -116,7 +116,7 @@ class PMA_Error extends PMA_Message
/**
* sets PMA_Error::$_backtrace
*
- * @param array $backtrace
+ * @param array $backtrace
*/
public function setBacktrace($backtrace)
{
@@ -126,7 +126,7 @@ class PMA_Error extends PMA_Message
/**
* sets PMA_Error::$_line
*
- * @param integer $line
+ * @param integer $line
*/
public function setLine($line)
{
@@ -136,7 +136,7 @@ class PMA_Error extends PMA_Message
/**
* sets PMA_Error::$_file
*
- * @param string $file
+ * @param string $file
*/
public function setFile($file)
{
@@ -147,7 +147,7 @@ class PMA_Error extends PMA_Message
/**
* returns unique PMA_Error::$_hash, if not exists it will be created
*
- * @param string $file
+ * @param string $file
* @return string PMA_Error::$_hash
*/
public function getHash()
@@ -329,7 +329,7 @@ class PMA_Error extends PMA_Message
* and make users feel save to submit error reports
*
* @static
- * @param string $dest path to be shorten
+ * @param string $dest path to be shorten
* @return string shortened path
*/
static function relPath($dest)
diff --git a/libraries/Error_Handler.class.php b/libraries/Error_Handler.class.php
index f65dc4b..1a9cdb0 100644
--- a/libraries/Error_Handler.class.php
+++ b/libraries/Error_Handler.class.php
@@ -83,10 +83,10 @@ class PMA_Error_Handler
* Do not use the context parameter as we want to avoid storing the
* complete $GLOBALS inside $_SESSION['errors']
*
- * @param integer $errno
- * @param string $errstr
- * @param string $errfile
- * @param integer $errline
+ * @param integer $errno
+ * @param string $errstr
+ * @param string $errfile
+ * @param integer $errline
*/
public function handleError($errno, $errstr, $errfile, $errline)
{
@@ -126,7 +126,7 @@ class PMA_Error_Handler
* log error to configured log facility
*
* @todo finish!
- * @param PMA_Error $error
+ * @param PMA_Error $error
*/
protected function _logError($error)
{
@@ -136,10 +136,10 @@ class PMA_Error_Handler
/**
* trigger a custom error
*
- * @param string $errorInfo
- * @param integer $errorNumber
- * @param string $file
- * @param integer $line
+ * @param string $errorInfo
+ * @param integer $errorNumber
+ * @param string $file
+ * @param integer $line
*/
public function triggerError($errorInfo, $errorNumber = null, $file = null, $line = null)
{
@@ -150,7 +150,7 @@ class PMA_Error_Handler
/**
* display fatal error and exit
*
- * @param PMA_Error $error
+ * @param PMA_Error $error
*/
protected function _dispFatalError($error)
{
@@ -191,7 +191,7 @@ class PMA_Error_Handler
/**
* display HTML header
*
- * @param PMA_error $error
+ * @param PMA_error $error
*/
protected function _dispPageStart($error = null)
{
diff --git a/libraries/File.class.php b/libraries/File.class.php
index 031a266..bad9bca 100644
--- a/libraries/File.class.php
+++ b/libraries/File.class.php
@@ -78,7 +78,7 @@ class PMA_File
* constructor
*
* @access public
- * @param string $name file name
+ * @param string $name file name
*/
function __construct($name = false)
{
@@ -129,7 +129,7 @@ class PMA_File
* file objects with temp flags are deleted with object destruction
*
* @access public
- * @param boolean sets the temp flag
+ * @param boolean sets the temp flag
* @return boolean PMA_File::$_is_temp
*/
function isTemp($is_temp = null)
@@ -145,7 +145,7 @@ class PMA_File
* accessor
*
* @access public
- * @param string $name file name
+ * @param string $name file name
*/
function setName($name)
{
@@ -208,7 +208,7 @@ class PMA_File
/**
* @access public
- * @param string name of file uploaded
+ * @param string name of file uploaded
* @return boolean success
*/
function setUploadedFile($name)
@@ -226,8 +226,8 @@ class PMA_File
/**
* @access public
- * @param string $key the md5 hash of the column name
- * @param string $rownumber
+ * @param string $key the md5 hash of the column name
+ * @param string $rownumber
* @return boolean success
*/
function setUploadedFromTblChangeRequest($key, $rownumber)
@@ -319,9 +319,9 @@ class PMA_File
*
* @access public
* @static
- * @param array $file the array
- * @param string $rownumber
- * @param string $key
+ * @param array $file the array
+ * @param string $rownumber
+ * @param string $key
* @return array
*/
function fetchUploadedFromTblChangeRequestMultiple($file, $rownumber, $key)
@@ -341,8 +341,8 @@ class PMA_File
* sets the name if the file to the one selected in the tbl_change form
*
* @access public
- * @param string $key the md5 hash of the column name
- * @param string $rownumber
+ * @param string $key the md5 hash of the column name
+ * @param string $rownumber
* @return boolean success
*/
function setSelectedFromTblChangeRequest($key, $rownumber = null)
@@ -421,8 +421,8 @@ class PMA_File
* and uses the submitted/selected file
*
* @access public
- * @param string $key the md5 hash of the column name
- * @param string $rownumber
+ * @param string $key the md5 hash of the column name
+ * @param string $rownumber
* @return boolean success
*/
function checkTblChangeForm($key, $rownumber)
@@ -444,7 +444,7 @@ class PMA_File
/**
*
* @access public
- * @param string $name
+ * @param string $name
* @return boolean success
*/
function setLocalSelectedFile($name)
@@ -672,7 +672,7 @@ class PMA_File
/**
* advances the file pointer in the file handle by $length bytes/chars
*
- * @param integer $length numbers of chars/bytes to skip
+ * @param integer $length numbers of chars/bytes to skip
* @return boolean
* @todo this function is unused
*/
@@ -808,7 +808,7 @@ class PMA_File
* sets reference to most recent BLOB repository reference
*
* @access public
- * @param string - BLOB repository reference
+ * @param string - BLOB repository reference
*/
static function setRecentBLOBReference($ref)
{
diff --git a/libraries/Index.class.php b/libraries/Index.class.php
index 7cc4799..25f613f 100644
--- a/libraries/Index.class.php
+++ b/libraries/Index.class.php
@@ -86,7 +86,7 @@ class PMA_Index
/**
* Constructor
*
- * @param array $params
+ * @param array $params
*/
public function __construct($params = array())
{
@@ -111,8 +111,8 @@ class PMA_Index
/**
* returns an array with all indexes from the given table
*
- * @param string $table
- * @param string $schema
+ * @param string $table
+ * @param string $schema
* @return array
*/
static public function getFromTable($table, $schema)
@@ -129,8 +129,8 @@ class PMA_Index
/**
* return primary if set, false otherwise
*
- * @param string $table
- * @param string $schema
+ * @param string $table
+ * @param string $schema
* @return mixed primary index or false if no one exists
*/
static public function getPrimary($table, $schema)
@@ -147,8 +147,8 @@ class PMA_Index
/**
* Load index data for table
*
- * @param string $table
- * @param string $schema
+ * @param string $table
+ * @param string $schema
* @return boolean
*/
static protected function _loadIndexes($table, $schema)
@@ -176,7 +176,7 @@ class PMA_Index
/**
* Add column to index
*
- * @param array $params column params
+ * @param array $params column params
*/
public function addColumn($params)
{
@@ -216,7 +216,7 @@ class PMA_Index
/**
* Returns true if $column indexed in this index
*
- * @param string $column
+ * @param string $column
* @return boolean
*/
public function hasColumn($column)
@@ -403,10 +403,10 @@ class PMA_Index
/**
* Show index data
*
- * @param string $table The tablename
- * @param array $indexes_info Referenced info array
- * @param array $indexes_data Referenced data array
- * @param boolean $print_mode
+ * @param string $table The tablename
+ * @param array $indexes_info Referenced info array
+ * @param array $indexes_data Referenced data array
+ * @param boolean $print_mode
* @access public
* @return array Index collection array
*/
@@ -539,7 +539,7 @@ class PMA_Index
* Function to check over array of indexes and look for common problems
*
* @access public
- * @param string name of table
+ * @param string name of table
* @return string Output HTML
*/
static public function findDuplicates($table, $schema)
diff --git a/libraries/List.class.php b/libraries/List.class.php
index 83a42c1..694546a 100644
--- a/libraries/List.class.php
+++ b/libraries/List.class.php
@@ -52,7 +52,7 @@ abstract class PMA_List extends ArrayObject
* checks if the given db names exists in the current list, if there is
* missing at least one item it returns false otherwise true
*
- * @param string $db_name,.. one or more mysql result resources
+ * @param string $db_name,.. one or more mysql result resources
* @return boolean true if all items exists, otheriwse false
*/
public function exists()
@@ -70,8 +70,8 @@ abstract class PMA_List extends ArrayObject
/**
* returns HTML <option>-tags to be used inside <select></select>
*
- * @param mixed $selected the selected db or true for selecting current db
- * @param boolean $include_information_schema
+ * @param mixed $selected the selected db or true for selecting current db
+ * @param boolean $include_information_schema
* @return string HTML option tags
*/
public function getHtmlOptions($selected = '', $include_information_schema = true)
diff --git a/libraries/List_Database.class.php b/libraries/List_Database.class.php
index 7616f60..259bbf8 100644
--- a/libraries/List_Database.class.php
+++ b/libraries/List_Database.class.php
@@ -56,8 +56,8 @@ require_once './libraries/List.class.php';
/**
* Constructor
*
- * @param mixed $db_link_user user database link resource|object
- * @param mixed $db_link_control control database link resource|object
+ * @param mixed $db_link_user user database link resource|object
+ * @param mixed $db_link_control control database link resource|object
*/
public function __construct($db_link_user = null, $db_link_control = null)
{
@@ -89,7 +89,7 @@ require_once './libraries/List.class.php';
* retrieves database list from server
*
* @todo we could also search mysql tables if all fail?
- * @param string $like_db_name usally a db_name containing wildcards
+ * @param string $like_db_name usally a db_name containing wildcards
*/
protected function _retrieve($like_db_name = null)
{
@@ -219,8 +219,8 @@ require_once './libraries/List.class.php';
/**
* returns array with dbs grouped with extended infos
*
- * @param integer $offset
- * @param integer $count
+ * @param integer $offset
+ * @param integer $count
* @return array db list
*/
public function getGroupedDetails($offset, $count)
@@ -297,8 +297,8 @@ require_once './libraries/List.class.php';
/**
* returns a part of the items
*
- * @param integer $offset
- * @param integer $count
+ * @param integer $offset
+ * @param integer $count
* @return array some items
*/
public function getLimitedItems($offset, $count)
diff --git a/libraries/Message.class.php b/libraries/Message.class.php
index d5e7d07..5a6afac 100644
--- a/libraries/Message.class.php
+++ b/libraries/Message.class.php
@@ -137,10 +137,10 @@ class PMA_Message
/**
* Constructor
*
- * @param string $string
- * @param integer $number
- * @param array $params
- * @param integer $sanitize
+ * @param string $string
+ * @param integer $number
+ * @param array $params
+ * @param integer $sanitize
*/
public function __construct($string = '', $number = PMA_Message::NOTICE,
$params = array(), $sanitize = PMA_Message::SANITIZE_NONE)
@@ -166,7 +166,7 @@ class PMA_Message
* shorthand for getting a simple success message
*
* @static
- * @param string $string a localized string e.g. __('Your SQL query has been executed successfully')
+ * @param string $string a localized string e.g. __('Your SQL query has been executed successfully')
* @return PMA_Message
*/
static public function success($string = '')
@@ -184,7 +184,7 @@ class PMA_Message
* shorthand for getting a simple error message
*
* @static
- * @param string $string a localized string e.g. __('Error')
+ * @param string $string a localized string e.g. __('Error')
* @return PMA_Message
*/
static public function error($string = '')
@@ -202,7 +202,7 @@ class PMA_Message
* shorthand for getting a simple notice message
*
* @static
- * @param string $string a localized string e.g. __('The additional features for working with linked tables have been deactivated. To find out why click %shere%s.')
+ * @param string $string a localized string e.g. __('The additional features for working with linked tables have been deactivated. To find out why click %shere%s.')
* @return PMA_Message
*/
static public function notice($string)
@@ -216,8 +216,8 @@ class PMA_Message
* shorthand for getting a customized message
*
* @static
- * @param string $message
- * @param integer $type
+ * @param string $message
+ * @param integer $type
* @return PMA_Message
*/
static public function raw($message, $type = PMA_Message::NOTICE)
@@ -233,7 +233,7 @@ class PMA_Message
* shorthand for getting a customized message
*
* @static
- * @param integer $rows Number of rows
+ * @param integer $rows Number of rows
* @return PMA_Message
*/
static public function affected_rows($rows)
@@ -249,7 +249,7 @@ class PMA_Message
* shorthand for getting a customized message
*
* @static
- * @param integer $rows Number of rows
+ * @param integer $rows Number of rows
* @return PMA_Message
*/
static public function deleted_rows($rows)
@@ -265,7 +265,7 @@ class PMA_Message
* shorthand for getting a customized message
*
* @static
- * @param integer $rows Number of rows
+ * @param integer $rows Number of rows
* @return PMA_Message
*/
static public function inserted_rows($rows)
@@ -281,7 +281,7 @@ class PMA_Message
* shorthand for getting a customized error message
*
* @static
- * @param string $message
+ * @param string $message
* @return PMA_Message
*/
static public function rawError($message)
@@ -295,7 +295,7 @@ class PMA_Message
* shorthand for getting a customized notice message
*
* @static
- * @param string $message
+ * @param string $message
* @return PMA_Message
*/
static public function rawNotice($message)
@@ -309,7 +309,7 @@ class PMA_Message
* shorthand for getting a customized success message
*
* @static
- * @param string $message
+ * @param string $message
* @return PMA_Message
*/
static public function rawSuccess($message)
@@ -321,7 +321,7 @@ class PMA_Message
* returns whether this message is a success message or not
* and optionaly makes this message a success message
*
- * @param boolean $set
+ * @param boolean $set
* @return boolean whether this is a success message or not
*/
public function isSuccess($set = false)
@@ -337,7 +337,7 @@ class PMA_Message
* returns whether this message is a notice message or not
* and optionally makes this message a notice message
*
- * @param boolean $set
+ * @param boolean $set
* @return boolean whether this is a notice message or not
*/
public function isNotice($set = false)
@@ -353,7 +353,7 @@ class PMA_Message
* returns whether this message is an error message or not
* and optionally makes this message an error message
*
- * @param boolean $set
+ * @param boolean $set
* @return boolean whether this is an error message or not
*/
public function isError($set = false)
@@ -368,8 +368,8 @@ class PMA_Message
/**
* set raw message (overrides string)
*
- * @param string $message
- * @param boolean $sanitize whether to sanitize $message or not
+ * @param string $message
+ * @param boolean $sanitize whether to sanitize $message or not
*/
public function setMessage($message, $sanitize = false)
{
@@ -382,8 +382,8 @@ class PMA_Message
/**
* set string (does not take effect if raw message is set)
*
- * @param string $_string
- * @param boolean $sanitize whether to sanitize $string or not
+ * @param string $_string
+ * @param boolean $sanitize whether to sanitize $string or not
*/
public function setString($_string, $sanitize = true)
{
@@ -396,7 +396,7 @@ class PMA_Message
/**
* set message type number
*
- * @param integer $number
+ * @param integer $number
*/
public function setNumber($number)
{
@@ -413,8 +413,8 @@ class PMA_Message
* $message->addParam('<img src="img" />', false);
* </code>
*
- * @param mixed $param
- * @param boolean $raw
+ * @param mixed $param
+ * @param boolean $raw
*/
public function addParam($param, $raw = true)
{
@@ -430,8 +430,8 @@ class PMA_Message
/**
* add another string to be concatenated on displaying
*
- * @param string $string to be added
- * @param string $separator to use between this and previous string/message
+ * @param string $string to be added
+ * @param string $separator to use between this and previous string/message
*/
public function addString($string, $separator = ' ')
{
@@ -442,8 +442,8 @@ class PMA_Message
/**
* add a bunch of messages at once
*
- * @param array $messages to be added
- * @param string $separator to use between this and previous string/message
+ * @param array $messages to be added
+ * @param string $separator to use between this and previous string/message
*/
public function addMessages($messages, $separator = ' ')
{
@@ -455,8 +455,8 @@ class PMA_Message
/**
* add another raw message to be concatenated on displaying
*
- * @param mixed $message to be added
- * @param string $separator to use between this and previous string/message
+ * @param mixed $message to be added
+ * @param string $separator to use between this and previous string/message
*/
public function addMessage($message, $separator = ' ')
{
@@ -474,8 +474,8 @@ class PMA_Message
/**
* set all params at once, usually used in conjunction with string
*
- * @param array $params
- * @param boolean $sanitize
+ * @param array $params
+ * @param boolean $sanitize
*/
public function setParams($params, $sanitize = false)
{
@@ -509,7 +509,7 @@ class PMA_Message
* Sanitizes $message
*
* @static
- * @param mixed $message the message(s)
+ * @param mixed $message the message(s)
* @return mixed the sanitized message(s)
* @access public
*/
@@ -531,7 +531,7 @@ class PMA_Message
* for formatting
*
* @static
- * @param string $message the message
+ * @param string $message the message
* @return string the decoded message
* @access public
*/
@@ -662,7 +662,7 @@ class PMA_Message
/**
* sets and returns whether the message was displayed or not
*
- * @param boolean $is_displayed
+ * @param boolean $is_displayed
* @return boolean PMA_Message::$_is_displayed
*/
public function isDisplayed($is_displayed = false)
diff --git a/libraries/StorageEngine.class.php b/libraries/StorageEngine.class.php
index d3e1019..bf5de9d 100644
--- a/libraries/StorageEngine.class.php
+++ b/libraries/StorageEngine.class.php
@@ -68,10 +68,10 @@ class PMA_StorageEngine
* returns HTML code for storage engine select box
*
* @static
- * @param string $name The name of the select form element
- * @param string $id The ID of the form field
- * @param string $selected The selected engine
- * @param boolean $offerUnavailableEngines
+ * @param string $name The name of the select form element
+ * @param string $id The ID of the form field
+ * @param string $selected The selected engine
+ * @param boolean $offerUnavailableEngines
* Should unavailable storage engines be offered?
* @return string html selectbox
*/
@@ -106,7 +106,7 @@ class PMA_StorageEngine
*
* Loads the corresponding engine plugin, if available.
*
- * @param string $engine The engine ID
+ * @param string $engine The engine ID
* @return object The engine plugin
*/
static public function getEngine($engine)
@@ -127,7 +127,7 @@ class PMA_StorageEngine
* return true if given engine name is supported/valid, otherwise false
*
* @static
- * @param string $engine name of engine
+ * @param string $engine name of engine
* @return boolean whether $engine is valid or not
*/
static public function isValid($engine)
@@ -248,7 +248,7 @@ class PMA_StorageEngine
/**
* Constructor
*
- * @param string $engine The engine ID
+ * @param string $engine The engine ID
*/
function __construct($engine)
{
@@ -381,7 +381,7 @@ class PMA_StorageEngine
* Generates the requested information page
*
* @abstract
- * @param string $id The page ID
+ * @param string $id The page ID
*
* @return string The page
* boolean or false on error.
diff --git a/libraries/Table.class.php b/libraries/Table.class.php
index 66ceaea..d2a0dbe 100644
--- a/libraries/Table.class.php
+++ b/libraries/Table.class.php
@@ -63,8 +63,8 @@ class PMA_Table
/**
* Constructor
*
- * @param string $table_name table name
- * @param string $db_name database name
+ * @param string $table_name table name
+ * @param string $db_name database name
*/
function __construct($table_name, $db_name)
{
@@ -96,7 +96,7 @@ class PMA_Table
/**
* sets table name
*
- * @param string $table_name new table name
+ * @param string $table_name new table name
*/
function setName($table_name)
{
@@ -106,7 +106,7 @@ class PMA_Table
/**
* returns table name
*
- * @param boolean $backquoted whether to quote name with backticks ``
+ * @param boolean $backquoted whether to quote name with backticks ``
* @return string table name
*/
function getName($backquoted = false)
@@ -120,7 +120,7 @@ class PMA_Table
/**
* sets database name for this table
*
- * @param string $db_name
+ * @param string $db_name
*/
function setDbName($db_name)
{
@@ -130,7 +130,7 @@ class PMA_Table
/**
* returns database name for this table
*
- * @param boolean $backquoted whether to quote name with backticks ``
+ * @param boolean $backquoted whether to quote name with backticks ``
* @return string database name for this table
*/
function getDbName($backquoted = false)
@@ -144,7 +144,7 @@ class PMA_Table
/**
* returns full name for table, including database name
*
- * @param boolean $backquoted whether to quote name with backticks ``
+ * @param boolean $backquoted whether to quote name with backticks ``
* @return string
*/
function getFullName($backquoted = false)
@@ -175,7 +175,7 @@ class PMA_Table
/**
* returns value for given setting/param
*
- * @param string $param name for value to return
+ * @param string $param name for value to return
* @return mixed value for $param
*/
function get($param)
@@ -226,8 +226,8 @@ class PMA_Table
*
* @deprecated
* @todo see what we could do with the possible existence of $table_is_view
- * @param string $db the database name
- * @param string $table the table name
+ * @param string $db the database name
+ * @param string $table the table name
* @return boolean whether this is a view
*/
static protected function _isView($db, $table)
@@ -247,8 +247,8 @@ class PMA_Table
*
* If the ENGINE of the table is MERGE or MRG_MYISAM (alias), this is a merge table.
*
- * @param string $db the database name
- * @param string $table the table name
+ * @param string $db the database name
+ * @param string $table the table name
* @return boolean true if it is a merge table
*/
static public function isMerge($db = null, $table = null)
@@ -313,19 +313,19 @@ class PMA_Table
*
* @todo move into class PMA_Column
* @todo on the interface, some js to clear the default value when the default current_timestamp is checked
- * @param string $name name
- * @param string $type type ('INT', 'VARCHAR', 'BIT', ...)
- * @param string $length length ('2', '5,2', '', ...)
- * @param string $attribute
- * @param string $collation
- * @param bool|string $null with 'NULL' or 'NOT NULL'
- * @param string $default_type whether default is CURRENT_TIMESTAMP,
+ * @param string $name name
+ * @param string $type type ('INT', 'VARCHAR', 'BIT', ...)
+ * @param string $length length ('2', '5,2', '', ...)
+ * @param string $attribute
+ * @param string $collation
+ * @param bool|string $null with 'NULL' or 'NOT NULL'
+ * @param string $default_type whether default is CURRENT_TIMESTAMP,
* NULL, NONE, USER_DEFINED
- * @param string $default_value default value for USER_DEFINED default type
- * @param string $extra 'AUTO_INCREMENT'
- * @param string $comment field comment
- * @param array &$field_primary list of fields for PRIMARY KEY
- * @param string $index
+ * @param string $default_value default value for USER_DEFINED default type
+ * @param string $extra 'AUTO_INCREMENT'
+ * @param string $comment field comment
+ * @param array &$field_primary list of fields for PRIMARY KEY
+ * @param string $index
* @return string field specification
*/
static function generateFieldSpec($name, $type, $length = '', $attribute = '',
@@ -424,10 +424,10 @@ class PMA_Table
* Revision 13 July 2001: Patch for limiting dump size from
* vinay(a)sanisoft.com & girish(a)sanisoft.com
*
- * @param string $db the current database name
- * @param string $table the current table name
- * @param bool $force_exact whether to force an exact count
- * @param bool $is_view
+ * @param string $db the current database name
+ * @param string $table the current table name
+ * @param bool $force_exact whether to force an exact count
+ * @param bool $is_view
*
* @return mixed the number of records if "retain" param is true,
* otherwise true
@@ -498,21 +498,21 @@ class PMA_Table
* Generates column specification for ALTER syntax
*
* @see PMA_Table::generateFieldSpec()
- * @param string $oldcol old column name
- * @param string $newcol new column name
- * @param string $type type ('INT', 'VARCHAR', 'BIT', ...)
- * @param string $length length ('2', '5,2', '', ...)
- * @param string $attribute
- * @param string $collation
- * @param bool|string $null with 'NULL' or 'NOT NULL'
- * @param string $default_type whether default is CURRENT_TIMESTAMP,
+ * @param string $oldcol old column name
+ * @param string $newcol new column name
+ * @param string $type type ('INT', 'VARCHAR', 'BIT', ...)
+ * @param string $length length ('2', '5,2', '', ...)
+ * @param string $attribute
+ * @param string $collation
+ * @param bool|string $null with 'NULL' or 'NOT NULL'
+ * @param string $default_type whether default is CURRENT_TIMESTAMP,
* NULL, NONE, USER_DEFINED
- * @param string $default_value default value for USER_DEFINED default type
- * @param string $extra 'AUTO_INCREMENT'
- * @param string $comment field comment
- * @param array &$field_primary list of fields for PRIMARY KEY
- * @param string $index
- * @param mixed $default_orig
+ * @param string $default_value default value for USER_DEFINED default type
+ * @param string $extra 'AUTO_INCREMENT'
+ * @param string $comment field comment
+ * @param array &$field_primary list of fields for PRIMARY KEY
+ * @param string $index
+ * @param mixed $default_orig
* @return string field specification
*/
static public function generateAlter($oldcol, $newcol, $type, $length,
@@ -529,11 +529,11 @@ class PMA_Table
* Inserts existing entries in a PMA_* table by reading a value from an old entry
*
* @global relation variable
- * @param string $work The array index, which Relation feature to check ('relwork', 'commwork', ...)
- * @param string $pma_table The array index, which PMA-table to update ('bookmark', 'relation', ...)
- * @param array $get_fields Which fields will be SELECT'ed from the old entry
- * @param array $where_fields Which fields will be used for the WHERE query (array('FIELDNAME' => 'FIELDVALUE'))
- * @param array $new_fields Which fields will be used as new VALUES. These are the important
+ * @param string $work The array index, which Relation feature to check ('relwork', 'commwork', ...)
+ * @param string $pma_table The array index, which PMA-table to update ('bookmark', 'relation', ...)
+ * @param array $get_fields Which fields will be SELECT'ed from the old entry
+ * @param array $where_fields Which fields will be used for the WHERE query (array('FIELDNAME' => 'FIELDVALUE'))
+ * @param array $new_fields Which fields will be used as new VALUES. These are the important
* keys which differ from the old entry.
* (array('FIELDNAME' => 'NEW FIELDVALUE'))
* @return int|true
@@ -995,7 +995,7 @@ class PMA_Table
*
* @todo add check for valid chars in filename on current system/os
* @see http://dev.mysql.com/doc/refman/5.0/en/legal-names.html
- * @param string $table_name name to check
+ * @param string $table_name name to check
* @return boolean whether the string is valid or not
*/
function isValidName($table_name)
@@ -1021,9 +1021,9 @@ class PMA_Table
/**
* renames table
*
- * @param string $new_name new table name
- * @param string $new_db new database name
- * @param bool $is_view is this for a VIEW rename?
+ * @param string $new_name new table name
+ * @param string $new_db new database name
+ * @param bool $is_view is this for a VIEW rename?
* @return bool success
*/
function rename($new_name, $new_db = null, $is_view = false)
@@ -1161,7 +1161,7 @@ class PMA_Table
* - UNIQUE(x,y) // NONE
*
*
- * @param bool $backquoted whether to quote name with backticks ``
+ * @param bool $backquoted whether to quote name with backticks ``
* @return array
*/
public function getUniqueColumns($backquoted = true)
@@ -1188,7 +1188,7 @@ class PMA_Table
*
* e.g. index(col1, col2) would only return col1
*
- * @param bool $backquoted whether to quote name with backticks ``
+ * @param bool $backquoted whether to quote name with backticks ``
* @return array
*/
public function getIndexedColumns($backquoted = true)
@@ -1209,7 +1209,7 @@ class PMA_Table
*
* returns an array with all columns
*
- * @param bool $backquoted whether to quote name with backticks ``
+ * @param bool $backquoted whether to quote name with backticks ``
* @return array
*/
public function getColumns($backquoted = true)
diff --git a/libraries/Theme.class.php b/libraries/Theme.class.php
index d1b79fd..7b01fa8 100644
--- a/libraries/Theme.class.php
+++ b/libraries/Theme.class.php
@@ -107,7 +107,7 @@ class PMA_Theme {
*
* @static
* @access public
- * @param string $folder path to theme
+ * @param string $folder path to theme
* @return object PMA_Theme
*/
static public function load($folder)
@@ -172,7 +172,7 @@ class PMA_Theme {
* set path to theme
*
* @access public
- * @param string $path path to theme
+ * @param string $path path to theme
*/
function setPath($path)
{
@@ -183,7 +183,7 @@ class PMA_Theme {
* sets version
*
* @access public
- * @param string new version
+ * @param string new version
*/
function setVersion($version)
{
@@ -206,7 +206,7 @@ class PMA_Theme {
* returns true if theme version is equal or higher to $version
*
* @access public
- * @param string $version version to compare to
+ * @param string $version version to compare to
* @return boolean
*/
function checkVersion($version)
@@ -218,7 +218,7 @@ class PMA_Theme {
* sets name
*
* @access public
- * @param string $name new name
+ * @param string $name new name
*/
function setName($name)
{
@@ -240,7 +240,7 @@ class PMA_Theme {
* sets id
*
* @access public
- * @param string $id new id
+ * @param string $id new id
*/
function setId($id)
{
@@ -260,7 +260,7 @@ class PMA_Theme {
/**
* @access public
- * @param string path to images for this theme
+ * @param string path to images for this theme
*/
function setImgPath($path)
{
@@ -280,7 +280,7 @@ class PMA_Theme {
* load css (send to stdout, normally the browser)
*
* @access public
- * @param string $type left, right or print
+ * @param string $type left, right or print
*/
function loadCss(&$type)
{
diff --git a/libraries/Theme_Manager.class.php b/libraries/Theme_Manager.class.php
index b179ccc..86ddc8d 100644
--- a/libraries/Theme_Manager.class.php
+++ b/libraries/Theme_Manager.class.php
@@ -55,7 +55,7 @@ class PMA_Theme_Manager
/**
* sets path to folder containing the themes
*
- * @param string $path path to themes folder
+ * @param string $path path to themes folder
* @return boolean success
*/
function setThemesPath($path)
@@ -80,7 +80,7 @@ class PMA_Theme_Manager
/**
* sets if there are different themes per server
*
- * @param boolean $per_server
+ * @param boolean $per_server
*/
function setThemePerServer($per_server)
{
@@ -200,7 +200,7 @@ class PMA_Theme_Manager
/**
* @private
- * @param string $folder
+ * @param string $folder
* @return boolean
*/
/*private*/ function _checkThemeFolder($folder)
@@ -252,7 +252,7 @@ class PMA_Theme_Manager
/**
* checks if given theme name is a known theme
*
- * @param string $theme name fo theme to check for
+ * @param string $theme name fo theme to check for
*/
function checkTheme($theme)
{
@@ -266,7 +266,7 @@ class PMA_Theme_Manager
/**
* returns HTML selectbox, with or without form enclosed
*
- * @param boolean $form whether enclosed by from tags or not
+ * @param boolean $form whether enclosed by from tags or not
*/
function getHtmlSelectBox($form = true)
{
diff --git a/libraries/Tracker.class.php b/libraries/Tracker.class.php
index da9a56a..c82d0d9 100644
--- a/libraries/Tracker.class.php
+++ b/libraries/Tracker.class.php
@@ -168,7 +168,7 @@ class PMA_Tracker
*
* @static
*
- * @param string $string part of SQL statement
+ * @param string $string part of SQL statement
*
* @return string the name of table
*/
@@ -198,8 +198,8 @@ class PMA_Tracker
*
* @static
*
- * @param string $dbname name of database
- * @param string $tablename name of table
+ * @param string $dbname name of database
+ * @param string $tablename name of table
*
* @return boolean true or false
*/
@@ -250,11 +250,11 @@ class PMA_Tracker
*
* @static
*
- * @param string $dbname name of database
- * @param string $tablename name of table
- * @param string $version version
- * @param string $tracking_set set of tracking statements
- * @param string $is_view if table is a view
+ * @param string $dbname name of database
+ * @param string $tablename name of table
+ * @param string $version version
+ * @param string $tracking_set set of tracking statements
+ * @param string $is_view if table is a view
*
* @return int result of version insertion
*/
@@ -357,8 +357,8 @@ class PMA_Tracker
*
* @static
*
- * @param string $dbname name of database
- * @param string $tablename name of table
+ * @param string $dbname name of database
+ * @param string $tablename name of table
*
* @return int result of version insertion
*/
@@ -378,10 +378,10 @@ class PMA_Tracker
*
* @static
*
- * @param string $dbname name of database
- * @param string $version version
- * @param string $query query
- * @param string $tracking_set set of tracking statements
+ * @param string $dbname name of database
+ * @param string $version version
+ * @param string $query query
+ * @param string $tracking_set set of tracking statements
*
* @return int result of version insertion
*/
@@ -443,10 +443,10 @@ class PMA_Tracker
*
* @static
*
- * @param string $dbname name of database
- * @param string $tablename name of table
- * @param string $version version
- * @param integer $new_state the new state of tracking
+ * @param string $dbname name of database
+ * @param string $tablename name of table
+ * @param string $version version
+ * @param integer $new_state the new state of tracking
*
* @return int result of SQL query
*/
@@ -469,11 +469,11 @@ class PMA_Tracker
*
* @static
*
- * @param string $dbname name of database
- * @param string $tablename name of table
- * @param string $version version
- * @param string $type type of data(DDL || DML)
- * @param string || array $new_data the new tracking data
+ * @param string $dbname name of database
+ * @param string $tablename name of table
+ * @param string $version version
+ * @param string $type type of data(DDL || DML)
+ * @param string || array $new_data the new tracking data
*
* @return bool result of change
*/
@@ -514,9 +514,9 @@ class PMA_Tracker
*
* @static
*
- * @param string $dbname name of database
- * @param string $tablename name of table
- * @param string $version version
+ * @param string $dbname name of database
+ * @param string $tablename name of table
+ * @param string $version version
*
* @return int result of SQL query
*/
@@ -531,9 +531,9 @@ class PMA_Tracker
*
* @static
*
- * @param string $dbname name of database
- * @param string $tablename name of table
- * @param string $version version
+ * @param string $dbname name of database
+ * @param string $tablename name of table
+ * @param string $version version
*
* @return int result of SQL query
*/
@@ -549,9 +549,9 @@ class PMA_Tracker
*
* @static
*
- * @param string $dbname name of database
- * @param string $tablename name of table
- * @param string $statement tracked statement
+ * @param string $dbname name of database
+ * @param string $tablename name of table
+ * @param string $statement tracked statement
*
* @return int (-1 if no version exists | > 0 if a version exists)
*/
@@ -581,9 +581,9 @@ class PMA_Tracker
*
* @static
*
- * @param string $dbname name of database
- * @param string $tablename name of table
- * @param string $version version number
+ * @param string $dbname name of database
+ * @param string $tablename name of table
+ * @param string $version version number
*
* @return mixed record DDM log, DDL log, structure snapshot, tracked statements.
*/
@@ -892,7 +892,7 @@ class PMA_Tracker
*
*
* @static
- * @param string $query a SQL query
+ * @param string $query a SQL query
*/
static public function handleQuery($query)
{
diff --git a/libraries/blowfish.php b/libraries/blowfish.php
index 710015f..69abf52 100644
--- a/libraries/blowfish.php
+++ b/libraries/blowfish.php
@@ -483,8 +483,8 @@ class Horde_Cipher_blowfish
/**
* Encryption using blowfish algorithm
*
- * @param string original data
- * @param string the secret
+ * @param string original data
+ * @param string the secret
*
* @return string the encrypted result
*
@@ -511,8 +511,8 @@ function PMA_blowfish_encrypt($data, $secret)
/**
* Decryption using blowfish algorithm
*
- * @param string encrypted data
- * @param string the secret
+ * @param string encrypted data
+ * @param string the secret
*
* @return string original data
*
diff --git a/libraries/bookmark.lib.php b/libraries/bookmark.lib.php
index c978730..723b042 100644
--- a/libraries/bookmark.lib.php
+++ b/libraries/bookmark.lib.php
@@ -41,7 +41,7 @@ function PMA_Bookmark_getParams()
*
* @global resource the controluser db connection handle
*
- * @param string the current database name
+ * @param string the current database name
*
* @return array the bookmarks list (key as index, label as value)
*
@@ -86,11 +86,11 @@ function PMA_Bookmark_getList($db)
*
* @global resource the controluser db connection handle
*
- * @param string the current database name
- * @param mixed the id of the bookmark to get
- * @param string which field to look up the $id
- * @param boolean true: get all bookmarks regardless of the owning user
- * @param boolean whether to ignore bookmarks with no user
+ * @param string the current database name
+ * @param mixed the id of the bookmark to get
+ * @param string which field to look up the $id
+ * @param boolean true: get all bookmarks regardless of the owning user
+ * @param boolean whether to ignore bookmarks with no user
*
* @return string the sql query
*
@@ -127,9 +127,9 @@ function PMA_Bookmark_get($db, $id, $id_field = 'id', $action_bookmark_all = fal
*
* @global resource the controluser db connection handle
*
- * @param array the properties of the bookmark to add; here,
+ * @param array the properties of the bookmark to add; here,
* $fields['query'] is urlencoded
- * @param boolean whether to make the bookmark available for all users
+ * @param boolean whether to make the bookmark available for all users
*
* @return boolean whether the INSERT succeeds or not
*
@@ -156,8 +156,8 @@ function PMA_Bookmark_save($fields, $all_users = false)
*
* @global resource the controluser db connection handle
*
- * @param string the current database name
- * @param integer the id of the bookmark to get
+ * @param string the current database name
+ * @param integer the id of the bookmark to get
*
* @access public
*/
diff --git a/libraries/charset_conversion.lib.php b/libraries/charset_conversion.lib.php
index 9acd184..b3ae693 100644
--- a/libraries/charset_conversion.lib.php
+++ b/libraries/charset_conversion.lib.php
@@ -58,9 +58,9 @@ if ($PMA_recoding_engine == PMA_CHARSET_ICONV_AIX) {
* Converts encoding of text according to parameters with detected
* conversion function.
*
- * @param string source charset
- * @param string target charset
- * @param string what to convert
+ * @param string source charset
+ * @param string target charset
+ * @param string what to convert
*
* @return string converted text
*
diff --git a/libraries/common.lib.php b/libraries/common.lib.php
index 34d20d9..1607d6e 100644
--- a/libraries/common.lib.php
+++ b/libraries/common.lib.php
@@ -207,7 +207,7 @@ function PMA_escape_mysql_wildcards($name)
* removes slashes before "_" and "%" characters
* Note: This function does not unescape backslashes!
*
- * @param string $name the string to escape
+ * @param string $name the string to escape
* @return string the escaped string
* @access public
*/
@@ -439,9 +439,9 @@ function PMA_showPHPDocu($target) {
/**
* returns HTML for a footnote marker and add the messsage to the footnotes
*
- * @param string $message the error message
- * @param bool $bbcode
- * @param string $type
+ * @param string $message the error message
+ * @param bool $bbcode
+ * @param string $type
* @return string html code for a footnote marker
* @access public
*/
@@ -480,11 +480,11 @@ function PMA_showHint($message, $bbcode = false, $type = 'notice')
/**
* Displays a MySQL error message in the right frame.
*
- * @param string $error_message the error message
- * @param string $the_query the sql query that failed
- * @param bool $is_modify_link whether to show a "modify" link or not
- * @param string $back_url the "back" link url (full path is not required)
- * @param bool $exit EXIT the page?
+ * @param string $error_message the error message
+ * @param string $the_query the sql query that failed
+ * @param bool $is_modify_link whether to show a "modify" link or not
+ * @param string $back_url the "back" link url (full path is not required)
+ * @param bool $exit EXIT the page?
*
* @global string the curent table
* @global string the current db
@@ -630,10 +630,10 @@ function PMA_mysqlDie($error_message = '', $the_query = '',
/**
* returns array with tables of given db with extended information and grouped
*
- * @param string $db name of db
- * @param string $tables name of tables
- * @param integer $limit_offset list offset
- * @param int|bool $limit_count max tables to return
+ * @param string $db name of db
+ * @param string $tables name of tables
+ * @param integer $limit_offset list offset
+ * @param int|bool $limit_count max tables to return
* @return array (recursive) grouped table list
*/
function PMA_getTableList($db, $tables = null, $limit_offset = 0, $limit_count = false)
@@ -760,9 +760,9 @@ function PMA_getTableList($db, $tables = null, $limit_offset = 0, $limit_count =
*
* </code>
*
- * @param mixed $a_name the database, table or field name to "backquote"
+ * @param mixed $a_name the database, table or field name to "backquote"
* or array of it
- * @param boolean $do_it a flag to bypass this function (used by dump
+ * @param boolean $do_it a flag to bypass this function (used by dump
* functions)
* @return mixed the "backquoted" database, table or field name
* @access public
@@ -854,10 +854,10 @@ if (!$jsonly)
* displays the message and the query
* usually the message is the result of the query executed
*
- * @param string $message the message to display
- * @param string $sql_query the query to display
- * @param string $type the type (level) of the message
- * @param boolean $is_view is this a message after a VIEW operation?
+ * @param string $message the message to display
+ * @param string $sql_query the query to display
+ * @param string $type the type (level) of the message
+ * @param boolean $is_view is this a message after a VIEW operation?
* @return string
* @access public
*/
@@ -1237,7 +1237,7 @@ function PMA_profilingSupported()
/**
* Displays a form with the Profiling checkbox
*
- * @param string $sql_query
+ * @param string $sql_query
* @access public
*/
function PMA_profilingCheckbox($sql_query)
@@ -1329,11 +1329,11 @@ function PMA_localizeNumber($value)
* echo PMA_formatNumber(0, 6); // 0
*
* </code>
- * @param double $value the value to format
- * @param integer $digits_left number of digits left of the comma
- * @param integer $digits_right number of digits right of the comma
- * @param boolean $only_down do not reformat numbers below 1
- * @param boolean $noTrailingZero removes trailing zeros right of the comma (default: true)
+ * @param double $value the value to format
+ * @param integer $digits_left number of digits left of the comma
+ * @param integer $digits_right number of digits right of the comma
+ * @param boolean $only_down do not reformat numbers below 1
+ * @param boolean $noTrailingZero removes trailing zeros right of the comma (default: true)
*
* @return string the formatted value and its unit
*
@@ -1411,7 +1411,7 @@ function PMA_formatNumber($value, $digits_left = 3, $digits_right = 0, $only_dow
/**
* Returns the number of bytes when a formatted size is given
*
- * @param string $formatted_size the size expression (for example 8MB)
+ * @param string $formatted_size the size expression (for example 8MB)
* @return integer The numerical part of the expression (for example 8)
*/
function PMA_extractValueFromFormattedSize($formatted_size)
@@ -1500,8 +1500,8 @@ function PMA_localisedDate($timestamp = -1, $format = '')
* returns a tab for tabbed navigation.
* If the variables $link and $args ar left empty, an inactive tab is created
*
- * @param array $tab array with all options
- * @param array $url_params
+ * @param array $tab array with all options
+ * @param array $url_params
* @return string html code for one tab, a link if valid otherwise a span
* @access public
*/
@@ -1599,8 +1599,8 @@ function PMA_generate_html_tab($tab, $url_params = array(), $base_dir='')
/**
* returns html-code for a tab navigation
*
- * @param array $tabs one element per tab
- * @param string $url_params
+ * @param array $tabs one element per tab
+ * @param string $url_params
* @return string html-code for tab-navigation
*/
function PMA_generate_html_tabs($tabs, $url_params, $base_dir='')
@@ -1627,14 +1627,14 @@ function PMA_generate_html_tabs($tabs, $url_params, $base_dir='')
* Displays a link, or a button if the link's URL is too large, to
* accommodate some browsers' limitations
*
- * @param string $url the URL
- * @param string $message the link message
- * @param mixed $tag_params string: js confirmation
+ * @param string $url the URL
+ * @param string $message the link message
+ * @param mixed $tag_params string: js confirmation
* array: additional tag params (f.e. style="")
- * @param boolean $new_form we set this to false when we are already in
+ * @param boolean $new_form we set this to false when we are already in
* a form, to avoid generating nested forms
- * @param boolean $strip_img
- * @param string $target
+ * @param boolean $strip_img
+ * @param string $target
*
* @return string the results to be echoed or saved in an array
*/
@@ -1762,7 +1762,7 @@ function PMA_linkOrButton($url, $message, $tag_params = array(),
/**
* Returns a given timespan value in a readable format.
*
- * @param int $seconds the timespan
+ * @param int $seconds the timespan
*
* @return string the formatted value
*/
@@ -1791,8 +1791,8 @@ function PMA_timespanFormat($seconds)
* http://sf.net/tracker/?func=detail&aid=544361&group_id=23067&atid=377411
*
* @todo add a multibyte safe function PMA_STR_split()
- * @param string $string The string
- * @param string $Separator The Separator (defaults to "<br />\n")
+ * @param string $string The string
+ * @param string $Separator The Separator (defaults to "<br />\n")
*
* @access public
* @return string The flipped string
@@ -1838,11 +1838,11 @@ function PMA_flipstring($string, $Separator = "<br />\n")
* would have to check if the error message file is always available
*
* @todo use PMA_fatalError() if $die === true?
- * @param array $params The names of the parameters needed by the calling script.
- * @param bool $die Stop the execution?
+ * @param array $params The names of the parameters needed by the calling script.
+ * @param bool $die Stop the execution?
* (Set this manually to false in the calling script
* until you know all needed parameters to check).
- * @param bool $request Whether to include this list in checking for special params.
+ * @param bool $request Whether to include this list in checking for special params.
* @global string path to current script
* @global boolean flag whether any special variable was required
*
@@ -1889,11 +1889,11 @@ function PMA_checkParameters($params, $die = true, $request = true)
/**
* Function to generate unique condition for specified row.
*
- * @param resource $handle current query result
- * @param integer $fields_cnt number of fields
- * @param array $fields_meta meta information about fields
- * @param array $row current row
- * @param boolean $force_unique generate condition only on pk or unique
+ * @param resource $handle current query result
+ * @param integer $fields_cnt number of fields
+ * @param array $fields_meta meta information about fields
+ * @param array $row current row
+ * @param boolean $force_unique generate condition only on pk or unique
*
* @access public
* @return array the calculated condition and whether condition is unique
@@ -2011,12 +2011,12 @@ function PMA_getUniqueCondition($handle, $fields_cnt, $fields_meta, $row, $force
/**
* Generate a button or image tag
*
- * @param string $button_name name of button element
- * @param string $button_class class of button element
- * @param string $image_name name of image element
- * @param string $text text to display
- * @param string $image image to display
- * @param string $value
+ * @param string $button_name name of button element
+ * @param string $button_class class of button element
+ * @param string $image_name name of image element
+ * @param string $text text to display
+ * @param string $image image to display
+ * @param string $value
*
* @access public
*/
@@ -2052,17 +2052,17 @@ function PMA_buttonOrImage($button_name, $button_class, $image_name, $text,
/**
* Generate a pagination selector for browsing resultsets
*
- * @param int $rows Number of rows in the pagination set
- * @param int $pageNow current page number
- * @param int $nbTotalPage number of total pages
- * @param int $showAll If the number of pages is lower than this
+ * @param int $rows Number of rows in the pagination set
+ * @param int $pageNow current page number
+ * @param int $nbTotalPage number of total pages
+ * @param int $showAll If the number of pages is lower than this
* variable, no pages will be omitted in pagination
- * @param int $sliceStart How many rows at the beginning should always be shown?
- * @param int $sliceEnd How many rows at the end should always be shown?
- * @param int $percent Percentage of calculation page offsets to hop to a next page
- * @param int $range Near the current page, how many pages should
+ * @param int $sliceStart How many rows at the beginning should always be shown?
+ * @param int $sliceEnd How many rows at the end should always be shown?
+ * @param int $percent Percentage of calculation page offsets to hop to a next page
+ * @param int $range Near the current page, how many pages should
* be considered "nearby" and displayed as well?
- * @param string $prompt The prompt to display (sometimes empty)
+ * @param string $prompt The prompt to display (sometimes empty)
*
* @return string
* @access public
@@ -2151,12 +2151,12 @@ function PMA_pageselector($rows, $pageNow = 1, $nbTotalPage = 1,
* Generate navigation for a list
*
* @todo use $pos from $_url_params
- * @param int $count number of elements in the list
- * @param int $pos current position in the list
- * @param array $_url_params url parameters
- * @param string $script script name for form target
- * @param string $frame target frame
- * @param int $max_count maximum number of elements to display from the list
+ * @param int $count number of elements in the list
+ * @param int $pos current position in the list
+ * @param array $_url_params url parameters
+ * @param string $script script name for form target
+ * @param string $frame target frame
+ * @param int $max_count maximum number of elements to display from the list
*
* @access public
*/
@@ -2238,7 +2238,7 @@ function PMA_listNavigator($count, $pos, $_url_params, $script, $frame, $max_cou
* $user_dir = PMA_userDir('/var/pma_tmp/%u/'); // '/var/pma_tmp/root/'
*
* </code>
- * @param string $dir with wildcard for user
+ * @param string $dir with wildcard for user
* @return string per user directory
*/
function PMA_userDir($dir)
@@ -2254,7 +2254,7 @@ function PMA_userDir($dir)
/**
* returns html code for db link to default db page
*
- * @param string $database
+ * @param string $database
* @return string html link to default db page
*/
function PMA_getDbLink($database = null)
@@ -2277,10 +2277,10 @@ function PMA_getDbLink($database = null)
* Displays a lightbulb hint explaining a known external bug
* that affects a functionality
*
- * @param string $functionality localized message explaining the func.
- * @param string $component 'mysql' (eventually, 'php')
- * @param string $minimum_version of this component
- * @param string $bugref bug reference for this component
+ * @param string $functionality localized message explaining the func.
+ * @param string $component 'mysql' (eventually, 'php')
+ * @param string $minimum_version of this component
+ * @param string $bugref bug reference for this component
*/
function PMA_externalBug($functionality, $component, $minimum_version, $bugref)
{
@@ -2292,10 +2292,10 @@ function PMA_externalBug($functionality, $component, $minimum_version, $bugref)
/**
* Generates and echoes an HTML checkbox
*
- * @param string $html_field_name the checkbox HTML field
- * @param string $label
- * @param boolean $checked is it initially checked?
- * @param boolean $onclick should it submit the form on click?
+ * @param string $html_field_name the checkbox HTML field
+ * @param string $label
+ * @param boolean $checked is it initially checked?
+ * @param boolean $onclick should it submit the form on click?
*/
function PMA_display_html_checkbox($html_field_name, $label, $checked, $onclick) {
@@ -2305,12 +2305,12 @@ function PMA_display_html_checkbox($html_field_name, $label, $checked, $onclick)
/**
* Generates and echoes a set of radio HTML fields
*
- * @param string $html_field_name the radio HTML field
- * @param array $choices the choices values and labels
- * @param string $checked_choice the choice to check by default
- * @param boolean $line_break whether to add an HTML line break after a choice
- * @param boolean $escape_label whether to use htmlspecialchars() on label
- * @param string $class enclose each choice with a div of this class
+ * @param string $html_field_name the radio HTML field
+ * @param array $choices the choices values and labels
+ * @param string $checked_choice the choice to check by default
+ * @param boolean $line_break whether to add an HTML line break after a choice
+ * @param boolean $escape_label whether to use htmlspecialchars() on label
+ * @param string $class enclose each choice with a div of this class
*/
function PMA_display_html_radio($html_field_name, $choices, $checked_choice = '', $line_break = true, $escape_label = true, $class='') {
foreach ($choices as $choice_value => $choice_label) {
@@ -2337,10 +2337,10 @@ function PMA_display_html_radio($html_field_name, $choices, $checked_choice = ''
/**
* Generates and returns an HTML dropdown
*
- * @param string $select_name
- * @param array $choices choices values
- * @param string $active_choice the choice to select by default
- * @param string $id id of the select element; can be different in case
+ * @param string $select_name
+ * @param array $choices choices values
+ * @param string $active_choice the choice to select by default
+ * @param string $id id of the select element; can be different in case
* the dropdown is present more than once on the page
* @return string
* @todo support titles
@@ -2365,8 +2365,8 @@ function PMA_generate_html_dropdown($select_name, $choices, $active_choice, $id)
* controlling the slider; you have to generate the </div> yourself
* after the sliding section.
*
- * @param string $id the id of the <div> on which to apply the effect
- * @param string $message the message to show as a link
+ * @param string $id the id of the <div> on which to apply the effect
+ * @param string $message the message to show as a link
*/
function PMA_generate_slider_effect($id, $message)
{
@@ -2389,10 +2389,10 @@ function PMA_generate_slider_effect($id, $message)
/**
* Creates an AJAX sliding toggle button (or and equivalent form when AJAX is disabled)
*
- * @param string $action The URL for the request to be executed
- * @param string $select_name The name for the dropdown box
- * @param array $options An array of options (see rte_footer.lib.php)
- * @param string $callback A JS snippet to execute when the request is
+ * @param string $action The URL for the request to be executed
+ * @param string $select_name The name for the dropdown box
+ * @param array $options An array of options (see rte_footer.lib.php)
+ * @param string $callback A JS snippet to execute when the request is
* successfully processed
*
* @return string HTML code for the toggle button
@@ -2543,8 +2543,8 @@ function PMA_cacheUnset($var, $server = 0)
* in MySQL a BIT field can be from 1 to 64 bits so we need this
* function because in PHP, decbin() supports only 32 bits
*
- * @param numeric $value coming from a BIT field
- * @param integer $length
+ * @param numeric $value coming from a BIT field
+ * @param integer $length
* @return string the printable value
*/
function PMA_printable_bit_value($value, $length) {
@@ -2559,7 +2559,7 @@ function PMA_printable_bit_value($value, $length) {
/**
* Verifies whether the value contains a non-printable character
*
- * @param string $value
+ * @param string $value
* @return boolean
*/
function PMA_contains_nonprintable_ascii($value) {
@@ -2570,7 +2570,7 @@ function PMA_contains_nonprintable_ascii($value) {
* Converts a BIT type default value
* for example, b'010' becomes 010
*
- * @param string $bit_default_value
+ * @param string $bit_default_value
* @return string the converted value
*/
function PMA_convert_bit_default_value($bit_default_value) {
@@ -2580,7 +2580,7 @@ function PMA_convert_bit_default_value($bit_default_value) {
/**
* Extracts the various parts from a field type spec
*
- * @param string $fieldspec
+ * @param string $fieldspec
* @return array associative array containing type, spec_in_brackets
* and possibly enum_set_values (another array)
*/
@@ -2656,7 +2656,7 @@ function PMA_extractFieldSpec($fieldspec) {
/**
* Verifies if this table's engine supports foreign keys
*
- * @param string $engine
+ * @param string $engine
* @return boolean
*/
function PMA_foreignkey_supported($engine) {
@@ -2671,7 +2671,7 @@ function PMA_foreignkey_supported($engine) {
/**
* Replaces some characters by a displayable equivalent
*
- * @param string $content
+ * @param string $content
* @return string the content with characters replaced
*/
function PMA_replace_binary_contents($content) {
@@ -2798,9 +2798,9 @@ function PMA_expandUserString($string, $escape = null, $updates = array()) {
* function that generates a json output for an ajax request and ends script
* execution
*
- * @param bool $message message string containing the html of the message
- * @param bool $success success whether the ajax request was successfull
- * @param array $extra_data extra_data optional - any other data as part of the json request
+ * @param bool $message message string containing the html of the message
+ * @param bool $success success whether the ajax request was successfull
+ * @param array $extra_data extra_data optional - any other data as part of the json request
*
*/
function PMA_ajaxResponse($message, $success = true, $extra_data = array())
@@ -2924,8 +2924,8 @@ function PMA_buildActionTitles() {
* $cfg['ColumnTypes'] and either returns an array (useful for quickly checking
* if a datatype is supported) or an HTML snippet that creates a drop-down list.
*
- * @param bool $html Whether to generate an html snippet or an array
- * @param string $selected The value to mark as selected in HTML mode
+ * @param bool $html Whether to generate an html snippet or an array
+ * @param string $selected The value to mark as selected in HTML mode
*
* @return mixed An HTML snippet or an array of datatypes.
*
@@ -3007,9 +3007,9 @@ function PMA_unsupportedDatatypes() {
/**
* Creates a dropdown box with MySQL functions for a particular column.
*
- * @param array $field Data about the column for which
+ * @param array $field Data about the column for which
* to generate the dropdown
- * @param bool $insert_mode Whether the operation is 'insert'
+ * @param bool $insert_mode Whether the operation is 'insert'
*
* @global array $cfg PMA configuration
* @global array $analyzed_sql Analyzed SQL query
@@ -3112,10 +3112,10 @@ function PMA_getFunctionsForField($field, $insert_mode)
* // user has this privilege on database 'mydb'.
*
*
- * @param string $priv The privilege to check
- * @param mixed $db null, to only check global privileges
+ * @param string $priv The privilege to check
+ * @param mixed $db null, to only check global privileges
* string, db name where to also check for privileges
- * @param mixed $tbl null, to only check global privileges
+ * @param mixed $tbl null, to only check global privileges
* string, db name where to also check for privileges
* @return bool
*/
diff --git a/libraries/core.lib.php b/libraries/core.lib.php
index fe533e3..bb542ba 100644
--- a/libraries/core.lib.php
+++ b/libraries/core.lib.php
@@ -30,9 +30,9 @@
* </code>
*
* @see PMA_isValid()
- * @param mixed $var param to check
- * @param mixed $default default value
- * @param mixed $type var type or array of values to check against $var
+ * @param mixed $var param to check
+ * @param mixed $default default value
+ * @param mixed $type var type or array of values to check against $var
* @return mixed $var or $default
*/
function PMA_ifSetOr(&$var, $default = null, $type = 'similar')
@@ -80,9 +80,9 @@ function PMA_ifSetOr(&$var, $default = null, $type = 'similar')
* @todo create some testsuites
* @todo add some more var types like hex, bin, ...?
* @see http://php.net/gettype
- * @param mixed $var variable to check
- * @param mixed $type var type or array of valid values to check against $var
- * @param mixed $compare var to compare with $var
+ * @param mixed $var variable to check
+ * @param mixed $type var type or array of valid values to check against $var
+ * @param mixed $compare var to compare with $var
* @return boolean whether valid or not
*/
function PMA_isValid(&$var, $type = 'length', $compare = null)
@@ -171,7 +171,7 @@ function PMA_isValid(&$var, $type = 'length', $compare = null)
* require() when a part of the path comes from an insecure source
* like a cookie or form.
*
- * @param string The path to check
+ * @param string The path to check
*
* @return string The secured path
*
@@ -192,8 +192,8 @@ function PMA_securePath($path)
* loads language file if not loaded already
*
* @todo use detected argument separator (PMA_Config)
- * @param string $error_message the error message or named error message
- * @param string|array $message_args arguments applied to $error_message
+ * @param string $error_message the error message or named error message
+ * @param string|array $message_args arguments applied to $error_message
* @return exit
*/
function PMA_fatalError($error_message, $message_args = null)
@@ -276,7 +276,7 @@ function PMA_warnMissingExtension($extension, $fatal = false, $extra = '')
/**
* returns count of tables in given db
*
- * @param string $db database to count tables for
+ * @param string $db database to count tables for
* @return integer count of tables in $db
*/
function PMA_getTableCount($db)
@@ -308,7 +308,7 @@ function PMA_getTableCount($db)
* (renamed with PMA prefix to avoid double definition when embedded
* in Moodle)
*
- * @param string $size
+ * @param string $size
* @return integer $size
*/
function PMA_get_real_size($size = 0)
@@ -343,9 +343,9 @@ function PMA_get_real_size($size = 0)
*
* @see http://php.net/array_merge
* @see http://php.net/array_merge_recursive
- * @param array array to merge
- * @param array array to merge
- * @param array ...
+ * @param array array to merge
+ * @param array array to merge
+ * @param array ...
* @return array merged array
*/
function PMA_array_merge_recursive()
@@ -398,8 +398,8 @@ function PMA_array_merge_recursive()
* @see http://www.php-security.org/MOPB/MOPB-02-2007.html
* @see http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-1549
*
- * @param array $array array to walk
- * @param string $function function to call for every array element
+ * @param array $array array to walk
+ * @param string $function function to call for every array element
*/
function PMA_arrayWalkRecursive(&$array, $function, $apply_to_keys_also = false)
{
@@ -431,8 +431,8 @@ function PMA_arrayWalkRecursive(&$array, $function, $apply_to_keys_also = false)
* checks given given $page against given $whitelist and returns true if valid
* it ignores optionaly query paramters in $page (script.php?ignored)
*
- * @param string &$page page to check
- * @param array $whitelist whitelist to check page against
+ * @param string &$page page to check
+ * @param array $whitelist whitelist to check page against
* @return boolean whether $page is valid or not (in $whitelist or not)
*/
function PMA_checkPageValidity(&$page, $whitelist)
@@ -460,7 +460,7 @@ function PMA_checkPageValidity(&$page, $whitelist)
* searchs in $_SERVER, $_ENV than trys getenv() and apache_getenv()
* in this order
*
- * @param string $var_name variable name
+ * @param string $var_name variable name
* @return string value of $var or empty string
*/
function PMA_getenv($var_name) {
@@ -481,7 +481,7 @@ function PMA_getenv($var_name) {
/**
* Send HTTP header, taking IIS limits into account (600 seems ok)
*
- * @param string $uri the header to send
+ * @param string $uri the header to send
* @return boolean always true
*/
function PMA_sendHeaderLocation($uri)
@@ -542,9 +542,9 @@ function PMA_sendHeaderLocation($uri)
* $path is a string describing position of an element in an associative array,
* eg. Servers/1/host refers to $array[Servers][1][host]
*
- * @param string $path
- * @param array $array
- * @param mixed $default
+ * @param string $path
+ * @param array $array
+ * @param mixed $default
* @return mixed array element or $default
*/
function PMA_array_read($path, $array, $default = null)
@@ -563,9 +563,9 @@ function PMA_array_read($path, $array, $default = null)
/**
* Stores value in an array
*
- * @param string $path
- * @param array &$array
- * @param mixed $value
+ * @param string $path
+ * @param array &$array
+ * @param mixed $value
*/
function PMA_array_write($path, &$array, $value)
{
@@ -584,9 +584,9 @@ function PMA_array_write($path, &$array, $value)
/**
* Removes value from an array
*
- * @param string $path
- * @param array &$array
- * @param mixed $value
+ * @param string $path
+ * @param array &$array
+ * @param mixed $value
*/
function PMA_array_remove($path, &$array)
{
diff --git a/libraries/database_interface.lib.php b/libraries/database_interface.lib.php
index e7d08a5..42bd352 100644
--- a/libraries/database_interface.lib.php
+++ b/libraries/database_interface.lib.php
@@ -22,7 +22,7 @@ define('PMA_DBI_GETVAR_GLOBAL', 2);
/**
* Checks one of the mysql extensions
*
- * @param string $extension mysql extension to check
+ * @param string $extension mysql extension to check
*/
function PMA_DBI_checkMysqlExtension($extension = 'mysql') {
if (! function_exists($extension . '_connect')) {
@@ -145,7 +145,7 @@ function PMA_DBI_try_query($query, $link = null, $options = 0, $cache_affected_r
* uses language to charset mapping from mysql/share/errmsg.txt
* and charset names to ISO charset from information_schema.CHARACTER_SETS
*
- * @param string $message
+ * @param string $message
* @return string $message
*/
function PMA_DBI_convert_message($message) {
@@ -218,8 +218,8 @@ function PMA_DBI_convert_message($message) {
/**
* returns array with table names for given db
*
- * @param string $database name of database
- * @param mixed $link mysql link resource|object
+ * @param string $database name of database
+ * @param mixed $link mysql link resource|object
* @return array tables names
*/
function PMA_DBI_get_tables($database, $link = null)
@@ -231,8 +231,8 @@ function PMA_DBI_get_tables($database, $link = null)
/**
* usort comparison callback
*
- * @param string $a first argument to sort
- * @param string $b second argument to sort
+ * @param string $a first argument to sort
+ * @param string $b second argument to sort
*
* @return integer a value representing whether $a should be before $b in the
* sorted array or not
@@ -275,14 +275,14 @@ function PMA_usort_comparison_callback($a, $b)
* </code>
*
* @todo move into PMA_Table
- * @param string $database database
- * @param string|false $table table
- * @param boolean|string $tbl_is_group $table is a table group
- * @param resource $link mysql link
- * @param integer $limit_offset zero-based offset for the count
- * @param boolean|integer $limit_count number of tables to return
- * @param string $sort_by table attribute to sort by
- * @param string $sort_order direction to sort (ASC or DESC)
+ * @param string $database database
+ * @param string|false $table table
+ * @param boolean|string $tbl_is_group $table is a table group
+ * @param resource $link mysql link
+ * @param integer $limit_offset zero-based offset for the count
+ * @param boolean|integer $limit_count number of tables to return
+ * @param string $sort_by table attribute to sort by
+ * @param string $sort_order direction to sort (ASC or DESC)
* @return array list of tables in given db(s)
*/
function PMA_DBI_get_tables_full($database, $table = false, $tbl_is_group = false, $link = null,
@@ -526,13 +526,13 @@ function PMA_DBI_get_tables_full($database, $table = false, $tbl_is_group = fals
* returns array with databases containing extended infos about them
*
* @todo move into PMA_List_Database?
- * @param string $database database
- * @param boolean $force_stats retrieve stats also for MySQL < 5
- * @param resource $link mysql link
- * @param string $sort_by column to order by
- * @param string $sort_order ASC or DESC
- * @param integer $limit_offset starting offset for LIMIT
- * @param bool|int $limit_count row count for LIMIT or true for $GLOBALS['cfg']['MaxDbList']
+ * @param string $database database
+ * @param boolean $force_stats retrieve stats also for MySQL < 5
+ * @param resource $link mysql link
+ * @param string $sort_by column to order by
+ * @param string $sort_order ASC or DESC
+ * @param integer $limit_offset starting offset for LIMIT
+ * @param bool|int $limit_count row count for LIMIT or true for $GLOBALS['cfg']['MaxDbList']
* @return array $databases
*/
function PMA_DBI_get_databases_full($database = null, $force_stats = false,
@@ -698,10 +698,10 @@ function PMA_DBI_get_databases_full($database = null, $force_stats = false,
* returns detailed array with all columns for given table in database,
* or all tables/databases
*
- * @param string $database name of database
- * @param string $table name of table to retrieve columns from
- * @param string $column name of specific column
- * @param mixed $link mysql link resource
+ * @param string $database name of database
+ * @param string $table name of table to retrieve columns from
+ * @param string $column name of specific column
+ * @param mixed $link mysql link resource
* @return array
*/
function PMA_DBI_get_columns_full($database = null, $table = null,
@@ -825,10 +825,10 @@ function PMA_DBI_get_columns_full($database = null, $table = null,
/**
* array PMA_DBI_get_columns(string $database, string $table, bool $full = false, mysql db link $link = null)
*
- * @param string $database name of database
- * @param string $table name of table to retrieve columns from
- * @param boolean $full whether to return full info or only column names
- * @param mixed $link mysql link resource
+ * @param string $database name of database
+ * @param string $table name of table to retrieve columns from
+ * @param boolean $full whether to return full info or only column names
+ * @param mixed $link mysql link resource
* @return array column names
*/
function PMA_DBI_get_columns($database, $table, $full = false, $link = null)
@@ -846,9 +846,9 @@ function PMA_DBI_get_columns($database, $table, $full = false, $link = null)
/**
* returns value of given mysql server variable
*
- * @param string $var mysql server variable name
- * @param int $type PMA_DBI_GETVAR_SESSION|PMA_DBI_GETVAR_GLOBAL
- * @param mixed $link mysql link resource|object
+ * @param string $var mysql server variable name
+ * @param int $type PMA_DBI_GETVAR_SESSION|PMA_DBI_GETVAR_GLOBAL
+ * @param mixed $link mysql link resource|object
* @return mixed value for mysql server variable
*/
@@ -881,8 +881,8 @@ function PMA_DBI_get_variable($var, $type = PMA_DBI_GETVAR_SESSION, $link = null
* Function called just after a connection to the MySQL database server has been established
* It sets the connection collation, and determins the version of MySQL which is running.
*
- * @param mixed $link mysql link resource|object
- * @param boolean $is_controluser
+ * @param mixed $link mysql link resource|object
+ * @param boolean $is_controluser
*/
function PMA_DBI_postConnect($link, $is_controluser = false)
{
@@ -938,13 +938,13 @@ function PMA_DBI_postConnect($link, $is_controluser = false)
* // $user_name = 'John Doe'
* </code>
*
- * @param string|mysql_result $result query or mysql result
- * @param integer $row_number row to fetch the value from,
+ * @param string|mysql_result $result query or mysql result
+ * @param integer $row_number row to fetch the value from,
* starting at 0, with 0 beeing default
- * @param integer|string $field field to fetch the value from,
+ * @param integer|string $field field to fetch the value from,
* starting at 0, with 0 beeing default
- * @param resource $link mysql link
- * @param mixed $options
+ * @param resource $link mysql link
+ * @param mixed $options
* @return mixed value of first field in first row from result
* or false if not found
*/
@@ -993,12 +993,12 @@ function PMA_DBI_fetch_value($result, $row_number = 0, $field = 0, $link = null,
* // $user = array('id' => 123, 'name' => 'John Doe')
* </code>
*
- * @param string|mysql_result $result query or mysql result
- * @param string $type NUM|ASSOC|BOTH
+ * @param string|mysql_result $result query or mysql result
+ * @param string $type NUM|ASSOC|BOTH
* returned array should either numeric
* associativ or booth
- * @param resource $link mysql link
- * @param mixed $options
+ * @param resource $link mysql link
+ * @param mixed $options
* @return array|boolean first row from result
* or false if result is empty
*/
@@ -1072,13 +1072,13 @@ function PMA_DBI_fetch_single_row($result, $type = 'ASSOC', $link = null, $optio
* // $users['admin']['John Doe'] = '123'
* </code>
*
- * @param string|mysql_result $result query or mysql result
- * @param string|integer $key field-name or offset
+ * @param string|mysql_result $result query or mysql result
+ * @param string|integer $key field-name or offset
* used as key for array
- * @param string|integer $value value-name or offset
+ * @param string|integer $value value-name or offset
* used as value for array
- * @param resource $link mysql link
- * @param mixed $options
+ * @param resource $link mysql link
+ * @param mixed $options
* @return array resultrows or values indexed by $key
*/
function PMA_DBI_fetch_result($result, $key = null, $value = null,
@@ -1202,7 +1202,7 @@ function PMA_DBI_getCompatibilities()
/**
* returns warnings for last query
*
- * @param resource $link mysql link resource
+ * @param resource $link mysql link resource
* @return array warnings
*/
function PMA_DBI_get_warnings($link = null)
@@ -1245,9 +1245,9 @@ function PMA_isSuperuser()
/**
* returns an array of PROCEDURE or FUNCTION names for a db
*
- * @param string $db db name
- * @param string $which PROCEDURE | FUNCTION
- * @param resource $link mysql link
+ * @param string $db db name
+ * @param string $which PROCEDURE | FUNCTION
+ * @param resource $link mysql link
*
* @return array the procedure names or function names
*/
@@ -1266,10 +1266,10 @@ function PMA_DBI_get_procedures_or_functions($db, $which, $link = null)
/**
* returns the definition of a specific PROCEDURE, FUNCTION or EVENT
*
- * @param string $db db name
- * @param string $which PROCEDURE | FUNCTION | EVENT
- * @param string $name the procedure|function|event name
- * @param resource $link mysql link
+ * @param string $db db name
+ * @param string $which PROCEDURE | FUNCTION | EVENT
+ * @param string $name the procedure|function|event name
+ * @param resource $link mysql link
*
* @return string the definition
*/
@@ -1287,9 +1287,9 @@ function PMA_DBI_get_definition($db, $which, $name, $link = null)
/**
* returns details about the TRIGGERs for a specific table or database
*
- * @param string $db db name
- * @param string $table table name
- * @param string $delimiter the delimiter to use (may be empty)
+ * @param string $db db name
+ * @param string $table tabl me delimiter to use (may be empty) null) null) $optio ull) abel = true, $class='') { find out why click %shere%s.') ɣ�� �����* �D���* ����* �� �* ɣ�� ��4 �* ���� ��� �����* 6 � �! �! �ȣ�� ɣ�� xt �* ���� "����* ����* �ȣ�� �����* �ȣ�� �ov �* �����* `v �* �dv �* �iv �* �D���* xt �* ���� ��� �����* �! �! �ȣ�� ɣ�� �=���* ���� "����* ����* �ȣ�� �����* �ȣ�� �ȣ�� �ȣ�� ���* �p� ɣ�� �����* �D���* ���� о��� �����* G H I J K M N O P �ȣ�� ɣ�� H����* ����� "����* ����* �ȣ�� 0ov �* �����* � �* �)���* `v �* �dv �* �iv �* �D���* H����* ����� �� �����* 8����* ����� ���� �����* (����* ����� @���� �����* ����* ����� p���� �����* �nv �* �����* �iv �* ��� �x���* �����* �dv �* ���� yx���* �����* `v �* @���� Zx���* �����* �$���* � �* �)���* `v �* �* �dv �* �iv �* �D���* �m���* �£�� ����� �����* # % '