WordPress.org

Plugin Directory

Changeset 426124


Ignore:
Timestamp:
08/20/11 04:06:32 (3 years ago)
Author:
deltafactory
Message:

Settings page layout improvements
Added screenshot

Location:
configurable-hotlink-protection/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • configurable-hotlink-protection/trunk/configurable-hotlink-protection.php

    r426094 r426124  
    44Plugin URI: http://wordpress.org/extend/plugins/configurable-hotlink-protection/ 
    55Description: Save bandwidth by easily blocking links to video, audio, and other files from unapproved 3rd-party sites. Requires mod_rewrite. 
    6 Version: 0.1 
     6Version: 0.2 
    77Author: Jeff Brand 
    88Author URI: http://www.deltafactory.com 
     
    2222    public static $title = 'Configurable Hotlink Protection'; 
    2323    public static $slug = 'configurable-hotlink-protection'; 
    24  
    2524    public static $marker = 'Configurable Hotlink Protection'; 
    2625 
    2726    public static function common_extensions() { 
    2827        //Extensions that shouldn't be on the main list. 
    29         $excluded = array( 'php' ); 
     28        $excluded = array( 'php', 'html', 'htm', 'css', 'js' ); 
    3029 
    3130        // The following 3 lines are a fun trick to expose the list of extensions defined by WordPress. 
     
    172171 
    173172    public static function activate() { 
     173        $rules = get_option('hotlink_extensions') ? self::hotlink_rules() : null; 
     174 
    174175        $home_path = get_home_path(); 
    175176        $htaccess_file = $home_path.'.htaccess'; 
    176         return insert_with_markers( $htaccess_file, self::$marker, self::hotlink_rules() ); 
     177        return insert_with_markers( $htaccess_file, self::$marker, $rules ); 
    177178    } 
    178179 
  • configurable-hotlink-protection/trunk/readme.txt

    r426094 r426124  
    44Requires at least: 3.0 
    55Tested up to: 3.2.1 
    6 Stable tag: 0.1 
     6Stable tag: 0.2 
    77 
    88Save bandwidth by easily blocking links to video, audio, and other files from unapproved 3rd-party sites. Requires mod_rewrite. 
     
    2020This plugin modifies the site's .htaccess file and requires mod_rewrite or compatible modules like [ISAPI_rewrite for IIS](http://www.helicontech.com/isapi_rewrite/). 
    2121 
     22= Notes = 
     23This plugin was inspired by the [Hotlink Protection](http://wordpress.org/extend/plugins/wordpress-automatic-image-hotlink-protection/) plugin. There was a need for a more flexible implementation and so this plugin was created. 
     24 
    2225== Installation == 
    2326 
     
    3336* Ask questions and we'll try to answer them. 
    3437 
    35 == Other Notes == 
    36 This plugin was inspired by [Hotlink Protection](http://wordpress.org/extend/plugins/wordpress-automatic-image-hotlink-protection/) plugin. 
    37 There was a need for a more flexible implementation and so this plugin was created. 
    38  
    3938== Screenshots == 
    4039 
     
    4342== Changelog == 
    4443 
     44= 0.2 = 
     45* Settings page layout improvements 
     46* Added screenshot 
     47 
    4548= 0.1 = 
    4649* Initial release 
     
    4851== Upgrade Notice == 
    4952 
     53= 0.2 = 
     54Settings page layout improvements 
     55 
    5056= 0.1 = 
    5157Initial release 
  • configurable-hotlink-protection/trunk/settings-page-help.php

    r426094 r426124  
    1 <h2>Contextual Help</h2> 
     1<h2>Help</h2> 
    22<p>Documentation coming soon</p> 
  • configurable-hotlink-protection/trunk/settings-page.php

    r426094 r426124  
    2828 
    2929            </th> 
    30             <td> 
     30            <td nowrap> 
    3131<?php 
    3232 
     
    3636echo '<table>'; 
    3737echo '<tr valign="top"><td>'; 
    38 $col_height = 8; 
     38$col_height = ceil( count( $common_extensions ) / 4 ); 
    3939$c = 0; 
    4040foreach ( $common_extensions as $ext ) { 
Note: See TracChangeset for help on using the changeset viewer.