'false', //TODO may need to impliment error checking 'filename_filtering' => 'false', //TODO need to do some formating of the picture URL 'jarurl' => $PubDirUrl."/ptviewer.jar"); //URL to ptviewer.jar file //Deal with the user input and put it into xptviewerParams $pieces = explode(" ", $user_input); foreach($pieces as $apart){ list($key,$value) = explode("=", $apart); $xptviewerParams["$key"] = $value; } //Defaults SDVA($xptviewerParams, array( 'width' => '320', // width of panorama 'height' => '200', // height of panorama 'auto' => '0.2', // auto pan speed 'pfov' => '360', //horizontal field of view of panorama 'fov' => '70', // fov - initial horizontal field of view 'fovmin' => '12',// fovmin - minimum field of view 'fovmax' => '165',// fovmax - maximum field of view )); return; } //--------------------------------------------------------------- function xptviewer($user_input) { //--------------------------------------------------------------- xptviewerInit($user_input, $xptviewerParams, $xptviewerVars); $html .= "\n\n\n"; $html .= "\n". '\n". '\n". '\n". '\n". '\n". '\n". ""; $html .= "\n\n\n"; return Keep($html); } ?>