Changeset 2574260
- Timestamp:
- 07/28/2021 10:39:32 PM (3 years ago)
- 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 1 6 #htaccess-phpinfo { 2 7 text-align: center; … … 63 68 } 64 69 #topButton-phpinfo-WP { 65 display: none;66 70 position: fixed; 67 71 bottom: 20px; … … 188 192 color: #777BB3; 189 193 } 194 195 196 197 198 199 200 201 202 203 204 205 206 207 190 208 /*# 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 1 1 @default-color: #777BB3; 2 3 4 5 6 7 2 8 3 9 #htaccess-phpinfo { … … 73 79 74 80 #topButton-phpinfo-WP { 75 display: none;76 81 position: fixed; 77 82 bottom: 20px; … … 185 190 color: white; 186 191 } 192 187 193 .tabcontent { 188 194 display: none; … … 207 213 color: @default-color; 208 214 } 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 1 1 "use strict"; 2 2 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'); 3 function main() { 10 4 5 6 7 8 11 9 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";10 function showButton() { 11 if (topButton !== null) { 12 if (document.body.scrollTop > 400 || document.documentElement.scrollTop > 400) { 13 topButton.style.display = "block"; 14 15 16 19 17 } 20 18 } 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 21 67 } 22 68 23 window.onscroll = function () { 24 showButton(); 25 }; 26 27 function goTop() { 28 document.body.scrollTop = 0; 29 document.documentElement.scrollTop = 0; 69 if(document.getElementById('phpinfo-wp') != null) { 70 main(); 30 71 } 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 3 3 /* 4 4 Plugin Name: Phpinfo WP 5 Plugin URI: www.github.com/s4gor/checkWPFiles5 Plugin URI: 6 6 Description: A simple plugin to look up information about PHP and manage PHP configurations and directive values. 7 Version: 2. 17 Version: 2. 8 8 Author: Imran Hossain Sagor 9 Author URI: www.github.com/s4gor9 Author URI: 10 10 License: GPLv3 11 11 */ … … 29 29 add_filter("plugin_row_meta", [$this, "meta"], 10, 2); 30 30 add_filter( 'plugin_action_links', [$this, 'ads_action_links'], 10, 5 ); 31 32 31 33 } 32 34 … … 39 41 } 40 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 41 67 public function activate() { 68 42 69 flush_rewrite_rules(); 43 70 } … … 68 95 if(strpos($file, "phpinfo-wp/phpinfo-wp.php") !== false) { 69 96 $new_link = [ 70 "donation" => '<a href=" " target="_blank">Support Me ❤</a>'97 "donation" => '<a href="" target="_blank">Support Me ❤</a>' 71 98 ]; 72 99 … … 96 123 else die('Plugin internal code conflict'); 97 124 98 99 125 $phpinfo_wp->register(); 100 101 126 102 127 register_activation_hook(__FILE__, [$phpinfo_wp, 'activate']); -
phpinfo-wp/trunk/readme.txt
r2563911 r2574260 4 4 Requires at least: 4.7 5 5 Tested up to: 5.8-beta1 6 Stable tag: 2. 16 Stable tag: 2. 7 7 Requires PHP: 5.0 8 8 License: GPLv3 -
phpinfo-wp/trunk/views/views.php
r2570319 r2574260 1 1 <?php 2 2 3 4 5 6 7 8 9 10 11 12 3 13 if(is_writable('../')) { 14 15 16 17 18 4 19 if(isset($_POST['backup'])) { 5 20 $backup = fopen('../.htaccess.bak', 'wb'); … … 8 23 fwrite($backup, $htaccess); 9 24 fclose($backup); 25 10 26 echo '<script> window.addEventListener("DOMContentLoaded", () => { 11 27 document.getElementById("phpinfo-output").innerHTML = "FILE HAS BEEN BACKED UP!"; … … 18 34 fwrite($htaccess, $backup_file); 19 35 fclose($htaccess); 20 36 $phpinfowp_log = "htaccess file has been restored on " . current_time('mysql') . " by $user<br />"; 21 37 echo '<script> window.addEventListener("DOMContentLoaded", () => { 22 38 document.getElementById("phpinfo-output").innerHTML = "FILE HAS BEEN RESTORED!"; … … 76 92 unlink('../htaccess-phpinfo-new.txt'); 77 93 } 94 78 95 echo '<script> window.addEventListener("DOMContentLoaded", () => { 79 96 document.getElementById("phpinfo-output").innerHTML = "FILE HAS BEEN SAVED!"; … … 81 98 });</script>'; 82 99 } 100 101 102 103 104 83 105 } else { 84 106 echo '<div id="htaccess-warning" style="font-size: 20px;">need write permissions on root directory. Can\'t perform the action</div>'; … … 86 108 ?> 87 109 88 <div id="phpinfo-wp">. 89 90 <!-- heading info--> 110 <div id="phpinfo-wp"> 111 <!-- heading info--> 91 112 <div id="info-phpinfo-WP"> 92 113 <h1 id="title-phpinfo-WP"><span id="heading-phpinfo-WP">phpinfo();</span> WP</h1> … … 96 117 97 118 <div class="tab"> 98 <button class="tablinks " id="htaccess-tab">.htaccess</button>119 <button class="tablinks" id="htaccess-tab">.htaccess</button> 99 120 <button class="tablinks" id="extension-tab">Extensions</button> 100 121 <button class="tablinks" id="info-tab">phpinfo()</button> 122 101 123 </div> 102 124 103 125 <div id="phpinfo-output" style="display: none"></div> 104 126 105 <div id="phpinfo-htaccess" class="tabcontent" >127 <div id="phpinfo-htaccess" class="tabcontent"> 106 128 107 129 <div id="htaccess-phpinfo"> … … 163 185 164 186 ?> 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> 166 188 </div> 189 190 191 192 167 193 </div> 168 194
Note: See TracChangeset
for help on using the changeset viewer.