Skip to content
Snippets Groups Projects
Commit 65683401 authored by Vincent Theophilus Ciputra's avatar Vincent Theophilus Ciputra
Browse files

added fix log

parent e7fba6bb
Branches
No related merge requests found
Pipeline #2758 skipped
......@@ -4,3 +4,7 @@ Update Permohonan : alexsukono
Update Permohonan : alexsukono
Update Permohonan sukonoedit : alexsukono
Update Permohonan sukonoedit2 : alexsukono
Insert Permohonan sukonoaha : alexsukono
Verify Staf Disdukcapil : gerrykastogi
Verify Staf Disdukcapil 1 : gerrykastogi
Verify Staf Disdukcapil 47 : gerrykastogi
......@@ -91,6 +91,12 @@ class Permohonan{
$q = mysql_query($permohonan);
$myfile = fopen("log.txt", "a+") or die("Unable to open file!");
$activity = 'Verify Rumah Sakit ' . $id . ' : ';
fwrite($myfile, $activity);
fclose($myfile);
return $q;
}
......@@ -104,6 +110,12 @@ class Permohonan{
$q = mysql_query($permohonan);
$myfile = fopen("log.txt", "a+") or die("Unable to open file!");
$activity = 'Verify Staf Disdukcapil ' . $id . ' : ';
fwrite($myfile, $activity);
fclose($myfile);
return $q;
}
......@@ -120,6 +132,12 @@ class Permohonan{
$q = mysql_query($permohonan);
$myfile = fopen("log.txt", "a+") or die("Unable to open file!");
$activity = 'Cetak ' . $id . ' : ';
fwrite($myfile, $activity);
fclose($myfile);
// $row = mysql_fetch_array($rq, MYSQLI_ASSOC);
// $row['nama'];
......
......@@ -18,10 +18,22 @@
if (!empty($_POST)) {
if($user->get_role($id) == "stafDisdukcapil") {
$permohonan->verifyStafDisdukcapil($_POST['permohonan_id']);
$myfile = fopen("log.txt", "a+") or die("Unable to open file!");
$username = $user->get_usernameReturn($id) . PHP_EOL;
fwrite($myfile, $username);
fclose($myfile);
} else if ($user->get_role($id) == "rumahSakit") {
$permohonan->verifyRS($_POST['permohonan_id']);
$myfile = fopen("log.txt", "a+") or die("Unable to open file!");
$username = $user->get_usernameReturn($id) . PHP_EOL;
fwrite($myfile, $username);
fclose($myfile);
} else {
$permohonan->cetak($_POST['permohonan_id']);
$myfile = fopen("log.txt", "a+") or die("Unable to open file!");
$username = $user->get_usernameReturn($id) . PHP_EOL;
fwrite($myfile, $username);
fclose($myfile);
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment