examples/SafeBrowsing/local-search.php 1 location
|
@@ 60-62 (lines=3) @@
|
| 57 |
|
if (isset($settings['safebrowsing']['redis_database'])) { |
| 58 |
|
$redisOptions['parameters']['database'] = $settings['safebrowsing']['redis_database']; |
| 59 |
|
} |
| 60 |
|
if (isset($settings['safebrowsing']['redis_password'])) { |
| 61 |
|
$redisOptions['parameters']['password'] = $settings['safebrowsing']['redis_password']; |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
$safeBrowsing = new SafeBrowsingClient($key); |
| 65 |
|
$redisAdapter = new RedisAdapter($redisDsn, $redisOptions); |
examples/SafeBrowsing/save-prefixes-db.php 1 location
|
@@ 53-55 (lines=3) @@
|
| 50 |
|
if (isset($settings['safebrowsing']['redis_database'])) { |
| 51 |
|
$redisOptions['parameters']['database'] = $settings['safebrowsing']['redis_database']; |
| 52 |
|
} |
| 53 |
|
if (isset($settings['safebrowsing']['redis_password'])) { |
| 54 |
|
$redisOptions['parameters']['password'] = $settings['safebrowsing']['redis_password']; |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
$safeBrowsing = new SafeBrowsingClient($key); |
| 58 |
|
$redisAdapter = new RedisAdapter($redisDsn, $redisOptions); |
examples/SafeBrowsing/update-prefixes-db.php 1 location
|
@@ 53-55 (lines=3) @@
|
| 50 |
|
if (isset($settings['safebrowsing']['redis_database'])) { |
| 51 |
|
$redisOptions['parameters']['database'] = $settings['safebrowsing']['redis_database']; |
| 52 |
|
} |
| 53 |
|
if (isset($settings['safebrowsing']['redis_password'])) { |
| 54 |
|
$redisOptions['parameters']['password'] = $settings['safebrowsing']['redis_password']; |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
$safeBrowsing = new SafeBrowsingClient($key); |
| 58 |
|
$redisAdapter = new RedisAdapter($redisDsn, $redisOptions); |