<?php
/*
* This file is part of URLmnch.
*
* URLmnch is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
include 'shuffle.php';
if (strlen($_GET['url'])) {
$loc = ($_GET['url']);}
else if (strlen($_POST['url']))
{
$loc = $_POST['url'];
}
else {
die("Error 100<br/>This error is caused by lack of data to process. This usually means you hit the 'Mnch it' button before entering a url.");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta
content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>URLMnch</title>
</head>
<body>
<center><a href="http://u.mnch.us"><img
alt="" src="img/logo.jpg" border=0></a><br>
<table
style="text-align: left; width: 400px; height: 234px; background-image: url(img/back2.jpg);"
border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td><p align="center">Your URL:</p>
<p align="center"><?php echo $loc; ?></p>
<p align="center">Has been shortened to:</p>
<p align="center"><?php echo geturl($loc); ?></p></td>
</tr>
</tbody>
</table>
<br>
<span style="font-family: monospace;">©
2009 <a href="http://www.mnch.us"
rel="me">Mnch Technologies</a></span>
</center>
</body>
</html>