diff options
author | Urban Müller | 2018-08-02 18:25:18 +0200 |
---|---|---|
committer | Urban Müller | 2018-08-02 18:25:28 +0200 |
commit | 4006ab6580794c119d34b94f88def164433eb2ed (patch) | |
tree | 5f46fe1b49e8cea4f9a22124f320293f66d351c7 /it.class | |
parent | c3c5aa1ab4bf8f084fe734deba33c902b40d65f2 (diff) | |
download | itools-4006ab6580794c119d34b94f88def164433eb2ed.tar.gz itools-4006ab6580794c119d34b94f88def164433eb2ed.tar.bz2 itools-4006ab6580794c119d34b94f88def164433eb2ed.zip |
adapt docs
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -291,7 +291,7 @@ static function error($p = array()) else if ($_SERVER['REMOTE_ADDR']) # toscreen mode: web echo "<pre style='z-index:10000; position:relative; background:white'>" . htmlspecialchars($p['title'] . "\n" . rtrim($body), ENT_COMPAT, "iso-8859-1") . "</pre>"; # works with iso-8859-1 or utf-8, UTF8SAFE else # toscreen mode: shell (outputs to stderr) - error_log(substr($p['title'], 0, 100000) . " in " . ($trace ? $trace : " {$p['file']}:{$p['line']}") . " Url: $url " . (EDC('verboseerrors') ? D($p['body']) : "")); + error_log(substr($p['title'], 0, 100000) . ($p['omitdebuginfo'] >= 2 ? "" : " in " . ($trace ? $trace : " {$p['file']}:{$p['line']}") . " Url: $url " . (EDC('verboseerrors') ? D($p['body']) : ""))); } if ($_SERVER['REMOTE_ADDR']) # additional entry in log/error_log @@ -599,7 +599,7 @@ static function filter_keys($array, $keys, $p = array()) * {-opts} array of opts => {value,true,false,null}: it::exec('ls {-opts}', ['-opts' => ["-l" => true]]); * @param $cmd Format string with {keywords} a la ET() * @param $values (zero, one or more arrays can be passed) - * @return output of command. shell errors not detectable, see error_log in /www/server/logs + * @return output of command. shell errors not detectable, see error_log in /www/server/log */ static function exec(/* $cmd, $values1 = array(), ... */) { @@ -642,7 +642,7 @@ static function system(/* $cmd, $values1 = array(), ... */) * {-opts} array of opts => {value,true,false,null}: it::exec('ls {-opts}', ['-opts' => ["-l" => true]]); * @param $cmd Format string with {keywords} replace a la ET() * @param $values (zero, one or more arrays can be passed) - * @return output of command. shell errors not detectable, see error_log in /www/server/logs + * @return output of command. shell errors not detectable, see error_log in /www/server/log */ static function shell_command(/* $cmd, $values1 = array(), ... */) { |