Added check.php

Added pull request from beta-branch