'; // Send the first part of the page and the menu generate_header ("Online Gerber Viewer", $add_header); $ErrorMessage = $ErrorMessage . generate_menu ($_GET['menu']); ?>

Online Gerber Viewer 2.0

Please select a layer and press button to show

>1 board >2 cu bottom >3 cu top >4 drill >5 silkscreen top >6 >7 >8 >9 3d preview >10  

 
"; if ($_POST['C1'] == "ON"){echo "
 
";} if ($_POST['C2'] == "ON"){echo "
 
";} if ($_POST['C3'] == "ON"){echo "
 
";} if ($_POST['C4'] == "ON"){echo "
 
";} if ($_POST['C5'] == "ON"){echo "
 
";} if ($_POST['C6'] == "ON"){echo "
 
";} if ($_POST['C7'] == "ON"){echo "
 
";} if ($_POST['C8'] == "ON"){echo "
 
";} if ($_POST['C9'] == "ON"){echo "
 
";} if ($_POST['C10'] == "ON"){echo "
 
";} /* This is the 1.0 version that ran under PHP 4x // The header line informs the server of what to send the output // as. In this case, the server will see the output as a .png // image and send it as such header ("Content-type: image/png"); // Defining the background image. Optionally, a .jpg image could // could be used using imagecreatefromjpeg, but I personally // prefer working with png $background = imagecreatefrompng("/var/www/barrydegraaff.tk/gerbv/0.png"); imagepng($background,"",100);die; if (isset ($_POST['C1']) == true and file_exists('1.png')){ echo 'true'; $insert = imagecreatefrompng("1.png"); imagecolortransparent($insert,imagecolorat($insert,0,0)); $insert_x = imagesx($insert); $insert_y = imagesy($insert); imagecopymerge($background,$insert,0,0,0,0,$insert_x,$insert_y,100); } if (isset ($_POST['C2']) == true and file_exists('2.png')){ $insert = imagecreatefrompng("2.png"); imagecolortransparent($insert,imagecolorat($insert,0,0)); $insert_x = imagesx($insert); $insert_y = imagesy($insert); imagecopymerge($background,$insert,0,0,0,0,$insert_x,$insert_y,100); } if (isset ($_POST['C3']) == true and file_exists('3.png')){ $insert = imagecreatefrompng("3.png"); imagecolortransparent($insert,imagecolorat($insert,0,0)); $insert_x = imagesx($insert); $insert_y = imagesy($insert); imagecopymerge($background,$insert,0,0,0,0,$insert_x,$insert_y,100); } if (isset ($_POST['C4']) == true and file_exists('4.png')){ $insert = imagecreatefrompng("4.png"); imagecolortransparent($insert,imagecolorat($insert,0,0)); $insert_x = imagesx($insert); $insert_y = imagesy($insert); imagecopymerge($background,$insert,0,0,0,0,$insert_x,$insert_y,100); } if (isset ($_POST['C5']) == true and file_exists('5.png')){ $insert = imagecreatefrompng("5.png"); imagecolortransparent($insert,imagecolorat($insert,0,0)); $insert_x = imagesx($insert); $insert_y = imagesy($insert); imagecopymerge($background,$insert,0,0,0,0,$insert_x,$insert_y,100); } if (isset ($_POST['C6']) == true and file_exists('6.png')){ $insert = imagecreatefrompng("6.png"); imagecolortransparent($insert,imagecolorat($insert,0,0)); $insert_x = imagesx($insert); $insert_y = imagesy($insert); imagecopymerge($background,$insert,0,0,0,0,$insert_x,$insert_y,100); } if (isset ($_POST['C7']) == true and file_exists('7.png')){ $insert = imagecreatefrompng("7.png"); imagecolortransparent($insert,imagecolorat($insert,0,0)); $insert_x = imagesx($insert); $insert_y = imagesy($insert); imagecopymerge($background,$insert,0,0,0,0,$insert_x,$insert_y,100); } if (isset ($_POST['C8']) == true and file_exists('8.png')){ $insert = imagecreatefrompng("8.png"); imagecolortransparent($insert,imagecolorat($insert,0,0)); $insert_x = imagesx($insert); $insert_y = imagesy($insert); imagecopymerge($background,$insert,0,0,0,0,$insert_x,$insert_y,100); } if (isset ($_POST['C9']) == true and file_exists('9.png')){ $insert = imagecreatefrompng("9.png"); imagecolortransparent($insert,imagecolorat($insert,0,0)); $insert_x = imagesx($insert); $insert_y = imagesy($insert); imagecopymerge($background,$insert,0,0,0,0,$insert_x,$insert_y,100); } if (isset ($_POST['C10']) == true and file_exists('10.png')){ $insert = imagecreatefrompng("10.png"); imagecolortransparent($insert,imagecolorat($insert,0,0)); $insert_x = imagesx($insert); $insert_y = imagesy($insert); imagecopymerge($background,$insert,0,0,0,0,$insert_x,$insert_y,100); } imagepng($background,"",100); ?> */ echo "














"; echo ""; // send footer generate_footer ();