diff --git a/build.xml b/build.xml index dbea85090d..0bc0cf1a34 100644 --- a/build.xml +++ b/build.xml @@ -113,6 +113,7 @@ + diff --git a/changelog.php b/changelog.php index c216c7fe3d..5066ffe03e 100644 --- a/changelog.php +++ b/changelog.php @@ -49,6 +49,7 @@ $tracker_url_bug = 'https://sourceforge.net/p/phpmyadmin/bugs/\\1/'; $tracker_url_rfe = 'https://sourceforge.net/p/phpmyadmin/feature-requests/\\1/'; $tracker_url_patch = 'https://sourceforge.net/p/phpmyadmin/patches/\\1/'; $github_url = 'https://github.com/phpmyadmin/phpmyadmin/'; +$faq_url = 'http://docs.phpmyadmin.net/en/latest/faq.html'; $replaces = array( '@(http://[./a-zA-Z0-9.-_-]*[/a-zA-Z0-9_])@' @@ -80,7 +81,7 @@ $replaces = array( // FAQ entries '/FAQ ([0-9]+)\.([0-9a-z]+)/i' - => 'FAQ \\1.\\2', + => 'FAQ \\1.\\2', // linking bugs '/bug\s*#?([0-9]{6,})/i' diff --git a/db_tracking.php b/db_tracking.php index df589ed723..b849928843 100644 --- a/db_tracking.php +++ b/db_tracking.php @@ -91,21 +91,13 @@ if ($GLOBALS['dbi']->numRows($all_tables_result) > 0) { // Print out information about versions $drop_image_or_text = ''; - if (in_array( - $GLOBALS['cfg']['ActionLinksMode'], - array('icons', 'both') - ) - ) { + if (PMA_Util::showIcons('ActionLinksMode')) { $drop_image_or_text .= PMA_Util::getImage( 'b_drop.png', __('Delete tracking data for this table') ); } - if (in_array( - $GLOBALS['cfg']['ActionLinksMode'], - array('text', 'both') - ) - ) { + if (PMA_Util::showText('ActionLinksMode')) { $drop_image_or_text .= __('Drop'); } diff --git a/doc/config.rst b/doc/config.rst index 066255162e..e51decd71c 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -2876,6 +2876,14 @@ Developer Enable logging queries and execution times to be displayed in the bottom of main page (right frame). +.. config:option:: $cfg['DBG']['demo'] + + :type: boolean + :default: false + + Enable to let server present itself as demo server. + This is used for . + .. config:option:: $cfg['Error_Handler']['display'] :type: boolean diff --git a/index.php b/index.php index b157512239..e62f6ee230 100644 --- a/index.php +++ b/index.php @@ -110,6 +110,21 @@ echo '
' . "\n"; echo '
'; if ($server > 0 || count($cfg['Servers']) > 1 ) { + if ($cfg['DBG']['demo']) { + echo '
'; + echo '

' . __('phpMyAdmin Demo Server') . '

'; + echo '

'; + printf( + __( + 'You are using the demo server. You can do anything here, but ' + . 'please do not change root, debian-sys-maint and pma users. ' + . 'More information is available at %s.' + ), + 'demo.phpmyadmin.net' + ); + echo '

'; + echo '
'; + } echo '
'; echo '

' . __('General Settings') . '

'; echo '