Skip to content

Instantly share code, notes, and snippets.

@iguana007
Created October 1, 2010 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save iguana007/606126 to your computer and use it in GitHub Desktop.
Save iguana007/606126 to your computer and use it in GitHub Desktop.
$debugArray = array();
if (!in_array($_SERVER['REMOTE_ADDR'], $debugArray)) {
Debug::enable(Debug::PRODUCTION,NULL,'xxx@gmail.com');
$application->catchExceptions = TRUE;
} else {
Debug::enable(Debug::DEVELOPMENT);
$application->catchExceptions = FALSE;
}
@Majkl578
Copy link

Majkl578 commented Oct 1, 2010

No to je ale ošklivé.

@iguana007
Copy link
Author

tak porad jak to resit jinak, rad se poucim a darkcraft taky :)

@Majkl578
Copy link

Majkl578 commented Oct 2, 2010

Však mrkni na fork. :)

@iguana007
Copy link
Author

nice :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment