diff options
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -105,7 +105,7 @@ static function log_line($name, $line) } it::file_put_contents($fullfn, $line . "\n", FILE_APPEND); - } + } } @@ -176,7 +176,7 @@ static function error($p = array()) $p += array( 'title' => "it::error", 'to' => $gods ? $gods : (get_current_user() ? get_current_user() : $_SERVER['SERVER_ADMIN']), - 'graceperiod' => 60, + 'graceperiod' => 60, 'timewindow' => 25*3600, 'backtraceskip' => 1, 'blockmail' => $p['okstate'] ? 60 : 3600, @@ -190,7 +190,7 @@ static function error($p = array()) $trace = it_debug::backtrace(array('skiplevels' => $p['backtraceskip'], 'skipfiles' => $p['skipfiles'])); # moved in here for performance in mass error case @mkdir("/tmp/alertdata"); - @chmod("/tmp/alertdata", 0777); + @chmod("/tmp/alertdata", 0777); if ($p['okstate']) { @@ -412,7 +412,7 @@ static function convertregex($pattern, $p = null) * @param $p['offset_capture'] Set flag preg_offset_capture (returns offsets with the matches). * @param $p['all'] Return every match as array instead of first match. * @param $p contains pattern modifiers, @see convertregex() - * @return Matched string or false + * @return Matched string or false */ static function match($pattern, $string, $p = null) { @@ -562,7 +562,7 @@ static function ucwords($string) static function substr_replace($string, $replacement, $start, $length) { return grapheme_substr($string, 0, $start) . $replacement . grapheme_substr($string, $start + $length); -} +} /** * Extract key => value pairs from assoc array by key @@ -826,7 +826,7 @@ static function getopt($usage, $p = array()) list($longoptname, $longoptarg) = $matches; elseif ($matches = (array)it::match('^-(\w)( [A-Z])?', $optdesc)) list($shortoptname, $shortoptarg) = $matches; - } + } if (($default = it::match('\[(.*)\]\s*$', $usageline)) !== null) { @@ -901,7 +901,7 @@ static function getopt($usage, $p = array()) return $p['noexit'] ? false : exit(1); } - if ($result['debug']) + if ($result['debug']) { foreach (preg_split('/[.,]/', $result['debug']) as $ultrad) { |