You appear to be a bot. Output may be restricted
Description
Rebuild the MD5 hash for a fileActually, is there any need if we can check the filemtime?
Usage
md5_hasher::hash_oik_file( $post, $id, $sourceref, $source );
Parameters
- $post
- ( mixed ) required –
- $id
- ( mixed ) required –
- $sourceref
- ( mixed ) required –
- $source
- ( mixed ) required –
Returns
voidSource
File name: oik-shortcodes/admin/set_md5_hash.phpLines:
1 to 11 of 11
function hash_oik_file( $post, $id, $sourceref, $source ) { $filename = get_post_meta( $sourceref, "_oik_file_name", true ); $component_id = $this->get_component_id( $sourceref ); $component_type = $this->get_component_type( $component_id ); $component_slug = $this->get_component_slug( $component_id, $component_type ); $file = oiksc_real_file( $filename, $component_type, $component_slug ); echo PHP_EOL; echo "file: $file slug: $component_slug" . PHP_EOL; //$this->set_global_plugin_post( $component_id ); _lf_dofile_local( $filename, $component_slug, $component_type ); }View on GitHub