summaryrefslogtreecommitdiffstats
path: root/paste/paste.php
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2009-12-11 03:54:24 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2009-12-11 03:54:24 +0100
commit25d090f3acfbb099cca6979fb4faffc272358c84 (patch)
tree2b7f97c72f7f43cefab269fb1cbd3a8f95736c5f /paste/paste.php
parent7aead6d80e0be2c272c0657370605f8418e179ef (diff)
downloadrafb-nopaste-25d090f3acfbb099cca6979fb4faffc272358c84.tar.gz
rafb-nopaste-25d090f3acfbb099cca6979fb4faffc272358c84.tar.xz
rafb-nopaste-25d090f3acfbb099cca6979fb4faffc272358c84.zip
cosmetic changes
Diffstat (limited to 'paste/paste.php')
-rw-r--r--paste/paste.php22
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");
}