Skip to content

Instantly share code, notes, and snippets.

@stefanorg
Created October 1, 2015 22:22
Show Gist options
  • Save stefanorg/7ab489bca63eb536bf6b to your computer and use it in GitHub Desktop.
Save stefanorg/7ab489bca63eb536bf6b to your computer and use it in GitHub Desktop.
zray prepend scrip
<?php
$allowedIps = array('127.0.0.1');
$zray_disable = true;
if (isset($_SERVER['REMOTE_ADDR']) && in_array($_SERVER['REMOTE_ADDR'], $allowedIps)) {
$zray_disable = false;
}
if ($zray_disable == true) {
if (function_exists('zray_disable')) {
zray_disable();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment