Roxen.git / server / config_interface / dbs / db_maintenance.pike

version» Context lines:

Roxen.git/server/config_interface/dbs/db_maintenance.pike:52:       mixed q = query( "SHOW TABLE STATUS IN " + m->Database );    if( sizeof( q ) ) {    foreach( q, q ) {    table_count += 1;    table_rows += (int)q->Rows;    }    }       res += "<tr>" + -  "<td class='table_row'><a href='browser.pike?db=" + m->Database + "'>" + m->Database + "</a></td>" + +  "<td class='table_row'><a href='browser.pike?db=" + m->Database + "&amp;&usr.set-wiz-id;'>" + m->Database + "</a></td>" +    "<td class='table_row'>" + table_count + "</td>" +    "<td class='table_row'>" + table_rows + "</td>" + -  "<td class='table_row'><a href='&page.path;?repair=" + m->Database + "'>[Repair]</a> <a href='&page.path;?optimize=" + m->Database + "'>[Optimize]</a> <a href='&page.path;?repair=" + m->Database + "&optimize=" + m->Database + "'>[Both]</a></td>" + +  "<td class='table_row'><a href='&page.path;?repair=" + m->Database + "&amp;&usr.set-wiz-id;'>[Repair]</a> <a href='&page.path;?optimize=" + m->Database + "&amp;&usr.set-wiz-id;'>[Optimize]</a> <a href='&page.path;?repair=" + m->Database + "&optimize=" + m->Database + "&amp;&usr.set-wiz-id;'>[Both]</a></td>" +    "</tr>\n";    }    }    res += "</table><br/>";    res += "<a href='db_repairall.html'><gbutton>Repair all</gbutton></a> <a href='db_optimizeall.html'><gbutton>Optimize all</gbutton></a>";    res += "<br/><br/>";       // Draw result table    if (id->variables->repair || id->variables->optimize) {    res += "<table cellspacing='0' cellpadding='1'>";
Roxen.git/server/config_interface/dbs/db_maintenance.pike:93:    float t2 = (time(t)-t1);    t3 += t2;       string result = "";    if (q->Msg_text = "OK")    result = "<font color='green'>OK</font>";    else    result = "<font color='red'>Error</font>";       res += "<tr>" + -  "<td class='table_row'><a href='browser.pike?db=" + id->variables->repair + "'>" + id->variables->repair + "</a>.<a href='browser.pike?db=" + id->variables->repair + "&table=" + m->Name + "'>" + m->Name + "</a></td>" + +  "<td class='table_row'><a href='browser.pike?db=" + id->variables->repair + "&amp;&usr.set-wiz-id;'>" + id->variables->repair + "</a>.<a href='browser.pike?db=" + id->variables->repair + "&table=" + m->Name + "&amp;&usr.set-wiz-id;'>" + m->Name + "</a></td>" +    "<td class='table_row'>Repair</td><td class='table_row'><b>" + result + "</b></td>" +    "<td class='table_row'>" + t2 + " sec</td>" +    "</tr>";    }    }    }    if (id->variables->optimize) {    mixed m = query( "SHOW TABLE STATUS IN " + id->variables->optimize );    if( sizeof( m ) ) {    foreach( m, m ) {
Roxen.git/server/config_interface/dbs/db_maintenance.pike:117:    float t2 = (time(t)-t1);    t3 += t2;       string result = "";    if (q->Msg_text = "OK")    result = "<font color='green'>OK</font>";    else    result = "<font color='red'>Error</font>";       res += "<tr>" + -  "<td class='table_row'><a href='browser.pike?db=" + id->variables->optimize + "'>" + id->variables->optimize + "</a>.<a href='browser.pike?db=" + id->variables->optimize + "&table=" + m->Name + "'>" + m->Name + "</a></td>" + +  "<td class='table_row'><a href='browser.pike?db=" + id->variables->optimize + "&amp;&usr.set-wiz-id;'>" + id->variables->optimize + "</a>.<a href='browser.pike?db=" + id->variables->optimize + "&amp;table=" + m->Name + "&amp;&usr.set-wiz-id;'>" + m->Name + "</a></td>" +    "<td class='table_row'>Optimize</td><td class='table_row'><b>" + result + "</b></td>" +    "<td class='table_row'>" + t2 + " sec</td>" +    "</tr>";    }    }    }    if (id->variables->repair || id->variables->optimize) res += "<tr><td colspan='3'>Total:</td><td>" + t3 + " sec</td></tr></table><br/>";       // Done    return Roxen.http_string_answer(res);   }