Ejemplo n.º 1
0
function main_mysql()
{
    $user = new usersMenus();
    $page = CurrentPageName();
    $roundcube = new roundcube();
    $t = time();
    if (isset($_GET["rebuild"])) {
        $roundcube->RebuildMysql();
    }
    $status = $roundcube->ParseMysqlInstall();
    $html = "\n\t<table style='width:100%'>\n\t<tr>\n\t<td style='vertical-align:top'>\n\t\t\t<div style='width:98%' class=form id='{$t}'></div>\n\t\t\t<div style='text-align:right'>" . imgtootltip("refresh-32.png", null, "LoadAjax('{$t}','{$page}?mysql-status=yes');") . "</div>\n\t</td>\n\t<td style='vertical-align:top'>\n\n\t\t\t<div style='width:98%' class=form>\n\t\t\t<table style='width:100%'>\n\t\t\t<tr>\n\t\t\t\t<td valign='top' nowrap align='right' class=legend style='font-size:20px' style='font-size:20px'>{RoundCubePath}:</strong></td>\n\t\t\t\t<td valign='top' nowrap align='left'><strong style='font-size:18px'>{$user->roundcube_folder}</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td valign='top' nowrap align='right' class=legend style='font-size:20px' style='font-size:20px'>{roundcube_mysql_sources}:</strong></td>\n\t\t\t\t<td valign='top' nowrap align='left'><strong style='font-size:18px'>{$user->roundcube_mysql_sources}</strong></td>\n\t\t\t</tr>\t\n\t\t\t<tr>\n\t\t\t\t<td valign='top' nowrap align='right' class=legend style='font-size:20px' style='font-size:20px'>{database}:</strong></td>\n\t\t\t\t<td valign='top' nowrap align='left'><strong style='font-size:20px'>roundcubemail</strong></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td valign='top' nowrap align='right' class=legend style='font-size:20px' style='font-size:20px'>{database_status}:</strong></td>\n\t\t\t\t<td valign='top' nowrap align='left'><strong style='font-size:20px'>{$status}</strong></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t<td valign='top' nowrap align='right' colspan=2>\n\t\t\t\t<hr>" . button("{rebuild}", "RebuildTables()", 18) . "\n\t\t\t</td>\n\t\t\t\t\n\t\t\t</tr>\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t</table></div>\n\t</td>\n</tr>\n</table>\n\t\t\n\t\t<script>LoadAjax('{$t}','{$page}?mysql-status=yes');</script>\n\t\t\t\t\t\t\n\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
Ejemplo n.º 2
0
function main_mysql()
{
    $user = new usersMenus();
    $roundcube = new roundcube();
    if (isset($_GET["rebuild"])) {
        $roundcube->RebuildMysql();
    }
    $status = $roundcube->ParseMysqlInstall();
    $html = "\n\t\t\n\t\t\t<table style='width:100%' class=table_form>\n\t\t\t<tr>\n\t\t\t\t<td valign='top' nowrap align='right' class=legend>{RoundCubePath}:</strong></td>\n\t\t\t\t<td valign='top' nowrap align='left'><strong>{$user->roundcube_folder}</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td valign='top' nowrap align='right' class=legend>{roundcube_mysql_sources}:</strong></td>\n\t\t\t\t<td valign='top' nowrap align='left'><strong>{$user->roundcube_mysql_sources}</strong></td>\n\t\t\t</tr>\t\n\t\t\t<tr>\n\t\t\t\t<td valign='top' nowrap align='right' class=legend>{database}:</strong></td>\n\t\t\t\t<td valign='top' nowrap align='left'><strong>roundcubemail</strong></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td valign='top' nowrap align='right' class=legend>{database_status}:</strong></td>\n\t\t\t\t<td valign='top' nowrap align='left'><strong>{$status}</strong></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t<td valign='top' nowrap align='right' colspan=2>\n\t\t\t\t<hr>" . button("{rebuild}", "RebuildTables()") . "\n\t\t\t</td>\n\t\t\t\t\n\t\t\t</tr>\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t</table>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}