2023-07-02 21:00:43 +02:00
|
|
|
#!/usr/bin/env php
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
$path = __DIR__ . '/';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$res=@include_once $path.'/../htdocs/master.inc.php';
|
|
|
|
|
$res=@include_once $path.'/../../htdocs/master.inc.php';
|
2023-12-04 11:22:28 +01:00
|
|
|
if (! $res) {
|
|
|
|
|
@include_once '../../master.inc.php';
|
|
|
|
|
}
|
|
|
|
|
if (! $res) {
|
|
|
|
|
@include_once '../master.inc.php';
|
|
|
|
|
}
|
|
|
|
|
if (! $res) {
|
|
|
|
|
@include_once './master.inc.php';
|
|
|
|
|
}
|
2024-11-06 20:15:51 +01:00
|
|
|
include_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
2023-07-02 21:00:43 +02:00
|
|
|
|
2024-11-06 20:15:51 +01:00
|
|
|
print dol_stringtotime('2024-01-01')."\n";
|
|
|
|
|
print dol_stringtotime('2024-01-01 00:00:05');
|
2023-07-02 21:00:43 +02:00
|
|
|
|
2024-10-26 20:03:22 +02:00
|
|
|
print "Decode with dol_decode a value crypted with dol_encode:.... in conf.php file\n";
|
2023-07-02 21:00:43 +02:00
|
|
|
|
|
|
|
|
print dol_decode('123456789');
|
|
|
|
|
|
|
|
|
|
print "\n";
|
|
|
|
|
|
|
|
|
|
//print print_r(unserialize(serialize($object)));
|