./PaxHeaders.14966/Embperl-2.5.0 0000644 0000000 0000000 00000000050 12323454054 014173 x ustar 00 0000000 0000000 20 atime=1397643307 20 ctime=1397643308 Embperl-2.5.0/ 0000755 0000000 0000000 00000000000 12323454054 013104 5 ustar 00root root 0000000 0000000 Embperl-2.5.0/PaxHeaders.14966/epcfg.h 0000644 0000000 0000000 00000000050 12023276645 015355 x ustar 00 0000000 0000000 20 atime=1397643257 20 ctime=1397643307 Embperl-2.5.0/epcfg.h 0000644 0000764 0000000 00000010074 12023276645 015046 0 ustar 00richter root 0000000 0000000 #undef SEPARATOR #ifdef WIN32 #define SEPARATOR ";" #else #define SEPARATOR ":;" #endif #ifdef EPCFG_COMPONENT /* tComponentConfig */ EPCFG_STR (ComponentConfig, char *, sPackage, PACKAGE) EPCFG_INTOPT (ComponentConfig, unsigned, bDebug, DEBUG) EPCFG_INTOPT (ComponentConfig, unsigned, bOptions, OPTIONS) EPCFG_INTOPT (ComponentConfig, int , nEscMode, ESCMODE) EPCFG_INTOPT (ComponentConfig, int , nInputEscMode, INPUT_ESCMODE) EPCFG_STR (ComponentConfig, char *, sInputCharset, INPUT_CHARSET) EPCFG_STR (ComponentConfig, char *, sCacheKey, CACHE_KEY) EPCFG_INT (ComponentConfig, unsigned, bCacheKeyOptions, CACHE_KEY_OPTIONS) EPCFG_CV (ComponentConfig, CV * , pExpiredFunc, EXPIRES_FUNC) EPCFG_CV (ComponentConfig, CV * , pCacheKeyFunc, CACHE_KEY_FUNC) EPCFG_INT (ComponentConfig, int , nExpiresIn, EXPIRES_IN) EPCFG_STR (ComponentConfig, char *, sExpiresFilename, EXPIRES_FILENAME) EPCFG_STR (ComponentConfig, char *, sSyntax, SYNTAX) EPCFG_SV (ComponentConfig, SV *, pRecipe, RECIPE) EPCFG_STR (ComponentConfig, char *, sXsltstylesheet, XSLTSTYLESHEET) EPCFG_STR (ComponentConfig, char *, sXsltproc, XSLTPROC) EPCFG_STR (ComponentConfig, char *, sCompartment, COMPARTMENT) EPCFG_STR (ComponentConfig, char *, sTopInclude, TOP_INCLUDE) #endif #ifdef EPCFG_REQ /* tReqConfig */ EPCFG_REGEX(ReqConfig, CV *, pAllow, ALLOW) EPCFG_REGEX(ReqConfig, CV *, pUriMatch, URIMATCH) EPCFG_CHAR(ReqConfig, char , cMultFieldSep, MULTFIELDSEP ) EPCFG_AV (ReqConfig, AV *, pPathAV, PATH, SEPARATOR) EPCFG_INTOPT (ReqConfig, unsigned, bDebug, DEBUG) EPCFG_INTOPT (ReqConfig, unsigned, bOptions, OPTIONS) EPCFG_INTOPT (ReqConfig, int , nSessionMode, SESSION_MODE) EPCFG_INTOPT (ReqConfig, int , nOutputMode, OUTPUT_MODE) EPCFG_INTOPT (ReqConfig, int , nOutputEscCharset, OUTPUT_ESC_CHARSET) #endif #ifdef EPCFG_APP /* tAppConfig */ EPCFG_STR(AppConfig, char *, sAppName, APPNAME) EPCFG_STR(AppConfig, char *, sAppHandlerClass, APP_HANDLER_CLASS) EPCFG_STR(AppConfig, char *, sSessionHandlerClass, SESSION_HANDLER_CLASS) EPCFG_HV (AppConfig, HV *, pSessionArgs, SESSION_ARGS) EPCFG_AV (AppConfig, AV *, pSessionClasses, SESSION_CLASSES, " ,") EPCFG_STR(AppConfig, char *, sSessionConfig, SESSION_CONFIG) EPCFG_STR(AppConfig, char *, sCookieName, COOKIE_NAME) EPCFG_STR(AppConfig, char *, sCookieDomain, COOKIE_DOMAIN) EPCFG_STR(AppConfig, char *, sCookiePath, COOKIE_PATH) EPCFG_EXPIRES(AppConfig, char *, sCookieExpires, COOKIE_EXPIRES) EPCFG_BOOL(AppConfig, bool, bCookieSecure, COOKIE_SECURE) EPCFG_STR(AppConfig, char *, sLog, LOG) EPCFG_INTOPT(AppConfig, unsigned,bDebug, DEBUG) EPCFG_BOOL(AppConfig, bool, bMaildebug, MAILDEBUG) EPCFG_STR(AppConfig, char *, sMailhost, MAILHOST) EPCFG_STR(AppConfig, char *, sMailhelo, MAILHELO) EPCFG_STR(AppConfig, char *, sMailfrom, MAILFROM) EPCFG_STR(AppConfig, char *, sMailErrorsTo, MAIL_ERRORS_TO) EPCFG_INT(AppConfig, int, nMailErrorsLimit, MAIL_ERRORS_LIMIT) EPCFG_INT(AppConfig, int, nMailErrorsResetTime, MAIL_ERRORS_RESET_TIME) EPCFG_INT(AppConfig, int, nMailErrorsResendTime, MAIL_ERRORS_RESEND_TIME) EPCFG_STR(AppConfig, char *, sObjectBase, OBJECT_BASE) EPCFG_STR(AppConfig, char *, sObjectApp, OBJECT_APP) EPCFG_AV (AppConfig, AV *, pObjectAddpathAV, OBJECT_ADDPATH, SEPARATOR) EPCFG_AV (AppConfig, AV *, pObjectReqpathAV, OBJECT_REQPATH, SEPARATOR) EPCFG_STR(AppConfig, char *, sObjectStopdir, OBJECT_STOPDIR) EPCFG_STR(AppConfig, char *, sObjectFallback, OBJECT_FALLBACK) EPCFG_STR(AppConfig, char *, sObjectHandlerClass, OBJECT_HANDLER_CLASS) #endif Embperl-2.5.0/PaxHeaders.14966/epmain.c 0000644 0000000 0000000 00000000050 12311327004 015517 x ustar 00 0000000 0000000 20 atime=1397643253 20 ctime=1397643307 Embperl-2.5.0/epmain.c 0000644 0000000 0000000 00000152701 12311327004 014516 0 ustar 00root root 0000000 0000000 /*################################################################################### # # Embperl - Copyright (c) 1997-2008 Gerald Richter / ecos gmbh www.ecos.de # Embperl - Copyright (c) 2008-2014 Gerald Richter # # You may distribute under the terms of either the GNU General Public # License or the Artistic License, as specified in the Perl README file. # For use with Apache httpd and mod_perl, see also Apache copyright. # # THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. # # $Id: epmain.c 1578075 2014-03-16 14:01:14Z richter $ # ###################################################################################*/ #include "ep.h" #include "epmacro.h" /*--------------------------------------------------------------------------- * DoLogError */ /*! * * \_en * Logs the occurence of an error to the embperl logfile and the httpd error log * * @param r the request object (maybe NULL) * @param a the application object (maybe NULL) * @param rc the error code * @param errdat1 addtional information * @param errdat2 addtional information * \endif * * \_de * logged das auftreten eines Fehler in das Embperl Logfile und den httpd * error log * * @param r das Requestobjekt (kann NULL sein) * @param a das Applikationobjekt (kann NULL sein) * @param rc Fehlercode * @param errdat1 Zusätzliche Informationen * @param errdat2 Zusätzliche Informationen * \endif * * ------------------------------------------------------------------------ */ static char * DoLogError (/*i/o*/ struct tReq * r, /*i/o*/ struct tApp * a, /*in*/ int rc, /*in*/ const char * errdat1, /*in*/ const char * errdat2) { const char * msg ; char * sText ; SV * pSV ; SV * pSVLine = NULL ; STRLEN l ; pid_t nPid ; #ifdef PERL_IMPLICIT_CONTEXT pTHX ; if (r) aTHX = r -> pPerlTHX ; else if (a) aTHX = a -> pPerlTHX ; else aTHX = PERL_GET_THX ; #endif if (r) { r -> errdat1 [sizeof (r -> errdat1) - 1] = '\0' ; r -> errdat2 [sizeof (r -> errdat2) - 1] = '\0' ; GetLineNo (r) ; errdat1 = r -> errdat1 ; errdat2 = r -> errdat2 ; if (rc != rcPerlWarn) r -> bError = 1 ; nPid = r -> pThread -> nPid ; a = r -> pApp ; } else if (a) { nPid = a -> pThread -> nPid ; } else nPid = getpid() ; if (!errdat1) errdat1 = "" ; if (!errdat2) errdat2 = "" ; switch (rc) { case ok: msg ="[%d]ERR: %d: %s ok%s%s" ; break ; case rcStackOverflow: msg ="[%d]ERR: %d: %s Stack Overflow%s%s" ; break ; case rcArgStackOverflow: msg ="[%d]ERR: %d: %s Argumnet Stack Overflow (%s)%s" ; break ; case rcStackUnderflow: msg ="[%d]ERR: %d: %s Stack Underflow%s%s" ; break ; case rcEndifWithoutIf: msg ="[%d]ERR: %d: %s endif without if%s%s" ; break ; case rcElseWithoutIf: msg ="[%d]ERR: %d: %s else without if%s%s" ; break ; case rcEndwhileWithoutWhile: msg ="[%d]ERR: %d: %s endwhile without while%s%s" ; break ; case rcEndtableWithoutTable: msg ="[%d]ERR: %d: %s blockend <%s> does not match blockstart <%s>" ; break ; case rcTablerowOutsideOfTable: msg ="[%d]ERR: %d: %s