Merge branch 'master' of git://phpmyadmin.git.sourceforge.net/gitroot/phpmyadmin/phpmyadmin into OpenGIS
This commit is contained in:
commit
4ee9d48346
@ -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
|
||||
*/
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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
|
||||
*/
|
||||
|
||||
499
po/be@latin.po
499
po/be@latin.po
File diff suppressed because it is too large
Load Diff
505
po/en_GB.po
505
po/en_GB.po
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
485
po/pt_BR.po
485
po/pt_BR.po
File diff suppressed because it is too large
Load Diff
487
po/sr@latin.po
487
po/sr@latin.po
File diff suppressed because it is too large
Load Diff
517
po/uz@latin.po
517
po/uz@latin.po
File diff suppressed because it is too large
Load Diff
487
po/zh_CN.po
487
po/zh_CN.po
File diff suppressed because it is too large
Load Diff
483
po/zh_TW.po
483
po/zh_TW.po
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user