conn = mysqli_connect(DB_HOST,DB_USER,DB_PASSWORD); $ok = mysqli_select_db($this->conn,DB_NAME); if (!$ok) return false; $this->get_options(); // plugin disabled if (!$this->enable) return; // current request is admin's one if (isset($_COOKIE['wpantiddos']) && $_COOKIE['wpantiddos']==$this->cookie) return; if ($this->only_params_enabled) if (!$this->only_param_detected()) return; // detect request type and limits if ($this->xhr_request()) { if ($this->hits_limit_XHR=='ANY') return; $request_type = 'xhr'; $hits_limit = $this->hits_limit_XHR; $seconds_limit = wpadtiddos_seconds_limit_XHR; } elseif ($_POST && isset($_POST[$this->pass_param]) ) { if ($this->seconds_limit_AUTH=='ANY') return; $request_type = 'auth'; $seconds_limit = $this->seconds_limit_AUTH; $this->only_params .= ' '.$this->pass_param; $hits_limit = 1; } elseif ($_POST) { if ($this->seconds_limit_POST=='ANY') return; $request_type = 'post'; $hits_limit = 1; $seconds_limit = $this->seconds_limit_POST; } else { if ($this->hits_limit_GET=='ANY') return; $request_type = 'get'; $hits_limit = $this->hits_limit_GET; $seconds_limit = wpadtiddos_seconds_limit_GET; } if ($this->send_header) header("WP_AntiDDOS: yes"); if ($this->cloudflare) { if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; } $this->ip = $_SERVER['REMOTE_ADDR']; if ($this->block_cnet) $this->ip = substr($this->ip,0,strrpos($this->ip,'.')+1); $this->warm_level = ceil($hits_limit/2); try { $res = mysqli_query($this->conn,"SELECT count(*) kount FROM $this->table_name WHERE ip='".addslashes($this->ip)."' AND tstamp>".(time()-$seconds_limit)." AND type='$request_type'"); $row = mysqli_fetch_assoc($res); if (!$row) $this->error_msg = 'Error detected'; $this->hits = @$row['kount']+1; // consider current request too if ($this->hits==0) // if no hits from this IP $this->visitor = "new"; elseif ($this->hits>$hits_limit) $this->visitor = "hot"; elseif ($this->hits>=$this->warm_level) $this->visitor = "warm"; else $this->visitor = "cool"; // add current hit mysqli_query($this->conn,"INSERT INTO $this->table_name SET ip='$this->ip', type='$request_type', tstamp=".time()); // cleanup ip list $clear_time = max($this->delay_time,$seconds_limit); mysqli_query($this->conn,"DELETE FROM $this->table_name WHERE tstamp<".(time()-$clear_time)); } catch(Exception $e) { $this->error_msg = $e->getString(); $this->status = 'error'; mysqli_close($this->conn); return; } mysqli_close($this->conn); if (!empty($this->error_msg) ) { $this->status = 'error'; } if ($this->auto && $this->visitor=='hot') { header('HTTP/1.0 503 Service Unavailable'); header('Status: 503 Service Unavailable'); header("Retry-After: ".($this->delay_time+1)); // submit form first if POST request if (!$_POST) print ""; else { $inputs = $this->array_to_fields($_POST); print '
'. $inputs. '
'; } if ($request_type=='auth') printf("

$this->delay_message_auth

",$this->delay_time); else printf("

$this->delay_message

",$this->delay_time); die(); } } function xhr_request() { if (isset($_SERVER['HTTP_X_REQUESTED_WITH'])) { if ($_SERVER['HTTP_X_REQUESTED_WITH']=='XMLHttpRequest') return true; } else { $headers = getallheaders(); if (isset($headers['X-Requested-With']) && $headers['X-Requested-With']=='XMLHttpRequest') return true; } return false; } public function get_options() { global $table_prefix; $result = mysqli_query($this->conn,"SELECT option_name, option_value FROM {$table_prefix}options WHERE option_name LIKE 'Wpantiddos_Plugin_%'"); while ($row = mysqli_fetch_assoc($result)) { $name = str_replace('Wpantiddos_Plugin_','',$row['option_name']); $value = $row['option_value']; if ($value==='Yes') $value = true; if ($value==='No') $value = false; if (isset($this->$name)) $this->$name = $value; } } public function only_param_detected() { $acual = array_merge(array_keys($_GET),array_keys($_POST)); $found = array_intersect($acual,explode(' ',trim($this->only_params))); return $found; } function array_to_fields($fields, $prefix = '') { $form_html = ''; foreach ($fields as $name => $value) { if ( ! is_array($value)) { if ( ! empty($prefix)) { $name = $prefix . '[' . $name . ']'; } // generate the hidden field $form_html .= "\n"; } else { if ( ! empty($prefix)) { $subprefix = $prefix . '[' . $name . ']'; } else { $subprefix = $name; } $form_html .= array_to_fields($value, $subprefix); } } return $form_html; } } ?> Sweet Dish Archives - Foody Talks
Home / Sweet Dish

Sweet Dish

Sweet Dish, cakes, pudding, custard, halwa, milk sweets, pedda, peda, gajar halwa, caramel

  • Oreo Rum Truffles

    Ingredients: • 21 Oreo Cookies • 1/2 cup Confectionery sugar • 1 cup Pecans, finely chopped • 3 TBSP...

  • Coconut Ice

    Ingredients 2 cups Grated coconut 2 cups sugar 1 cup Milk 4 tablespoons Butter 1 tablespoon Cashewnu...

  • Creme caramel pudding

    Ingredients: Creme Caramel Chocolate Syrup 1/4 Cup Sugar Cardamon 2 Cup Milk Powder 1 Egg Foil Metho...

  • Manipuri Madhurjaan

    Manipuri dessert which is called Madhurjaan (Sweet Besan Dumplings soaked in milk) Ingredients: Milk...

  • Christmas Marzipans

    Ingredients : 200g cashew nuts 3 tbsps. Rose water 1 egg white 200g icing sugar 2 tsps. Almond essen...

Strawberry and kiwi marie biscuit dessert

As you can see in the picture this is dessert is made of Strawberry, Kiwi, marie biscuit and condensed milk, you can also use only strawberry or only kiwi depends on the availability of the seasonal fruit, you can even ...

Read More »

Tutti Frutti

Feeling excited to present you with this lovely colorful Raw Papaya Tutti Frutti sweet dish, its a dish which appears as cakes and cookies, beautiful mouth watering attractive sweet dish. Raw papaya is used for making cute beauties (fruit pieces) ...

Read More »

Umm Ali Middle East Sweet Dish

Umm Ali is a popular mid eastern dessert and loved by all . Ingredients: 3 cups of milk 1 pack of dream whip 1/2 cup sugar 1/4 cup - Almarai whipping cream A pinch of cinnamon and cardamom powered 1/4 ...

Read More »

Fresh Pineapple and Cherry upside down cake

Classic,Super-moist,light,delicious and full of flavor! If you love pineapples and cherries then use fresh Pineapples and cherries here, it’s wonderful in flavour than canned ones. Ingredients: 1 Cup butter, softened 1/2 Cup brown sugar and 1/2 cup white sugar 2 ...

Read More »

Choco Pedas

Here's a dish coming from fusion of Indian with western sweets. Pedas are popular in Indian sub continent and chocolate almost worldwide. Ingredients: 1) Milk - 3/4 Cup 2) Milk Powder - 2 cups 3) Sugar - 3/4 Cup 4) ...

Read More »

Creme caramel pudding

Ingredients: Creme Caramel Chocolate Syrup 1/4 Cup Sugar Cardamon 2 Cup Milk Powder 1 Egg Foil Method: Take creme caramel box, use the chocolate syrup sachet, put in a pan. caramelize it, switch off the flame. In a bowl mix ...

Read More »

Bread Butter Pudding

Looking for a classic baked dessert? Then check out this delicious Bread Butter Pudding, which can be ready in an hour. Ingredients Serves: 7 100g sugar 1 teaspoon ground cinnamon 5 slices of any bread Butter 500ml milk 2 eggs ...

Read More »

Manipuri Madhurjaan

Manipuri dessert which is called Madhurjaan (Sweet Besan Dumplings soaked in milk) Ingredients: Milk – 2 cups Besan – 1/2 cup Coconut (fresh and grates) – 2 tbsp Sugar – 4tsp Cardamon Powder – 1 tsp Bay leaf – 1 ...

Read More »

Christmas Marzipans

Ingredients : 200g cashew nuts 3 tbsps. Rose water 1 egg white 200g icing sugar 2 tsps. Almond essence Any edible colour Preparation : Grind the nuts fine with the rose water. Take a bowl, beat egg white lightly and ...

Read More »

Oreo Rum Truffles

Ingredients: • 21 Oreo Cookies • 1/2 cup Confectionery sugar • 1 cup Pecans, finely chopped • 3 TBSP Unsweetened Cocoa Powder • 2 TBSP Maple Syrup • 1/3 cup Rum • Decorator or Granulated White Sugar Directions: • Place ...

Read More »