PHP Classes

File: www/ScriptLibrary/form_functions.php

Recommend this page to a friend!
  Classes of Adnane EL Mouttaki   Covoiturage Libre   www/ScriptLibrary/form_functions.php   Download  
File: www/ScriptLibrary/form_functions.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Covoiturage Libre
Web application for managing a carpoling site
Author: By
Last change:
Date: 6 years ago
Size: 282 bytes
 

Contents

Class file image Download
<?php
function getToken() {
   
$token = sha1(uniqid(mt_rand(), true));
   
   
$_SESSION["cvtoken"] = $token;
   
$_SESSION["time"] = time();
   
    return
$token;
}
function
getTokenM() {
   
$token = sha1(uniqid(mt_rand(), true));
   
$_SESSION["cvtokenm"] = $token;
    return
$token;
}
?>