10) { $_GET["no"] = 1; } if(empty($_GET["border"]) || !is_numeric($_GET["border"])) { $_GET["border"] = 0; } if(empty($_GET["border_color"])) { $_GET["border_color"] = "#000000"; } if($_GET["style"] != "v" && $_GET["style"] != "h") { $_GET["style"] = "v"; } for($i=1;$i<=$_GET["no"];$i++) { srand(microtime()*1000000); $rand = rand(0,count($pic["file"])-1); $amazon_link = str_replace("[product_id]",$pic["product_id"][$rand],$config["link"]); if(empty($_GET["width"]) && empty($_GET["height"]) || !is_numeric($_GET["width"]) && !is_numeric($_GET["height"])) { $_GET["width"] = $pic["width"][$rand]; $_GET["height"] = $pic["height"][$rand]; } if($_GET["style"] == "v") { ?> document.write('" width="" height="" border="" style="border: px solid #" />

'); document.write('" width="" height="" border="" style="border: px solid #" />');