29 if (!defined(
'NOTOKENRENEWAL')) define(
'NOTOKENRENEWAL', 1);
30 if (!defined(
'NOREQUIREMENU')) define(
'NOREQUIREMENU',
'1');
31 if (!defined(
'NOREQUIREHTML')) define(
'NOREQUIREHTML',
'1');
34 require
'../../main.inc.php';
35 require_once DOL_DOCUMENT_ROOT.
'/blockedlog/class/blockedlog.class.php';
40 if ((!$user->admin && !$user->rights->blockedlog->read) || empty($conf->blockedlog->enabled))
accessforbidden();
42 $langs->loadLangs(array(
"admin"));
49 print '<div id="pop-info"><table width="100%" height="80%" class="border"><thead><th width="50%" class="left">'.$langs->trans(
'Field').
'</th><th class="left">'.$langs->trans(
'Value').
'</th></thead>';
52 if ($block->fetch($id) > 0)
54 $objtoshow = $block->object_data;
55 print formatObject($objtoshow,
'');
57 print 'Error, failed to get unalterable log with id '.$id;
61 print '</table></div>';
74 function formatObject($objtoshow, $prefix)
78 $newobjtoshow = $objtoshow;
80 if (is_object($newobjtoshow) || is_array($newobjtoshow))
83 foreach ($newobjtoshow as $key => $val)
85 if (!is_object($val) && !is_array($val))
88 $s .=
'<tr><td>'.($prefix ? $prefix.
' > ' :
'').$key.
'</td>';
90 if (in_array($key, array(
'date',
'datef',
'dateh',
'datec',
'datem',
'datep')))
102 } elseif (is_array($val))
104 $s .= formatObject($val, ($prefix ? $prefix.
' > ' :
'').$key);
105 } elseif (is_object($val))
107 $s .= formatObject($val, ($prefix ? $prefix.
' > ' :
'').$key);
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
Class to manage Blocked Log.
accessforbidden($message= '', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
print
Draft customers invoices.
dol_print_date($time, $format= '', $tzoutput= 'auto', $outputlangs= '', $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
if(!defined('CSRFCHECK_WITH_TOKEN')) define('CSRFCHECK_WITH_TOKEN'
Draft customers invoices.