<?php
/*
Plugin Name: Random Item
Plugin URI: http://guff.szub.net/random-item
Description: This simple plugin outputs from a text file random quotes, links, or whatever you decide.
Version: R1.1
Author: Kaf Oseo
Author URI: http://szub.net

    Copyright (c) 2004, 2005 Kaf Oseo (http://szub.net)
    Random Item is released under the GNU General Public License
    (GPL) http://www.gnu.org/licenses/gpl.txt

    This is a WordPress plugin (http://wordpress.org).
*/

function random_item ($file ''$before ''$after '') {

    
$random_file "wp-quotes.txt";

    if (
$file) {
        
$random_file $file;
    }
    
$items file("$random_file");
    
$item rand(0sizeof($items) - 1);
    echo 
$before wptexturize(trim($items[$item])) . $after;
}
?>