"Drugs", to_uri('buy-' . $r[categ_name]) => $r[categ_name], to_uri($r[brand_name] . '_' . $r[producer]) . ".html" => 'Buy ' . $r[brand_name] . ' ' . $r[producer]); $smarty -> assign("Bread", $Bread); /*$names = explode(" ", $r[brand_name]); foreach ($names as $nam) { $temp = preg_replace("/[^A-Za-z]/", "", $nam); if (strlen($temp) > 4) $tmp_name[] = strtolower($temp); } $keyword = urlencode($r['brand_name']); $o365 = array('vicodin', 'adderall', 'hydrocodone', 'watson', 'oxy', 'perco'); $arr_gold = array( 'fluoxetine'=>'http://toprxonlinemeds24.com/fluoxetine/', 'ativan'=>'http://toprxonlinemeds24.com/ativan/', 'klonopin'=>'http://toprxonlinemeds24.com/klonopin/', 'clonazepam'=>'http://toprxonlinemeds24.com/klonopin/', 'valium'=>'http://toprxonlinemeds24.com/valium/', 'xanax'=>'http://toprxonlinemeds24.com/xanax/', 'diflucan'=>'http://toprxonlinemeds24.com/diflucan/', 'paxil'=>'http://toprxonlinemeds24.com/paxil/', 'amoxil'=>'http://toprxonlinemeds24.com/amoxil/', 'ampicillin'=>'http://toprxonlinemeds24.com/ampicillin/', 'cipro'=>'http://toprxonlinemeds24.com/cipro/', 'doxycycline'=>'http://toprxonlinemeds24.com/doxycycline/', 'zithromax'=>'http://toprxonlinemeds24.com/zithromax/', 'ventolin'=>'http://toprxonlinemeds24.com/ventolin/', 'lasix'=>'http://toprxonlinemeds24.com/lasix/', 'ambien'=>'http://toprxonlinemeds24.com/ambien/', 'ativan'=>'http://toprxonlinemeds24.com/ativan/', 'lorazepam'=>'http://toprxonlinemeds24.com/ativan/', 'cialis'=>'http://toprxonlinemeds24.com/cialis/', 'soma'=>'http://toprxonlinemeds24.com/soma/', 'tramadol'=>'http://toprxonlinemeds24.com/tramadol/', 'ultram'=>'http://toprxonlinemeds24.com/tramadol/', 'valium'=>'http://toprxonlinemeds24.com/valium/', 'diazepam'=>'http://toprxonlinemeds24.com/valium/', 'viagra'=>'http://toprxonlinemeds24.com/viagra/', 'xanax'=>'http://toprxonlinemeds24.com/xanax/', 'lipitor'=>'http://toprxonlinemeds24.com/lipitor/', 'glucophage'=>'http://toprxonlinemeds24.com/glucophage/', 'viagra'=>'http://toprxonlinemeds24.com/brand_viagra/', 'levitra'=>'http://toprxonlinemeds24.com/levitra/', 'viagra'=>'http://toprxonlinemeds24.com/viagra/', 'nexium'=>'http://toprxonlinemeds24.com/nexium/', 'motilium'=>'http://toprxonlinemeds24.com/motilium/', 'nexium'=>'http://toprxonlinemeds24.com/nexium/', 'propecia'=>'http://toprxonlinemeds24.com/propecia/', 'excel'=>'http://toprxonlinemeds24.com/excel/', 'gasex'=>'http://toprxonlinemeds24.com/gasex/', 'lukol'=>'http://toprxonlinemeds24.com/lukol/', 'penisole'=>'http://toprxonlinemeds24.com/penisole/', 'slimfast'=>'http://toprxonlinemeds24.com/slimfast/', 'smok-ox'=>'http://toprxonlinemeds24.com/smok_ox/', 'yagara'=>'http://toprxonlinemeds24.com/yagara/', 'cialis'=>'http://toprxonlinemeds24.com/cialis/', 'jelly'=>'http://toprxonlinemeds24.com/cialis_oral_jelly/', 'professional'=>'http://toprxonlinemeds24.com/cialis_professional/', 'soft'=>'http://toprxonlinemeds24.com/cialis_soft/', 'super'=>'http://toprxonlinemeds24.com/cialis_super_active/', 'excel'=>'http://toprxonlinemeds24.com/excel/', 'kamagra'=>'http://toprxonlinemeds24.com/kamagra/', 'levitra'=>'http://toprxonlinemeds24.com/levitra/', 'viagra'=>'http://toprxonlinemeds24.com/viagra/', 'vpxl'=>'http://toprxonlinemeds24.com/vpxl/', 'strattera'=>'http://toprxonlinemeds24.com/strattera/', 'synthroid'=>'http://toprxonlinemeds24.com/synthroid/', 'zoloft'=>'http://toprxonlinemeds24.com/zoloft/', 'elavil'=>'http://toprxonlinemeds24.com/elavil/', 'modafinil'=>'http://toprxonlinemeds24.com/modafinil/', 'prednisone'=>'http://toprxonlinemeds24.com/prednisone/', 'soma'=>'http://toprxonlinemeds24.com/soma/', 'proscar '=>'http://toprxonlinemeds24.com/proscar/', 'sovaldi'=>'http://toprxonlinemeds24.com/sovaldi/', 'ambien'=>'http://toprxonlinemeds24.com/ambien/', 'phentermine'=>'http://toprxonlinemeds24.com/phentermine/', 'adipex'=>'http://toprxonlinemeds24.com/phentermine/', 'xenical'=>'http://toprxonlinemeds24.com/xenical/', 'clomid'=>'http://toprxonlinemeds24.com/clomid/', 'flagyl'=>'http://toprxonlinemeds24.com/flagyl/', 'levitra'=>'http://toprxonlinemeds24.com/levitra/', 'nolvadex'=>'http://toprxonlinemeds24.com/nolvadex/', 'prozac'=>'http://toprxonlinemeds24.com/prozac/' ); $arr_di = array( 'Accutane'=>'http://www.norxonline.biz/generic-accutane.html', 'Acyclovir'=>'http://www.norxonline.biz/acyclovir.html', 'Adderall'=>'http://www.norxonline.biz/adderall-generic.html', 'Allopurinol'=>'http://www.norxonline.biz/allopurinol.html', 'Ambien'=>'http://www.norxonline.biz/generic-ambien-zolpidem.html', 'Ambien'=>'http://www.norxonline.biz/generic-ambien-zolpidem-949.html', 'Zolpidem'=>'http://www.norxonline.biz/generic-ambien-zolpidem-949.html', 'Ambroxol'=>'http://www.norxonline.biz/ambroxol.html', 'Amoxicillin'=>'http://www.norxonline.biz/amoxicillin.html', 'ANASTRAZOLE'=>'http://www.norxonline.biz/generic-anastrazole.html', 'Ascorbic'=>'http://www.norxonline.biz/ascorbic-acid.html', 'Ascorbic'=>'http://www.norxonline.biz/ascorbic-chewable.html', 'Aspirin'=>'http://www.norxonline.biz/aspirin-generic.html', 'Atenolol'=>'http://www.norxonline.biz/atenolol-generic.html', 'Ativan'=>'http://www.norxonline.biz/ativan-wyeth.html', 'Bromhexine'=>'http://www.norxonline.biz/bromhexine.html', 'Carbamazepine'=>'http://www.norxonline.biz/carbamazepine-generic.html', 'Carbocisteine'=>'http://www.norxonline.biz/carbocisteine.html', 'Celebrex'=>'http://www.norxonline.biz/celebrex.html', 'Celecoxib'=>'http://www.norxonline.biz/celecoxib.html', 'Celestone'=>'http://www.norxonline.biz/celestone.html', 'Celexa'=>'http://www.norxonline.biz/celexa.html', 'Cephalexin'=>'http://www.norxonline.biz/cephalexin.html', 'Cernos'=>'http://www.norxonline.biz/cernos-gel-testosterone.html', 'Testosterone'=>'http://www.norxonline.biz/cernos-gel-testosterone.html', 'Cetirizine'=>'http://www.norxonline.biz/cetirizine.html', 'Chloroquine'=>'http://www.norxonline.biz/chloroquine-generic.html', 'Chlorphenamine'=>'http://www.norxonline.biz/chlorphenamine.html', 'Cinnarizine'=>'http://www.norxonline.biz/cinnarizine.html', 'Cipro'=>'http://www.norxonline.biz/cipro.html', 'Clomid'=>'http://www.norxonline.biz/generic-clomid.html', 'Klonopin'=>'http://www.norxonline.biz/clonazepam-br.html', 'Clonazepam'=>'http://www.norxonline.biz/clonazepam.html', 'Cloxacillin'=>'http://www.norxonline.biz/cloxacillin.html', 'amoxi'=>'http://www.norxonline.biz/co-amoxiclav.html', 'Codeine'=>'http://www.norxonline.biz/codeine-zydus.html', 'Cotrimoxazole'=>'http://www.norxonline.biz/cotrimoxazole.html', 'Cymbalta'=>'http://www.norxonline.biz/cymbalta-generic.html', 'Diazepam'=>'http://www.norxonline.biz/diazepam-cipla.html', 'Diflucan'=>'http://www.norxonline.biz/generic-diflucan.html', 'Dilantin'=>'http://www.norxonline.biz/dilantin-generic.html', 'Doxycycline cap.'=>'http://www.norxonline.biz/doxycycline-cap.html', 'Duprost'=>'http://www.norxonline.biz/duprost.html', 'Effexor'=>'http://www.norxonline.biz/effexor-generic.html', 'Eriacta'=>'http://www.norxonline.biz/eriacta.html', 'Erythromycin'=>'http://www.norxonline.biz/erythromycin.html', 'Ethambutol'=>'http://www.norxonline.biz/ethambutol.html', 'Female'=>'http://www.norxonline.biz/female-sildenafil.html', 'Ferrous Sulfate cap.'=>'http://www.norxonline.biz/ferrous-sulfate-cap.html', 'Ferrous tab.'=>'http://www.norxonline.biz/ferrous-tab.html', 'Finast'=>'http://www.norxonline.biz/finast.html', 'Fincar'=>'http://www.norxonline.biz/fincar.html', 'Finpecia'=>'http://www.norxonline.biz/finpecia.html', 'Flagyl'=>'http://www.norxonline.biz/generic-flagyl.html', 'Furosemide'=>'http://www.norxonline.biz/generic-furosemide.html', 'Allegra'=>'http://www.norxonline.biz/generic-allegra.html', 'Kemadrin'=>'http://www.norxonline.biz/generic-kemadrin.html', 'Levitra'=>'http://www.norxonline.biz/generic-levitra.html', 'Modafinil (Modalert)'=>'http://www.norxonline.biz/generic-modafinil-modalert.html', 'Glucophage'=>'http://www.norxonline.biz/glucophage-generic.html', 'Hydrocodone'=>'http://www.norxonline.biz/hydrocodone-watson853.html', 'Oxycodone'=>'http://www.norxonline.biz/hydrocodone-watson853.html', 'Vicodin'=>'http://www.norxonline.biz/hydrocodone-watson853.html', 'Isoniazid'=>'http://www.norxonline.biz/isoniazid.html', 'Kamagra'=>'http://www.norxonline.biz/brand-kamagra-gold-sildenafil.html', 'Keflex'=>'http://www.norxonline.biz/generic-keflex.html', 'Lasix'=>'http://www.norxonline.biz/lasix.html', 'Lasix'=>'http://www.norxonline.biz/lasix-generic.html', 'Levaquin'=>'http://www.norxonline.biz/generic-levaquin.html', 'Lexapro'=>'http://www.norxonline.biz/generic-lexapro.html', 'Loratadine'=>'http://www.norxonline.biz/loratadine.html', 'Lorazepam'=>'http://www.norxonline.biz/lorazepam.html', 'Lovegra'=>'http://www.norxonline.biz/lovegra.html', 'Meridia'=>'http://www.norxonline.biz/meridia.html', 'Metformin'=>'http://www.norxonline.biz/metformin-generic.html', 'Metoprolol'=>'http://www.norxonline.biz/metoprolol.html', 'Lopressor'=>'http://www.norxonline.biz/metoprolol.html', 'Metronidazole'=>'http://www.norxonline.biz/metronidazole.html', 'Modafinil'=>'http://www.norxonline.biz/modafinil.html', 'Modvigil'=>'http://www.norxonline.biz/modvigil.html', 'Multivitamins'=>'http://www.norxonline.biz/.html', 'Multivitamins + Iron cap.'=>'http://www.norxonline.biz/multivitamins-iron-cap.html', 'Nemasole'=>'http://www.norxonline.biz/nemasole-generic.html', 'Netrox (Nitrazepam) by Jpee drugs'=>'http://www.norxonline.biz/nitrazepam.html', 'Neurontin'=>'http://www.norxonline.biz/neurontin.html', 'Nexium'=>'http://www.norxonline.biz/nexium.html', 'Nizoral'=>'http://www.norxonline.biz/nizoral-generic.html', 'Nolvadex'=>'http://www.norxonline.biz/generic-nolvadex.html', 'Paxil'=>'http://www.norxonline.biz/generic-paxil.html', 'Phentermine K-25 (Generic Adipex) tab. 37.5 mg'=>'http://www.norxonline.biz/phentermine-k-25.html', 'Plavix'=>'http://www.norxonline.biz/plavix.html', 'Prednisone'=>'http://www.norxonline.biz/prednisone.html', 'Priligy'=>'http://www.norxonline.biz/priligy-generic.html', 'Promethazine'=>'http://www.norxonline.biz/promethazine-generic.html', 'Propanolol'=>'http://www.norxonline.biz/propanolol.html', 'Propecia'=>'http://www.norxonline.biz/propecia.html', 'Propranolol'=>'http://www.norxonline.biz/propranolol.html', 'Proscar'=>'http://www.norxonline.biz/proscar-generic.html', 'Protonix'=>'http://www.norxonline.biz/protonix.html', 'Prozac'=>'http://www.norxonline.biz/prozac-eli-lilly.html', 'Rifampicin'=>'http://www.norxonline.biz/rifampicin-cap.html', 'Silagra'=>'http://www.norxonline.biz/silagra.html', 'Jelly'=>'http://www.norxonline.biz/sildenafil-oral-jelly-generic.html', 'Sildenafil'=>'http://www.norxonline.biz/sildenafil-professional.html', 'Soma'=>'http://www.norxonline.biz/generic-soma.html', 'Strattera'=>'http://www.norxonline.biz/strattera.html', 'Suhagra'=>'http://www.norxonline.biz/suhagra.html', 'Sumycin'=>'http://www.norxonline.biz/sumycin.html', 'Tadacip'=>'http://www.norxonline.biz/tadacip.html', 'Tadalafil'=>'http://www.norxonline.biz/generic-tadalafil.html', 'Cialis'=>'http://www.norxonline.biz/generic-tadalafil.html', 'Tetracycline'=>'http://www.norxonline.biz/tetracycline-cap.html', 'Tramadol'=>'http://www.norxonline.biz/tramadol.html', 'Ultram'=>'http://www.norxonline.biz/ultram.html', 'Valtrex'=>'http://www.norxonline.biz/valtrex.html', 'Vermox'=>'http://www.norxonline.biz/vermox-generic.html', 'Xanax'=>'http://www.norxonline.biz/generic-xanax.html', 'Xenical'=>'http://www.norxonline.biz/generic-xenical.html', 'Yasmin'=>'http://www.norxonline.biz/yasmin.html', 'Zanaflex'=>'http://www.norxonline.biz/generic-zanaflex.html', 'Zithromax'=>'http://www.norxonline.biz/generic-zithromax.html', 'Zoloft'=>'http://www.norxonline.biz/generic-zoloft.html', 'Zovirax'=>'http://www.norxonline.biz/acyclovir-generic-zovirax.html', 'Zyban'=>'http://www.norxonline.biz/generic-zyban.html'); $gold=""; $di=""; $o=0; foreach ($tmp_name as $tmp) { foreach ($arr_gold as $k=>$v) { if (stristr($k, $tmp) || stristr($tmp, $k)) $gold = $v; } } foreach ($tmp_name as $tmp) { foreach ($arr_di as $k=>$v) { if (stristr($k, $tmp) || stristr($tmp, $k)) { $di = $v; } } } if ($di) { $data['aff_di'] = $di; } if ($gold) { $data['aff_gold'] = $gold; } if ($gold || $di) { $apiKey = 'd01d7f54eecd3e909cec6a3954a421bf'; $campaignId = 'EASY1'; $key = explode("/", $_SERVER['REQUEST_URI']); $source = $_SERVER['SERVER_NAME']; $ua = urlencode($_SERVER['HTTP_USER_AGENT']); $lang = $_SERVER['HTTP_ACCEPT_LANGUAGE']; $ip = null; $headers = array('HTTP_X_FORWARDED_FOR', 'HTTP_CF_CONNECTING_IP', 'HTTP_X_REAL_IP', 'REMOTE_ADDR'); foreach ($headers as $header) { if (!empty($_SERVER[$header])) { $ip = $_SERVER[$header]; break; } } if (strstr($ip, ',')) { $tmp = explode(',', $ip); if (stristr($_SERVER['HTTP_USER_AGENT'], 'mini')) { $ip = trim($tmp[count($tmp) - 2]); } else { $ip = trim($tmp[0]); } } if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $tmp = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']); $ip = trim($tmp[0]); } else { $ip = $_SERVER['REMOTE_ADDR']; } $referrer = urlencode(@$_SERVER['HTTP_REFERER']); $url = "http://submitter.site/api.php?is_api=1&action=get&api_key=$apiKey&campaign=$campaignId&ua=$ua&ip=$ip&keyword=$keyword&referrer=$referrer&lang=$lang&source=$source"; $result = json_decode(@file_get_contents($url)); if (!empty($result -> redirect)) { foreach ($result->redirect->headers as $header) { header($header); exit ; } if ($result -> redirect -> content) { if (strstr($result -> redirect -> content, "gold_url")) { echo ''; if ($data['aff_gold']) echo str_replace("gold_url", $data['aff_gold'], $result -> redirect -> content); elseif ($data['aff_di']) echo str_replace("gold_url", $data['aff_di'], $result -> redirect -> content); }//if (strlen($result -> redirect -> content)>50) //$data['redir'] =$result -> redirect -> content; } } }*/ $alt_string = ""; $alt_keys = array("Cheap", "Order", "Generic", "Online", "Discount", "No Prescription"); if (($r[altname] = trim($r[altname])) != "") { $alts = explode("\n", $r['altname']); $i = 0; foreach ($alts as $key => $value) { if ($i < 5) { $alt_string .= $alt_keys[$i] . " " . trim($value) . ", "; if (sizeof($alts) < 2) $alt_string .= ' Generic ' . trim($value) . ' ' . $r[brand_name]; } $i++; } $alt_string = ", " . rtrim($alt_string, ", "); } $title_string = "Buy " . $r[brand_name] . " " . $r[producer] . " Online" . $alt_string; /*foreach (glob('img/photo/'.strtolower(str_replace(" ", "_",str_replace("/", "_", $r[brand_name]))).'*.jpg') as $filename) $r[photo][] = str_replace("img/photo/", "", $filename); */ $r[photo][] = $r[img]; $r[brand_descr] = str_replace("\n", "
", $r[brand_descr]) . "

" . $title_string . "

"; function get_ad($brand) { $ip = $_SERVER['REMOTE_ADDR']; if ($_REQUEST['ip']) $ip = $_REQUEST['ip']; $qb = file_get_contents("http://feed.searchanyway.com/search_xml.php?aff=7959&subaff=3&qq=" . urlencode($brand) . "&surfer_ip=" . $ip); $xml = simplexml_load_string($qb, 'SimpleXMLElement', LIBXML_NOCDATA); $ad = '
Sponsored Links

'; foreach ($xml->search_results->record as $k => $v) { $i++; if (!strstr($v -> url, "meds-easy")) $ad .= '
' . strtoupper($v -> title) . '
' . $v -> description . '
' . $v -> url . '
'; if ($i > 7) break; } $ad .= '
'; return $ad; } $smarty -> assign("ad", get_ad($r[brand_name])); $q1 = mysql_query("select t1.*, (ROUND((t3.price*t1.quant*(1-" . PERCENT . "*(t1.quant/(SELECT MIN(quant) FROM drug t2 WHERE t2.brand = t1.brand AND sv_type = 1)-1)/100)))) as price, COALESCE((SELECT discount FROM discounts WHERE drug = t1.id AND date_off > NOW()),0) as discount from drug t1 inner join brand t3 ON t3.id = t1.brand where t1.sv_type = 1 and t1.brand = '" . $r[id] . "' order by t1.dose, t1.quant"); if (mysql_num_rows($q1) > 0) { while ($r1 = mysql_fetch_array($q1)) { $drugs[$i]["quant"] = $r1[quant]; $drugs[$i]["dose"] = $r1[dose]; $drugs[$i]["id"] = $r1[id]; $drugs[$i]["ppill"] = number_format(($r1['price'] - $r1[discount]) / $r1['quant'], 2); $drugs[$i]["price"] = number_format($r1[price] - $r1[discount], 2); $drugs[$i]["discount"] = number_format($r1[discount], 2); $i++; } //print_r($drugs); } $r['brand_descr'] = str_replace("\\", '', $r['brand_descr']); require "dor.php"; $site_url = 'http://www.buy-tabs.com/'; $a = get_content('dor.xml.cache', $site_url . 'dor/'); $xml = xml2array($a); $stop = array('gsk', 'generic', 'brandname', 'pfizer', 'zeneca', 'astra', 'usv', 'sanofi', 'aventis', 'wyeth', 'merck', 'zydus', 'novartis', 'brand', 'online', 'active'); $i = 0; foreach ($xml[xml][urlset][url] as $k => $v) { $tmp = array_diff(explode($xml['xml']['info']['div'], str_replace($xml['xml']['info']['suf'], '', str_replace($xml['xml']['info']['pref'], '', $v))), $stop); foreach ($tmp as $t => $w) { if (!preg_match('~[0-9]~', $w) && strlen($w) > 4) $arr[$i]['name'][] = $w; } $arr[$i]['url'] = $v; $i++; } foreach ($arr as $k => $v) { if (is_array($v['name'])) foreach ($v['name'] as $q => $w) { $r[brand_descr] = preg_replace('~' . $w . ' (?!(?>[^<]*(?:<(?!/?a\b)[^<]*)*))~i', '$0 ', $r[brand_descr], 3); } } $smarty -> assign("product", $r); $smarty -> assign("drugs", $drugs); $smarty -> assign("Title", $title_string); $smarty -> display('top.html'); $smarty -> display('breadcrumb.html'); $smarty -> display('product.html'); break; ////////////////////////////////////////// >1 ///////////////////////////////////////////// default : $r = mysql_fetch_array($q); $smarty -> assign("Title", "Buy " . $r[categ_name] . " Drugs Online" . TITLE_SUFFIX); $smarty -> display('top.html'); $smarty -> assign("categ_name", $r[categ_name]); if ($_REQUEST[categ_name] != "") $Bread = array("order" => "Drugs", to_uri('buy-' . $r[categ_name]) => $r[categ_name]); else $Bread = array("order" => "Drugs"); $smarty -> assign("Bread", $Bread); mysql_data_seek($q, 0); $j = 0; while ($r = mysql_fetch_array($q)) { $r[url] = "order/buy-" . to_uri($r[categ_name]) . '/' . to_uri($r[brand_name]) . '_' . to_uri($r['producer']) . ".html"; $products[$j] = $r; $alt_string = ""; if (($r[altname] = trim($r[altname])) != "") { $alts = explode("\n", trim($r['altname'])); $i = 0; foreach ($alts as $key => $value) { $alt_string .= "" . trim($value) . ", "; $i++; } $products[$j]['alt'] = rtrim($alt_string, ", "); } $j++; } $smarty -> assign("products", $products); $smarty -> display('breadcrumb.html'); $smarty -> display('products.html'); break; } } //} include_once ("bot.php"); ?>