Skip to content

Commit

Permalink
Update SaveRecord.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhijeetbyte authored Apr 19, 2023
1 parent 1458ed6 commit 7bf6356
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions SaveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@

// Setting Variables

$password = 'asfr125g@83'; // default password
$dir = 'data'; // default folder name, files (.csv) store inside it
$filename = $dir . '/' . $rollNo . '.csv'; // file naming acc. to Roll no.


// Validate password
if ($password !== 'asfr125g@83') {
echo "<script>alert('Incorrect password, try again!');history.go(-1);</script>";
if ($password !== 'admin123') { // default folder name
echo "<script>alert('Incorrect Password, try again!');history.go(-1);</script>";

exit(); // Terminate the current script
}
Expand Down

0 comments on commit 7bf6356

Please sign in to comment.