PHP Classes

File: exampleCommon.php

Recommend this page to a friend!
  Classes of Andrey Lebedev   PHP Secure Link   exampleCommon.php   Download  
File: exampleCommon.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Secure Link
Generate and validate links with signed parameters
Author: By
Last change:
Date: 7 years ago
Size: 223 bytes
 

Contents

Class file image Download
<?php

define
('LINK_TEMPLATE', '{URI}?st={SIGNBASE64}&e={EXP}&mask={MASK}&debug={IPMASKED}&a={IP}');
define('SIGN_TEMPLATE', '{SECRET}{URI}{EXP}{IPMASKED}{MASK}');
define('SECRET', 'Secr3t');
define('MASK', '255.255.0.0');