Commit f725647c authored by David Loiret's avatar David Loiret Committed by Jean-Baptiste Kempf

menus: hide donate box if user is located in Singapor

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 4f428a68
......@@ -6,6 +6,10 @@ require_once($_SERVER["DOCUMENT_ROOT"]."/include/donate.php");
function draw_menus( $nobanner, $alternate_lang, $imgSrc, $b_show_donate )
global $sponsor;
if (function_exists('geoip_db_avail') && (geoip_db_avail(GEOIP_COUNTRY_EDITION) &&
geoip_country_code_by_name($_SERVER['REMOTE_ADDR']) == 'SG' )) {
$b_show_donate = false;
<nav id="nav" class="navbar navbar-default navbar-fixed-top">
<div class="container">
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment