diff --git a/swad_API.c b/swad_API.c index a960966c..a75b3919 100644 --- a/swad_API.c +++ b/swad_API.c @@ -120,6 +120,7 @@ cp -f /home/acanas/swad/swad/swad /var/www/cgi-bin/ #include "swad_hierarchy_level.h" #include "swad_ID.h" #include "swad_mail_database.h" +#include "swad_mark.h" #include "swad_match.h" #include "swad_match_database.h" #include "swad_message_database.h" diff --git a/swad_HTML.c b/swad_HTML.c index d7e394dd..b89fd515 100644 --- a/swad_HTML.c +++ b/swad_HTML.c @@ -30,6 +30,7 @@ #include // For vasprintf #include // For free +#include "swad_alert.h" #include "swad_error.h" #include "swad_global.h" #include "swad_HTML.h" diff --git a/swad_ID.c b/swad_ID.c index 86b41f42..2a31de2f 100644 --- a/swad_ID.c +++ b/swad_ID.c @@ -33,6 +33,7 @@ #include // For string functions #include "swad_account.h" +#include "swad_alert.h" #include "swad_box.h" #include "swad_database.h" #include "swad_error.h" diff --git a/swad_QR.c b/swad_QR.c index 71f501c0..0504d550 100644 --- a/swad_QR.c +++ b/swad_QR.c @@ -30,6 +30,8 @@ #include // For free #include "swad_action.h" +#include "swad_alert.h" +#include "swad_box.h" #include "swad_error.h" #include "swad_global.h" #include "swad_HTML.h" diff --git a/swad_action.c b/swad_action.c index eafade38..f0417c18 100644 --- a/swad_action.c +++ b/swad_action.c @@ -90,6 +90,7 @@ #include "swad_password.h" #include "swad_photo.h" #include "swad_place.h" +#include "swad_plugin.h" #include "swad_privacy.h" #include "swad_profile.h" #include "swad_program.h" @@ -101,6 +102,7 @@ #include "swad_report.h" #include "swad_role.h" #include "swad_search.h" +#include "swad_session.h" #include "swad_setting.h" #include "swad_survey.h" #include "swad_survey_resource.h" diff --git a/swad_admin.c b/swad_admin.c index 2c7b5d09..384a373d 100644 --- a/swad_admin.c +++ b/swad_admin.c @@ -29,6 +29,7 @@ #include "swad_admin.h" #include "swad_admin_database.h" +#include "swad_alert.h" #include "swad_global.h" #include "swad_user_database.h" diff --git a/swad_announcement.c b/swad_announcement.c index 3f8bcc95..73f12bb5 100644 --- a/swad_announcement.c +++ b/swad_announcement.c @@ -25,6 +25,7 @@ /*********************************** Headers *********************************/ /*****************************************************************************/ +#include "swad_alert.h" #include "swad_announcement.h" #include "swad_announcement_database.h" #include "swad_autolink.h" diff --git a/swad_banner.c b/swad_banner.c index 3cb57384..de5c3d07 100644 --- a/swad_banner.c +++ b/swad_banner.c @@ -29,6 +29,7 @@ #include // For calloc #include // For string functions +#include "swad_alert.h" #include "swad_banner.h" #include "swad_banner_database.h" #include "swad_box.h" diff --git a/swad_browser.c b/swad_browser.c index cc1a5fd7..cdba852f 100644 --- a/swad_browser.c +++ b/swad_browser.c @@ -38,6 +38,7 @@ #include // For time #include // For access, lstat, getpid, chdir, symlink +#include "swad_alert.h" #include "swad_box.h" #include "swad_browser.h" #include "swad_browser_database.h" diff --git a/swad_browser_resource.c b/swad_browser_resource.c index 65676ede..11661aaa 100644 --- a/swad_browser_resource.c +++ b/swad_browser_resource.c @@ -25,6 +25,7 @@ /*****************************************************************************/ #include "swad_action.h" +#include "swad_alert.h" #include "swad_browser.h" #include "swad_browser_resource.h" #include "swad_error.h" diff --git a/swad_building.c b/swad_building.c index 175f337f..50036716 100644 --- a/swad_building.c +++ b/swad_building.c @@ -29,6 +29,7 @@ #include // For NULL #include // For string functions +#include "swad_alert.h" #include "swad_box.h" #include "swad_building.h" #include "swad_building_database.h" @@ -37,6 +38,7 @@ #include "swad_form.h" #include "swad_global.h" #include "swad_HTML.h" +#include "swad_parameter.h" #include "swad_room_database.h" /*****************************************************************************/ diff --git a/swad_call_for_exam.c b/swad_call_for_exam.c index be8c7e71..8d3ba198 100644 --- a/swad_call_for_exam.c +++ b/swad_call_for_exam.c @@ -31,6 +31,7 @@ #include // For exit, system, malloc, calloc, free, etc. #include // For string functions +#include "swad_alert.h" #include "swad_box.h" #include "swad_call_for_exam.h" #include "swad_call_for_exam_database.h" diff --git a/swad_center.c b/swad_center.c index dfec4973..94b94430 100644 --- a/swad_center.c +++ b/swad_center.c @@ -33,6 +33,7 @@ #include // For string functions #include "swad_admin_database.h" +#include "swad_box.h" #include "swad_browser_database.h" #include "swad_center.h" #include "swad_center_config.h" @@ -50,6 +51,7 @@ #include "swad_HTML.h" #include "swad_logo.h" #include "swad_message.h" +#include "swad_parameter.h" #include "swad_place.h" #include "swad_room_database.h" #include "swad_survey.h" diff --git a/swad_center_config.c b/swad_center_config.c index 397ec06c..492eb031 100644 --- a/swad_center_config.c +++ b/swad_center_config.c @@ -33,6 +33,8 @@ #include // For string functions #include // For unlink +#include "swad_alert.h" +#include "swad_box.h" #include "swad_center.h" #include "swad_center_database.h" #include "swad_database.h" @@ -46,6 +48,7 @@ #include "swad_hierarchy_level.h" #include "swad_HTML.h" #include "swad_logo.h" +#include "swad_parameter.h" #include "swad_place.h" /*****************************************************************************/ diff --git a/swad_center_database.c b/swad_center_database.c index ca94ffbb..7cee7837 100644 --- a/swad_center_database.c +++ b/swad_center_database.c @@ -36,6 +36,7 @@ #include "swad_global.h" #include "swad_hierarchy.h" #include "swad_hierarchy_database.h" +#include "swad_media.h" #include "swad_search.h" /*****************************************************************************/ diff --git a/swad_changelog.h b/swad_changelog.h index 37cced2e..1168bc9e 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -606,10 +606,11 @@ TODO: Fix bug: error al enviar un mensaje a dos recipientes, error on duplicate TODO: Attach pdf files in multimedia. */ -#define Log_PLATFORM_VERSION "SWAD 22.50.1 (2022-10-19)" +#define Log_PLATFORM_VERSION "SWAD 22.50.2 (2022-10-19)" #define CSS_FILE "swad22.49.4.css" #define JS_FILE "swad22.49.js" /* + Version 22.50.2: Oct 19, 2022 Code refactoring related to dates. (333456 lines) Version 22.50.1: Oct 19, 2022 Code refactoring related to dates. (333332 lines) Version 22.50: Oct 19, 2022 Code refactoring related to dates. (333318 lines) Version 22.49.9: Oct 18, 2022 Code refactoring related to XML. (333257 lines) diff --git a/swad_chat.c b/swad_chat.c index 4a795f3c..9de33241 100644 --- a/swad_chat.c +++ b/swad_chat.c @@ -29,6 +29,7 @@ #include // For boolean type #include +#include "swad_alert.h" #include "swad_box.h" #include "swad_chat.h" #include "swad_chat_database.h" diff --git a/swad_connected.c b/swad_connected.c index c7cfa010..d68aa2cf 100644 --- a/swad_connected.c +++ b/swad_connected.c @@ -72,7 +72,7 @@ static void Con_ShowConnectedUsrsWithARoleBelongingToCurrentCrsOnRightColumn (Ro static unsigned Con_GetConnectedUsrsTotal (Rol_Role_t Role); static void Con_GetNumConnectedWithARoleBelongingToCurrentScope (Rol_Role_t Role, - struct ConnectedUsrs *Usrs); + struct Con_ConnectedUsrs *Usrs); static void Con_ComputeConnectedUsrsWithARoleCurrentCrsOneByOne (Rol_Role_t Role); static void Con_ShowConnectedUsrsCurrentCrsOneByOneOnRightColumn (Rol_Role_t Role); static void Con_WriteRowConnectedUsrOnRightColumn (Rol_Role_t Role); @@ -267,7 +267,7 @@ static void Con_ComputeConnectedUsrsWithARoleBelongingToCurrentCrs (Rol_Role_t R static void Con_ShowConnectedUsrsBelongingToLocation (void) { extern const char *Txt_from; - struct ConnectedUsrs Usrs; + struct Con_ConnectedUsrs Usrs; /***** Begin container *****/ HTM_DIV_Begin ("class=\"CON CON_%s\"", @@ -312,7 +312,7 @@ void Con_ShowConnectedUsrsBelongingToCurrentCrs (void) extern const char *Txt_Connected_users; extern const char *Txt_from; char CourseName[Cns_HIERARCHY_MAX_BYTES_SHRT_NAME + 1]; - struct ConnectedUsrs Usrs; + struct Con_ConnectedUsrs Usrs; /***** Trivial check *****/ if (Gbl.Hierarchy.Crs.CrsCod <= 0) // No course selected @@ -354,7 +354,7 @@ static void Con_ShowConnectedUsrsWithARoleBelongingToCurrentLocationOnMainZone ( { extern const char *Txt_ROLES_SINGUL_abc[Rol_NUM_ROLES][Usr_NUM_SEXS]; extern const char *Txt_ROLES_PLURAL_abc[Rol_NUM_ROLES][Usr_NUM_SEXS]; - struct ConnectedUsrs Usrs; + struct Con_ConnectedUsrs Usrs; /***** Write number of connected users who belong to current course *****/ Con_GetNumConnectedWithARoleBelongingToCurrentScope (Role,&Usrs); @@ -442,7 +442,7 @@ static unsigned Con_GetConnectedUsrsTotal (Rol_Role_t Role) // Return user's sex in UsrSex static void Con_GetNumConnectedWithARoleBelongingToCurrentScope (Rol_Role_t Role, - struct ConnectedUsrs *Usrs) + struct Con_ConnectedUsrs *Usrs) { extern const char *Usr_StringsSexDB[Usr_NUM_SEXS]; MYSQL_RES *mysql_res; diff --git a/swad_connected.h b/swad_connected.h index d6cbc92a..47c0e3b6 100644 --- a/swad_connected.h +++ b/swad_connected.h @@ -40,7 +40,7 @@ /******************************** Public types *******************************/ /*****************************************************************************/ -struct ConnectedUsrs +struct Con_ConnectedUsrs { unsigned NumUsrs; Usr_Sex_t Sex; diff --git a/swad_cookie.c b/swad_cookie.c index 50946172..cb4ccd8f 100644 --- a/swad_cookie.c +++ b/swad_cookie.c @@ -39,6 +39,7 @@ #include "swad_global.h" #include "swad_HTML.h" #include "swad_layout.h" +#include "swad_parameter.h" #include "swad_setting.h" #include "swad_user_database.h" diff --git a/swad_country.c b/swad_country.c index 6943de5d..0599f52f 100644 --- a/swad_country.c +++ b/swad_country.c @@ -32,6 +32,8 @@ #include // For free #include // For string functions +#include "swad_alert.h" +#include "swad_box.h" #include "swad_country_config.h" #include "swad_country_database.h" #include "swad_database.h" @@ -43,6 +45,7 @@ #include "swad_hierarchy.h" #include "swad_hierarchy_level.h" #include "swad_HTML.h" +#include "swad_parameter.h" #include "swad_survey.h" /*****************************************************************************/ diff --git a/swad_country_config.c b/swad_country_config.c index 0fcb6199..87694bcf 100644 --- a/swad_country_config.c +++ b/swad_country_config.c @@ -32,6 +32,7 @@ #include // For free #include // For string functions +#include "swad_box.h" #include "swad_country_config.h" #include "swad_country_database.h" #include "swad_database.h" @@ -44,6 +45,7 @@ #include "swad_hierarchy_config.h" #include "swad_hierarchy_level.h" #include "swad_HTML.h" +#include "swad_parameter.h" /*****************************************************************************/ /************** External global variables from others modules ****************/ diff --git a/swad_course.c b/swad_course.c index dda11030..df2e68f8 100644 --- a/swad_course.c +++ b/swad_course.c @@ -32,6 +32,7 @@ #include // For string functions #include "swad_attendance.h" +#include "swad_box.h" #include "swad_browser_database.h" #include "swad_call_for_exam_database.h" #include "swad_center_database.h" @@ -60,6 +61,7 @@ #include "swad_notice.h" #include "swad_notice_database.h" #include "swad_notification_database.h" +#include "swad_parameter.h" #include "swad_project.h" #include "swad_record_database.h" #include "swad_search.h" diff --git a/swad_course.h b/swad_course.h index 1674e7d0..013d6334 100644 --- a/swad_course.h +++ b/swad_course.h @@ -64,7 +64,7 @@ struct Crs_Course char FullName[Cns_HIERARCHY_MAX_BYTES_FULL_NAME + 1]; // Full name of course }; -struct ListCourses +struct Crs_ListCourses { unsigned Num; // Number of courses struct Crs_Course *Lst; // List of courses diff --git a/swad_course_config.c b/swad_course_config.c index 03d2774e..98f35a3d 100644 --- a/swad_course_config.c +++ b/swad_course_config.c @@ -32,6 +32,8 @@ #include // For free #include // For string functions +#include "swad_alert.h" +#include "swad_box.h" #include "swad_course_database.h" #include "swad_database.h" #include "swad_error.h" @@ -43,6 +45,7 @@ #include "swad_HTML.h" #include "swad_indicator.h" #include "swad_logo.h" +#include "swad_parameter.h" #include "swad_role.h" /*****************************************************************************/ diff --git a/swad_database.c b/swad_database.c index 9a250647..e822b939 100644 --- a/swad_database.c +++ b/swad_database.c @@ -34,6 +34,7 @@ #include // For free #include // For strlen +#include "swad_alert.h" #include "swad_config.h" #include "swad_database.h" #include "swad_error.h" diff --git a/swad_degree.c b/swad_degree.c index 3a80dae7..b0b83ad0 100644 --- a/swad_degree.c +++ b/swad_degree.c @@ -33,6 +33,7 @@ #include // For string functions #include "swad_admin_database.h" +#include "swad_box.h" #include "swad_browser_database.h" #include "swad_course_database.h" #include "swad_database.h" @@ -50,6 +51,7 @@ #include "swad_HTML.h" #include "swad_logo.h" #include "swad_message.h" +#include "swad_parameter.h" #include "swad_photo_database.h" #include "swad_survey.h" diff --git a/swad_degree_config.c b/swad_degree_config.c index 6c3d4cb6..0382d353 100644 --- a/swad_degree_config.c +++ b/swad_degree_config.c @@ -30,6 +30,8 @@ #include // For asprintf #include // For free +#include "swad_alert.h" +#include "swad_box.h" #include "swad_database.h" #include "swad_degree_config.h" #include "swad_degree_database.h" @@ -42,6 +44,7 @@ #include "swad_hierarchy_level.h" #include "swad_HTML.h" #include "swad_logo.h" +#include "swad_parameter.h" /*****************************************************************************/ /************** External global variables from others modules ****************/ diff --git a/swad_degree_type.c b/swad_degree_type.c index 282aad77..fda9b527 100644 --- a/swad_degree_type.c +++ b/swad_degree_type.c @@ -32,6 +32,7 @@ #include // For string functions #include // To access MySQL databases +#include "swad_alert.h" #include "swad_box.h" #include "swad_config.h" #include "swad_database.h" diff --git a/swad_department.c b/swad_department.c index 2dd1d325..745868ba 100644 --- a/swad_department.c +++ b/swad_department.c @@ -32,6 +32,7 @@ #include // For calloc #include // For string functions +#include "swad_alert.h" #include "swad_box.h" #include "swad_constant.h" #include "swad_database.h" diff --git a/swad_duplicate.c b/swad_duplicate.c index f94a837e..f34731e4 100644 --- a/swad_duplicate.c +++ b/swad_duplicate.c @@ -26,6 +26,7 @@ /*****************************************************************************/ #include "swad_account.h" +#include "swad_alert.h" #include "swad_box.h" #include "swad_database.h" #include "swad_duplicate.h" @@ -37,6 +38,7 @@ #include "swad_global.h" #include "swad_HTML.h" #include "swad_layout.h" +#include "swad_parameter.h" #include "swad_profile.h" #include "swad_role_type.h" #include "swad_user.h" diff --git a/swad_enrolment.c b/swad_enrolment.c index 47bb8293..8d4d0482 100644 --- a/swad_enrolment.c +++ b/swad_enrolment.c @@ -34,6 +34,7 @@ #include "swad_account_database.h" #include "swad_admin.h" #include "swad_admin_database.h" +#include "swad_alert.h" #include "swad_announcement.h" #include "swad_attendance_database.h" #include "swad_box.h" diff --git a/swad_error.c b/swad_error.c index 745cab12..9a84fe81 100644 --- a/swad_error.c +++ b/swad_error.c @@ -27,6 +27,7 @@ #include // For exit +#include "swad_alert.h" #include "swad_database.h" #include "swad_error.h" #include "swad_global.h" diff --git a/swad_exam.c b/swad_exam.c index 94eb5cd6..93f9ee82 100644 --- a/swad_exam.c +++ b/swad_exam.c @@ -34,6 +34,7 @@ #include // For string functions #include "swad_autolink.h" +#include "swad_box.h" #include "swad_database.h" #include "swad_error.h" #include "swad_exam.h" @@ -51,6 +52,7 @@ #include "swad_match.h" #include "swad_match_result.h" #include "swad_pagination.h" +#include "swad_parameter.h" #include "swad_program_database.h" #include "swad_role.h" #include "swad_test.h" diff --git a/swad_exam_log.c b/swad_exam_log.c index 5ab6cd3f..7ae3bedd 100644 --- a/swad_exam_log.c +++ b/swad_exam_log.c @@ -31,6 +31,7 @@ #include // For string functions #include "swad_action.h" +#include "swad_box.h" #include "swad_database.h" #include "swad_error.h" #include "swad_exam_database.h" diff --git a/swad_exam_print.c b/swad_exam_print.c index 7850add9..c730ff60 100644 --- a/swad_exam_print.c +++ b/swad_exam_print.c @@ -31,6 +31,7 @@ #include // For asprintf #include // For string functions +#include "swad_alert.h" #include "swad_autolink.h" #include "swad_box.h" #include "swad_database.h" @@ -46,6 +47,7 @@ #include "swad_form.h" #include "swad_global.h" #include "swad_ID.h" +#include "swad_parameter.h" #include "swad_photo.h" /*****************************************************************************/ diff --git a/swad_exam_result.c b/swad_exam_result.c index 2794b6e7..c4ea3f77 100644 --- a/swad_exam_result.c +++ b/swad_exam_result.c @@ -33,6 +33,7 @@ #include // For string functions #include "swad_action.h" +#include "swad_box.h" #include "swad_database.h" #include "swad_date.h" #include "swad_error.h" @@ -48,6 +49,7 @@ #include "swad_global.h" #include "swad_HTML.h" #include "swad_ID.h" +#include "swad_parameter.h" #include "swad_photo.h" #include "swad_test_print.h" #include "swad_test_visibility.h" diff --git a/swad_exam_session.c b/swad_exam_session.c index eb1f4a57..dc8a6500 100644 --- a/swad_exam_session.c +++ b/swad_exam_session.c @@ -32,6 +32,8 @@ #include // For free #include // For string functions +#include "swad_alert.h" +#include "swad_box.h" #include "swad_database.h" #include "swad_date.h" #include "swad_error.h" @@ -46,6 +48,7 @@ #include "swad_global.h" #include "swad_group_database.h" #include "swad_HTML.h" +#include "swad_parameter.h" #include "swad_role.h" #include "swad_setting.h" #include "swad_test.h" diff --git a/swad_exam_set.c b/swad_exam_set.c index 19e5506c..9bc22e27 100644 --- a/swad_exam_set.c +++ b/swad_exam_set.c @@ -33,6 +33,7 @@ #include // For free #include // For string functions +#include "swad_box.h" #include "swad_database.h" #include "swad_error.h" #include "swad_exam.h" @@ -48,6 +49,7 @@ #include "swad_match.h" #include "swad_match_result.h" #include "swad_pagination.h" +#include "swad_parameter.h" #include "swad_question_database.h" #include "swad_role.h" #include "swad_test.h" diff --git a/swad_figure.c b/swad_figure.c index 2843f9e4..d59d139e 100644 --- a/swad_figure.c +++ b/swad_figure.c @@ -30,16 +30,19 @@ #include "swad_box.h" #include "swad_calendar.h" #include "swad_cookie.h" +#include "swad_degree_type.h" #include "swad_exam.h" #include "swad_figure.h" #include "swad_follow.h" #include "swad_form.h" +#include "swad_forum.h" #include "swad_global.h" #include "swad_hierarchy.h" #include "swad_HTML.h" #include "swad_message.h" #include "swad_network.h" #include "swad_notice.h" +#include "swad_parameter.h" #include "swad_privacy.h" #include "swad_program.h" #include "swad_project.h" diff --git a/swad_file.c b/swad_file.c index 0ae99c34..ba733df6 100644 --- a/swad_file.c +++ b/swad_file.c @@ -43,6 +43,7 @@ #include "swad_global.h" #include "swad_file.h" #include "swad_file_database.h" +#include "swad_parameter.h" #include "swad_string.h" /*****************************************************************************/ diff --git a/swad_file.h b/swad_file.h index 8463fa1e..86951dfc 100644 --- a/swad_file.h +++ b/swad_file.h @@ -45,7 +45,7 @@ #define Fil_MAX_FILE_SIZE (2000ULL * 1024ULL * 1024ULL) // 2000 MiB = 1.95 GiB // Global files -struct Files +struct Fil_Files { FILE *Out; // File with the HTML output of this CGI FILE *Tmp; // Temporary file to save stdin diff --git a/swad_follow.c b/swad_follow.c index 7bfd8173..acdce4df 100644 --- a/swad_follow.c +++ b/swad_follow.c @@ -30,6 +30,7 @@ #include // For asprintf #include // For string functions +#include "swad_alert.h" #include "swad_box.h" #include "swad_database.h" #include "swad_error.h" @@ -41,6 +42,7 @@ #include "swad_HTML.h" #include "swad_notification.h" #include "swad_notification_database.h" +#include "swad_parameter.h" #include "swad_photo.h" #include "swad_privacy.h" #include "swad_profile.h" diff --git a/swad_game.c b/swad_game.c index e6211c97..7e2ee7db 100644 --- a/swad_game.c +++ b/swad_game.c @@ -34,6 +34,7 @@ #include // For string functions #include "swad_autolink.h" +#include "swad_box.h" #include "swad_database.h" #include "swad_error.h" #include "swad_figure.h" @@ -47,6 +48,7 @@ #include "swad_match_database.h" #include "swad_match_result.h" #include "swad_pagination.h" +#include "swad_parameter.h" #include "swad_program_database.h" #include "swad_role.h" #include "swad_test.h" diff --git a/swad_global.c b/swad_global.c index e4566e86..ad8debfb 100644 --- a/swad_global.c +++ b/swad_global.c @@ -39,6 +39,7 @@ #include "swad_call_for_exam.h" #include "swad_config.h" #include "swad_constant.h" +#include "swad_degree_type.h" #include "swad_department.h" #include "swad_follow.h" #include "swad_global.h" @@ -47,6 +48,7 @@ #include "swad_icon.h" #include "swad_link.h" #include "swad_parameter.h" +#include "swad_plugin.h" #include "swad_program.h" #include "swad_project.h" #include "swad_role.h" diff --git a/swad_global.h b/swad_global.h index c4bf112d..f61018d6 100644 --- a/swad_global.h +++ b/swad_global.h @@ -32,34 +32,17 @@ #include // For tz #include // To access MySQL databases -#include "swad_alert.h" #include "swad_API.h" #include "swad_assignment.h" -#include "swad_box.h" #include "swad_browser.h" -#include "swad_center.h" #include "swad_connected.h" #include "swad_config.h" -#include "swad_country.h" #include "swad_course.h" -#include "swad_cryptography.h" -#include "swad_degree_type.h" #include "swad_enrolment.h" #include "swad_file.h" -#include "swad_icon.h" -#include "swad_institution.h" -#include "swad_layout.h" +#include "swad_group.h" #include "swad_mail.h" -#include "swad_mark.h" -#include "swad_media.h" -#include "swad_menu.h" -#include "swad_parameter.h" -#include "swad_password.h" -#include "swad_plugin.h" #include "swad_record.h" -#include "swad_search.h" -#include "swad_session.h" -#include "swad_setting.h" /*****************************************************************************/ /******************************* Public types ********************************/ @@ -72,10 +55,10 @@ struct Globals char DatabasePassword[Cfg_MAX_BYTES_DATABASE_PASSWORD + 1]; char SMTPPassword[Cfg_MAX_BYTES_SMTP_PASSWORD + 1]; } Config; - - struct Files F; + struct Fil_Files F; pid_t PID; // PID of current process - + char IP[Cns_MAX_BYTES_IP + 1]; + char UniqueNameEncrypted[Cry_BYTES_ENCRYPTED_STR_SHA256_BASE64 + 1]; // Used for session id, temporary directory names, etc. struct { bool WritingHTMLStart; // Used to avoid writing the HTML head when aborting program on error @@ -84,9 +67,6 @@ struct Globals bool HTMLEndWritten; // Used to avoid writing more than once the HTML end } Layout; - char IP[Cns_MAX_BYTES_IP + 1]; - char UniqueNameEncrypted[Cry_BYTES_ENCRYPTED_STR_SHA256_BASE64 + 1]; // Used for session id, temporary directory names, etc. - struct { Lan_Language_t Language; @@ -98,7 +78,6 @@ struct Globals unsigned SideCols; PhoSha_Shape_t PhotoShape; } Prefs; - struct { unsigned NumSessions; @@ -108,7 +87,6 @@ struct Globals long UsrCod; bool ParamsInsertedIntoDB; // If parameters are inserted in the database in this session } Session; - struct { Tab_Tab_t Tab; @@ -117,7 +95,6 @@ struct Globals bool UsesAJAX; // Do not generate full HTML page, only the content of a div bool IsAJAXAutoRefresh; // It's an automatic refresh drom time to time } Action; - struct { HieLvl_Level_t Level; // Current level in the hierarchy: system, country, institution, center, degree or course @@ -130,7 +107,7 @@ struct Globals struct Ctr_Center Ctr; // Current center struct ListDegrees Degs; // List of degrees in current center struct Deg_Degree Deg; // Current degree - struct ListCourses Crss; // List of courses in current degree + struct Crs_ListCourses Crss; // List of courses in current degree struct Crs_Course Crs; // Current course. Aditional info about course is stored in Gbl.Crs. } Hierarchy; struct @@ -155,10 +132,10 @@ struct Globals char Str[Sch_MAX_BYTES_STRING_TO_FIND + 1]; bool LogSearch; } Search; - struct + struct { unsigned Num; // Number of plugins - struct Plugin *Lst; // List of plugins + struct Plg_Plugin *Lst; // List of plugins } Plugins; struct { @@ -276,7 +253,7 @@ struct Globals unsigned NumUsr; unsigned NumUsrs; unsigned NumUsrsToList; - struct ConnectedUsrs Usrs[Rol_NUM_ROLES]; + struct Con_ConnectedUsrs Usrs[Rol_NUM_ROLES]; struct { long UsrCod; diff --git a/swad_group.c b/swad_group.c index ef225d3b..4237540d 100644 --- a/swad_group.c +++ b/swad_group.c @@ -32,6 +32,7 @@ #include // For string functions #include "swad_action.h" +#include "swad_alert.h" #include "swad_assignment_database.h" #include "swad_attendance_database.h" #include "swad_box.h" diff --git a/swad_help.c b/swad_help.c index 9bf93bce..d6a41915 100644 --- a/swad_help.c +++ b/swad_help.c @@ -30,6 +30,7 @@ #include // For free #include "swad_action.h" +#include "swad_alert.h" #include "swad_box.h" #include "swad_config.h" #include "swad_error.h" diff --git a/swad_hierarchy.c b/swad_hierarchy.c index a39e658b..b95cd998 100644 --- a/swad_hierarchy.c +++ b/swad_hierarchy.c @@ -29,6 +29,7 @@ #include // For asprintf #include // For free +#include "swad_box.h" #include "swad_database.h" #include "swad_degree_database.h" #include "swad_error.h" @@ -41,6 +42,7 @@ #include "swad_hierarchy_level.h" #include "swad_HTML.h" #include "swad_logo.h" +#include "swad_parameter.h" /*****************************************************************************/ /************** External global variables from others modules ****************/ diff --git a/swad_holiday.c b/swad_holiday.c index fd071789..153cca04 100644 --- a/swad_holiday.c +++ b/swad_holiday.c @@ -29,6 +29,7 @@ #include // For calloc #include // For string functions +#include "swad_alert.h" #include "swad_box.h" #include "swad_calendar.h" #include "swad_database.h" diff --git a/swad_indicator.c b/swad_indicator.c index 628d506a..d4fc874a 100644 --- a/swad_indicator.c +++ b/swad_indicator.c @@ -36,6 +36,7 @@ #include "swad_box.h" #include "swad_browser_database.h" #include "swad_database.h" +#include "swad_degree_type.h" #include "swad_department.h" #include "swad_error.h" #include "swad_form.h" diff --git a/swad_info.c b/swad_info.c index b6a9d33a..1f35e25a 100644 --- a/swad_info.c +++ b/swad_info.c @@ -34,6 +34,7 @@ #include // For unlink #include "swad_action.h" +#include "swad_alert.h" #include "swad_autolink.h" #include "swad_box.h" #include "swad_database.h" diff --git a/swad_institution.c b/swad_institution.c index f6b73866..bfe8689c 100644 --- a/swad_institution.c +++ b/swad_institution.c @@ -33,6 +33,7 @@ #include // For string functions #include "swad_admin_database.h" +#include "swad_box.h" #include "swad_browser_database.h" #include "swad_center_database.h" #include "swad_database.h" @@ -51,6 +52,7 @@ #include "swad_institution_database.h" #include "swad_logo.h" #include "swad_message.h" +#include "swad_parameter.h" #include "swad_place.h" #include "swad_survey.h" diff --git a/swad_institution_config.c b/swad_institution_config.c index 4a85ec05..d635b09f 100644 --- a/swad_institution_config.c +++ b/swad_institution_config.c @@ -31,6 +31,8 @@ #include // For asprintf #include // For free +#include "swad_alert.h" +#include "swad_box.h" #include "swad_center_database.h" #include "swad_database.h" #include "swad_department_database.h" @@ -46,6 +48,7 @@ #include "swad_institution.h" #include "swad_institution_database.h" #include "swad_logo.h" +#include "swad_parameter.h" #include "swad_place.h" /*****************************************************************************/ diff --git a/swad_language.c b/swad_language.c index 8f50dc99..92216fb4 100644 --- a/swad_language.c +++ b/swad_language.c @@ -30,6 +30,7 @@ #include // For free #include // For strcasecmp +#include "swad_alert.h" #include "swad_box.h" #include "swad_database.h" #include "swad_error.h" @@ -38,6 +39,7 @@ #include "swad_global.h" #include "swad_HTML.h" #include "swad_language.h" +#include "swad_parameter.h" #include "swad_setting.h" #include "swad_setting_database.h" #include "swad_user_database.h" diff --git a/swad_link.c b/swad_link.c index 2dc9ace5..5729f60e 100644 --- a/swad_link.c +++ b/swad_link.c @@ -29,6 +29,7 @@ #include // For calloc #include // For string functions +#include "swad_alert.h" #include "swad_banner.h" #include "swad_box.h" #include "swad_constant.h" diff --git a/swad_log.c b/swad_log.c index a9d19bb6..ecc52b62 100644 --- a/swad_log.c +++ b/swad_log.c @@ -30,6 +30,7 @@ #include "swad_action.h" #include "swad_banner.h" +#include "swad_box.h" #include "swad_center_database.h" #include "swad_config.h" #include "swad_database.h" diff --git a/swad_logo.c b/swad_logo.c index 9704c90e..244ebc6a 100644 --- a/swad_logo.c +++ b/swad_logo.c @@ -31,6 +31,7 @@ #include // For string functions #include "swad_action.h" +#include "swad_alert.h" #include "swad_box.h" #include "swad_degree_database.h" #include "swad_center_database.h" diff --git a/swad_mail.c b/swad_mail.c index c1181e49..24eece77 100644 --- a/swad_mail.c +++ b/swad_mail.c @@ -34,6 +34,7 @@ #include // For access, lstat, getpid, chdir, symlink, unlink #include "swad_account.h" +#include "swad_alert.h" #include "swad_box.h" #include "swad_database.h" #include "swad_error.h" diff --git a/swad_main.c b/swad_main.c index bbdfb455..277ec82f 100644 --- a/swad_main.c +++ b/swad_main.c @@ -44,6 +44,7 @@ #include "swad_MFU.h" #include "swad_notification.h" #include "swad_parameter.h" +#include "swad_session.h" #include "swad_session_database.h" #include "swad_setting.h" #include "swad_user.h" diff --git a/swad_mark.c b/swad_mark.c index 22a1e13e..1668fefa 100644 --- a/swad_mark.c +++ b/swad_mark.c @@ -33,6 +33,7 @@ #include // For string functions #include // For unlink +#include "swad_alert.h" #include "swad_database.h" #include "swad_enrolment_database.h" #include "swad_error.h" diff --git a/swad_match.c b/swad_match.c index ea2bb578..a066ba85 100644 --- a/swad_match.c +++ b/swad_match.c @@ -32,6 +32,8 @@ #include // For free #include // For string functions +#include "swad_alert.h" +#include "swad_box.h" #include "swad_database.h" #include "swad_date.h" #include "swad_error.h" @@ -44,6 +46,7 @@ #include "swad_match.h" #include "swad_match_database.h" #include "swad_match_result.h" +#include "swad_parameter.h" #include "swad_question_database.h" #include "swad_role.h" #include "swad_setting.h" diff --git a/swad_match_result.c b/swad_match_result.c index e30835e5..74a567ac 100644 --- a/swad_match_result.c +++ b/swad_match_result.c @@ -33,6 +33,7 @@ #include // For string functions #include "swad_action.h" +#include "swad_box.h" #include "swad_database.h" #include "swad_date.h" #include "swad_error.h" @@ -43,6 +44,7 @@ #include "swad_match.h" #include "swad_match_database.h" #include "swad_match_result.h" +#include "swad_parameter.h" #include "swad_photo.h" #include "swad_test_visibility.h" #include "swad_user.h" diff --git a/swad_media.c b/swad_media.c index d7140a53..dc3a5d93 100644 --- a/swad_media.c +++ b/swad_media.c @@ -36,6 +36,7 @@ #include // For the macro WEXITSTATUS #include // For unlink, lstat +#include "swad_alert.h" #include "swad_box.h" #include "swad_browser.h" #include "swad_config.h" @@ -48,6 +49,7 @@ #include "swad_HTML.h" #include "swad_media.h" #include "swad_media_database.h" +#include "swad_parameter.h" /*****************************************************************************/ /***************************** Private constants *****************************/ diff --git a/swad_message.c b/swad_message.c index 69ff7448..62ded96f 100644 --- a/swad_message.c +++ b/swad_message.c @@ -49,6 +49,7 @@ #include "swad_hierarchy_level.h" #include "swad_HTML.h" #include "swad_ID.h" +#include "swad_media.h" #include "swad_message.h" #include "swad_message_database.h" #include "swad_nickname_database.h" diff --git a/swad_nickname.c b/swad_nickname.c index b366f02a..b1f409f3 100644 --- a/swad_nickname.c +++ b/swad_nickname.c @@ -28,6 +28,7 @@ #include // For string functions #include "swad_account.h" +#include "swad_alert.h" #include "swad_box.h" #include "swad_database.h" #include "swad_form.h" diff --git a/swad_notice.c b/swad_notice.c index c0f7482a..70f933f6 100644 --- a/swad_notice.c +++ b/swad_notice.c @@ -32,6 +32,7 @@ #include // For free #include +#include "swad_alert.h" #include "swad_autolink.h" #include "swad_box.h" #include "swad_database.h" diff --git a/swad_parameter.c b/swad_parameter.c index 588b7e60..2c9158fe 100644 --- a/swad_parameter.c +++ b/swad_parameter.c @@ -38,6 +38,7 @@ #include "swad_HTML.h" #include "swad_parameter.h" #include "swad_password.h" +#include "swad_session.h" #include "swad_setting.h" #include "swad_tab.h" diff --git a/swad_photo.c b/swad_photo.c index df7cc27c..679a8153 100644 --- a/swad_photo.c +++ b/swad_photo.c @@ -36,6 +36,7 @@ #include // For unlink #include "swad_action.h" +#include "swad_alert.h" #include "swad_box.h" #include "swad_browser.h" #include "swad_config.h" diff --git a/swad_photo_shape.c b/swad_photo_shape.c index 0e9c5a44..0e6680f4 100644 --- a/swad_photo_shape.c +++ b/swad_photo_shape.c @@ -31,11 +31,13 @@ #include // For free #include "swad_action.h" +#include "swad_box.h" #include "swad_config.h" #include "swad_error.h" #include "swad_figure.h" #include "swad_form.h" #include "swad_global.h" +#include "swad_parameter.h" #include "swad_photo_shape.h" #include "swad_setting_database.h" #include "swad_user_database.h" diff --git a/swad_place.c b/swad_place.c index 7f48ce97..957b69e1 100644 --- a/swad_place.c +++ b/swad_place.c @@ -29,6 +29,7 @@ #include // For calloc #include // For string functions +#include "swad_alert.h" #include "swad_box.h" #include "swad_center_database.h" #include "swad_constant.h" diff --git a/swad_plugin.c b/swad_plugin.c index a45a9956..d55b2d60 100644 --- a/swad_plugin.c +++ b/swad_plugin.c @@ -61,7 +61,7 @@ extern struct Globals Gbl; /***************************** Private variables *****************************/ /*****************************************************************************/ -static struct Plugin *Plg_EditingPlg = NULL; // Static variable to keep the plugin being edited +static struct Plg_Plugin *Plg_EditingPlg = NULL; // Static variable to keep the plugin being edited /*****************************************************************************/ /***************************** Private prototypes ****************************/ @@ -88,7 +88,7 @@ void Plg_ListPlugins (void) extern const char *Txt_Plugins; extern const char *Txt_Plugin; unsigned NumPlg; - struct Plugin *Plg; + struct Plg_Plugin *Plg; char URL[Cns_MAX_BYTES_WWW + Cns_BYTES_SESSION_ID + 1]; char *Icon; @@ -219,7 +219,7 @@ static void Plg_GetListPlugins (void) MYSQL_RES *mysql_res; MYSQL_ROW row; unsigned NumPlg; - struct Plugin *Plg; + struct Plg_Plugin *Plg; /***** Get plugins from database *****/ if ((Gbl.Plugins.Num = Plg_DB_GetListPlugins (&mysql_res))) // Plugins found... @@ -262,7 +262,7 @@ static void Plg_GetListPlugins (void) /*************************** Get data of a plugin ****************************/ /*****************************************************************************/ -bool Plg_GetDataOfPluginByCod (struct Plugin *Plg) +bool Plg_GetDataOfPluginByCod (struct Plg_Plugin *Plg) { MYSQL_RES *mysql_res; MYSQL_ROW row; @@ -328,7 +328,7 @@ void Plg_FreeListPlugins (void) static void Plg_ListPluginsForEdition (void) { unsigned NumPlg; - struct Plugin *Plg; + struct Plg_Plugin *Plg; char *Icon; /***** Begin table *****/ diff --git a/swad_plugin.h b/swad_plugin.h index 3858a053..02bd18da 100644 --- a/swad_plugin.h +++ b/swad_plugin.h @@ -43,7 +43,7 @@ /******************************* Public types ********************************/ /*****************************************************************************/ -struct Plugin +struct Plg_Plugin { long PlgCod; char Name[Plg_MAX_BYTES_PLUGIN_NAME + 1]; @@ -60,7 +60,7 @@ struct Plugin void Plg_ListPlugins (void); void Plg_EditPlugins (void); -bool Plg_GetDataOfPluginByCod (struct Plugin *Plg); +bool Plg_GetDataOfPluginByCod (struct Plg_Plugin *Plg); void Plg_FreeListPlugins (void); long Plg_GetParamPlgCod (void); void Plg_RemovePlugin (void); diff --git a/swad_plugin_database.c b/swad_plugin_database.c index 7e6419bb..0fe55398 100644 --- a/swad_plugin_database.c +++ b/swad_plugin_database.c @@ -32,7 +32,7 @@ /***************************** Create a new plugin ***************************/ /*****************************************************************************/ -void Plg_DB_CreatePlugin (const struct Plugin *Plg) +void Plg_DB_CreatePlugin (const struct Plg_Plugin *Plg) { DB_QueryINSERT ("can not create plugin", "INSERT INTO plg_plugins" diff --git a/swad_plugin_database.h b/swad_plugin_database.h index 3a0d1b5a..9be395b1 100644 --- a/swad_plugin_database.h +++ b/swad_plugin_database.h @@ -35,7 +35,7 @@ /****************************** Public prototypes ****************************/ /*****************************************************************************/ -void Plg_DB_CreatePlugin (const struct Plugin *Plg); +void Plg_DB_CreatePlugin (const struct Plg_Plugin *Plg); void Plg_DB_ChangeName (long PlgCod, const char NewPlgName[Plg_MAX_BYTES_PLUGIN_NAME + 1]); void Plg_DB_ChangeDescription (long PlgCod, diff --git a/swad_privacy.c b/swad_privacy.c index 41079e95..b7179e0f 100644 --- a/swad_privacy.c +++ b/swad_privacy.c @@ -31,6 +31,7 @@ #include #include "swad_action.h" +#include "swad_alert.h" #include "swad_box.h" #include "swad_enrolment_database.h" #include "swad_error.h" diff --git a/swad_program_resource.c b/swad_program_resource.c index 92d7a073..c1ef9d71 100644 --- a/swad_program_resource.c +++ b/swad_program_resource.c @@ -30,8 +30,10 @@ #include // For free #include // For string functions +#include "swad_alert.h" #include "swad_assignment_resource.h" #include "swad_attendance_resource.h" +#include "swad_box.h" #include "swad_browser_resource.h" #include "swad_call_for_exam_resource.h" #include "swad_error.h" @@ -40,6 +42,7 @@ #include "swad_forum_resource.h" #include "swad_game_resource.h" #include "swad_global.h" +#include "swad_parameter.h" #include "swad_program.h" #include "swad_program_database.h" #include "swad_program_resource.h" diff --git a/swad_question.c b/swad_question.c index b88e7258..04c7daed 100644 --- a/swad_question.c +++ b/swad_question.c @@ -30,12 +30,15 @@ #include // For free #include // For string functions +#include "swad_alert.h" +#include "swad_box.h" #include "swad_database.h" #include "swad_error.h" #include "swad_exam_set.h" #include "swad_figure.h" #include "swad_form.h" #include "swad_global.h" +#include "swad_parameter.h" #include "swad_question.h" #include "swad_question_database.h" #include "swad_question_import.h" diff --git a/swad_question_database.c b/swad_question_database.c index 83cde090..973aab25 100644 --- a/swad_question_database.c +++ b/swad_question_database.c @@ -27,9 +27,11 @@ #include // For string functions +#include "swad_alert.h" #include "swad_database.h" #include "swad_error.h" #include "swad_global.h" +#include "swad_parameter.h" #include "swad_question.h" #include "swad_test_print.h" diff --git a/swad_question_import.c b/swad_question_import.c index b008ee53..1d87f9aa 100644 --- a/swad_question_import.c +++ b/swad_question_import.c @@ -30,6 +30,7 @@ #include // For mkdir #include // For mkdir +#include "swad_alert.h" #include "swad_box.h" #include "swad_database.h" #include "swad_error.h" diff --git a/swad_record.c b/swad_record.c index 1270e0a0..8d02af6b 100644 --- a/swad_record.c +++ b/swad_record.c @@ -35,6 +35,7 @@ #include "swad_account.h" #include "swad_account_database.h" #include "swad_action.h" +#include "swad_alert.h" #include "swad_box.h" #include "swad_config.h" #include "swad_database.h" diff --git a/swad_room.c b/swad_room.c index 6a8f9457..a7cec685 100644 --- a/swad_room.c +++ b/swad_room.c @@ -29,6 +29,7 @@ #include // For NULL #include // For string functions +#include "swad_alert.h" #include "swad_box.h" #include "swad_building.h" #include "swad_database.h" @@ -38,6 +39,7 @@ #include "swad_group_database.h" #include "swad_HTML.h" #include "swad_MAC.h" +#include "swad_parameter.h" #include "swad_room.h" #include "swad_room_database.h" diff --git a/swad_statistic.c b/swad_statistic.c index c77967a2..d54e2550 100644 --- a/swad_statistic.c +++ b/swad_statistic.c @@ -31,6 +31,7 @@ #include // For getenv, malloc #include // For string functions +#include "swad_alert.h" #include "swad_banner.h" #include "swad_box.h" #include "swad_database.h" @@ -43,6 +44,8 @@ #include "swad_ID.h" #include "swad_log.h" #include "swad_log_database.h" +#include "swad_parameter.h" +#include "swad_plugin.h" #include "swad_profile.h" #include "swad_role.h" #include "swad_statistic.h" @@ -2729,7 +2732,7 @@ static void Sta_ShowNumHitsPerPlugin (Sta_CountType_t CountType, unsigned NumHit; struct Sta_Hits Hits; MYSQL_ROW row; - struct Plugin Plg; + struct Plg_Plugin Plg; /***** Write heading *****/ HTM_TR_Begin (NULL); diff --git a/swad_string.c b/swad_string.c index 8c9a2067..d4224188 100644 --- a/swad_string.c +++ b/swad_string.c @@ -33,9 +33,11 @@ #include // For free #include // For string functions +#include "swad_alert.h" #include "swad_error.h" #include "swad_global.h" #include "swad_notification_database.h" +#include "swad_parameter.h" #include "swad_string.h" /*****************************************************************************/ diff --git a/swad_tag.c b/swad_tag.c index 5bc6d130..be3b80b8 100644 --- a/swad_tag.c +++ b/swad_tag.c @@ -33,10 +33,13 @@ #include // For string functions #include "swad_action.h" +#include "swad_alert.h" +#include "swad_box.h" #include "swad_database.h" #include "swad_error.h" #include "swad_form.h" #include "swad_global.h" +#include "swad_parameter.h" #include "swad_tag.h" #include "swad_tag_database.h" #include "swad_theme.h" diff --git a/swad_test.c b/swad_test.c index 79637e4c..487dda8d 100644 --- a/swad_test.c +++ b/swad_test.c @@ -38,6 +38,7 @@ #include // For mkdir #include "swad_action.h" +#include "swad_alert.h" #include "swad_box.h" #include "swad_database.h" #include "swad_error.h" diff --git a/swad_test_print.c b/swad_test_print.c index bea2bbde..2129b8eb 100644 --- a/swad_test_print.c +++ b/swad_test_print.c @@ -34,12 +34,15 @@ #include // For string functions #include "swad_action.h" +#include "swad_alert.h" +#include "swad_box.h" #include "swad_database.h" #include "swad_error.h" #include "swad_form.h" #include "swad_global.h" #include "swad_HTML.h" #include "swad_ID.h" +#include "swad_parameter.h" #include "swad_photo.h" #include "swad_question.h" #include "swad_question_database.h" diff --git a/swad_timeline.c b/swad_timeline.c index 90309d44..ce6c26ff 100644 --- a/swad_timeline.c +++ b/swad_timeline.c @@ -128,6 +128,7 @@ mysql> SHOW TABLES LIKE 'tml_%'; #include // For asprintf #include // For free +#include "swad_box.h" #include "swad_error.h" #include "swad_figure.h" #include "swad_global.h" diff --git a/swad_timeline_comment.c b/swad_timeline_comment.c index 1f958f52..c5fabd41 100644 --- a/swad_timeline_comment.c +++ b/swad_timeline_comment.c @@ -30,11 +30,13 @@ #include // For asprintf #include // For free +#include "swad_box.h" #include "swad_error.h" #include "swad_forum.h" #include "swad_global.h" #include "swad_message.h" #include "swad_notification_database.h" +#include "swad_parameter.h" #include "swad_photo.h" #include "swad_profile.h" #include "swad_timeline.h" diff --git a/swad_timeline_form.c b/swad_timeline_form.c index 4ee9cb5b..396aae3b 100644 --- a/swad_timeline_form.c +++ b/swad_timeline_form.c @@ -30,6 +30,7 @@ #include // For free #include "swad_action.h" +#include "swad_alert.h" #include "swad_error.h" #include "swad_global.h" #include "swad_timeline.h" diff --git a/swad_timeline_note.c b/swad_timeline_note.c index edec755a..80bb4671 100644 --- a/swad_timeline_note.c +++ b/swad_timeline_note.c @@ -41,6 +41,7 @@ #include "swad_hierarchy.h" #include "swad_notice.h" #include "swad_notification_database.h" +#include "swad_parameter.h" #include "swad_photo.h" #include "swad_profile.h" #include "swad_timeline.h" diff --git a/swad_timeline_post.c b/swad_timeline_post.c index d2a6c037..3b3f6490 100644 --- a/swad_timeline_post.c +++ b/swad_timeline_post.c @@ -29,12 +29,14 @@ #include // For asprintf #include // For free +#include "swad_alert.h" #include "swad_database.h" #include "swad_error.h" #include "swad_global.h" #include "swad_info.h" #include "swad_media.h" #include "swad_message.h" +#include "swad_parameter.h" #include "swad_profile.h" #include "swad_timeline.h" #include "swad_timeline_database.h" diff --git a/swad_timeline_publication.c b/swad_timeline_publication.c index 84015804..7c7e8a0e 100644 --- a/swad_timeline_publication.c +++ b/swad_timeline_publication.c @@ -32,6 +32,7 @@ #include "swad_follow.h" #include "swad_follow_database.h" #include "swad_global.h" +#include "swad_parameter.h" #include "swad_profile.h" #include "swad_profile_database.h" #include "swad_timeline.h" diff --git a/swad_timeline_user.c b/swad_timeline_user.c index 22487c7b..96fd4a06 100644 --- a/swad_timeline_user.c +++ b/swad_timeline_user.c @@ -31,6 +31,7 @@ #include // For asprintf #include // For free +#include "swad_alert.h" #include "swad_error.h" #include "swad_global.h" #include "swad_photo.h" diff --git a/swad_timeline_who.c b/swad_timeline_who.c index 0e709983..7deaffd7 100644 --- a/swad_timeline_who.c +++ b/swad_timeline_who.c @@ -25,6 +25,7 @@ /*********************************** Headers *********************************/ /*****************************************************************************/ +#include "swad_alert.h" #include "swad_database.h" #include "swad_follow.h" #include "swad_global.h" diff --git a/swad_timetable.c b/swad_timetable.c index 4455b63e..b023df7f 100644 --- a/swad_timetable.c +++ b/swad_timetable.c @@ -31,6 +31,7 @@ #include // For malloc, calloc, free #include // For string functions +#include "swad_alert.h" #include "swad_box.h" #include "swad_calendar.h" #include "swad_database.h" diff --git a/swad_user.c b/swad_user.c index 175dbf29..8eb2d366 100644 --- a/swad_user.c +++ b/swad_user.c @@ -83,6 +83,7 @@ #include "swad_record.h" #include "swad_record_database.h" #include "swad_role.h" +#include "swad_session.h" #include "swad_session_database.h" #include "swad_setting.h" #include "swad_tab.h" diff --git a/swad_zip.c b/swad_zip.c index a9dd2a60..0f110ff4 100644 --- a/swad_zip.c +++ b/swad_zip.c @@ -36,6 +36,7 @@ #include // For mkdir... #include // For chdir... +#include "swad_alert.h" #include "swad_box.h" #include "swad_browser.h" #include "swad_browser_database.h"