Example #1
0
<!DOCTYPE HTML>

<!-- This is the homepage of the website. The control will go to controllers/request.php from here -->

<?php 
session_start();
require_once __DIR__ . '/variables/twitter.php';
require_once __DIR__ . '/variables/email.php';
require_once __DIR__ . '/controllers/session_handler.php';
require_once __DIR__ . '/variables/server.php';
// Clear all the previous sessions if any
Session::unsetGeneralSession();
?>

<html>
	
	<!-- Head -->
	
	<head>
		<title> Stelin - Shorten URLs quickly! </title>
		<meta charset = "utf-8">
		<link type="text/css" rel="stylesheet" href="css/stylesheet.css">
		<script type="text/javascript">
		
		// Javascript function to show or hide the target div based on the checkbox response
		
			function showHide(check)
			{
				var targetdiv = document.getElementById("email");
				targetdiv.style.display = check.checked ? "block" : "none";
			}