First of all... Master means the settings from the server (php.ini, httpd.conf, etc). A different value under Local means a setting has been changed with an .htaccess file.
Second: To get the value of register_globals, use this (and stay with me here... it's a really difficult one to remember 😉):
ini_get('register_globals');
Lastly, you don't need to programmatically exit a program just because register_globals is set. You should ALWAYS access your post, get, and cookie variables using $POST, $GET, and $COOKIE (or the $HTTP_VARS equivalents). If you always use them, then your code will work regardless of where it is, and malicious hackers won't be able to "trick" your programs by using GET variables.