Fade~Out's Journal
[Most Recent Entries]
[Calendar View]
[Friends]
Below are the 6 most recent journal entries recorded in
Fade~Out's LiveJournal:
| Saturday, March 5th, 2005 | | 1:38 pm |
yo!
I'm still here, believe it or not. I don't write in here ever. If you'd like to read my bloop, then just comment here and i will send you a link to it. I just keep this one hangin around so i an read people's diaries that are on friends only....but yeah...my real life and drama is in my bloop. | | Thursday, October 30th, 2003 | | 11:32 pm |
| | 8:56 pm |
test
/**
* minichat 2
* Copyright Paul Mutton, 15th August 2002.
* http://www.jibble.org/
*
* Include this file on a PHP web page to add a mini chat box.
*
* Features:-
* Totally rewritten from scratch.
* Much much more efficient than the previous version.
* HTML tags are filtered out.
* Imposes a max word size to avoid wrapping issues.
* Max nick and message lengths are enforced on the server side.
* Accidental "refresh" reposting is avoided.
* Appends all messages chronologically to the archive file.
* Displays latest 20 messages with the most recent at the top.
* Now logs I.P. addresses within comments (do what you want with them).
* Displays posting time in correct local time.
*
*/
$latest = $DOCUMENT_ROOT . "/temp/minichat2.latest";
$archive = $DOCUMENT_ROOT . "/temp/minichat2.archive";
$size = 20;
$nick_size = 20;
$message_size = 256;
$max_word_size = 20;
?>
minichat 2
// Check to see if the user is trying to post something.
if (isset($minichat_md5) && isset($minichat_nick) && isset($minichat_message)) {
// Replace any new line stuff with a space.
$nick = strtr($nick, "\r\n", " ");
$message = strtr($message, "\r\n", " ");
// Trim leading and trailing whitespace where necessary and remove slashes.
$nick = trim(stripslashes($minichat_nick));
$message = trim(stripslashes($minichat_message));
// Only proceed if the md5 hash of message is not repeated.
if (md5($message) != $minichat_md5) {
// Only proceed if the user actually filled in both fields.
if (strlen($nick) > 0 && strlen($message) > 0) { // If the fields are too long, then chop them to the limits. if (strlen($nick) > $nick_size) { $nick = substr($nick, 0, $nick_size); } if (strlen($message) > $message_size) { $message = substr($message, 0, $message_size); } // Remove new line characters from the input. $nick = str_replace("\n", " ", $nick); $message = str_replace("\n", " ", $message); // Enforce the maximum word size by breaking up $message into lines. $message = preg_replace("/([^\s]{20})/", "$1\n", $message); // Now we can encode the nick and message into HTML. $nick = htmlentities($nick); $message = htmlentities($message); // Now replace the new line characters in $message. $message = str_replace("\n", " ", $message); // The IP address of the poster, web cache or whatever. $ip = $_SERVER['REMOTE_ADDR']; $time = date("j M Y - G:i:s T"); // Check to see if the 'latest' and 'archive' files exist and can be written to. if (!is_writable($latest) || !is_writable($archive)) { // Touch both files. touch($latest); touch($archive); if (!is_writable($latest) || !is_writable($archive)) { exit("$latest or $archive is not writable. Please check your permissions and try again."); } } // Read every line of the 'latest' file into an array. $lines = file($latest); $bottom_index = count($lines); // Note that each entry takes up 4 lines. $line_ip = "\n"; $line_nick = "* Posted by $nick\n"; $line_time = "on $time \n"; $line_message = "$message
\n";
$entry = $line_ip . $line_nick . $line_time. $line_message;
$already_posted = 0; for ($i = 3; $i < $bottom_index; $i += 4) { if ($lines[$i] == $line_message) { $already_posted = 1; break; } } if ($already_posted == 0) { // Now rebuild the 'latest' file. // Start by entering the new entry at the top. $out = fopen($latest, "w"); fwrite($out, $entry); // Then write all other entries except the oldest. if ($bottom_index >= $size * 4) { $bottom_index = $size * 4 - 4; } for ($i = 0; $i < $bottom_index; $i++) { fwrite($out, $lines[$i]); } fclose($out); // Also append the entry to the archive file. $out = fopen($archive, "a"); fwrite($out, $entry); fclose($out); } else { // This avoided a "probably accidental" repost. } } else { echo "You must fill in both fields
"; } } else { // This avoided a deliberate repost, maybe we should say something? }
} // include the latest comments on the page. if (file_exists($latest)) { include($latest); } ?>
|
| | Wednesday, May 7th, 2003 | | 9:36 pm |
the whisper of my heart
I didn't write this, Nikki did, and accidentally posted it on my journal instead of her own cuz I was signed in..lol You silly girl :P But yeah, I think I'll keep it here, just because. I love you.
the things you'll never know; how much you truly mean to me. you love me for me, no acceptions. take one look at me, judge me by my essence. look me straight in the eye to see my pain. when all you need to do is hold me... then again i am free. you tought me a language only the heart can speak. never have i felt like this. never have i wanted everything when its all you given me. soul searching is never enough, but when you have someone who loves you by your side it makes all the while. distance may be between us, but it doesn't take away the karma of our souls. Current Mood: sad | | Tuesday, April 8th, 2003 | | 2:24 pm |
*cries*
My head hurts so bad. I cant stand this anymore. need to make it stop, once and for all. I can't fucking do it anymore | | Saturday, April 5th, 2003 | | 12:53 pm |
hmm
SO here i am. Finally have a live journal...lol I have nothing to say. I probably wont write much, and i'll probably just post what i post in my FOD here...but i wanted an accout so i can check up on some Live Journal friends *winks* Nothing to say....as usual |
|