function organization_groupwares_list() { $users = new usersMenus(); $sock = new sockets(); $ApacheGroupware = $sock->GET_INFO("ApacheGroupware"); if ($ApacheGroupware == null) { $ApacheGroupware = 1; } //if($ApacheGroupware==0){return organization_vhostslist_disabled();} $ou = $_GET["ou"]; $tr = organization_vhostslist($ou); $tables[] = "<table style='width:100%'><tr>"; $t = 0; while (list($key, $line) = each($tr)) { $line = trim($line); if ($line == null) { continue; } $t = $t + 1; $tables[] = "<td valign='top'>{$line}</td>"; if ($t == 3) { $t = 0; $tables[] = "</tr><tr>"; } } if ($t < 3) { for ($i = 0; $i <= $t; $i++) { $tables[] = "<td valign='top'> </td>"; } } $tables[] = "</table>"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body(implode("\n", $tables)); }
function organization_groupwares() { $users = new usersMenus(); $MEM_TOTAL_INSTALLEE = $users->MEM_TOTAL_INSTALLEE; if ($MEM_TOTAL_INSTALLEE < 526300) { $tpl = new templates(); $html = "\n\t\t<center>\n\t\t<table style='width:350px'>\n\t\t<tr>\n\t\t<td valign='top' width=1%>\n\t\t<img src='img/64-infos.png'>\n\t\t</td>\n\t\t<td valign='top'>\n\t\t<H2>{MEM_TOTAL_INF_512}</h2>\n\t\t<p style='font-size:15px'>{MEM_TOTAL_INF_512_TEXT}</p>\n\t\t</td>\n\t\t</tr>\n\t\t<Table>\n\t\t</center>\n\t\t"; return $html; } $sock = new sockets(); $ApacheGroupware = $sock->GET_INFO("ApacheGroupware"); if ($ApacheGroupware == null) { $ApacheGroupware = 1; } if ($ApacheGroupware == 0) { return organization_vhostslist_disabled(); } $ou = $_GET["ou"]; $tr = organization_vhostslist($ou); $tables[] = "<table style='width:100%'><tr>"; $t = 0; while (list($key, $line) = each($tr)) { $line = trim($line); if ($line == null) { continue; } $t = $t + 1; $tables[] = "<td valign='top'>{$line}</td>"; if ($t == 3) { $t = 0; $tables[] = "</tr><tr>"; } } if ($t < 3) { for ($i = 0; $i <= $t; $i++) { $tables[] = "<td valign='top'> </td>"; } } $tables[] = "</table>"; $tpl = new templates(); return $tpl->_ENGINE_parse_body(implode("\n", $tables)); }