"; } ## -------------------------------------------------------------------------------------------------------------- ## function printHeader($title,$type=1) { global $vwar_root; if ($type == 1) { $title_img = "\"\""; } else if ($type == 2 || !isSet($type)){ $title_img = "\"\""; } echo " Virtual War ".$title."
".$title_img."

"; } ## -------------------------------------------------------------------------------------------------------------- ## function getDirContents($dir) { // open dir $handle = opendir($dir); while (false !== ($file = readdir ($handle))) { // exclude . and .. if ($file != "." && $file != "..") { $contents[] = $file; } } return $contents; } ## -------------------------------------------------------------------------------------------------------------- ## function dbSelect (&$arg, $stripslashes=0, $donl2br=1, $dohtml = 1) { global $htmlcode; if (is_string($arg)) { $arg = trim ($arg); //