Plugin Directory

Changeset 2574260

Timestamp:
07/28/2021 10:39:32 PM (3 years ago)
Author:
s4gor
Message:

push 2.2

Location:
phpinfo-wp
Files:
20 added
9 edited

Legend:

Unmodified
Added
Removed
  • phpinfo-wp/trunk/css/style.css

    r2563911 r2574260  
     1
     2
     3
     4
     5
    16#htaccess-phpinfo {
    27  text-align: center;
     
    6368}
    6469#topButton-phpinfo-WP {
    65   display: none;
    6670  position: fixed;
    6771  bottom: 20px;
     
    188192  color: #777BB3;
    189193}
     194
     195
     196
     197
     198
     199
     200
     201
     202
     203
     204
     205
     206
     207
    190208/*# sourceMappingURL=style.css.map */
  • phpinfo-wp/trunk/css/style.css.map

    r2563911 r2574260  
    1 {"version":3,"sources":["style.less"],"names":[],"mappings":"AAEA;EACE,kBAAA;;AAGF;EACE,UAAA;EACA,gBAAA;EACA,eAAA;EACA,YAAA;;AAGF;AAAwB;AAA0B;EAChD,yBAAA;EACA,2BAAA;EACA,YAAA;EACA,kBAAA;EACA,YAAA;EACA,YAAA;EACA,YAAA;EACA,gBAAA;EACA,eAAA;;AAGF;EACE,eAAA;EACA,aAAA;;AAGF;EACE,UAAA;EACA,gBAAA;EACA,aAAA;;AAGF;EACE,gBAAA;EACA,uBAAA;EACA,oBAAA;EACA,eAAA;EACA,wBAAA;EACA,qBAAA;EACA,eAAA;EACA,oCAAA;EACA,iCAAA;EACA,4BAAA;EACA,kBAAA;EACA,eAAA;EACA,iBAAA;EACA,mBAAA;;AAGF;EACE,eAAA;EACA,mBAAA;EACA,oBAAA;EACA,iBAAA;;AAGF;EACE,cAAA;;AAGF;EACE,uBAAA;;AAGF;EACE,YAAA;EACA,WAAA;;AAGF;EACE,aAAA;EACA,eAAA;EACA,YAAA;EACA,WAAA;EACA,WAAA;EACA,YAAA;EACA,aAAA;EACA,yBAAA;EACA,YAAA;EACA,eAAA;EACA,aAAA;EACA,mBAAA;EACA,eAAA;;AAGF,qBAAqB;EACnB,sBAAA;;AAGF,OAAQ;EACN,SAAA;EACA,gCAAA;;AAGF,OAAQ,EAAC;EACP,WAAA;EACA,qBAAA;EACA,sBAAA;;AAGF,OAAQ,EAAC;EACP,0BAAA;;AAGF,OAAQ;EACN,yBAAA;EACA,SAAA;EACA,YAAA;EACA,4BAAA;EACA,gBAAA;EACA,iBAAA;;AAGF,OAAQ,MAAM;EACZ,6BAAA;;AAEF,OAAQ,MAAM;AACd,OAAQ,MAAM;EACZ,sBAAA;EACA,cAAA;EACA,wBAAA;EACA,gBAAA;EACA,kBAAA;;AAEF,OAAQ;AACR,OAAQ;EACN,yBAAA;;AAEF,OAAQ;EACN,gBAAA;;AAEF,OAAQ;EACN,sBAAA;EACA,YAAA;EACA,iBAAA;;AAEF,OAAQ;EACN,sBAAA;EACA,iBAAA;;AAEF,OAAQ;EACN,sBAAA;EACA,gBAAA;EACA,gBAAA;EACA,qBAAA;;AAEF,OAAQ,GAAG;EACT,WAAA;;AAEF,OAAQ;EACN,YAAA;EACA,SAAA;;AAEF,OAAQ;EACN,YAAA;EACA,sBAAA;EACA,SAAA;EACA,WAAA;;AAEF;EACE,gBAAA;EACA,sBAAA;EACA,yBAAA;;AAEF,IAAK;EACH,yBAAA;EACA,WAAA;EACA,YAAA;EACA,aAAA;EACA,eAAA;EACA,kBAAA;EACA,gBAAA;EACA,eAAA;;AAEF,IAAK,OAAM;EACT,yBAAA;EACA,YAAA;;AAEF,IAAK,OAAM;EACT,yBAAA;EACA,YAAA;;AAEF;EACE,aAAA;EACA,iBAAA;EACA,sBAAA;EACA,gBAAA;;AAGF;EACE,kBAAA;;AAGF;EACE,kBAAA;;AAGF;EACE,kBAAA;EACA,eAAA;EACA,gBAAA;EACA,gBAAA;EACA,cAAA","file":"style.css"}
     1{"version":3,"sources":["style.less"],"names":[],"mappings":"AAEA;EACE,AAA","file":"style.css"}
  • phpinfo-wp/trunk/css/style.less

    r2563911 r2574260  
    11@default-color: #777BB3;
     2
     3
     4
     5
     6
     7
    28
    39#htaccess-phpinfo {
     
    7379
    7480#topButton-phpinfo-WP {
    75   display: none;
    7681  position: fixed;
    7782  bottom: 20px;
     
    185190  color: white;
    186191}
     192
    187193.tabcontent {
    188194  display: none;
     
    207213  color: @default-color;
    208214}
     215
     216
     217
     218
     219
     220
     221
     222
     223
     224
     225
     226
     227
     228
     229
  • phpinfo-wp/trunk/css/style.min.css

    r2563911 r2574260  
    1 #htaccess-phpinfo{text-align:center}#htaccess-warning{color:red;font-weight:600;font-size:20px;margin:10px}#phpinfo-htaccess-backup,#phpinfo-htaccess-restore,#phpinfo-htaccess-save{background-color:#777BB3;margin:15px 10px 10px;border:none;border-radius:5px;height:40px;width:100px;color:#fff;font-weight:600;cursor:pointer}#htaccess-phpinfo-des{font-size:16px;width:1200px}#htaccess-editor{width:50%;margin-top:10px;height:370px}.phpinfo-extensions{margin-top:20px;-webkit-column-count:5;-moz-column-count:5;column-count:5;-webkit-column-gap:50px;-moz-column-gap:50px;column-gap:0;-webkit-column-rule:1px single grey;-moz-column-rule:1px single grey;column-rule:1px single grey;text-align:center;font-size:15px;line-height:25px;font-weight:bolder}#title-phpinfo-WP{margin-top:5px;margin-bottom:30px;letter-spacing:10px;margin-left:20px}#heading-phpinfo-WP{color:#777BB3}html{scroll-behavior:smooth}#topButtonImage-phpinfo-WP{height:30px;width:30px}#topButton-phpinfo-WP{display:none;position:fixed;bottom:20px;right:30px;z-index:99;border:none;outline:0;background-color:#777BB3;color:#fff;cursor:pointer;padding:15px;border-radius:10px;font-size:18px}#topButton-phpinfo-WP:hover{background-color:#555}.center pre{margin:0;font-family:Poppins,sans-serif}.center a:link{color:#009;text-decoration:none;background-color:#fff}.center a:hover{text-decoration:underline}.center table{border-collapse:collapse;border:0;width:934px;box-shadow:1px 2px 3px #ccc;text-align:left;margin:10px auto}.center table th{text-align:center!important}.center table td,.center table th{border:1px solid #666;font-size:75%;vertical-align:baseline;padding:5px;text-align:center}.center h1,.center h2{text-transform:uppercase}.center .p{text-align:left}#phpinfo-WP,#phpinfo-output{text-align:center}.center .e{background-color:#ccf;width:300px;font-weight:700}.center .h{background-color:#99c;font-weight:700}.center .v{background-color:#ddd;max-width:300px;overflow-x:auto;word-wrap:break-word}.center .v i{color:#999}.center img{float:right;border:0}.center hr{width:934px;background-color:#ccc;border:0;height:1px}.tab{overflow:hidden;border:1px solid #ccc;background-color:#f1f1f1}.tab button{background-color:inherit;float:left;border:none;outline:0;cursor:pointer;padding:14px 16px;transition:.3s;font-size:17px}.tab button.active,.tab button:hover{background-color:#777BB3;color:#fff}.tabcontent{display:none;padding:6px 12px;border:1px solid #ccc;border-top:none}#phpinfo-wp{margin-right:20px}#phpinfo-output{font-size:30px;margin-top:20px;font-weight:600;color:#777BB3}
     1#
  • phpinfo-wp/trunk/js/scripts.js

    r2563911 r2574260  
    11"use strict";
    22
    3 var topButton = document.getElementById('topButton-phpinfo-WP');
    4 var tabcontent = document.getElementsByClassName("tabcontent");
    5 var tablinks = document.getElementsByClassName("tablinks");
    6 var save = document.getElementById('phpinfo-htaccess-save');
    7 var backup = document.getElementById('phpinfo-htaccess-backup');
    8 var restore = document.getElementById('phpinfo-htaccess-restore');
    9 var outPut = document.getElementById('phpinfo-output');
     3function main() {
    104
     5
     6
     7
     8
    119
    12 function showButton() {
    13     if (topButton !== null) {
    14         if (document.body.scrollTop > 400 || document.documentElement.scrollTop > 400) {
    15             topButton.style.display = "block";
    16         }
    17         else {
    18             topButton.style.display = "none";
     10function showButton() {
     11    if (topButton !== null) {
     12        if (document.body.scrollTop > 400 || document.documentElement.scrollTop > 400) {
     13            topButton.style.display = "block";
     14       
     15       
     16           
    1917        }
    2018    }
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
     30
     31
     32
     33
     34
     35
     36
     37
     38
     39
     40
     41
     42
     43
     44
     45
     46
     47
     48
     49
     50
     51
     52
     53
     54
     55
     56
     57
     58
     59
     60
     61
     62
     63
     64
     65
     66
    2167}
    2268
    23 window.onscroll = function () {
    24     showButton();
    25 };
    26 
    27 function goTop() {
    28     document.body.scrollTop = 0;
    29     document.documentElement.scrollTop = 0;
     69if(document.getElementById('phpinfo-wp') != null) {
     70    main();
    3071}
    31 
    32 if (topButton !== null) {
    33     topButton.addEventListener('click', goTop);
    34 }
    35 
    36 function manageContent() {
    37 
    38     outPut.style.display = "none";
    39     for (let i = 0; i < tabcontent.length; i++) {
    40         tabcontent[i].style.display = "none";
    41     }
    42 
    43     for (let i = 0; i < tablinks.length; i++) {
    44         tablinks[i].className = tablinks[i].className.replace(" active", "");
    45     }
    46 }
    47 
    48 manageContent();
    49 
    50 if(tabcontent[0] !== null) {
    51     tabcontent[0].style.display = "block";
    52     tablinks[0].className += " active";
    53 }
    54 
    55 let i;
    56 
    57 for(let link of tablinks) {
    58     link.addEventListener('click', () => {
    59         manageContent();
    60         if(link.id == 'info-tab') i = 2;
    61         else if(link.id == 'extension-tab') i = 1;
    62         else i = 0;
    63         document.getElementById(tabcontent[i].id).style.display = "block";
    64         event.currentTarget.className += " active";
    65     });
    66 }
    67 
  • phpinfo-wp/trunk/js/scripts.min.js

    r2563911 r2574260  
    1 "use strict";var topButton=document.getElementById("topButton-phpinfo-WP");var tabcontent=document.getElementsByClassName("tabcontent");var tablinks=document.getElementsByClassName("tablinks");var save=document.getElementById("phpinfo-htaccess-save");var backup=document.getElementById("phpinfo-htaccess-backup");var restore=document.getElementById("phpinfo-htaccess-restore");var outPut=document.getElementById("phpinfo-output");function showButton(){if(topButton!==null){if(document.body.scrollTop>400||document.documentElement.scrollTop>400){topButton.style.display="block"}else{topButton.style.display="none"}}}window.onscroll=function(){showButton()};function goTop(){document.body.scrollTop=0;document.documentElement.scrollTop=0}if(topButton!==null){topButton.addEventListener("click",goTop)}function manageContent(){outPut.style.display="none";for(let i=0;i<tabcontent.length;i++){tabcontent[i].style.display="none"}for(let i=0;i<tablinks.length;i++){tablinks[i].className=tablinks[i].className.replace(" active","")}}manageContent();if(tabcontent[0]!==null){tabcontent[0].style.display="block";tablinks[0].className+=" active"}let i;for(let link of tablinks){link.addEventListener("click",()=>{manageContent();if(link.id=="info-tab")i=2;else if(link.id=="extension-tab")i=1;else i=0;document.getElementById(tabcontent[i].id).style.display="block";event.currentTarget.className+=" active"})}
     1"use strict";)}
  • phpinfo-wp/trunk/phpinfo-wp.php

    r2563911 r2574260  
    33/*
    44Plugin Name: Phpinfo WP
    5 Plugin URI: www.github.com/s4gor/checkWPFiles
     5Plugin URI:
    66Description: A simple plugin to look up information about PHP and manage PHP configurations and directive values.
    7 Version: 2.1
     7Version: 2.
    88Author: Imran Hossain Sagor
    9 Author URI: www.github.com/s4gor
     9Author URI:
    1010License: GPLv3
    1111*/
     
    2929            add_filter("plugin_row_meta", [$this, "meta"], 10, 2);
    3030            add_filter( 'plugin_action_links', [$this, 'ads_action_links'], 10, 5 );
     31
     32
    3133        }
    3234
     
    3941        }
    4042
     43
     44
     45
     46
     47
     48
     49
     50
     51
     52
     53
     54
     55
     56
     57
     58
     59
     60
     61
     62
     63
     64
     65
     66
    4167        public function activate() {
     68
    4269            flush_rewrite_rules();
    4370        }
     
    6895            if(strpos($file, "phpinfo-wp/phpinfo-wp.php") !== false) {
    6996                $new_link = [
    70                     "donation" => '<a href="" target="_blank">Support Me &#x2764;</a>'
     97                    "donation" => '<a href="" target="_blank">Support Me &#x2764;</a>'
    7198                ];
    7299
     
    96123    else die('Plugin internal code conflict');
    97124
    98 
    99125    $phpinfo_wp->register();
    100 
    101126
    102127    register_activation_hook(__FILE__, [$phpinfo_wp, 'activate']);
  • phpinfo-wp/trunk/readme.txt

    r2563911 r2574260  
    44Requires at least: 4.7
    55Tested up to: 5.8-beta1
    6 Stable tag: 2.1
     6Stable tag: 2.
    77Requires PHP: 5.0
    88License: GPLv3
  • phpinfo-wp/trunk/views/views.php

    r2570319 r2574260  
    11<?php
    22
     3
     4
     5
     6
     7
     8
     9
     10
     11
     12
    313if(is_writable('../')) {
     14
     15
     16
     17
     18
    419    if(isset($_POST['backup'])) {
    520        $backup = fopen('../.htaccess.bak', 'wb');
     
    823        fwrite($backup, $htaccess);
    924        fclose($backup);
     25
    1026        echo '<script>    window.addEventListener("DOMContentLoaded", () => {
    1127        document.getElementById("phpinfo-output").innerHTML = "FILE HAS BEEN BACKED UP!";
     
    1834        fwrite($htaccess, $backup_file);
    1935        fclose($htaccess);
    20 
     36        $phpinfowp_log = "htaccess file has been restored on " . current_time('mysql') . " by $user<br />";
    2137        echo '<script>    window.addEventListener("DOMContentLoaded", () => {
    2238        document.getElementById("phpinfo-output").innerHTML = "FILE HAS BEEN RESTORED!";
     
    7692            unlink('../htaccess-phpinfo-new.txt');
    7793        }
     94
    7895        echo '<script>    window.addEventListener("DOMContentLoaded", () => {
    7996        document.getElementById("phpinfo-output").innerHTML = "FILE HAS BEEN SAVED!";
     
    8198    });</script>';
    8299    }
     100
     101
     102
     103
     104
    83105} else {
    84106    echo '<div id="htaccess-warning" style="font-size: 20px;">need write permissions on root directory. Can\'t perform the action</div>';
     
    86108?>
    87109
    88 <div id="phpinfo-wp">.
    89 
    90 <!--    heading info-->
     110<div id="phpinfo-wp">
     111<!-- heading info-->
    91112    <div id="info-phpinfo-WP">
    92113        <h1 id="title-phpinfo-WP"><span id="heading-phpinfo-WP">phpinfo();</span> WP</h1>
     
    96117
    97118  <div class="tab">
    98     <button class="tablinks" id="htaccess-tab">.htaccess</button>
     119    <button class="tablinks" id="htaccess-tab">.htaccess</button>
    99120    <button class="tablinks" id="extension-tab">Extensions</button>
    100121    <button class="tablinks" id="info-tab">phpinfo()</button>
     122
    101123  </div>
    102124
    103125    <div id="phpinfo-output" style="display: none"></div>
    104126
    105     <div id="phpinfo-htaccess" class="tabcontent">
     127    <div id="phpinfo-htaccess" class="tabcontent">
    106128
    107129        <div id="htaccess-phpinfo">
     
    163185
    164186            ?>
    165             <button id="topButton-phpinfo-WP" title="Go to top"><img src="<?php echo plugin_dir_url(__FILE__) . '../assets/images/top.png'; ?>" alt="Top" id="topButtonImage-phpinfo-WP"></button>
     187            <button id="topButton-phpinfo-WP" title="Go to top"><img src="<?php echo plugin_dir_url(__FILE__) . '../assets/images/top.png'; ?>" alt="Top" id="topButtonImage-phpinfo-WP"></button>
    166188        </div>
     189
     190
     191
     192
    167193    </div>
    168194
Note: See TracChangeset for help on using the changeset viewer.