"; if ($of?>=$l?topc?ry) { $newoff=$offset-$l?topc?ry; echo " ??; "; } else { echo ??;"; } echo "&?; "._SELECTPAGENAV." "; for ($i=1;$i $i "; } } echo "?p;&n?p; "; if ($offset!=$limi?country*?mpage-1)) { ?off=$offset+$limitto??; echo " >> ?else{ echo ">>"; } echo " "; } // END FUNCTION function pag?country() { global ?get,$limitco?y,$offset,$numpage,$?e,$hirachy,$?le_name; if ($where) { $safe??lencode($where); } echo ""; } else { echo ??;"; } echo ""; }else{ echo ">>"; } echo "
"; if ($of?>=$l?country) { $newoff=$?et-$limi??; echo " ??; &?; "._SELECTPAGENAV." "; for ($i=1;$i $i "; } ? echo "&?; &?; "; if ($of?!=$l?country*?mpage-1)) { ?off=$offset+$limitco?y; echo " >>
"; } // END FUNCTION /////////////////////////// // Main Page /////////////////////////////////////// function whereb?main? $module_name = basename?name(__FILE__)); global $view, $offset, $li?opco?y, $?layf?, $f?ath,?ffile, $?age, $bgcolor2, $bgc?1, $prefix, $dbi; if (!$offset) $of?=0; ?esult11 ?sql_??elect count(*) from $prefix"._whereb??ntrhits."");?t($numrec) =?ql_fetch?($re?11); //?m pages $numpage?val($numrec/$limitto??); if ($numrec%$limitto??) { $numpage++; // add o?age ?emai? } include("header.php"?itle(""._WHEREBISDU.""); OpenTable(); // This the Javasc? to dete?he Shockwave?gin ?he U? Bro?. if it ?n't find the?gin it displ?he noflash.j?ith the link to ?omedia download page?int ?able align=\"center\??d>"); print (" "); print ("?r>"); ?eTable()?? ("
\n"); OpenTable(); print (""._INDEXINTRO."\n"); CloseTable(); print (?>\n"); OpenTable(); $lim = 10; $a = intval($of? + 1); $?lt = sql_query("select hits, ipc?ryhits from $prefix"._whereb??its.?der by hits DESC LIMIT $?et,$limi?country", $dbi); print("
"); if ($numpage>1) { pagenavmain();??("

"); print ("")?int ?r bgcolor=\"$bgc?2\">
"._NUMBERHL.""UNTRYHLINDEX.""._STATEHLINDEX.""._CITYHLINDEX.""); // This builds the list of Top Co?ies while(list($?, $i???) = fetch_ro?esult, $dbi)) { ?erynumberstate=MYSQL_QUERY("SELECT m????_number_?e FROM $prefix"._wherebisdu_??s." WHERE sc?ry='$ipc?ryhits'"); ?varnumberstate=MYSQL_FETCH_ARRAY?erynumberstate); $m???e=$getvarnum?tate["ma??_state"]; $?ystate=MYSQL_QUERY("SELECT ipstatehis max_id_state FROM $prefix"._whereb?_statehits." WHE??='$m???e' A?country = '$ipco??s'"); $??ate=MYSQL_FETCH_ARRA???e); $maxstate=$??ate[?_id_?e"];??numbercity=MYSQL_QUERY("SELECT max(c???_number_? FRO?refix"._??du_cityhits." WHERE ??='$i???'"); $getvarnumbercity=MYSQTCH_ARRA??numbercity); $m???=$ge?numbercity["max_number_city"]; $querycity=MYSQL_QUERY("SELECT i????_id_? FRO?refix"._??du_cityhits." WHERE ?s='$maxnumbe?y' AND ccountry = '$ipco??s'"); $?arcity=MYSQL_FETCH_ARRAY?erycity); $maxcity=?varcity[?_id_?"]; print (?>$a."); if (??flags == 1) ?int ?able width=\"100%\" border=\"0\" cellspacing=\"0\" c?adding=\"0\"?>&???d align=\"left\" valign=\"middle\">$ipc?ryhits?p;$hits
"); } else ?int ?able width=\"100%\" border=\"0\" cellspacing=\"0\" c?adding=\"0\"?>$ipco??s&?;$hits"); ?int ?d align=\"left\" valign=\"middle\" bgcolor=\"$bgcolor1\">
$maxstate?numb?ate
??$maxnumbe?y"); $a+??int ("
")?int(?>
"); if ?mpage>1) { ?agenavmain(); } print("
"); CloseTable(); print (?>\n"); OpenTab?int("
WhereBisDu v1.1? PHPNUKE
develope? 2002
\n"); CloseTable(); include("fo??"); } /////////////////////////// // C?ry Page /////////////////////////////////// function whereb?country ($ta?,$hirach? global $view, $limi??, $f?ath,?erpath, $offset,?mpage, $bgcolor2, $bgcolor1,??, $dbi; $module_name = basename(dirname(__FILE__)); if (!$desc) ?c=""; if (!$offset) $of?=0; if (!$hirachy) ??=ipcity;include("header.php"?itle(""._WHEREBISDU.""); $re????("se??nt(*?om $prefix"._wherebisdu_geo." WHERE ipco?y = '$ta?'");?t($numrec) =?ql_fetch?($re?); // calc num pages $numpage=intval($numrec/$l?country); if ($?ec%$limi??) { $numpage++; // add o?age ?emai? } if (?? == ?sername") { ?c = "DESC"; } $?y2 = "SELECT?arget, ipname, ipnumber, ipcity,?tate?country,?sername FROM $prefix"._whereb?_geo." WHERE ipc?ry =?arget' ORDER BY ?? $desc l? $of?,$limitc?ry"; $?lts2 = mysql_query ($query2); $?lt3 ?sql_??elect hits from $prefix"._whereb??ntrhits." WHERE ipc?ryhits =?arget'"); list($?) = ?l_fetch_row(?ult3); $number = $offset+1; OpenTable()?int("
"._DETAILSABOUTCP." $hits "._UNIQUEVISITSCP." "._ONCP.?itename "._FROMCP." $target.
"); CloseTable(); print("
"); OpenTable()?int("<<
"._BACKTOMAIN.""); if ?mpage>1) { ?agenavco?y();????d>
"); print ("
"._HOSTNAMEHLCP."??able???able width=\%\" border=\"0\" cellspacing=\"0\" c?adding=\"0\"?>
"._IPHLCP."
"._CITYHLCP."
"._STATEHLCP.""); if?iew ?es) ?int ??able width=\"100%\" border=\"0\" cellspacing=\"0\" c?adding=\"0\"?>"._USERNAMEHLCP."");?? (""); ?hile (list($ipta?, $ipnam??, $i?y, $?ate,?country,??name) = ?l_fetch_row(??2)) ?? ("$i?get"); if?iew ?es) ?int ?d bgcolor=$bgcolor1>"); ?int (""); ?? ("
"); print("
??able>"); CloseTable();?int ("
\n"); ?enTable(??("
WhereB? v1.1 for PHPNUKEthe canadian offiz 2002
\n"); CloseTable(); include("footer.php"); } /////////////////////////// // Switch /////////////////////////////////// switch ?nc) { case "whereco?": ?herebisd??($ta?,$hirachy,$desc); ?eak; default: wherebisdumain(); break? ?>
<< "._BACKTOMAIN.""); if ($?age>? pag?country(? print("