Add maintenance tool

This commit is contained in:
Laurent Destailleur 2023-07-02 21:00:43 +02:00
parent df2b88a9d2
commit 6cbd046fcf

20
test/other/test_uncrypt.php Executable file
View File

@ -0,0 +1,20 @@
#!/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';
print "Decode a value crypted with crypted:.... in conf.php file\n";
print dol_decode('123456789');
print "\n";
//print print_r(unserialize(serialize($object)));