PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   PHP URL Shortener   index.php   Download  
File: index.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP URL Shortener
Application to create and expand short URLs
Author: By
Last change:
Date: 11 months ago
Size: 2,167 bytes
 

Contents

Class file image Download
<?php
include_once './config/config.php';
include_once
APP_PATH . 'loader.php';
?>
<!DOCTYPE html>
<html lang="en">
<html>

<head>
  <meta charset="UTF-8" />
  <?php include_once 'components/header.php'; ?>
<title>
    <?= $st['website_name'] ?> - Url Shortener Service
  </title>
  <?php include_once 'components/css.php'; ?>
</head>

<body>

  <?php include_once 'components/navbar.php'; ?>

  <div id="wrapper">
    <div id="content-wrapper">
      <div class="container pb-5 pt-5">
        <div class="row justify-content-center text-center">
          <div class="col-sm-12 col-md-8 col-lg-4">
            <div class="card">
              <div class="card-header">
                <b>Short your url</b>
              </div>
              <div class="card-body">
                <div id="upload_alert"></div>
                <div id="upload_alert">
                </div>
                <p class="card-title lead font-weight-bold text-dark">
                  Write a long url
                </p>
                <form role="form" method="POST" action="short.php">
                  <div class="form-group">
                    <input type="text" class="form-control" placeholder="Long URL" name="long_url" />
                  </div>
                  <div class="form-group">
                    <input type="text" class="form-control" name="short_code" placeholder="Custom Code" />
                  </div>
                  <div class="form-group">
                    <input type="password" class="form-control" name="password" placeholder="Custom Password" />
                  </div>
                  <button name="submit" type="submit" class="btn btn-primary">
                    <span class="fa fa-upload"></span> Cut Url
                  </button>
                </form>
              </div>
              <div class="card-footer">
                Developed By: <a href="https://github.com/FarisCode511/">fariscode</a>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>

  <?php include_once 'components/footer.php'; ?>

  <?php include_once 'components/js.php'; ?>
</body>

</html>

</html>