From 1d6a2a569c6cb4ad6f9a130e4ebc47751e6b76fe Mon Sep 17 00:00:00 2001 From: alopexc0de Date: Fri, 4 Jul 2014 17:31:52 -0400 Subject: [PATCH] Linux move weirdness I can't remember if I changed anything in this file, but it should be working last I checked --- Website/process.php | 216 ++++++++++++++++++++++---------------------- 1 file changed, 108 insertions(+), 108 deletions(-) diff --git a/Website/process.php b/Website/process.php index 11b211f..7704891 100644 --- a/Website/process.php +++ b/Website/process.php @@ -1,109 +1,109 @@ - - Your link: lob.li/$short - - - - - - ", - " -
- Existing link: lob.li/$short - - - -
- ", - " -
- ERROR! - Your link: $link didn't resolve to a website.
Please check your link and try again. -
- ", - " -
- ERROR! - Well this is embarrassing... This never happens, but I appear to have suffered a database error.
Here's what I know: $error -
- ", - " -
- ERROR! - The sanitize function seems to have failed. This shouldn't happen, maybe c0de forgot a semi-colon somewhere or something. -
- ", - " -
- Your Resolved link: - $link - - - - -
- ", - " -
- Your link: - $link is not a lob.li link.
However we found that it has been shortened. lob.li/$short - - - -
- ", - " -
- Your link: - $link is not a lob.li link and has not been shortened. -
- " - ); - - if(empty($_GET['token']) || $_GET['token'] != $_SESSION['token'] || empty($_POST[$catchid]) || $_POST[$catchid] != $catchVal){ - die("
Oh Noes! Something happened and I can't continue.
Please try again by using the form located at lob.li.
"); - } - - require('Include/PHP/functions.php'); - - if(!empty($_POST['link'])){ - $short = sanitize($_POST['link']); - if(strpos($short, "http://") === false && strpos($short, "https://") === false){ - $short = "http://$short"; - } - echo shorten($shortdb, $short, $seperator); - - //foreach($messages as $message){ - // echo $message; - //} - - }else{ die("
I can't do my job if I'm not given a link to work on...
"); } - + + Your link: lob.li/$short + + + + + + ", + " +
+ Existing link: lob.li/$short + + + +
+ ", + " +
+ ERROR! - Your link: $link didn't resolve to a website.
Please check your link and try again. +
+ ", + " +
+ ERROR! - Well this is embarrassing... This never happens, but I appear to have suffered a database error.
Here's what I know: $error +
+ ", + " +
+ ERROR! - The sanitize function seems to have failed. This shouldn't happen, maybe c0de forgot a semi-colon somewhere or something. +
+ ", + " +
+ Your Resolved link: + $link + + + + +
+ ", + " +
+ Your link: + $link is not a lob.li link.
However we found that it has been shortened. lob.li/$short + + + +
+ ", + " +
+ Your link: + $link is not a lob.li link and has not been shortened. +
+ " + ); + + if(empty($_GET['token']) || $_GET['token'] != $_SESSION['token'] || empty($_POST[$catchid]) || $_POST[$catchid] != $catchVal){ + die("
Oh Noes! Something happened and I can't continue.
Please try again by using the form located at lob.li.
"); + } + + require('Include/PHP/functions.php'); + + if(!empty($_POST['link'])){ + $short = sanitize($_POST['link']); + if(strpos($short, "http://") === false && strpos($short, "https://") === false){ + $short = "http://$short"; + } + echo shorten($shortdb, $short, $seperator); + + //foreach($messages as $message){ + // echo $message; + //} + + }else{ die("
I can't do my job if I'm not given a link to work on...
"); } + ?> \ No newline at end of file