Changeset 39143

Show
Ignore:
Timestamp:
04/08/08 07:19:53 (3 months ago)
Author:
dd32
Message:

Allow it to work with the Post Uploads plugin.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • add-from-server/trunk/add-from-server.php

    r36536 r39143  
    22/* 
    33Plugin Name: Add From Server 
    4 Version: 1.2 
     4Version: 1.3 
    55Plugin URI: http://dd32.id.au/wordpress-plugins/add-from-server/ 
    66Description: Plugin to allow the Media Manager to add files from the webservers filesystem. <strong>Note:</strong> All files are copied to the uploads directory. 
     
    117117      } 
    118118      $return .= '</table>'; 
    119        
     119 
     120      //Let the plugin work with the "Post Uploads" plugin of mine :)    
     121      if( function_exists('pu_checkbox') ){ 
     122            $ret = pu_checkbox(false); 
     123            if( $ret ) 
     124                  $ret .= '(<em>Note: Will not take effect if selected file is within an upload folder at present</em>)<br />'; 
     125            $return .= $ret; 
     126      } 
     127 
    120128      $return .= ' 
    121129                  <input type="submit" name="submit" value="Import selected files" />