$filename = $url; } elseif ($_FILES) { $file = $_FILES['opxfile']['tmp_name']; $filename = $_FILES['opxfile']['name']; if ($file == "") { include "enhanced_query.php"; exit(0); } } else { die("What did you do??"); } if ($_REQUEST['type']) { $type = $_REQUEST['type']; } else { $type = ""; } $oripa = new ORIPA($file, $filename, $type); if ($_REQUEST['view'] == "image") { if ($_GET['size'] == "thumbnail") { $size = 100; } $oripa->output_image($size); // echo "<pre>".print_r($oripa,true),"</pre>"; } elseif ($_REQUEST['view'] == "info") { include "info.php"; } elseif ($_REQUEST['view'] == "debug") { include "debug.php"; } } else { include "enhanced_query.php"; }
<?php error_reporting(E_ALL); require_once "ORIPA.class.php"; $oripa_web = new ORIPA("http://svn.rayschamp.com/origami/to_be_filed/opx/1R2Y.opx"); $oripa_local = new ORIPA("../1R2Y.opx"); #echo "<pre>".print_r(array($oripa_web, $oripa_local), true)."</pre>"; $oripa_web->output_image();