-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexemple.php
More file actions
35 lines (30 loc) · 1.23 KB
/
exemple.php
File metadata and controls
35 lines (30 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/*provenant du formulaire*/
$licence = array(
'software'=> 'Iriven MVC System', // Application Name,
'version'=> 1.04, // Application Version
'copyright'=> '© Iriven France', // you can limit the key to per domain
'username'=> 'mon client', // you can limit the key to per user name or compagny
'uniqid'=> 1025, // add if any (user id)
'domain'=> 'monclient.com', // you can limit the key to per domain
'expiration'=> '1390389563', // [time()+(30*24*3600)]; (30 days) you can limit the key to per expiration time
'algorithm'=>'md5',
'serial'=>'736CC-AFB84-9B6C0-65252-6C107',//by key generator
'salt'=>pack('H*', md5(time())),
'lastvalidation' => 98745612 // default: time(), execution du script pour la 1ere fois
);
$ini = new Iriven\ConfigManager('./licence.ini');
$ini->set('licence',$licence); //with section
$test = array('test1'=>'my tester1','test2'=>'my tester2','test3'=>'my tester3');
$ini->set($test); //no section
$ini->set('repo','centos'); //no section
$ini->set('linux','repo','fedora'); //with section
print_r($ini->get('test1'));
print_r($ini->get('test2'));
print_r($ini->get('test3'));
echo '<pre>';
print_r($ini->get('licence'));
echo '</pre>';
echo '<pre>';
print_r($ini->get());
echo '</pre>';