|
"; if(isset($sql_query) && !empty($sql_query)) { echo "$strSQLQuery:
".htmlspecialchars($sql_query)."
";
}
if(empty($error))
echo "$strMySQLSaid ".mysql_error();
else
echo "$strMySQLSaid ".htmlspecialchars($error);
echo "\n
$strBack";
include("./footer.inc.php3");
exit;
}
function auth() {
global $cfgServer, $strAccessDenied, $strWrongUser;
//$PHP_AUTH_USER = ""; // No need to do this since err 401 allready clears that var
Header("status: 401 Unauthorized");
Header("HTTP/1.0 401 Unauthorized");
Header("WWW-authenticate: basic realm=\"phpMySQLAdmin on ".$cfgServer['host']."\"");
echo "
\n"; } if($sql_query == "SHOW PROCESSLIST") { echo " | "; } while($field = mysql_fetch_field($dt_result)) { if(@mysql_num_rows($dt_result)>1 && !$is_simple) { $sort_order=urlencode(" order by $field->name $cfgOrder"); echo " | "; echo ""; echo $field->name; echo ""; echo " | \n"; } else { echo "$field->name | "; } $table = $field->table; } echo "||||
---|---|---|---|---|---|---|---|
".$strEdit." | "; echo "".$strDelete." | "; } // } code no longer condition on $primary_key //end correction uva 19991216 pt. 3 ----------------------------- if($sql_query == "SHOW PROCESSLIST") echo "$strKill | \n"; //possibility to have the modify/delete button on the left added // 2000-08-29 for($i=0; $i$row[$i] | \n"; } elseif($cfgShowBlob == false && eregi("BLOB", $primary->type)) { echo "[BLOB] | \n"; } else { echo "".htmlspecialchars($row[$i])." | \n"; } } if($cfgModifyDeleteAtRight && !$is_simple) { echo "".$strEdit." | "; echo "".$strDelete." | "; } echo "
|
", nl2br(htmlspecialchars($GLOBALS['sql_query'])); if (isset($GLOBALS["sql_order"])) echo " $GLOBALS[sql_order]"; if (isset($GLOBALS["pos"])) echo " LIMIT $GLOBALS[pos], $GLOBALS[cfgMaxRows]";?> |
"; echo "$strSQLQuery:
".htmlspecialchars($sql)."
";
if(empty($error))
echo "$strMySQLSaid ".mysql_error();
else
echo "$strMySQLSaid ".htmlspecialchars($error);
echo "\n
$strBack";
include("./footer.inc.php3");
exit;
}
// Split up large sql files into individual queries
// Version 2 18th May 2001 - Last Modified By Pete Kelly
function split_sql_file($sql, $delimiter) {
$sql = trim($sql);
$char = "";
$last_char = "";
$ret = array();
$in_string = true;
for($i=0; $i
";
$value=round($value/(1073741824/$dh))/$dh;
echo "$value - $dh
";
$unit="GB";
}
else if ($value >= $li*1000){
$value=round($value/(1048576/$dh))/$dh;
$unit="MB";
}
else if ($value >= $li){
$value=round($value/(1024/$dh))/$dh;
$unit="KB";
}
if ($unit!="Byte") $returnvalue=number_format($value,$comma,',','.');
else $returnvalue=number_format($value,0,',','.');
return array($returnvalue,$unit);
}
} // $__LIB_INC__
// -----------------------------------------------------------------
?>