Application Validation Does Not Workign bacaause of System Date Change

Posted by cepiyushpatel-1316 under C# on 4/2/2009 | Views : 1535 | Status : [Member] | Replies : 2
hello every1

i ma making C# windows Application For Employee Attendances Management System, It almost Complate
But User Can Make Easily wrong Entry By Changing System Date

i Want to prevent this system Date Changing by User




Responses

Posted by: Vuyiswamb on: 4/2/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Day Ce.piyushpatel@gmail.com

This is not a Programming Question but its an administration problem. Now this is how it can be prevented

In Win XP, you can change the group policy (gpedit.msc) Windows Settings>Security Settings>Local Policies>User Rights Assignment
Default groups that can change time are Administrators and Power Users.


and if so , a user might go to control panel in that case do the Following

Here is the procedure for setting this up with Folder Guard: 



First, run Folder Guard and use its Edit - Add File command to add the file TIMEDATE.CPL to the list of items shown in the main window of Folder Guard. This file is located in the system folder (usually it is C:\Windows\System ).

Select the Default entry in the User List of Folder Guard, and use the Attributes - Access - No Access command of Folder Guard to assign the no access attribute to the file TIMEDATE.CPL. This will make this file inaccessible for all users of the computer.

Now select your user name in the User List, and use the Attributes - Access - Full Access command of Folder Guard to assign the full access attribute to the file TIMEDATE.CPL. This will make this file fully accessible when you log onto the computer using your user name.

Now save the changes and enable the protection, as usual. For more information, refer to Folder Guard Help.
Hint: You can use the same procedure to control access to other .CPL files, as well. Each such file is responsible for a particular Control Panel applet, so by restricting access to the .CPL files you are effectively restricting access to the appropriate items of Control Panel.



Thank you for Posting in .net fUNDA

Were looking forward for your reply

Vuyiswa Maseko


Thank you for posting at Dotnetfunda
[Administrator]

cepiyushpatel-1316, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Neeks on: 4/2/2009 [Member] Bronze

Up
0
Down
Hi,
You can get the date from the Server database. Not from the computer where system is installed.
You can use getdate() function for the date entry.
Thanks,

cepiyushpatel-1316, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response