/****************************************************************************
* NCSA Mosaic for the X Window System *
* Software Development Group *
* National Center for Supercomputing Applications *
* University of Illinois at Urbana-Champaign *
* 605 E. Springfield, Champaign IL 61820 *
* mosaic@ncsa.uiuc.edu *
* *
* Copyright (C) 1993, Board of Trustees of the University of Illinois *
* *
* NCSA Mosaic software, both binary and source (hereafter, Software) is *
* copyrighted by The Board of Trustees of the University of Illinois *
* (UI), and ownership remains with the UI. *
* *
* The UI grants you (hereafter, Licensee) a license to use the Software *
* for academic, research and internal business purposes only, without a *
* fee. Licensee may distribute the binary and source code (if released) *
* to third parties provided that the copyright notice and this statement *
* appears on all copies and that no charge is associated with such *
* copies. *
* *
* Licensee may make derivative works. However, if Licensee distributes *
* any derivative work based on or derived from the Software, then *
* Licensee will (1) notify NCSA regarding its distribution of the *
* derivative work, and (2) clearly notify users that such derivative *
* work is a modified version and not the original NCSA Mosaic *
* distributed by the UI. *
* *
* Any Licensee wishing to make commercial use of the Software should *
* contact the UI, c/o NCSA, to negotiate an appropriate license for such *
* commercial use. Commercial use includes (1) integration of all or *
* part of the source code into a product for sale or license by or on *
* behalf of Licensee to third parties, or (2) distribution of the binary *
* code or source code to third parties that need it to utilize a *
* commercial product sold or licensed by or on behalf of Licensee. *
* *
* UI MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THIS SOFTWARE FOR *
* ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED *
* WARRANTY. THE UI SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY THE *
* USERS OF THIS SOFTWARE. *
* *
* By using or copying this Software, Licensee agrees to abide by the *
* copyright law and all other applicable laws of the U.S. including, but *
* not limited to, export control laws, and the terms of this license. *
* UI shall have the right to terminate this license immediately by *
* written notice upon Licensee's breach of, or non-compliance with, any *
* of its terms. Licensee may be held legally responsible for any *
* copyright infringement that is caused or encouraged by Licensee's *
* failure to abide by the terms of this license. *
* *
* Comments and questions are welcome and can be sent to *
* mosaic-x@ncsa.uiuc.edu. *
****************************************************************************/
#include "../config.h"
#include "mosaic.h"
#include "gui.h"
#include "gui-extras.h"
#include "mo-www.h"
#include "libhtmlw/HTML.h"
#include
She's our new tech support manager...but we're not sure what her website is..."}, /* weird guy */ {"mag","0http://sdg.ncsa.uiuc.edu/~mag/"}, /* products */ {"httpd","0http://hoohoo.ncsa.uiuc.edu/"}, {"mosaic","0http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/"}, {"xmosaic", "
Please read our disclaimer below (can you say, 'Joke?') before proceeding to:
http://www.ncsa.uiuc.edu/SDG/Software/XMosaic/.
Consult your physician before using this program. Batteries not included. May cause drowsiness. Must be over 17. Not available in all states. Not responsible for acts of God. Prices subject to change without notice. Proof of purchase required. Read label before using. Some assembly required. Not responsible for typographical errors. Some restrictions apply. Subject to local regulation. Warrantee period limited. Close cover before striking. No resemblance to any person, living or dead, is intended. Subject to availability. No COD's. Sales tax not included. Shipping and handling extra. For external use only. May cause excitability. Avoid alcoholic beverages while using this software. If" "symptoms persist, consult your physician. Keep this and all software out of the reach of children. Parental guidance suggested. The buyer assumes all risks associated with using this product. In case of irritation, flush eyes with cold water and consult your physician. Not insured by the Federal Deposit Insurance Corporation. Use with adequate ventilation. Avoid repeated or prolonged contact with skin. Contents under pressure; Do not puncture or incinerate. Store in original containers. Harmful if swallowed. Do not fold, bend, staple or mutilate. PLEASE NOTE: Some quantum physics theories suggest that when the consumer is not directly observing this product, it may cease to exist or will exist only in a vague and undetermined state.
"}, /* help */ {"cci","0http://www.ncsa.uiuc.edu/SDG/Software/XMosaic/CCI/cci-spec.html"}, {"cgi","0http://hoohoo.ncsa.uiuc.edu/cgi/overview.html"}, {"help","0http://www.ncsa.uiuc.edu/SDG/Software/mosaic-x/"}, /* places & organizations */ {"acm","0http://www.acm.uiuc.edu/"}, {"ncsa","0http://www.ncsa.uiuc.edu/"}, {"sdg","0http://sdg.ncsa.uiuc.edu/"}, {"uiuc","0http://www.uiuc.edu/"}, /* for fun */ {"babylon5", "First, (if you have the precompiled binary version of X Mosaic) we are all quite proud of our Easter Egg...go to a site with '/b5', 'bab5', or 'babylon5' in the URL...
Now for the best two Babylon 5 Websites!
The Lurker's Guide to Babylon 5
The Official Babylon 5 Website"}, {"jargon","0http://hagbard.ncsa.uiuc.edu/cgi-bin/jargon"}, {"jive","0http://shire.ncsa.uiuc.edu/filters/"}, {"mozilla", "Are you lost? Surely you jest?
"}, {NULL,NULL} }; /* assorted FUN things */ char *mo_special_urls(char *url) { int i; if(!url) return NULL; if(strncmp(url,"about:",6)) return NULL; for(i=0;abouts[i].name;i++) { if(!strncmp(&url[6],abouts[i].name,strlen(abouts[i].name))) { if(abouts[i].expand[0]=='0') return abouts[i].expand; else return strdup(abouts[i].expand); } } return NULL; } void System(char *cmd, char *title) { char buf[BUFSIZ], final[BUFSIZ*2]; int retValue,skip_output=0; *final='\0'; if ((retValue=my_system(cmd,buf,BUFSIZ))!=SYS_SUCCESS) { /*give them the error code message*/ switch(retValue) { case SYS_NO_COMMAND: sprintf(final,"%s%s",final,"There was no command to execute.\n" ); break; case SYS_FORK_FAIL: sprintf(final,"%s%s",final,"The fork call failed.\n" ); break; case SYS_PROGRAM_FAILED: sprintf(final,"%s%s",final,"The program specified was not able to exec.\n" ); break; case SYS_NO_RETBUF: sprintf(final,"%s%s",final,"There was no return buffer.\n" ); break; case SYS_FCNTL_FAILED: sprintf(final,"%s%s",final,"Fcntl failed to set non-block on the pipe.\n" ); break; } /*give them the output*/ if (*buf) { sprintf(final,"%s%s",final,buf); } } else if (*buf) { /*give them the output*/ sprintf(final,"%s%s",final,buf); application_error(final,title); return; } return; }