Added 3 functions
Merge origin/master

Conflicts:
	resources/lib.inc.php
	resources/log.txt