. * */ /* DSi functions */ function dsi_render_table($ip, $port, $url = false, $use_table = TRUE, $use_rows = TRUE, $show_codes = TRUE, $img_join_link = FALSE, $img_only = FALSE, $img_type = FALSE ){ $link = false; $s = ( isset($_SERVER['HTTPS']) and get_true_boolean($_SERVER['HTTPS']) ) ? "s" : ""; $base_url = "http$s://".implode('/', (explode('/', $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], -1))); if($url){ $link["bb_close"] = "[/url]"; $link["bb_type_a"] = "[url=".$url."]"; $link["bb_type_b"] = "[url=\"".$url."\"]"; $link["href"] = ""; $link["href_close"] = ""; } $types = array("normal", "small", "sky"); if($img_type) $types = array($img_type); $output = ""; if($use_table) $output .= "\n
| \n". "\t\t\tBanner $type\n". "\t\t | \n"; $output .= "\t\t\n";
if($img_join_link) $output .= "\t\t\t{$link['href']}\n";
$output .= "\t\t\t \n";
if($img_join_link) $output .= "\t\t\t{$link['href_close']}\n";
$output .= "\t\t | \n";
if($show_codes)
$output .= "\t
| \n". "\t\t\tCodes". "\t\t | \n". "\t\t\n". "\t\t\t \n". "\t\t\t\n". "\t\t | \n";
if($use_rows) $output .= "\t