function DB2($lv = 0) { $i = 0; static $err; if ($err) { return; } $err = 1; $x = dbgt(); if ($lv < 0 && 0) { } else { while ($i < $lv) { array_pop($x); $i++; } $x = print_r($x, 1); } #if(j9)av($x); $x = str_replace(array("\n", "\t", ' ', 'Array(', ')', l2 . 'debug.db', '=>[file]=>/home/ovh/append.php[line]=>5[args]=>=>/home/ovh/auto.php[function]=>require_once=>', '[function]', '=>shutdown[args]=>', '=>db2[args]=>'), '', $x); #gitrm $x = Preg_replace("~\\[[0-9]\\]~", '', $x); $x = str_replace(array('[line]=>', '=>[file]', '=>=>'), array('@', '<br>', '=>'), $x); return $x; }
function p_sqlfail($db, $sql) { echo "100 ERROR\n"; dbgt("DATABASE ERROR: " . $db->ErrorMsg() . ": SQL=" . $sql); exit; }
function die2() { e(',av,die,nocss,noperf'); if (J9) { kill(implode('#', sys_getloadavg() . pre(dbgt()))); } }