PHP Classes

File: app/delete.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   PHP IP Logger   app/delete.php   Download  
File: app/delete.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP IP Logger
Track user IP addresses that access certain pages
Author: By
Last change:
Date: 1 year ago
Size: 238 bytes
 

Contents

Class file image Download
<?php

include_once 'session.php';

$link = new Framework\Shortener($database);

if (
$auth->checkToken($_GET['t'], $_SESSION['csrf'])) {
   
$link->deleteLink($_GET['c']);

   
$utils->redirect(SITE_URL . '/links.php?message=success');
}