Version 22.58: Nov 06, 2022 New module swad_action_list for list of actions.

This commit is contained in:
acanas 2022-11-06 18:11:10 +01:00
parent 84605b687c
commit 46cab63cba
129 changed files with 5761 additions and 5582 deletions

View File

@ -26,12 +26,12 @@
# #
###############################################################################
OBJS = swad_account.o swad_account_database.o swad_action.o swad_admin.o \
swad_admin_database.o swad_agenda.o swad_agenda_database.o swad_alert.o \
swad_announcement.o swad_announcement_database.o swad_API.o \
swad_API_database.o swad_assignment.o swad_assignment_database.o \
swad_assignment_resource.o swad_attendance.o swad_attendance_database.o \
swad_attendance_resource.o swad_autolink.o \
OBJS = swad_account.o swad_account_database.o swad_action.o swad_action_list.o \
swad_admin.o swad_admin_database.o swad_agenda.o swad_agenda_database.o \
swad_alert.o swad_announcement.o swad_announcement_database.o \
swad_API.o swad_API_database.o swad_assignment.o \
swad_assignment_database.o swad_assignment_resource.o swad_attendance.o \
swad_attendance_database.o swad_attendance_resource.o swad_autolink.o \
swad_banner.o swad_banner_database.o swad_box.o swad_browser.o \
swad_browser_database.o swad_browser_resource.o swad_building.o \
swad_building_database.o swad_button.o \

View File

@ -33,6 +33,7 @@
#include <string.h> // For string functions
#include "swad_account.h"
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_database.h"

View File

@ -28,6 +28,7 @@
#include <stddef.h> // For NULL
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_database.h"
#include "swad_form.h"
#include "swad_global.h"

View File

@ -30,6 +30,7 @@
#include <string.h> // For string functions
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_box.h"
#include "swad_config.h"
#include "swad_database.h"
@ -93,7 +94,6 @@ void MFU_FreeMFUActions (struct MFU_ListMFUActions *ListMFUActions)
void MFU_GetMFUActions (struct MFU_ListMFUActions *ListMFUActions,unsigned MaxActionsShown)
{
extern Act_Action_t Act_FromActCodToAction[1 + Act_MAX_ACTION_COD];
MYSQL_RES *mysql_res;
unsigned NumActions;
unsigned NumAction;
@ -110,8 +110,8 @@ void MFU_GetMFUActions (struct MFU_ListMFUActions *ListMFUActions,unsigned MaxAc
{
/* Get action code */
ActCod = DB_GetNextCode (mysql_res);
if (ActCod >= 0 && ActCod <= Act_MAX_ACTION_COD)
if ((Action = Act_FromActCodToAction[ActCod]) >= 0)
if (ActCod >= 0 && ActCod <= ActLst_MAX_ACTION_COD)
if ((Action = Act_GetActionFromActCod (ActCod)) >= 0)
if (Act_GetIndexInMenu (Action) >= 0) // MFU actions must be only actions shown on menu (database could contain wrong action numbers)
if (Act_CheckIfIHavePermissionToExecuteAction (Action))
ListMFUActions->Actions[ListMFUActions->NumActions++] = Action;
@ -127,7 +127,6 @@ void MFU_GetMFUActions (struct MFU_ListMFUActions *ListMFUActions,unsigned MaxAc
Act_Action_t MFU_GetMyLastActionInCurrentTab (void)
{
extern Act_Action_t Act_FromActCodToAction[1 + Act_MAX_ACTION_COD];
MYSQL_RES *mysql_res;
unsigned NumActions;
unsigned NumAct;
@ -147,8 +146,8 @@ Act_Action_t MFU_GetMyLastActionInCurrentTab (void)
{
/* Get action code */
ActCod = DB_GetNextCode (mysql_res);
if (ActCod >= 0 && ActCod <= Act_MAX_ACTION_COD)
if ((Action = Act_FromActCodToAction[ActCod]) >= 0)
if (ActCod >= 0 && ActCod <= ActLst_MAX_ACTION_COD)
if ((Action = Act_GetActionFromActCod (ActCod)) >= 0)
if (Act_GetTab (Act_GetSuperAction (Action)) == Gbl.Action.Tab)
if (Act_CheckIfIHavePermissionToExecuteAction (Action))
{

View File

@ -30,6 +30,7 @@
#include <stdlib.h> // For free
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_error.h"

View File

@ -32,6 +32,7 @@
#include "swad_account.h"
#include "swad_account_database.h"
#include "swad_action_list.h"
#include "swad_admin_database.h"
#include "swad_agenda_database.h"
#include "swad_announcement_database.h"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

3816
swad_action_list.c Normal file

File diff suppressed because it is too large Load Diff

1748
swad_action_list.h Normal file

File diff suppressed because it is too large Load Diff

View File

@ -27,6 +27,7 @@
#include <stdlib.h> // For free
#include "swad_action_list.h"
#include "swad_admin.h"
#include "swad_admin_database.h"
#include "swad_alert.h"

View File

@ -32,6 +32,7 @@
#include <stdlib.h> // For calloc
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_agenda.h"
#include "swad_agenda_database.h"
#include "swad_autolink.h"

View File

@ -32,6 +32,7 @@
#include <stdlib.h> // For free
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_error.h"
#include "swad_form.h"

View File

@ -25,6 +25,7 @@
/*********************************** Headers *********************************/
/*****************************************************************************/
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_announcement.h"
#include "swad_announcement_database.h"

View File

@ -32,6 +32,7 @@
#include <stdlib.h> // For calloc
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_assignment.h"
#include "swad_assignment_database.h"
#include "swad_autolink.h"
@ -484,7 +485,7 @@ static void Asg_ShowAssignmentRow (struct Asg_Assignments *Assignments,
bool OnlyOneAssignment,
bool PrintView)
{
extern const char *Txt_Actions[Act_NUM_ACTIONS];
extern const char *Txt_Actions[ActLst_NUM_ACTIONS];
char *Anchor = NULL;
static unsigned UniqueId = 0;
char *Id;

View File

@ -25,6 +25,7 @@
/********************************* Headers ***********************************/
/*****************************************************************************/
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_assignment.h"
#include "swad_assignment_database.h"
@ -80,7 +81,7 @@ void AsgRsc_GetLinkToAssignment (void)
void AsgRsc_WriteAssignmentInCrsProgram (long AsgCod,bool PutFormToGo,
const char *Icon,const char *IconTitle)
{
extern const char *Txt_Actions[Act_NUM_ACTIONS];
extern const char *Txt_Actions[ActLst_NUM_ACTIONS];
Act_Action_t NextAction;
char Title[Asg_MAX_BYTES_ASSIGNMENT_TITLE + 1];

View File

@ -33,6 +33,7 @@
#include <stdlib.h> // For calloc
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_attendance.h"
#include "swad_attendance_database.h"
#include "swad_autolink.h"

View File

@ -24,6 +24,7 @@
/********************************** Headers **********************************/
/*****************************************************************************/
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_attendance.h"
#include "swad_attendance_database.h"
@ -66,7 +67,7 @@ void AttRsc_GetLinkToEvent (void)
void AttRsc_WriteAttEventInCrsProgram (long AttCod,bool PutFormToGo,
const char *Icon,const char *IconTitle)
{
extern const char *Txt_Actions[Act_NUM_ACTIONS];
extern const char *Txt_Actions[ActLst_NUM_ACTIONS];
Act_Action_t NextAction;
char Title[Att_MAX_BYTES_ATTENDANCE_EVENT_TITLE + 1];

View File

@ -32,6 +32,7 @@
#include <stdlib.h> // For malloc and free
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_autolink.h"
#include "swad_config.h"
#include "swad_error.h"

View File

@ -29,6 +29,7 @@
#include <stdlib.h> // For calloc
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_banner.h"
#include "swad_banner_database.h"

View File

@ -38,6 +38,7 @@
#include <time.h> // For time
#include <unistd.h> // For access, lstat, getpid, chdir, symlink
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_browser.h"

View File

@ -25,6 +25,7 @@
/*****************************************************************************/
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_browser.h"
#include "swad_browser_resource.h"
@ -96,7 +97,7 @@ void BrwRsc_WriteDocFileNameInCrsProgram (long FilCod,bool PutFormToGo,
const char *Icon,const char *IconTitle)
{
extern const char *Txt_Documents;
extern const char *Txt_Actions[Act_NUM_ACTIONS];
extern const char *Txt_Actions[ActLst_NUM_ACTIONS];
Act_Action_t NextAction = ActUnk; // Initialized to avoid warning
struct Brw_FileMetadata FileMetadata;
char Title[NAME_MAX + 1]; // File or link name
@ -177,7 +178,7 @@ void BrwRsc_WriteMrkFileNameInCrsProgram (long FilCod,bool PutFormToGo,
const char *Icon,const char *IconTitle)
{
extern const char *Txt_Marks_area;
extern const char *Txt_Actions[Act_NUM_ACTIONS];
extern const char *Txt_Actions[ActLst_NUM_ACTIONS];
Act_Action_t NextAction;
struct Brw_FileMetadata FileMetadata;
char Title[NAME_MAX + 1]; // File or link name

View File

@ -29,6 +29,7 @@
#include <stddef.h> // For NULL
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_building.h"

View File

@ -30,6 +30,7 @@
#include <stdlib.h> // For free
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_box.h"
#include "swad_calendar.h"
#include "swad_database.h"

View File

@ -31,6 +31,7 @@
#include <stdlib.h> // For exit, system, malloc, calloc, free, etc.
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_call_for_exam.h"

View File

@ -25,6 +25,7 @@
/********************************* Headers ***********************************/
/*****************************************************************************/
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_call_for_exam.h"
#include "swad_call_for_exam_resource.h"
@ -71,7 +72,7 @@ void Cfe_GetLinkToCallForExam (void)
void CfeRsc_WriteCallForExamInCrsProgram (long ExaCod,bool PutFormToGo,
const char *Icon,const char *IconTitle)
{
extern const char *Txt_Actions[Act_NUM_ACTIONS];
extern const char *Txt_Actions[ActLst_NUM_ACTIONS];
Act_Action_t NextAction;
char Title[Cfe_MAX_BYTES_SESSION_AND_DATE];
char *Anchor = NULL;

View File

@ -32,6 +32,7 @@
#include <stdlib.h> // For free
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_admin_database.h"
#include "swad_box.h"
#include "swad_browser_database.h"

View File

@ -33,6 +33,7 @@
#include <string.h> // For string functions
#include <unistd.h> // For unlink
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_center.h"

View File

@ -604,7 +604,7 @@ 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.57.1 (2022-10-29)"
#define Log_PLATFORM_VERSION "SWAD 22.58 (2022-11-06)"
#define CSS_FILE "swad22.57.1.css"
#define JS_FILE "swad22.49.js"
/*
@ -615,6 +615,7 @@ Que al subir un fichero por defecto est
Al subir cosas para los grupos, en documentos, resltar más los grupos porque no son conscientes...
Exportar listas en CSV.
Version 22.58: Nov 06, 2022 New module swad_action_list for list of actions. (333958 lines)
Version 22.57.1: Oct 29, 2022 Change in layout of heading title. (333789 lines)
Version 22.57: Oct 29, 2022 Code refactoring in search. (333762 lines)
Version 22.56: Oct 29, 2022 Code refactoring in user record. (333696 lines)

View File

@ -29,6 +29,7 @@
#include <stdbool.h> // For boolean type
#include <string.h>
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_chat.h"

View File

@ -33,6 +33,7 @@
#include <stdlib.h> // For free
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_box.h"
#include "swad_connected.h"
#include "swad_connected_database.h"

View File

@ -29,6 +29,7 @@
#include <stdio.h> // For asprintf
#include <stdlib.h> // For free
#include "swad_action_list.h"
#include "swad_box.h"
#include "swad_cookie.h"
#include "swad_cookie_database.h"

View File

@ -32,6 +32,7 @@
#include <stdlib.h> // For free
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_country_config.h"

View File

@ -32,6 +32,7 @@
#include <stdlib.h> // For free
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_box.h"
#include "swad_country_config.h"
#include "swad_country_database.h"

View File

@ -31,6 +31,7 @@
#include <stdlib.h> // For free
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_attendance.h"
#include "swad_box.h"
#include "swad_browser_database.h"

View File

@ -32,6 +32,7 @@
#include <stdlib.h> // For free
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_course_database.h"

View File

@ -31,6 +31,7 @@
#include <string.h> // For string functions
#include <time.h> // For time functions (mktime...)
#include "swad_action_list.h"
#include "swad_box.h"
#include "swad_calendar.h"
#include "swad_config.h"

View File

@ -32,6 +32,7 @@
#include <stdlib.h> // For free
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_admin_database.h"
#include "swad_box.h"
#include "swad_browser_database.h"

View File

@ -30,6 +30,7 @@
#include <stdio.h> // For asprintf
#include <stdlib.h> // For free
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_database.h"

View File

@ -32,6 +32,7 @@
#include <string.h> // For string functions
#include <mysql/mysql.h> // To access MySQL databases
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_config.h"

View File

@ -32,6 +32,7 @@
#include <stdlib.h> // For calloc
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_constant.h"

View File

@ -26,6 +26,7 @@
/*****************************************************************************/
#include "swad_account.h"
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_database.h"

View File

@ -32,6 +32,7 @@
#include "swad_account.h"
#include "swad_account_database.h"
#include "swad_action_list.h"
#include "swad_admin.h"
#include "swad_admin_database.h"
#include "swad_alert.h"

View File

@ -33,6 +33,7 @@
#include <stdlib.h> // For free
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_autolink.h"
#include "swad_box.h"
#include "swad_database.h"

View File

@ -31,6 +31,7 @@
#include <stdio.h> // For asprintf
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_autolink.h"
#include "swad_box.h"

View File

@ -25,6 +25,7 @@
/********************************* Headers ***********************************/
/*****************************************************************************/
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_error.h"
#include "swad_exam.h"
@ -70,7 +71,7 @@ void ExaRsc_GetLinkToExam (void)
void ExaRsc_WriteExamInCrsProgram (long ExaCod,bool PutFormToGo,
const char *Icon,const char *IconTitle)
{
extern const char *Txt_Actions[Act_NUM_ACTIONS];
extern const char *Txt_Actions[ActLst_NUM_ACTIONS];
Act_Action_t NextAction;
char Title[Exa_MAX_BYTES_TITLE + 1];

View File

@ -33,6 +33,7 @@
#include <string.h> // For string functions
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_box.h"
#include "swad_database.h"
#include "swad_date.h"

View File

@ -32,6 +32,7 @@
#include <stdlib.h> // For free
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_database.h"

View File

@ -33,6 +33,7 @@
#include <stdlib.h> // For free
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_box.h"
#include "swad_database.h"
#include "swad_error.h"

View File

@ -26,6 +26,7 @@
/*****************************************************************************/
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_agenda.h"
#include "swad_box.h"
#include "swad_calendar.h"

View File

@ -30,6 +30,7 @@
#include <stdio.h> // For asprintf
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_database.h"

View File

@ -29,6 +29,7 @@
#include <stdio.h> // For asprintf
#include <stdlib.h> // For free
#include "swad_action_list.h"
#include "swad_error.h"
#include "swad_form.h"
#include "swad_global.h"

View File

@ -34,6 +34,7 @@
#include <time.h> // For time_t
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_box.h"
#include "swad_center_database.h"
#include "swad_config.h"

View File

@ -24,6 +24,7 @@
/********************************* Headers ***********************************/
/*****************************************************************************/
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_form.h"
#include "swad_forum.h"
@ -81,7 +82,7 @@ void ForRsc_GetLinkToThread (void)
void ForRsc_WriteThreadInCrsProgram (long ThrCod,bool PutFormToGo,
const char *Icon,const char *IconTitle)
{
extern const char *Txt_Actions[Act_NUM_ACTIONS];
extern const char *Txt_Actions[ActLst_NUM_ACTIONS];
Act_Action_t NextAction;
struct For_Forums Forums;
char Subject[Cns_MAX_BYTES_SUBJECT + 1];

View File

@ -33,6 +33,7 @@
#include <stdlib.h> // For free
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_autolink.h"
#include "swad_box.h"
#include "swad_database.h"

View File

@ -25,6 +25,7 @@
/********************************* Headers ***********************************/
/*****************************************************************************/
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_error.h"
#include "swad_form.h"
@ -71,7 +72,7 @@ void GamRsc_GetLinkToGame (void)
void GamRsc_WriteGameInCrsProgram (long GamCod,bool PutFormToGo,
const char *Icon,const char *IconTitle)
{
extern const char *Txt_Actions[Act_NUM_ACTIONS];
extern const char *Txt_Actions[ActLst_NUM_ACTIONS];
Act_Action_t NextAction;
char Title[Gam_MAX_BYTES_TITLE + 1];

View File

@ -34,6 +34,7 @@
#include <unistd.h> // For getpid
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_API.h"
#include "swad_calendar.h"
#include "swad_call_for_exam.h"

View File

@ -32,6 +32,7 @@
#include <string.h> // For string functions
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_assignment_database.h"
#include "swad_attendance_database.h"

View File

@ -30,6 +30,7 @@
#include <stdlib.h> // For free
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_config.h"

View File

@ -29,6 +29,7 @@
#include <stdio.h> // For asprintf
#include <stdlib.h> // For free
#include "swad_action_list.h"
#include "swad_box.h"
#include "swad_database.h"
#include "swad_degree_database.h"

View File

@ -29,6 +29,7 @@
#include <stdio.h> // For asprintf
#include <stdlib.h> // For free
#include "swad_action_list.h"
#include "swad_error.h"
#include "swad_figure_cache.h"
#include "swad_form.h"

View File

@ -29,6 +29,7 @@
#include <stdlib.h> // For calloc
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_calendar.h"

View File

@ -30,6 +30,7 @@
#include <stdlib.h> // For free
#include <string.h>
#include "swad_action_list.h"
#include "swad_box.h"
#include "swad_config.h"
#include "swad_database.h"

View File

@ -32,6 +32,7 @@
#include <stdlib.h> // For free
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_assignment_database.h"
#include "swad_box.h"
#include "swad_browser_database.h"

View File

@ -34,6 +34,7 @@
#include <unistd.h> // For unlink
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_autolink.h"
#include "swad_box.h"

View File

@ -32,6 +32,7 @@
#include <stdlib.h> // For free
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_admin_database.h"
#include "swad_box.h"
#include "swad_browser_database.h"

View File

@ -31,6 +31,7 @@
#include <stdio.h> // For asprintf
#include <stdlib.h> // For free
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_center_database.h"

View File

@ -30,6 +30,7 @@
#include <stdlib.h> // For free
#include <string.h> // For strcasecmp
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_database.h"

View File

@ -32,6 +32,7 @@
#include <string.h> // For string functions
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_API.h"
#include "swad_banner.h"
#include "swad_box.h"

View File

@ -29,6 +29,7 @@
#include <stdlib.h> // For calloc
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_banner.h"
#include "swad_box.h"

View File

@ -29,6 +29,7 @@
#include <string.h> // For strlen
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_banner.h"
#include "swad_box.h"
#include "swad_center_database.h"

View File

@ -31,6 +31,7 @@
#include <string.h> // For string functions
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_degree_database.h"

View File

@ -34,6 +34,7 @@
#include <unistd.h> // For access, lstat, getpid, chdir, symlink, unlink
#include "swad_account.h"
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_database.h"

View File

@ -31,6 +31,7 @@
#include <unistd.h> // For sleep
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_announcement.h"
#include "swad_config.h"
#include "swad_connected_database.h"

View File

@ -25,6 +25,7 @@
/********************************* Headers ***********************************/
/*****************************************************************************/
#include "swad_action_list.h"
#include "swad_course.h"
#include "swad_database.h"
#include "swad_match_print.h"

View File

@ -33,6 +33,7 @@
#include <string.h> // For string functions
#include <unistd.h> // For unlink
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_database.h"
#include "swad_enrolment_database.h"

View File

@ -32,6 +32,7 @@
#include <stdlib.h> // For free
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_database.h"

View File

@ -33,6 +33,7 @@
#include <string.h> // For string functions
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_box.h"
#include "swad_database.h"
#include "swad_date.h"

View File

@ -36,6 +36,7 @@
#include <sys/wait.h> // For the macro WEXITSTATUS
#include <unistd.h> // For unlink, lstat
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_browser.h"

View File

@ -29,6 +29,7 @@
#include <stdio.h> // For asprintf
#include <stdlib.h> // For free
#include "swad_action_list.h"
#include "swad_box.h"
#include "swad_database.h"
#include "swad_error.h"

View File

@ -34,6 +34,7 @@
#include <time.h> // For time
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_autolink.h"
#include "swad_box.h"
#include "swad_config.h"

View File

@ -27,6 +27,7 @@
#include <string.h>
#include "swad_action_list.h"
#include "swad_box.h"
#include "swad_database.h"
#include "swad_error.h"

View File

@ -28,6 +28,7 @@
#include <string.h> // For string functions
#include "swad_account.h"
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_database.h"

View File

@ -32,6 +32,7 @@
#include <stdlib.h> // For free
#include <string.h>
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_autolink.h"
#include "swad_box.h"

View File

@ -34,6 +34,7 @@
#include <unistd.h> // For unlink
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_admin_database.h"
#include "swad_assignment_database.h"
#include "swad_box.h"

View File

@ -31,6 +31,7 @@
#include <stdlib.h> // For free
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_agenda.h"
#include "swad_attendance.h"
#include "swad_database.h"

View File

@ -31,8 +31,8 @@
#include <string.h> // For string functions
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_config.h"
#include "swad_database.h" // TODO: REMOVE!!!
#include "swad_error.h"
#include "swad_global.h"
#include "swad_HTML.h"
@ -713,7 +713,6 @@ static bool Par_CheckIsParamCanBeUsedInGETMethod (const char *ParamName)
void Par_GetMainParams (void)
{
extern Act_Action_t Act_FromActCodToAction[1 + Act_MAX_ACTION_COD];
long ActCod;
char Nick[Nck_MAX_BYTES_NICK_WITH_ARROBA + 1];
char LongStr[Cns_MAX_DECIMAL_DIGITS_LONG + 1];
@ -776,8 +775,8 @@ void Par_GetMainParams (void)
/***** Get action to perform *****/
ActCod = Par_GetParToLong ("act");
if (ActCod >= 0 && ActCod <= Act_MAX_ACTION_COD)
Gbl.Action.Act = Gbl.Action.Original = Act_FromActCodToAction[ActCod];
if (ActCod >= 0 && ActCod <= ActLst_MAX_ACTION_COD)
Gbl.Action.Act = Gbl.Action.Original = Act_GetActionFromActCod (ActCod);
/***** Some preliminary adjusts depending on action *****/
switch (Act_GetBrowserTab (Gbl.Action.Act))

View File

@ -32,6 +32,7 @@
#include <sys/wait.h> // For the macro WEXITSTATUS
#include <unistd.h> // For unlink
#include "swad_action_list.h"
#include "swad_box.h"
#include "swad_database.h"
#include "swad_enrolment.h"

View File

@ -36,6 +36,7 @@
#include <unistd.h> // For unlink
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_browser.h"

View File

@ -31,6 +31,7 @@
#include <stdlib.h> // For free
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_box.h"
#include "swad_config.h"
#include "swad_error.h"

View File

@ -29,6 +29,7 @@
#include <stdlib.h> // For calloc
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_center_database.h"

View File

@ -35,6 +35,7 @@ TODO: Check if web service is called from an authorized IP.
#include <stdlib.h> // For calloc, free
#include <string.h>
#include "swad_action_list.h"
#include "swad_API.h"
#include "swad_box.h"
#include "swad_config.h"

View File

@ -31,6 +31,7 @@
#include <string.h>
#include "swad_action.h"
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_enrolment_database.h"

View File

@ -31,6 +31,7 @@
#include <stdlib.h> // For free
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_box.h"
#include "swad_browser_database.h"
#include "swad_config.h"

View File

@ -32,6 +32,7 @@
#include <stdlib.h> // For calloc
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_autolink.h"
#include "swad_box.h"
#include "swad_database.h"

View File

@ -30,6 +30,7 @@
#include <stdlib.h> // For free
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_assignment_resource.h"
#include "swad_attendance_resource.h"

View File

@ -32,6 +32,7 @@
#include <stdlib.h> // For calloc
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_autolink.h"
#include "swad_box.h"
#include "swad_browser_database.h"
@ -1456,7 +1457,7 @@ static void Prj_ShowProjectFirstRow (struct Prj_Projects *Projects,
unsigned UniqueId,
const char *Anchor)
{
extern const char *Txt_Actions[Act_NUM_ACTIONS];
extern const char *Txt_Actions[ActLst_NUM_ACTIONS];
char *Id;
Act_Action_t NextAction;
const char *ClassDate = (Projects->Prj.Hidden == Prj_HIDDEN) ? "DATE_BLUE_LIGHT" :

View File

@ -25,6 +25,7 @@
/********************************* Headers ***********************************/
/*****************************************************************************/
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_error.h"
#include "swad_form.h"
@ -74,7 +75,7 @@ void PrjRsc_GetLinkToProject (void)
void PrjRsc_WriteProjectInCrsProgram (long PrjCod,bool PutFormToGo,
const char *Icon,const char *IconTitle)
{
extern const char *Txt_Actions[Act_NUM_ACTIONS];
extern const char *Txt_Actions[ActLst_NUM_ACTIONS];
Act_Action_t NextAction;
char Title[Prj_MAX_BYTES_TITLE + 1];

View File

@ -30,6 +30,7 @@
#include <stdlib.h> // For free
#include <string.h> // For string functions
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_database.h"

View File

@ -30,6 +30,7 @@
#include <sys/stat.h> // For mkdir
#include <sys/types.h> // For mkdir
#include "swad_action_list.h"
#include "swad_alert.h"
#include "swad_box.h"
#include "swad_database.h"

Some files were not shown because too many files have changed in this diff Show More