diff --git a/bdgwebkit/log.txt b/bdgwebkit/log.txt index 8f0e52977d65980ea816c193c82add04ed235f67..4fe621bae9b0f1466f5bb4745b1a297b237735a6 100644 --- a/bdgwebkit/log.txt +++ b/bdgwebkit/log.txt @@ -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 diff --git a/bdgwebkit/permohonanClass.php b/bdgwebkit/permohonanClass.php index eb9a94e421b8cd3a9981138fa4f3be3557651b8a..eb679ad3fc708704421decd57ee664a1462450cb 100644 --- a/bdgwebkit/permohonanClass.php +++ b/bdgwebkit/permohonanClass.php @@ -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']; diff --git a/bdgwebkit/staffPermohonan.php b/bdgwebkit/staffPermohonan.php index 82d15a12528165173f4f58d67d3fbd4442defa96..bdf7199aad50af20790be91f8581e48ae59ffd90 100644 --- a/bdgwebkit/staffPermohonan.php +++ b/bdgwebkit/staffPermohonan.php @@ -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); } }