diff options
Diffstat (limited to 'paste')
-rw-r--r-- | paste/paste.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/paste/paste.php b/paste/paste.php index 51f5d9f..2c5a8df 100644 --- a/paste/paste.php +++ b/paste/paste.php @@ -1,9 +1,10 @@ -<? +<?php /* This software is licensed through a BSD-style License. http://www.opensource.org/licenses/bsd-license.php Copyright (c) 2002 - 2009 Jacob D. Cohen +Copyright (c) 2009 Alexander Sulfrian All rights reserved. Redistribution and use in source and binary forms, with or without @@ -57,7 +58,7 @@ if (isset($_POST['text']) && "" != ($ttemp = rtrim($_POST['text']))) $text = $ttemp; - # Figure out if the post specified a syntax highlighting language + // Figure out if the post specified a syntax highlighting language if (isset($_POST['lang']) && "" != ($ltemp = rtrim($_POST['lang']))) { $language = $ltemp; @@ -69,11 +70,11 @@ if (isset($_POST['text']) && "" != ($ttemp = rtrim($_POST['text']))) } else { - $language = "Plain Text"; + $language = 'Plain Text'; } - # Add a description if available + // Add a description if available if (isset($_POST['desc']) && "" != ($dtemp = rtrim($_POST['desc']))) { $desc = stripslashes($dtemp); @@ -94,14 +95,13 @@ if (isset($_POST['text']) && "" != ($ttemp = rtrim($_POST['text']))) if (get_magic_quotes_gpc()) $text = stripslashes($text); - $finalText = PastifyText($text, $language, $desc); - $url = $config['storage']->setContent($finalText); + $url = $config['storage']->setContent($text, $language, $nick, $desc); - # Note: this function was pretty specific to my implementation. It stored - # paste metadata about the language used, description, and URL, as well as - # a timestamp (but the raw pastes were never preserved - they always expired - # as promised after 24 hours) - #add_to_db($desc, $language, $url); + // Note: this function was pretty specific to my implementation. It stored + // paste metadata about the language used, description, and URL, as well as + // a timestamp (but the raw pastes were never preserved - they always expired + // as promised after 24 hours) + //add_to_db($desc, $language, $url); Header("Location: $url"); } |