the LotGD.net forums."); } }else{ output("`\$It seems I was not successful.`2 "); output("The error returned by the database server was:"); rawoutput("
$error
"); } } $tipid=0; function tip(){ global $tipid; $tip = translate_inline("Tip"); output_notl("
`i[ `b{$tip}`b ]`i",true); rawoutput("
"); $args = func_get_args(); call_user_func_array("output",$args); rawoutput("
"); rawoutput(""); $tipid++; } function descriptors($prefix=""){ require_once("lib/all_tables.php"); $array = get_all_tables(); $out = array(); while (list($key,$val)=each($array)){ $out[$prefix.$key]=$val; } return $out; } //This function is borrowed from the php manual. function return_bytes($val) { $val = trim($val); $last = strtolower($val{strlen($val)-1}); switch($last) { // The 'G' modifier is available since PHP 5.1.0 case 'g': $val *= 1024; case 'm': $val *= 1024; case 'k': $val *= 1024; } return $val; } ?>