📄 log.h
字号:
/* +----------------------------------------------------------------------+ | PHP HTML Embedded Scripting Language Version 3.0 | +----------------------------------------------------------------------+ | Copyright (c) 1997,1998 PHP Development Team (See Credits file) | +----------------------------------------------------------------------+ | This program is free software; you can redistribute it and/or modify | | it under the terms of one of the following licenses: | | | | A) the GNU General Public License as published by the Free Software | | Foundation; either version 2 of the License, or (at your option) | | any later version. | | | | B) the PHP License as published by the PHP Development Team and | | included in the distribution in the file: LICENSE | | | | 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 both licenses referred to here. | | If you did not, or have any questions about PHP licensing, please | | contact core@php.net. | +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ *//* $Id: log.h,v 1.6 1998/05/15 10:57:10 zeev Exp $ */#ifndef _PHP_LOG_H#define _PHP_LOG_H/* this should be set in ../config.h eventually */#define LOG_DIR "."#define LOG_DB 1/* when any of the page statistics are asked for, we load them all at once and stash them in this struct. */typedef struct { char *logfile; /* either the filename converted to a logging name or a user-specified "filename" from logas(). this is used as the actual filename in db logging, as some field when sql logging */ int filled; long total_count; long today_count; long last_access; long start_logging; char *last_host; char *last_email; char *last_ref; char *last_browser; } logging_stats;extern logging_stats log_stats;typedef struct {#if MSQLLOGGING || MYSQLLOGGING char *sql_log_db; char *sql_log_host;#else char *dbm_log_dir;#endif} logging_conf;extern logging_conf log_conf;extern void _php3_log(void);extern char *_php3_filename_to_logfn(char *filename);extern void _php3_load_log_info(void);extern void _php3_log_db(void);extern void _php3_load_log_info_db(void);/* logging functions */extern int php3_init_log(INIT_FUNC_ARGS);extern int php3_shutdown_log(void);extern void php3_getlastaccess(INTERNAL_FUNCTION_PARAMETERS);extern void php3_getlastbrowser(INTERNAL_FUNCTION_PARAMETERS);extern void php3_getlastemail(INTERNAL_FUNCTION_PARAMETERS);extern void php3_getlasthost(INTERNAL_FUNCTION_PARAMETERS);extern void php3_getlastref(INTERNAL_FUNCTION_PARAMETERS);extern void php3_getlogdir(INTERNAL_FUNCTION_PARAMETERS);extern void php3_getlogfile(INTERNAL_FUNCTION_PARAMETERS);extern void php3_getloghost(INTERNAL_FUNCTION_PARAMETERS);extern void php3_getstartlogging(INTERNAL_FUNCTION_PARAMETERS);extern void php3_gettoday(INTERNAL_FUNCTION_PARAMETERS);extern void php3_gettotal(INTERNAL_FUNCTION_PARAMETERS);extern void php3_logas(INTERNAL_FUNCTION_PARAMETERS);#endif /* _PHP_LOG_H *//* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -