PHP Classes

File: app/logic/edit_links.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   PHP IP Logger   app/logic/edit_links.php   Download  
File: app/logic/edit_links.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: 325 bytes
 

Contents

Class file image Download
<?php

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


if (
$_SERVER['REQUEST_METHOD'] == 'POST') {
   
$id = $_POST['id'];
   
$lg = $utils->sanitize($_POST['long_url']);

    if (
$link->updateLink($id, $lg)) {
       
$message = "yes";
    }
}

$l = $link->getUrlFromDB($_GET['sc']);
$s = $link->urlToShortCode($l->long_url);