// -*- c++ -*-
$maintdir = "..";
require("$maintdir/constants.php3");
require("$authdir/get-login.php3");
get_login(true);
// If we get past here, we're logged in
do_header("Add MPI Implementation");
//
// Functions and whatnot
//
function deApos($str){
return str_replace("'","\'",$str);
}
function isForm(){
echo "sending messsage...
";
$DBCon = msql_pconnect();
$db = msql_select_db("mpi-list", $DBCon);
echo "erros:",msql_error(),"
";
$free = $GLOBALS["free"];
if($free == "on"){$free = 1;}
else{$free = 0;}
$name = deApos($GLOBALS["name"]);
$link = deApos($GLOBALS["link"]);
$supplier = deApos($GLOBALS["supplier"]);
$version = deApos($GLOBALS["version"]);
$functions = deApos($GLOBALS["functions"]);
$code = deApos($GLOBALS["code"]);
$help = deApos($GLOBALS["help"]);
$note = deApos($GLOBALS["note"]);
$supported = deApos($GLOBALS["supported"]);
$SQL="INSERT INTO implementations VALUES ('$name','$link','$supplier','$version','$functions','$code','$help','$note','$supported',$free)";
$SQL = str_replace("\n", "
", $SQL);
$SQL = str_replace("\"", "\\\"", $SQL);
echo "SQL:$SQL";
$queryID = msql("mpi-list", $SQL, $DBCon);
echo "
errors:",msql_error(),"
";
echo "rows aff:",msql_affected_rows($queryID),"
";
echo "
Back";
}
function isNotForm(){
do_main_menu();
?>