Plugin Directory

Changeset 564347


Ignore:
Timestamp:
06/27/2012 12:16:03 AM (14 years ago)
Author:
itsalaska
Message:
 
Location:
search-plugin-contents/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • search-plugin-contents/trunk/readme.txt

    r560137 r564347  
    2626== Changelog ==
    2727
     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
    2833= 1.0 =
    2934* Initial Release
  • search-plugin-contents/trunk/search-plugin-contents.php

    r560137 r564347  
    22/*
    33    Plugin Name: Search Plugin Contents
    4     Plugin URI:
     4    Plugin URI: http://wordpress.org/extend/plugins/search-plugin-contents/
    55    Description: Allows developers to search the contents of every file in a given WordPress plugin
    6     Version: 1.0
    7     Author: Daniel Royston (daniel@itsalaska.com)
     6    Version: 1.1
     7    Author: ITS Alaska
    88    Author URI: http://ITSCanFixThat.com/
    99   
     
    6565    }
    6666   
    67     // starting-point
     67    // starting_point
    6868    // The starting point of the plugin -- determines if the user
    6969    // has submitted a search or selected a plugin
     
    9797        <style>
    9898       
    99             .member-update-dashboard-error {
     99            .its-error {
    100100                width: auto;
    101101                background-color: #FAD9E6;
     
    105105            }
    106106           
    107             .member-update-dashboard-error h1 {
     107            .its-error h1 {
    108108                font-size: larger;
    109109                color: #BA004B;
     
    112112            }
    113113           
    114             .member-update-dashboard-error blockquote {
     114            .its-error blockquote {
    115115                font-family: monospace;
    116116            }
     
    120120       
    121121        $error_prefix = "
    122         <div class='member-update-dashboard-error'>
     122        <div class='its-error'>
    123123        <h1>Error:</h1>
    124124        <p>
     
    149149    function page_start() {
    150150       
    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__ ) ."'>";
    210153       
    211154        // Start page wrap
     
    292235    function form() {
    293236       
     237        // Validation using str_replace
     238        // Protects against LFI
     239       
    294240        $plugin = str_replace('..','',$_GET['plugin']);
    295241       
     
    301247       
    302248        // Validation using folder checking
    303         // Protects against LFI
     249        // Prevents opening nonexistant folders
    304250       
    305251        if (!file_exists(ABSPATH.'wp-content/plugins/'.$plugin))
Note: See TracChangeset for help on using the changeset viewer.