-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
32 lines (24 loc) · 663 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
require 'config/config.php';
require 'classes/database.php';
require 'classes/application.php';
require 'models/shortener_url.php';
require 'concerns/process.php';
?>
<html>
<head>
<link rel="stylesheet" href="<?php echo $application->getProjectPath();?>styles/style.css">
<title>Shortener URL Application</title>
</head>
<body>
<form action="" method="post">
<input type="text" name="url" placeholder="http://example.com" class="url-box"><br />
<input type="submit" value="Generate Short URL" class="generate-button">
</form>
<?php if (isset($msg)) { ?>
<div class="message-area">
<?php echo $msg; ?>
</div>
<?php } ?>
</body>
</html>