|
@@ -10,16 +10,16 @@ |
|
|
block discarded – undo |
|
10
|
10
|
'domain'=> 'monclient.com', // you can limit the key to per domain |
|
11
|
11
|
'expiration'=> '1390389563', // [time()+(30*24*3600)]; (30 days) you can limit the key to per expiration time |
|
12
|
12
|
'algorithm'=>'md5', |
|
13
|
|
- 'serial'=>'736CC-AFB84-9B6C0-65252-6C107',//by key generator |
|
|
13
|
+ 'serial'=>'736CC-AFB84-9B6C0-65252-6C107', //by key generator |
|
14
|
14
|
'salt'=>pack('H*', md5(time())), |
|
15
|
15
|
'lastvalidation' => 98745612 // default: time(), execution du script pour la 1ere fois |
|
16
|
16
|
); |
|
17
|
17
|
$ini = new Iriven\ConfigManager('./licence.ini'); |
|
18
|
|
-$ini->set('licence',$licence); //with section |
|
19
|
|
-$test = array('test1'=>'my tester1','test2'=>'my tester2','test3'=>'my tester3'); |
|
20
|
|
-$ini->set($test); //no section |
|
21
|
|
-$ini->set('repo','centos'); //no section |
|
22
|
|
-$ini->set('linux','repo','fedora'); //with section |
|
|
18
|
+$ini->set('licence', $licence); //with section |
|
|
19
|
+$test = array('test1'=>'my tester1', 'test2'=>'my tester2', 'test3'=>'my tester3'); |
|
|
20
|
+$ini->set($test); //no section |
|
|
21
|
+$ini->set('repo', 'centos'); //no section |
|
|
22
|
+$ini->set('linux', 'repo', 'fedora'); //with section |
|
23
|
23
|
|
|
24
|
24
|
print_r($ini->get('test1')); |
|
25
|
25
|
print_r($ini->get('test2')); |