require '/Library/WebServer/php/antibot.php';
antibot();
function GetDirArray($sPath)
{
//Load Directory Into Array
clearstatcache();
$handle=opendir($sPath);
//while (false !== ($file = readdir($handle)))
while ($file = readdir($handle))
if ($file != "." && $file != ".." && !(is_dir($file)))
{
$retVal[count($retVal)] = $file;
}
//Clean up and sort
closedir($handle);
sort($retVal);
return $retVal;
}
if ($lan == "jp")
{
$mySelf = "index.html?lan=jp";
$title = "ICΜ";
$foldername = "filesj/";
$imagesfolder = "images/";
$products = GetDirArray('filesj');
$fullSelf = "http://www.enfour.co.jp/eshop/".$mySelf;
//$cart = "http://www.handango.com/minibrandBasket.jsp?homePath=MINIBRAND&lang=japanese&siteId=474&continueUrl=".$fullSelf;
$cart = "http://www.handango.com/minibrand/jp/Basket.jsp?siteId=539&jid=EC69XC1X44ECA2FX7AA4A95AB988F2X6&StyleSheetUrl=minibrandstyle/Enfour_StyleSheet.css&continueUrl=".$fullSelf;
$detail = "http://www.handango.com/PlatformProductDetail.jsp?productId=";
$default = "index.html?lan=jp&f=list";
$exact = "index.html?lan=jp";
if ($pl != "")
$default .= "&pl=".$pl;
}
elseif ($lan == "tc")
{
$mySelf = "index.html?lan=tc";
$title = "Ίτ€W°Σ©±";
$foldername = "filestc/";
$imagesfolder = "images/";
$products = GetDirArray('filestc');
$fullSelf = "http://www.enfour.co.jp/eshop/".$mySelf;
$cart = "http://www.handango.com/minibrandBasket.jsp?homePath=MINIBRAND&lang=tc&siteId=474&continueUrl=".$fullSelf;
$detail = "http://www.handango.com/PlatformProductDetail.jsp?productId=";
$default = "index.html?lan=tc&f=list";
$exact = "index.html?lan=tc";
if ($pl != "")
$default .= "&pl=".$pl;
}
else
{
$mySelf = "index.html?o=on";
$title = "Online store";
$foldername = "files/";
$imagesfolder = "images/";
$products = GetDirArray('files');
$fullSelf = "http://www.enfour.co.jp/eshop/".$mySelf;
$cart = "http://www.handango.com/minibrandBasket.jsp?homePath=MINIBRAND&siteId=474&continueUrl=".$fullSelf;
$detail = "http://www.handango.com/PlatformProductDetail.jsp?productId=";
$default = "index.html?f=list";
$exact = "index.html?o=on";
if ($pl != "")
$default .= "&pl=".$pl;
}
//"welcome.html";
//&addItem=".$productID.
$buy = "&addItem=";
//&authorId=76599§ionId=0&productType=2&siteId=1&platformId=4";
$getfree = "http://www.handango.com/freedownload.jsp?productId=";
$products2 = array ();
$counter=count($products);
$i = 0;
$x = 3;
while ($i< $counter)
{
if (! ereg_n4("^\.", $products[$i]) )
{
$myconts = file($foldername.$products[$i]);
reset ($myconts);
$counter2=count($myconts);
$myDest = "";
$x = 5;
while ($x < $counter2)
{
$myDest .= $myconts[$x]."
";
$x++;
}
$myPriceLine = explode ( " ", $myconts[1]);
$myStatus = trim($myPriceLine[1]);
$myPrice = trim ($myPriceLine[0]);
if (($myPrice == "") or ($myPrice == "free"))
$myPrice = "0";
$products[$i] = array ("title" => $myconts[0], "price" => $myPrice, "addItem" => $myconts[2] , "pict" => $myconts[3],
"plat" => $myconts[4], "status" => $myStatus,
"descript" => $myDest
);
}
$i++;
}
//multiarray
//if ($f == "")
// $f = $default;
if ($f == "list")
{
?>
"; echo "".$item["title"].""; echo " | ";
if (trim($item["plat"]) == "epoc")
echo "![]() ![]() ![]() ![]() ![]() | "; if ($lan == "jp") echo "li:"; elseif ($lan == "tc") echo "³ζ»ω: US"; else echo "price: US"; echo $item["price"]; echo " | ";
//echo "";
echo "";
/*if ($lan == "jp")
echo "ΪΧ";
else
echo "details";
*/
echo "![]() | "; if (strpos ($item["addItem"], "link:") > 0) { $mylink = str_replace ( ":link:", "", $item["addItem"]); echo ""; } else echo ""; if ($lan == "jp") echo "wό"; elseif ($lan == "tc") echo "ΑΚΆR"; else echo "Buy"; echo ""; echo " | "; echo ""; if ($item["status"] == "new") echo "new"; elseif ($item["status"] == "up") echo "up"; echo " | "; echo "
"; echo "".$item["title"].""; echo " | Free"; echo " | "; echo ""; echo "details"; echo ""; echo " | "; echo ""; echo "Download"; echo ""; echo " | "; } } echo "
"; echo "
";
echo "
";
if ($lan == "jp")
echo "li:";
elseif ($lan == "tc")
echo "³ζ»ω: US";
else
echo "price: US";
echo $item["price"];
echo "
";
if (trim($item["pict"]) != "")
{
$myPict = explode (" ", trim($item["pict"]));
foreach ($myPict as $picty)
{
if (file_exists($imagesfolder.$picty))
{
echo " ";
}
}
echo "
"; } echo $item["descript"]; echo "
"; echo "
echo $title; ?> iPhone || if ($lan == "jp") echo "PDAκ"; elseif ($lan == "tc") echo "PDA ₯ώ³‘"; else echo "All PDAs"; ?> SymbianOS EPOC PocketPC Palm |
Copyright Enfour 2002-3 Since 2002.6.25 |