<?php
/*
Plugin Name: Random, Out of Context fj Quote Plugin-Thing
Plugin URI: http://www.chach-house.net/~lobo/fjquotes/
Description: This is the WordPress plugin version of the "<a href="http://www.chach-house.net/~lobo/fjquotes/">Random, Out-of-Context fj Quote-Thing</a>."  As can probably be figured from the title, it displays a random quote from a text file (by default, the "fjquotes.txt" file on my site).  The concept (and, indeed, much of the code, simple as it is) is ripped off from the "Hello Dolly" plugin by <a href="http://photomatt.net/">Matt Mullenweg</a> that is ships with WordPress.
Author: Scumdog Steev
Version: 0.1.1
Author URI: http://www.chach-house.net/~lobo/
*/ 

// This function chooses a random line from the file and echoes it; it's positioned below.
function fj_quote() {
// Change the file name/location if you'd rather have random quotes from someone/somewhere else, though this is not recommended.  Changing the location is fine, changing the file itself is HERESY.
$quotefile ="http://www.chach-house.net/~lobo/fjquotes/fjquotes.txt"
$quotes file("$quotefile");
$randquote wptexturizemt_rand(0sizeof($quotes) - 1) );
//$randquote = mt_rand(0, sizeof($quotes)-1);
echo "<p id='fj'>$quotes[$randquote]</p>";
}

// The function executes when admin_footer is added
add_action('admin_footer''fj_quote');

// This css positions the paragraph; it's at the bottom right of the scren by default
function fj_css() {
    echo 
"
    <style type='text/css'>
    #fj {
        position: absolute;
                top:4em;
                width:50%;
                margin: 0; padding: 0;
                right: 1em;
        font-size: 9px;
                text-align:right;
        color: #d54e21;
    }
    </style>
"
;
}

add_action('admin_head''fj_css');

?>