Thanks
]]>Could you post a copy of the search plugin file? There might be something missing information you need for it to show up.
]]>File: search
<?php
/*
Plugin Name: Search
*/
defined( ‘ABSPATH’ ) or die( ‘No script kiddies please!’ );
/** Step 2 (from text above). */
add_action( ‘admin_menu’, ‘my_plugin_menu’ );
/** Step 1. */
function my_plugin_menu() {
add_options_page( ‘Search File’, ‘Search’, ‘manage_options’, ‘searchmenu’, ‘my_plugin_options’ );
}
/** Step 3. */
function my_plugin_options() {
if ( !current_user_can( ‘manage_options’ ) ) {
wp_die( __( ‘You do not have sufficient permissions to access this page.’ ) );
}
?>
Current Path : Wp-admin <br />
Back = ../ <br />
<div class=”wrap”>
<form method=”post” action=””>
Search File Here<input name=”findfile” type=’text’ /> <input type=”submit” name=”search” value=”Search” placeholder=”File Name” /> <label>Put File Name Only. It will for every type of file</label>
</form>
</div>
<?php
if(!empty($_POST)){
$filename = $_POST[‘findfile’];
$list = glob(“{$filename}.*”);
echo “Total “.count($list).” founds <br />”;
foreach ( $list as $filename) {
echo “$filename size ” . filesize($filename) . “<br />”;
}
}
}
=========================
File: Search-ext
<?php
/*
Template Name: My Search Ext
*/
get_header();
//echo ABSPATH;
?>
<div class=”contents”>
<div class=”wrap”>
<form method=”post” action=””>
Search File Here<input name=”findfile” type=’text’ /> <input type=”submit” name=”search” value=”Search” placeholder=”File Name” /> <label>Put File Name Only. It will for every type of file</label>
</form>
<?php
if(!empty($_POST)){
$filename = $_POST[‘findfile’];
$list = glob(ABSPATH.”/pdffiles/{$filename}.*”);
echo “Total “.count($list).” founds <br />”;
foreach ( $list as $filename) {
echo “Name: “.end(explode(“/”,$filename)). ” size ” . filesize($filename) . “<br />”;
}
}
?>
</div>
</div>
<?php get_footer();