rfe #1775288 [transformation] proper display if IP-address stored as INT
This commit is contained in:
@@ -19,6 +19,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
|
|||||||
that it might later support other formats like JSON in the same plugin
|
that it might later support other formats like JSON in the same plugin
|
||||||
+ [lang] Finnish update, thanks to Jouni Kahkonen
|
+ [lang] Finnish update, thanks to Jouni Kahkonen
|
||||||
+ [config] new parameter $cfg['CheckConfigurationPermissions']
|
+ [config] new parameter $cfg['CheckConfigurationPermissions']
|
||||||
|
+ rfe #1775288 [transformation] proper display if IP-address stored as INT
|
||||||
|
|
||||||
2.11.4.0 (not yet released)
|
2.11.4.0 (not yet released)
|
||||||
- bug #1843428 [GUI] Space issue with DROP/DELETE/ALTER TABLE
|
- bug #1843428 [GUI] Space issue with DROP/DELETE/ALTER TABLE
|
||||||
|
22
libraries/transformations/text_plain__longToIpv4.inc.php
Normal file
22
libraries/transformations/text_plain__longToIpv4.inc.php
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @version $Id: text_plain__dateformat.inc.php 10239 2007-04-01 09:51:41Z cybot_tm $
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* returns IPv4 address
|
||||||
|
*
|
||||||
|
* @see http://php.net/long2ip
|
||||||
|
*/
|
||||||
|
function PMA_transformation_text_plain__longToIpv4($buffer, $options = array(), $meta = '')
|
||||||
|
{
|
||||||
|
if ($buffer < 0 || $buffer > 4294967295) {
|
||||||
|
return $buffer;
|
||||||
|
}
|
||||||
|
|
||||||
|
return long2ip($buffer);
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
Reference in New Issue
Block a user