Merge branch 'master' of git://phpmyadmin.git.sourceforge.net/gitroot/phpmyadmin/phpmyadmin into OpenGIS

This commit is contained in:
Madhura Jayaratne 2011-07-14 19:49:59 +05:30
commit 4ee9d48346
69 changed files with 16121 additions and 15927 deletions

View File

@ -9,6 +9,40 @@ if (! defined('PHPMYADMIN')) {
exit;
}
/**
* Sets required globals
*/
function PMA_EVN_setGlobals()
{
global $event_status, $event_type, $event_interval;
$event_status = array(
'query' => array('ENABLE',
'DISABLE',
'DISABLE ON SLAVE'),
'display' => array('ENABLED',
'DISABLED',
'SLAVESIDE_DISABLED')
);
$event_type = array('RECURRING',
'ONE TIME');
$event_interval = array('YEAR',
'QUARTER',
'MONTH',
'DAY',
'HOUR',
'MINUTE',
'WEEK',
'SECOND',
'YEAR_MONTH',
'DAY_HOUR',
'DAY_MINUTE',
'DAY_SECOND',
'HOUR_MINUTE',
'HOUR_SECOND',
'MINUTE_SECOND');
}
/**
* This function is defined in: rte_routines.lib.php, rte_triggers.lib.php and
* rte_events.lib.php. It is used to retreive some language strings that are
@ -25,7 +59,7 @@ function PMA_RTE_getWord($index)
'docu' => 'EVENTS',
'export' => __('Export of event %s'),
'human' => __('event'),
'no_create' => __('You do not have the necessary privileges to create a new 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'),
@ -40,6 +74,7 @@ function PMA_RTE_main()
{
global $db;
PMA_EVN_setGlobals();
/**
* Process all requests
*/

View File

@ -71,51 +71,6 @@ $titles = PMA_buildActionTitles();
*/
$errors = array();
// Some definitions for triggers
$action_timings = array('BEFORE',
'AFTER');
$event_manipulations = array('INSERT',
'UPDATE',
'DELETE');
// Some definitions for routines
$param_directions = array('IN',
'OUT',
'INOUT');
$param_opts_num = array('UNSIGNED',
'ZEROFILL',
'UNSIGNED ZEROFILL');
$param_sqldataaccess = array('NO SQL',
'CONTAINS SQL',
'READS SQL DATA',
'MODIFIES SQL DATA');
// Some definitions for events
$event_status = array(
'query' => array('ENABLE',
'DISABLE',
'DISABLE ON SLAVE'),
'display' => array('ENABLED',
'DISABLED',
'SLAVESIDE_DISABLED')
);
$event_type = array('RECURRING',
'ONE TIME');
$event_interval = array('YEAR',
'QUARTER',
'MONTH',
'DAY',
'HOUR',
'MINUTE',
'WEEK',
'SECOND',
'YEAR_MONTH',
'DAY_HOUR',
'DAY_MINUTE',
'DAY_SECOND',
'HOUR_MINUTE',
'HOUR_SECOND',
'MINUTE_SECOND');
/**
* The below function is defined in rte_routines.lib.php,
* rte_triggers.lib.php and rte_events.lib.php

View File

@ -9,6 +9,25 @@ if (! defined('PHPMYADMIN')) {
exit;
}
/**
* Sets required globals
*/
function PMA_RTN_setGlobals()
{
global $param_directions, $param_opts_num, $param_sqldataaccess;
$param_directions = array('IN',
'OUT',
'INOUT');
$param_opts_num = array('UNSIGNED',
'ZEROFILL',
'UNSIGNED ZEROFILL');
$param_sqldataaccess = array('NO SQL',
'CONTAINS SQL',
'READS SQL DATA',
'MODIFIES SQL DATA');
}
/**
* This function is defined in: rte_routines.lib.php, rte_triggers.lib.php and
* rte_events.lib.php. It is used to retreive some language strings that are
@ -25,7 +44,7 @@ function PMA_RTE_getWord($index)
'docu' => 'STORED_ROUTINES',
'export' => __('Export of routine %s'),
'human' => __('routine'),
'no_create' => __('You do not have the necessary privileges to create a new 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'),
@ -40,6 +59,7 @@ function PMA_RTE_main()
{
global $db;
PMA_RTN_setGlobals();
/**
* Process all requests
*/
@ -1100,22 +1120,7 @@ function PMA_RTN_getQueryFromRequest()
}
$query .= " (" . $params . ") ";
if ($_REQUEST['item_type'] == 'FUNCTION') {
// Make a flat array with column types
$columnTypes = array();
foreach ($cfg['ColumnTypes'] as $key => $value) {
if (is_array($value)) {
$columnTypes = array_merge($value, $columnTypes);
} else {
$columnTypes[] = $value;
}
}
foreach ($columnTypes as $key => $type) {
if ($type == '-') {
unset($columnTypes[$key]);
}
}
// Search the flat array for the supplied return type
if (! empty($_REQUEST['item_returntype']) && in_array($_REQUEST['item_returntype'], $columnTypes)) {
if (! empty($_REQUEST['item_returntype']) && in_array($_REQUEST['item_returntype'], PMA_getSupportedDatatypes())) {
$query .= "RETURNS {$_REQUEST['item_returntype']}";
} else {
$errors[] = __('You must provide a valid return type for the routine.');
@ -1124,7 +1129,7 @@ function PMA_RTN_getQueryFromRequest()
&& !preg_match('@^(DATE|DATETIME|TIME|TINYBLOB|TINYTEXT|BLOB|TEXT|MEDIUMBLOB|MEDIUMTEXT|LONGBLOB|LONGTEXT|SERIAL|BOOLEAN)$@i',
$_REQUEST['item_returntype'])
) {
$query .= "(" . intval($_REQUEST['item_returnlength']) . ")";
$query .= "(" . $_REQUEST['item_returnlength'] . ")";
} else if (empty($_REQUEST['item_returnlength']) && preg_match('@^(ENUM|SET|VARCHAR|VARBINARY)$@i', $_REQUEST['item_returntype'])) {
if (! $warned_about_length) {
$warned_about_length = true;

View File

@ -9,6 +9,21 @@ if (! defined('PHPMYADMIN')) {
exit;
}
/**
* Sets required globals
*/
function PMA_TRI_setGlobals()
{
global $action_timings, $event_manipulations;
// Some definitions for triggers
$action_timings = array('BEFORE',
'AFTER');
$event_manipulations = array('INSERT',
'UPDATE',
'DELETE');
}
/**
* This function is defined in: rte_routines.lib.php, rte_triggers.lib.php and
* rte_events.lib.php. It is used to retreive some language strings that are
@ -25,7 +40,7 @@ function PMA_RTE_getWord($index)
'docu' => 'TRIGGERS',
'export' => __('Export of trigger %s'),
'human' => __('trigger'),
'no_create' => __('You do not have the necessary privileges to create a new 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'),
@ -40,6 +55,7 @@ function PMA_RTE_main()
{
global $db, $table;
PMA_TRI_setGlobals();
/**
* Process all requests
*/

479
po/af.po

File diff suppressed because it is too large Load Diff

491
po/ar.po

File diff suppressed because it is too large Load Diff

479
po/az.po

File diff suppressed because it is too large Load Diff

487
po/be.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

493
po/bg.po

File diff suppressed because it is too large Load Diff

491
po/bn.po

File diff suppressed because it is too large Load Diff

491
po/br.po

File diff suppressed because it is too large Load Diff

479
po/bs.po

File diff suppressed because it is too large Load Diff

499
po/ca.po

File diff suppressed because it is too large Load Diff

544
po/cs.po

File diff suppressed because it is too large Load Diff

483
po/cy.po

File diff suppressed because it is too large Load Diff

487
po/da.po

File diff suppressed because it is too large Load Diff

493
po/de.po

File diff suppressed because it is too large Load Diff

505
po/el.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

489
po/es.po

File diff suppressed because it is too large Load Diff

479
po/et.po

File diff suppressed because it is too large Load Diff

479
po/eu.po

File diff suppressed because it is too large Load Diff

495
po/fa.po

File diff suppressed because it is too large Load Diff

493
po/fi.po

File diff suppressed because it is too large Load Diff

508
po/fr.po

File diff suppressed because it is too large Load Diff

497
po/gl.po

File diff suppressed because it is too large Load Diff

479
po/he.po

File diff suppressed because it is too large Load Diff

487
po/hi.po

File diff suppressed because it is too large Load Diff

491
po/hr.po

File diff suppressed because it is too large Load Diff

505
po/hu.po

File diff suppressed because it is too large Load Diff

487
po/id.po

File diff suppressed because it is too large Load Diff

495
po/it.po

File diff suppressed because it is too large Load Diff

494
po/ja.po

File diff suppressed because it is too large Load Diff

505
po/ka.po

File diff suppressed because it is too large Load Diff

487
po/ko.po

File diff suppressed because it is too large Load Diff

497
po/lt.po

File diff suppressed because it is too large Load Diff

483
po/lv.po

File diff suppressed because it is too large Load Diff

479
po/mk.po

File diff suppressed because it is too large Load Diff

479
po/ml.po

File diff suppressed because it is too large Load Diff

491
po/mn.po

File diff suppressed because it is too large Load Diff

479
po/ms.po

File diff suppressed because it is too large Load Diff

493
po/nb.po

File diff suppressed because it is too large Load Diff

491
po/nl.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

505
po/pl.po

File diff suppressed because it is too large Load Diff

487
po/pt.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

487
po/ro.po

File diff suppressed because it is too large Load Diff

493
po/ru.po

File diff suppressed because it is too large Load Diff

491
po/si.po

File diff suppressed because it is too large Load Diff

495
po/sk.po

File diff suppressed because it is too large Load Diff

481
po/sl.po

File diff suppressed because it is too large Load Diff

483
po/sq.po

File diff suppressed because it is too large Load Diff

487
po/sr.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

497
po/sv.po

File diff suppressed because it is too large Load Diff

479
po/ta.po

File diff suppressed because it is too large Load Diff

479
po/te.po

File diff suppressed because it is too large Load Diff

483
po/th.po

File diff suppressed because it is too large Load Diff

495
po/tr.po

File diff suppressed because it is too large Load Diff

483
po/tt.po

File diff suppressed because it is too large Load Diff

491
po/ug.po

File diff suppressed because it is too large Load Diff

491
po/uk.po

File diff suppressed because it is too large Load Diff

487
po/ur.po

File diff suppressed because it is too large Load Diff

509
po/uz.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff