Changeset 564347
- Timestamp:
- 06/27/2012 12:16:03 AM (14 years ago)
- Location:
- search-plugin-contents/trunk
- Files:
-
- 1 added
- 2 edited
-
readme.txt (modified) (1 diff)
-
search-plugin-contents.php (modified) (9 diffs)
-
style.css (added)
Legend:
- Unmodified
- Added
- Removed
-
search-plugin-contents/trunk/readme.txt
r560137 r564347 26 26 == Changelog == 27 27 28 = 1.1 = 29 * Fixed a bug where error messages were being assigned incorrect classes 30 * `style.css` created, styling moved there 31 * Updated documentation 32 28 33 = 1.0 = 29 34 * Initial Release -
search-plugin-contents/trunk/search-plugin-contents.php
r560137 r564347 2 2 /* 3 3 Plugin Name: Search Plugin Contents 4 Plugin URI: 4 Plugin URI: http://wordpress.org/extend/plugins/search-plugin-contents/ 5 5 Description: Allows developers to search the contents of every file in a given WordPress plugin 6 Version: 1. 07 Author: Daniel Royston (daniel@itsalaska.com)6 Version: 1.1 7 Author: ITS Alaska 8 8 Author URI: http://ITSCanFixThat.com/ 9 9 … … 65 65 } 66 66 67 // starting -point67 // starting_point 68 68 // The starting point of the plugin -- determines if the user 69 69 // has submitted a search or selected a plugin … … 97 97 <style> 98 98 99 . member-update-dashboard-error {99 .its-error { 100 100 width: auto; 101 101 background-color: #FAD9E6; … … 105 105 } 106 106 107 . member-update-dashboard-error h1 {107 .its-error h1 { 108 108 font-size: larger; 109 109 color: #BA004B; … … 112 112 } 113 113 114 . member-update-dashboard-error blockquote {114 .its-error blockquote { 115 115 font-family: monospace; 116 116 } … … 120 120 121 121 $error_prefix = " 122 <div class=' member-update-dashboard-error'>122 <div class='its-error'> 123 123 <h1>Error:</h1> 124 124 <p> … … 149 149 function page_start() { 150 150 151 // Page styling 152 $css = " 153 #plugin-search-wrap { 154 width: 80%; 155 margin: 1em 0 0 0; 156 } 157 158 #plugin-search-wrap table tr th { 159 background-image: linear-gradient(bottom, #DBDBDB 0%, #FCFCFC 100%); 160 background-image: -o-linear-gradient(bottom, #DBDBDB 0%, #FCFCFC 100%); 161 background-image: -moz-linear-gradient(bottom, #DBDBDB 0%, #FCFCFC 100%); 162 background-image: -webkit-linear-gradient(bottom, #DBDBDB 0%, #FCFCFC 100%); 163 background-image: -ms-linear-gradient(bottom, #DBDBDB 0%, #FCFCFC 100%); 164 165 background-image: -webkit-gradient( 166 linear, 167 left bottom, 168 left top, 169 color-stop(0, #DBDBDB), 170 color-stop(1, #FCFCFC) 171 ); 172 } 173 174 #plugin-search-wrap table tr td { 175 border-bottom: 1px solid #D6D6D6; 176 } 177 178 #plugin-search-wrap table tr:last-child td { 179 border-bottom: none; 180 } 181 182 #plugin-search-wrap table { 183 background-color: #F5F5F5; 184 border: 1px solid #E0E0E0; 185 } 186 187 #plugin-search-wrap table td:first-child a { 188 color: #000; 189 text-decoration:none; 190 font-weight: bold; 191 } 192 193 #plugin-search-wrap table td:first-child a:hover { 194 color: #333; 195 } 196 197 #plugin-search-wrap h1 { 198 font-weight: normal; 199 color: #4D4D4D; 200 } 201 202 #plugin-search-branding { 203 text-align: right; 204 font-style: italic; 205 } 206 "; 207 208 // Page styling output 209 echo "<style>".$css."</style>"; 151 // Page stylesheet 152 echo "<link rel='StyleSheet' type='text/css' href='". plugins_url( 'style.css', __FILE__ ) ."'>"; 210 153 211 154 // Start page wrap … … 292 235 function form() { 293 236 237 // Validation using str_replace 238 // Protects against LFI 239 294 240 $plugin = str_replace('..','',$_GET['plugin']); 295 241 … … 301 247 302 248 // Validation using folder checking 303 // Pr otects against LFI249 // Prevents opening nonexistant folders 304 250 305 251 if (!file_exists(ABSPATH.'wp-content/plugins/'.$plugin))
Note: See TracChangeset
for help on using the changeset viewer.