WordPress.org

Plugin Directory

Changeset 444745


Ignore:
Timestamp:
09/28/11 12:30:50 (3 years ago)
Author:
butterflymedia
Message:
 
Location:
portable-phpmyadmin/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • portable-phpmyadmin/trunk/readme.txt

    r413704 r444745  
    11=== Portable phpMyAdmin === 
    2 Contributors: butterflymedia 
     2Contributors: butterflymedia, getbutterfly 
    33Tags: phpmyadmin, php, portable, database, mysql, sql, admin 
    44Requires at least: 2.7 
    5 Tested up to: 3.2.1 
    6 Stable tag: 1.2.9.2 
     5Tested up to: 3.3 
     6Stable tag: 1.2.9.3 
    77 
    88== Description == 
     
    1717 
    1818== Changelog == 
     19 
     20= 1.2.9.3 = 
     21* GENERAL: Removed useless MySQL info, also conflicting with other plugins 
     22* GENERAL: Small tweaks 
     23* IMPROVEMENT: Added a small help section 
    1924 
    2025= 1.2.9.2 = 
  • portable-phpmyadmin/trunk/wp-phpmyadmin.php

    r413704 r444745  
    44Plugin URI: http://getbutterfly.com/wordpress-plugins/portable-phpmyadmin/ 
    55Description: Portable phpMyAdmin allows a user to access the phpMyAdmin section straight from the Dashboard. If the user doesn't know the MySQL credentials, the plugin extracts them straight from wp-config.php. This plugin requires PHP 5+. 
    6 Version: 1.2.9.1 
     6Version: 1.2.9.3 
    77Author: Ciprian Popescu 
    88Author URI: http://getbutterfly.com/ 
     
    2828version 2, as published by the Free Software Foundation. 
    2929*/ 
    30 define('PORTABLE_PHPMYADMIN_VERSION', '1.2.9.2'); 
    31 define('ALERTLEVEL',8); //  Alert level. Database size is shown in red if greater than this value (in MB), else in green. 
     30define('PORTABLE_PHPMYADMIN_VERSION', '1.2.9.3'); 
     31define('ALERTLEVEL',8); // Alert level. Database size is shown in red if greater than this value (in MB), else in green. 
     32error_reporting(0); 
    3233 
    3334// 
     
    6263// Calculate DB size by adding table size + index size 
    6364function db_size() { 
    64     $rows = mysql_query("SHOW table STATUS"); $dbsize = 0; 
    65     while ($row = mysql_fetch_array($rows)) { 
     65    $rows = mysql_query('SHOW table STATUS'); 
     66    $dbsize = 0; 
     67    while($row = mysql_fetch_array($rows)) { 
    6668        $dbsize += $row['Data_length'] + $row['Index_length']; 
    6769    } 
     
    7981function add_option_page_portable_phpmyadmin() { 
    8082    add_menu_page('Portable PMA', 'Portable PMA', 'manage_options', __FILE__, 'option_page_portable_phpmyadmin', PMA_PLUGIN_URL.'/images/icon-16.png'); 
    81     add_submenu_page(__FILE__, 'MySQL Info', 'MySQL Info', 'manage_options', 'pma_mysqlinfo', 'option_page_portable_mysqlinfo');  
    82     add_submenu_page(__FILE__, 'About', 'About', 'manage_options', 'pma_about', 'option_page_portable_pmaabout');  
     83    add_submenu_page(__FILE__, 'About/Help', 'About/Help', 'manage_options', 'pma_about', 'option_page_portable_pmaabout');  
    8384} 
    8485 
     
    8990    <h2>Portable phpMyAdmin</h2> 
    9091    <div class="updated fade below-h2" style="background-color: rgb(255, 251, 204);"> 
    91         <p> 
    92             <strong>Important:</strong> You should have a backup of your database before modifying any data. 
    93         </p> 
     92        <p><strong>Important:</strong> You should have a backup of your database before modifying any data.</p> 
    9493    </div> 
    9594 
     
    126125<?php 
    127126} 
    128 function option_page_portable_mysqlinfo() { 
    129     global $wpdb; 
    130     $sqlversion = $wpdb->get_var('SELECT VERSION() AS version'); 
    131     $mysqlinfo = $wpdb->get_results('SHOW VARIABLES'); 
    132     echo '<div class="wrap">'; 
    133     echo '<h2>MYSQL '.$sqlversion.'</h2>'; 
    134     if(isset($mysqlinfo)) { 
    135         echo '<table class="widefat">'; 
    136         echo '<thead><tr><th>Variable Name</th><th>Value</th></tr></thead><tbody>'; 
    137         foreach($mysqlinfo as $info) { 
    138             echo '<tr class="" onmouseover="this.className=\'highlight\'" onmouseout="this.className=\'\'"><td>'.$info->Variable_name.'</td><td>'.htmlspecialchars($info->Value).'</td></tr>'; 
    139         } 
    140         echo '</tbody></table>'; 
    141     } 
    142     echo '</div>'; 
    143 } 
    144127function option_page_portable_pmaabout() {?> 
    145128    <div class="wrap"> 
    146129        <div id="icon-plugins" class="icon32"><br /></div> 
    147130        <h2>About Portable phpMyAdmin</h2> 
    148         <p>Portable phpMyAdmin allows a user to access the phpMyAdmin section straight from the Dashboard. If the user doesn't know the MySQL credentials, the plugin extracts them straight from wp-config.php. This plugin requires PHP 5+. Also, MySQL 5+ is recommended.</p> 
     131        <div class="updated fade below-h2" style="background-color: rgb(255, 251, 204);"> 
     132            <p><strong>Important:</strong> You should have a backup of your database before modifying any data.</p> 
     133        </div> 
     134        <p><strong>Portable phpMyAdmin</strong> allows a user to access the phpMyAdmin section straight from the Dashboard. If the user doesn't know the MySQL credentials, the plugin extracts them straight from wp-config.php. This plugin requires PHP 5+. Also, MySQL 5+ is recommended.</p> 
    149135        <p>Once activated, the plugin extracts MySQL information from the database and displays it on a separate page.</p> 
    150136        <p><strong>Remember:</strong> Always have a backup of your database before modifying any data! You should also make your blog inaccessible during database editing by activating the maintenance mode!</p> 
    151         <p>Portable phpMyAdmin is based on phpMyAdmin 2.10.3.0 (2007-07-20) with several fixes and enhancements.</p> 
     137 
     138        <h3>Help</h3> 
     139        <p>If phpMyAdmin is unable to connect to your database, it means your host is different than <em><strong>localhost</strong></em>, the default name assumed by this plugin. Please edit <code>wp-content\plugins\portable-phpmyadmin\wp-pma-mod\config.php</code> and add your host at line 51, <code>$cfg['Servers'][$i]['host'] = WP_HOST;</code>.</p> 
     140 
    152141        <p>Check the <a href="http://getbutterfly.com/wordpress-plugins/portable-phpmyadmin/" rel="external">official homepage</a> for feedback and support, or rate it on <a href="http://wordpress.org/extend/plugins/portable-phpmyadmin/" rel="external">WordPress plugin repository.</a></p> 
     142        <p><small>Portable phpMyAdmin is based on phpMyAdmin 2.10.3.0 (2007-07-20) with several fixes and enhancements.</small></p> 
    153143    </div> 
    154144<?php }?> 
Note: See TracChangeset for help on using the changeset viewer.