'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 )); return; } //--------------------------------------------------------------- function xptviewer($user_input) { //--------------------------------------------------------------- xptviewerInit($user_input, $xptviewerParams, $xptviewerVars); $html .= "\n\n\n"; $html .= "\n"; // $html .= "\n"; while ($PtvParam = current($xptviewerParams)) { if (key($xptviewerParams) != 'width' && key($xptviewerParams) != 'height'){ $html .= '