/ -> webmol.php
1 <?php
2 // webmol.php - a simple script to launch Webmol for any given PDB
3 // webmol.php - author: Nico Stuurman
4 // Copyright Nico Stuurman, 2002
5
6 // This code is Free Software and licensed under the GPL version 2 or later (your choice). Do some cool stuff with it!
7
8
9 require ("include.php");
10 // pdbid can be transfered as a GET or POST variable
11 $pdbid=$HTTP_GET_VARS["pdbid"];
12 if (!$pdbid)
13 $pdbid=$HTTP_POST_VARS["pdbid"];
14 if (!$pdbid) {
15 echo "It does not make much sense to launch webmol without a molecule...";
16 exit();
17 }
18 $pdbid=strtolower($pdbid);
19 // set wherever you'll run Webmol from:
20 $codebase="http://www.cmpharm.ucsf.edu/~walther/webmol/";
21
22
23 $httptitle .= "Webmol:$pdbid";
24 printheader ($httptitle);
25 navbar($USER["permissions"]);
26 ?>
27 <table align='center' border='0'>
28 <tr><td>
29 <applet code="proteinViewer.class"
30 codebase=<?php echo "'$codebase'"; ?>
31 width=700 height=600 align='center'>
32 <PARAM NAME="PROTEIN"
33 VALUE=<?php echo "'$pdbid'";?>>
34 <PARAM NAME="PDB_STRING"
35 VALUE="">
36 <PARAM NAME="PATH" VALUE="">
37 <?php echo "<PARAM NAME='URL' VALUE='$codebase/pdb/'>"?>
38 <PARAM NAME="EXT" VALUE="ent">
39 <PARAM NAME="SearchString"
40 VALUE="varSnfnvcrl|C|lpgtPEaicaty">
41 </applet>
42 </tr></td>
43 </table>
44 <?php
45 printfooter ();
46 ?>