📄 webemail.h
字号:
#ifndef _webemail_h#define _webemail_h#include "conf.h"#define VER "1.23"#define EMAILPATH "./email.cgi"#define MAILBOXPATH "/var/spool/mail/%s", info->pw_name//#define SENDMAIL "/usr/sbin/sendmail -t -i > /dev/null"extern char *SENDMAIL;extern int USEATTACHMENTS;extern int HOSTMODE;extern int FOUNDNAME;extern char *HOSTNAME;extern int USEQUOTAS;extern int MAX_MBOX_SIZE;extern int USEEXTERNMAIL;extern int USELINKHOME;extern char *LINKHOME;extern int USELINKHOMENAME;extern char *LINKHOMENAME;extern char globaluser[400];extern int USEISPHELP;extern char *ISPHELP;extern int USEAUTHORINFO;extern int USERRETURN;extern int ALLOWROOT;#ifdef HAS_SHADOW #include <shadow.h>#endif#include <stdio.h>#include <stdlib.h>#include <string.h>#include <pwd.h>#include <sys/types.h>#include <crypt.h>#include <unistd.h>#include <ctype.h>#include <math.h>#include <sysexits.h>#include <syslog.h>#include <iostream>#include <sys/stat.h>#include "languageEn.h"//#include "languagePt.h"//#include "languageEs.h"#include <vector>void intro();void wewrite(int mode, char *email, int reply); //reply=message to reply to -1 = don't//-2 from address book//now uses modesint status(char line[400]);char * finddata(char *env, char search[], char answer[]);void send();void reset();void menu();void cfgstatus();void reply();void address();void addaddress(char *fill, int email); //-1 blank //-2 has emailvoid addaddressproc();void error(char *mes);void htmldecode(char *data);void sendto();void addredit();void readd();void addname();void header(char title[500]);void tail();void markold(int number);void gaddaddress(int email);void gaddaddressproc();void gaddrremove(int email);void gaddrsend();void gaddredit();void greadd();void about();void setup();void checkgroup(char * data);void removereturn(char * data);void distitle();void dismenu();void decodeuuline(char data[70]); //max data is 64 I thinkvoid disattch();char * guessmime(char filename[]);void quotestospace(char * data);void commatospace(char * data);void distroytag(char *data, char *tag);int inthere(char * test1, char * test2, int num);void scansend(char * search, char * data, int length, char * newboundary);void encodeuuline(char * filename);void intofile(char * b, char * name);void disconf();void procconf();void disjavascript(char *url, char *message1, char *message2);void multidel();void multideletemail(vector<int>& todel);void escapeprint(char * data);void popcheck();void forward();char * cleanfilename(char *data);//removes " " ? \" ' from the file names so //it does not interfear with the url line.void doconfig();void sendtext();void sendmulti();void markreplied(int number);void handlesignals();#endif#include "bothlock.h"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -