Plugin Directory

Changeset 3138421


Ignore:
Timestamp:
08/20/2024 06:32:20 PM (17 months ago)
Author:
exeebit
Message:

fixed csrf

Location:
phpinfo-wp
Files:
19 added
5 edited

Legend:

Unmodified
Added
Removed
  • phpinfo-wp/trunk/phpinfo-wp.php

    r2984885 r3138421  
    55Plugin URI: http://exeebit.com/wordpress-plugins/phpinfo-wp
    66Description: A simple plugin to look up information about PHP and manage PHP configurations and directive values.
    7 Version: 5.0
     7Version: 6.0
    88Author: Exeebit
    99Author URI: http://exeebit.com
  • phpinfo-wp/trunk/readme.txt

    r2984885 r3138421  
    33Tags: phpinfo, server info, php, server configuration, php ini, phpinfo(), php configuration, htaccess, apache
    44Requires at least: 4.7
    5 Tested up to: 6.3.2
    6 Stable tag: 5.0
     5Tested up to: 6.6.1
     6Stable tag: 6.0
    77Requires PHP: 5.0
    88License: GPLv3
     
    5050== Change Log ==
    5151
     52= 6.0 =
     53Fix CSRF vulnerability issues
     54UI enhancement
     55
    5256= 5.0 =
    5357Fix CSRF vulnerability
    5458Fix htaccess directive editing issues
    5559UI enhancement
    56 
    5760
    5861= 4.0 =
  • phpinfo-wp/trunk/views/extension.php

    r2909184 r3138421  
    1   <div id="phpinfo-extensions" style="margin-top:50px">
    2     <?php
     1<?php
    32
    4     $extensions = ['bz2', 'curl', 'ffi', 'ftp', 'fileinfo', 'gd', 'gettext', 'gmp', 'intl', 'imap', 'ldap', 'mbstring', 'exif', 'mysqli', 'oci8_12c', 'oci8_19', 'odbc', 'openssl', 'pdo_firebird', 'pdo_mysql', 'pdo_oci', 'pdo_odbc', 'pdo_pgsql', 'pdo_sqlite', 'shmop', 'pgsql', 'snmp', 'soap', 'sockets', 'sodium', 'sqlite3', 'tidy', 'xsl', 'Core', 'PDO', 'Phar', 'Reflection', 'SPL', 'SimpleXML', 'apache2handler', 'bcmath', 'calendar', 'ctype', 'date', 'dom', 'filter', 'hash', 'iconv', 'json', 'libxml', 'mysqlnd', 'pcre', 'readline', 'session', 'standard', 'tokenizer', 'xml', 'xmlreader', 'xmlwriter', 'zip', 'zlib', 'imagick'];
     3defined('ABSPATH') or die('Unauthorized Access');
    54
    6     asort($extensions);
     5?>
     6<div id="phpinfo-extensions" style="margin-top:50px">
     7<?php
     8
     9$extensions = ['bz2', 'curl', 'ffi', 'ftp', 'fileinfo', 'gd', 'gettext', 'gmp', 'intl', 'imap', 'ldap', 'mbstring', 'exif', 'mysqli', 'oci8_12c', 'oci8_19', 'odbc', 'openssl', 'pdo_firebird', 'pdo_mysql', 'pdo_oci', 'pdo_odbc', 'pdo_pgsql', 'pdo_sqlite', 'shmop', 'pgsql', 'snmp', 'soap', 'sockets', 'sodium', 'sqlite3', 'tidy', 'xsl', 'Core', 'PDO', 'Phar', 'Reflection', 'SPL', 'SimpleXML', 'apache2handler', 'bcmath', 'calendar', 'ctype', 'date', 'dom', 'filter', 'hash', 'iconv', 'json', 'libxml', 'mysqlnd', 'pcre', 'readline', 'session', 'standard', 'tokenizer', 'xml', 'xmlreader', 'xmlwriter', 'zip', 'zlib', 'imagick'];
     10
     11asort($extensions);
    712
    813
    9     function check_extension($extension) {
    10         $loaded_extensions = get_loaded_extensions();
     14function check_extension($extension) {
     15    $loaded_extensions = get_loaded_extensions();
    1116
    12         if(in_array($extension, $loaded_extensions)) {
    13             return "<li><input type='checkbox' id='phpinfo-extension' name='$extension' value='$extension' checked disabled><label for='$extension'>$extension</label></li>";
    14         } else {
    15             return "<li><input type='checkbox' name='$extension' value='$extension' id='phpinfo-extension' disabled><label for='$extension'>$extension</label></li>";
    16         }
     17    if(in_array($extension, $loaded_extensions)) {
     18        return "<li><input type='checkbox' id='phpinfo-extension' name='$extension' value='$extension' checked disabled><label for='$extension'>$extension</label></li>";
     19    } else {
     20        return "<li><input type='checkbox' name='$extension' value='$extension' id='phpinfo-extension' disabled><label for='$extension'>$extension</label></li>";
    1721    }
     22}
    1823
    19     echo '<ul class="phpinfo-extensions">';
     24echo '<ul class="phpinfo-extensions">';
    2025
    21     foreach($extensions as $extension) {
    22         echo check_extension($extension);
    23     }
     26foreach($extensions as $extension) {
     27    echo check_extension($extension);
     28}
    2429
    25     echo '</ul>';
    26     ?>
    27   </div>
     30echo '</ul>';
     31?>
     32</div>
  • phpinfo-wp/trunk/views/info.php

    r2909184 r3138421  
    11<?php
     2
     3defined('ABSPATH') or die('Unauthorized Access');
    24
    35function custom_size($path) {
  • phpinfo-wp/trunk/views/log.php

    r2909184 r3138421  
    22<?php
    33
     4defined('ABSPATH') or die('Unauthorized Access');
    45
    56$root_dir = get_home_path();
Note: See TracChangeset for help on using the changeset viewer.