Changeset 2052 for trunk/bb-admin/includes/functions.bb-plugin.php
- Timestamp:
- 04/08/2009 09:15:53 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bb-admin/includes/functions.bb-plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-admin/includes/functions.bb-plugin.php
r2051 r2052 183 183 184 184 // Pull only the first 8kiB of the file in. 185 $plugin_ data= fread( $fp, 8192 );185 $plugin_code = fread( $fp, 8192 ); 186 186 187 187 // PHP will close file handle, but we are good citizens. 188 188 fclose($fp); 189 190 // Grab just the first commented area from the file 191 if ( !preg_match( '|/\*(.*?Plugin Name:.*?)\*/|ims', $plugin_code, $plugin_block ) ) 192 return false; 193 $plugin_data = trim( $plugin_block[1] ); 189 194 190 195 preg_match( '|Plugin Name:(.*)$|mi', $plugin_data, $name );
Note: See TracChangeset
for help on using the changeset viewer.