It is possible using Texis Web script to add things to
a Webinator db in a custom manner without using "gw".
The rudimentary script below allows you to add individual
pages to an existing Webinator II database from a web form.
If you're interested in this kind of thing, also see the
sections of the Texis Webscript Manual http://www.thunderstone.com/vortexman/
that describe: FETCH, SUBMIT, READ, URLTEXT, URLLINKS, and URLCP .
1: Place the script in the htdocs/webinator directory under the name addit .
2: Edit the <db> directory name on line 3 of the script to point at your db.
3: Point your browser at http://mysite/cgi-bin/texis/webinator/addit/
<---------CUT HERE AND SAVE AS htdocs/webinator/addit ------------------>
<script language=vortex>
<db= /usr2/pub/httpd/htdocs/tmp>
<!------------- Get the page and insert it into the db ---------------->
<a name=doit>
<look>
<theform>
<small>
Remember to update your indexes with "gw -index" when you're done.
</small>
<hr>
<fetch $theurl> <!-- You should really check for errors -->
<rex ">><title>\P=!</title>+" $ret>
<$title=$ret>
<urltext>
<$text=$ret>
<USER=_SYSTEM> <!-- login to the database as SYSTEM -->
<sql "insert into html
values (counter,1,'now',0,0,$theurl-'http://',$title,$text,'')">
</sql>
<urllinks>
<loop $ret>
<sql "insert into refs values(counter,$theurl-'http://',$ret-'http://')">
</sql>
</loop>
<b>
$loop links on the page<br>
Page contained this text:
</b>
<pre>
$text
</pre>
</look>
</a>
<!------------------------ Show the form ---------------------------->
<a name=theform>
<form method=post action=$url/doit.html>
ADD THIS URL:<input name=theurl size=40 value="http://">
<input type=submit value="Go">
</form>
</a>
<!------------------------ Header and footer ------------------------->
<a name=look>
<html>
<head>
<title>Add A Webinator Document</title>
<body bgcolor="white">
</a>
<a name=/look>
</body>
</html>
</a>
<!--------------------- The main entry point ------------------------>
<a name=main>
<look>
<theform>
</look>
</a>
</script>
<!---------------------------- The end -------------------------------->