home *** CD-ROM | disk | FTP | other *** search
- /* ------------------------------------------------------------ */
- /*
- HTTrack Website Copier, Offline Browser for Windows and Unix
- Copyright (C) Xavier Roche, Yann Philippot
-
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version 2
- of the License, or any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
- Important notes:
-
- - We hereby ask people using this source NOT to use it in purpose of grabbing
- emails addresses, or collecting any other private information on persons.
- This would disgrace our work, and spoil the many hours we spent on it.
-
-
- This project has been developed by Xavier Roche and Yann Philippot,
- from the company Serianet at Caen, France (http://www.serianet.com)
-
- Please visit our Website: http://www.httrack.com
- */
-
-
- /* ------------------------------------------------------------ */
- /* File: HTTrack parameters block */
- /* Called by httrack.h and some other files */
- /* Author: Xavier Roche */
- /* ------------------------------------------------------------ */
-
-
- #ifndef HTTRACK_DEFOPT
- #define HTTRACK_DEFOPT
-
- #include <stdio.h>
- #include "htsbasenet.h"
- #include "htsbauth.h"
-
- // structure proxy
- typedef struct {
- int active;
- char name[1024];
- int port;
- } t_proxy;
-
- /* Structure utile pour copier en bloc les paramΦtres */
- typedef struct {
- char** filters;
- int* filptr;
- int* filter_max;
- } htsfilters;
-
-
-
- // paramΦtres httrack (options)
- typedef struct {
- int wizard; // wizard aucun/grand/petit
- int flush; // fflush sur les fichiers log
- int travel; // type de dΘplacements (same domain etc)
- int seeker; // up & down
- int urlmode; // liens relatifs etc
- int debug; // mode dΘbug log
- int getmode; // sauver html, images..
- FILE* log; // fichier log
- FILE* errlog; // et erreur
- int maxsite; // taille max site
- int maxfile_nonhtml; // taille max non html
- int maxfile_html; // taille max html
- int maxsoc; // nbre sockets
- int fragment; // fragmentation d'un site
- int nearlink; // prendre les images/data proche d'une page mais α l'extΘrieur
- int makeindex; // faire un index
- int delete_old; // effacer anciens fichiers
- int timeout; // nombre de secondes de timeout
- int rateout; // nombre d'octets minium pour le transfert
- int maxtime; // temps max en secondes
- int maxrate; // taux de transfert max
- int maxconn; // nombre max de connexions/s
- int waittime; // dΘmarrage programmΘ
- int cache; // gΘnΘration d'un cache
- int aff_progress; // barre de progression
- int shell; // gestion d'un shell par pipe stdin/stdout
- t_proxy proxy; // configuration du proxy
- int savename_83; // conversion 8-3 pour les noms de fichiers
- int savename_type; // type de noms: structure originale/html-images en un seul niveau
- char savename_userdef[256]; // structure userdef (ex: %h%p/%n%q.%t)
- int user_agent_send; // user agent (ex: httrack/1.0 [sun])
- char user_agent[128];
- char path_log[1024]; // chemin pour cache et log
- char path_html[1024]; // chemin pour miroir
- int retry; // nombre d'essais supplΘmentaires en cas d'Θchec
- int makestat; // mettre α jour un fichier log de statistiques de transfert
- int maketrack; // mettre α jour un fichier log de statistiques d'opΘrations
- int parsejava; // parsing des classes java pour rΘcupΘrer les class, gif & cie
- int hostcontrol; // abandon d'un host trop lent etc.
- int errpage; // gΘnΘrer une page d'erreur en cas de 404 etc.
- int check_type; // si type inconnu (cgi,asp,/) alors tester lien (et gΘrer moved Θventuellement)
- int all_in_cache; // tout mettre en cache!
- int robots; // traitement des robots
- int external; // pages externes->pages d'erreur
- int mirror_first_page; // miroir des liens
- char sys_com[2048]; // commande systΦme
- int sys_com_exec; // executer commande
- int accept_cookie; // gestion des cookies
- t_cookie* cookie;
- int http10; // forcer http 1.0
- int tolerant; // accepter content-length incorrect
- int parseall; // essayer de tout parser (tags inconnus contenant des liens, par exemple)
- int norecatch; // ne pas reprendre les fichiers effacΘs localement par l'utilisateur
- int verbosedisplay; // animation textuelle
- char footer[256]; // ligne d'infos
- int maxcache; // maximum en mΘmoire au niveau du cache (backing)
- int maxcache_anticipate; // maximum de liens α anticiper (majorant)
- int ftp_proxy; // proxy http pour ftp
- char filelist[1024]; // fichier liste URL α inclure
- htsfilters filters; // contient les pointeurs pour les filtres
- //
- int maxlink; // nombre max de liens
- int maxfilter; // nombre max de filtres
- //
- char* exec; // adresse du nom de l'Θxecutable
- //
- int quiet; // poser des questions autres que wizard?
- int keyboard; // vΘrifier stdin
- //
- int is_update; // c'est une update (afficher "File updated...")
- } httrackp;
-
- #endif
-
-