db_host=$hostname;
$objSetupLAK->db_user=$username;
$objSetupLAK->db_pass=$password;
$objSetupLAK->db_database=$database;
if(!$objSetupLAK->db_connect()) {
echo "
Sorry! Could not connect to the database server.
";
exit();
}
if ($modus=='modify'){
if ($objSetupLAK->updateAkun(str_replace('_','.',$noakun),$namaakun,$nogrupakun,$icon)) {?>
strDBError;
}
}
if ($modus=='insert'){
if ($objSetupLAK->insertAkun($noakun,$namaakun,$nogrupakun,$icon)) {?>
strDBError;
}
}
?>