echo "</tr>\n"; $i++; } //echo "</tbody>"; echo '</table><br>'; include_once 'templates/sql_query.html'; } else { /*if(preg_match("/( {0,}select +\* +from)/i",@$_POST['sql']) && !preg_match("/limit/i", @$_POST['sql']) && !preg_match("/where/i", @$_POST['sql']))# if select * from with no limit died. { die($lang['forceLimit']); }*/ //elseif(!preg_match("/limit/i", @$_POST['sql'])) //{ $sha1 = $etc->FingerPrintMake(); #auth if have enough privileges to do hql query $sql = $auth->AuthSql($_SESSION['role'], @$_POST['sql']); if ($sql == FALSE) { die("<script>alert('" . $lang['permissionDenied'] . "');history.back()</script>"); } #auth if have enough privileges to do hql query # Get map red Slots which the current user can use /*$slots = $auth->AuthMapReduceSlots($env["privFile"],$_SESSION['username'],$_SESSION['password']); $slots = explode(",",$slots); $mslots = $slots[0]; $rslots = $slots[1]; if($mslots != '0') { $mslots = "set mapred.map.tasks=".$mslots."; "; } else