forked from Wavyzz/dolibarr
30 lines
653 B
PHP
Executable File
30 lines
653 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
|
|
$path = __DIR__ . '/';
|
|
|
|
|
|
$res=@include_once $path.'/../htdocs/master.inc.php';
|
|
$res=@include_once $path.'/../../htdocs/master.inc.php';
|
|
if (! $res) {
|
|
@include_once '../../master.inc.php';
|
|
}
|
|
if (! $res) {
|
|
@include_once '../master.inc.php';
|
|
}
|
|
if (! $res) {
|
|
@include_once './master.inc.php';
|
|
}
|
|
include_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
|
|
|
print dol_stringtotime('2024-01-01')."\n";
|
|
print dol_stringtotime('2024-01-01 00:00:05');
|
|
|
|
print "Decode with dol_decode a value crypted with dol_encode:.... in conf.php file\n";
|
|
|
|
print dol_decode('123456789');
|
|
|
|
print "\n";
|
|
|
|
//print print_r(unserialize(serialize($object)));
|