2014-12-01 23:55:08 +01:00
|
|
|
|
// swad_global.h: global variables
|
|
|
|
|
|
|
|
|
|
#ifndef _SWAD_GBL
|
|
|
|
|
#define _SWAD_GBL
|
|
|
|
|
/*
|
|
|
|
|
SWAD (Shared Workspace At a Distance in Spanish),
|
|
|
|
|
is a web platform developed at the University of Granada (Spain),
|
|
|
|
|
and used to support university teaching.
|
|
|
|
|
|
|
|
|
|
This file is part of SWAD core.
|
2023-03-10 17:21:04 +01:00
|
|
|
|
Copyright (C) 1999-2023 Antonio Ca<EFBFBD>as Vargas
|
2014-12-01 23:55:08 +01:00
|
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
|
it under the terms of the GNU Affero General Public License as
|
|
|
|
|
published by the Free Software Foundation, either version 3 of the
|
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
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 Affero General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/********************************* Headers ***********************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
#include <limits.h> // For maximum values
|
|
|
|
|
#include <stdio.h> // For FILE
|
|
|
|
|
#include <sys/time.h> // For tz
|
|
|
|
|
#include <mysql/mysql.h> // To access MySQL databases
|
|
|
|
|
|
2019-05-16 14:02:06 +02:00
|
|
|
|
#include "swad_API.h"
|
2014-12-01 23:55:08 +01:00
|
|
|
|
#include "swad_assignment.h"
|
2021-09-13 23:55:28 +02:00
|
|
|
|
#include "swad_browser.h"
|
2014-12-01 23:55:08 +01:00
|
|
|
|
#include "swad_connected.h"
|
|
|
|
|
#include "swad_config.h"
|
|
|
|
|
#include "swad_course.h"
|
2017-03-30 11:20:06 +02:00
|
|
|
|
#include "swad_enrolment.h"
|
2014-12-01 23:55:08 +01:00
|
|
|
|
#include "swad_file.h"
|
2022-10-19 18:07:49 +02:00
|
|
|
|
#include "swad_group.h"
|
2023-09-18 15:15:29 +02:00
|
|
|
|
#include "swad_hierarchy.h"
|
2014-12-01 23:55:08 +01:00
|
|
|
|
#include "swad_mail.h"
|
|
|
|
|
#include "swad_record.h"
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/******************************* Public types ********************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
struct Globals
|
|
|
|
|
{
|
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
bool WritingHTMLStart; // Used to avoid writing the HTML head when aborting program on error
|
|
|
|
|
bool HTMLStartWritten; // Used to avoid writing more than once the HTML head
|
2015-11-27 21:24:24 +01:00
|
|
|
|
bool DivsEndWritten; // Used to avoid writing more than once the HTML end
|
2014-12-01 23:55:08 +01:00
|
|
|
|
bool HTMLEndWritten; // Used to avoid writing more than once the HTML end
|
|
|
|
|
} Layout;
|
|
|
|
|
struct
|
|
|
|
|
{
|
2018-12-08 16:43:13 +01:00
|
|
|
|
Lan_Language_t Language;
|
2015-11-21 20:23:28 +01:00
|
|
|
|
unsigned FirstDayOfWeek;
|
2017-05-04 02:19:23 +02:00
|
|
|
|
Dat_Format_t DateFormat;
|
2021-12-01 01:43:13 +01:00
|
|
|
|
Ico_IconSet_t IconSet;
|
2015-11-21 20:23:28 +01:00
|
|
|
|
Mnu_Menu_t Menu;
|
2014-12-01 23:55:08 +01:00
|
|
|
|
The_Theme_t Theme;
|
2021-12-01 01:43:13 +01:00
|
|
|
|
unsigned SideCols;
|
2021-12-31 14:51:44 +01:00
|
|
|
|
PhoSha_Shape_t PhotoShape;
|
2014-12-01 23:55:08 +01:00
|
|
|
|
} Prefs;
|
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
unsigned NumSessions;
|
|
|
|
|
bool IsOpen;
|
|
|
|
|
bool HasBeenDisconnected;
|
2018-10-17 01:08:42 +02:00
|
|
|
|
char Id[Cns_BYTES_SESSION_ID + 1];
|
2014-12-01 23:55:08 +01:00
|
|
|
|
long UsrCod;
|
2023-03-10 00:13:55 +01:00
|
|
|
|
bool ParsInsertedIntoDB; // If parameters are inserted in the database in this session
|
2014-12-01 23:55:08 +01:00
|
|
|
|
} Session;
|
2016-01-17 15:10:54 +01:00
|
|
|
|
struct
|
|
|
|
|
{
|
2023-09-29 13:13:40 +02:00
|
|
|
|
Tab_Tab_t Tab; // Current navigation tab
|
|
|
|
|
Act_Action_t Act; // Current action
|
2017-05-09 20:56:02 +02:00
|
|
|
|
Act_Action_t Original; // Used in some actions to know what action gave rise to the current action
|
2017-02-05 22:23:41 +01:00
|
|
|
|
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
|
2016-01-17 15:10:54 +01:00
|
|
|
|
} Action;
|
2014-12-01 23:55:08 +01:00
|
|
|
|
struct
|
|
|
|
|
{
|
2023-09-22 14:47:56 +02:00
|
|
|
|
Hie_Level_t Level; // Current level in the hierarchy: system, country, institution, center, degree or course
|
|
|
|
|
struct Hie_List List[Hie_NUM_LEVELS]; // List of child nodes of current node
|
|
|
|
|
struct Hie_Node Node[Hie_NUM_LEVELS]; // Current node
|
2019-04-04 11:22:08 +02:00
|
|
|
|
} Hierarchy;
|
2023-07-11 19:12:24 +02:00
|
|
|
|
struct
|
|
|
|
|
{
|
2023-09-22 14:47:56 +02:00
|
|
|
|
Hie_Level_t Current;
|
2023-07-11 19:12:24 +02:00
|
|
|
|
unsigned Allowed;
|
|
|
|
|
} Scope;
|
2014-12-01 23:55:08 +01:00
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
bool IsWebService; // Must generate HTML output (IsWebService==false) or SOAP-XML output (IsWebService==true)?
|
|
|
|
|
long PlgCod;
|
2019-05-16 14:02:06 +02:00
|
|
|
|
API_Function_t Function;
|
2014-12-01 23:55:08 +01:00
|
|
|
|
} WebService;
|
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
struct
|
|
|
|
|
{
|
2022-09-24 18:30:26 +02:00
|
|
|
|
struct Usr_Data UsrDat;
|
|
|
|
|
struct Usr_Last UsrLast;
|
2017-06-04 14:22:04 +02:00
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
unsigned Available;
|
2017-06-04 18:18:54 +02:00
|
|
|
|
Rol_Role_t FromSession;
|
|
|
|
|
Rol_Role_t Logged;
|
|
|
|
|
Rol_Role_t LoggedBeforeCloseSession;
|
2017-06-04 14:22:04 +02:00
|
|
|
|
Rol_Role_t Max;
|
2017-06-04 18:18:54 +02:00
|
|
|
|
bool HasChanged; // Set when I have changed my role
|
|
|
|
|
} Role;
|
2021-09-30 00:04:29 +02:00
|
|
|
|
char UsrIdLogin[Cns_MAX_BYTES_USR_LOGIN + 1]; // String to store the ID, nickname or email entered in the user's login
|
2017-03-07 01:56:41 +01:00
|
|
|
|
char LoginPlainPassword[Pwd_MAX_BYTES_PLAIN_PASSWORD + 1];
|
2017-03-13 14:22:36 +01:00
|
|
|
|
char LoginEncryptedPassword[Pwd_BYTES_ENCRYPTED_PASSWORD + 1];
|
|
|
|
|
char PendingPassword[Pwd_BYTES_ENCRYPTED_PASSWORD + 1];
|
2017-01-15 22:58:26 +01:00
|
|
|
|
char PathDir[PATH_MAX + 1];
|
2014-12-01 23:55:08 +01:00
|
|
|
|
bool Logged;
|
|
|
|
|
bool MyPhotoExists;
|
|
|
|
|
unsigned NumAccWithoutPhoto;
|
2023-02-08 14:25:42 +01:00
|
|
|
|
char PhotoURL[Cns_MAX_BYTES_WWW + 1];
|
2014-12-01 23:55:08 +01:00
|
|
|
|
time_t TimeLastAccToThisFileBrowser;
|
2016-11-16 23:19:52 +01:00
|
|
|
|
bool ConfirmEmailJustSent; // An email to confirm my email address has just been sent
|
2016-10-27 01:30:14 +02:00
|
|
|
|
struct
|
|
|
|
|
{
|
2023-10-03 14:32:22 +02:00
|
|
|
|
struct Hie_MyNode *Nodes; // List of courses/degrees/centers/institutions/countries
|
|
|
|
|
unsigned Num; // Number of courses/degrees/centers/institutions/countries
|
|
|
|
|
bool Filled; // List is already filled?
|
|
|
|
|
} Hierarchy[Hie_NUM_LEVELS]; // My hierarchy
|
2023-10-03 23:18:13 +02:00
|
|
|
|
bool IBelongToCurrent[Hie_NUM_LEVELS];
|
2021-11-03 21:31:16 +01:00
|
|
|
|
Set_ShowUsrsType_t ListType; // My preference about user's list type
|
2015-12-29 14:24:37 +01:00
|
|
|
|
unsigned NumFollowers; // Number of users who follow me
|
|
|
|
|
unsigned NumFollowing; // Number of users I follow
|
2014-12-01 23:55:08 +01:00
|
|
|
|
} Me; // The user logged
|
|
|
|
|
struct
|
|
|
|
|
{
|
2022-09-24 18:30:26 +02:00
|
|
|
|
struct Usr_Data UsrDat;
|
2017-05-08 19:54:05 +02:00
|
|
|
|
unsigned NumIDToConfirm; // Used as hidden parameter to confirm a user's ID
|
2014-12-01 23:55:08 +01:00
|
|
|
|
} Other; // Another user, used for example to register in / remove from a course
|
2022-09-24 18:30:26 +02:00
|
|
|
|
struct Usr_ListUsrs LstUsrs[Rol_NUM_ROLES];
|
|
|
|
|
struct Usr_SelectedUsrs Selected;
|
2014-12-01 23:55:08 +01:00
|
|
|
|
char *ListOtherRecipients; // List of ID or nicks of users written explicitely on a form
|
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
Rec_UsrsType_t RecsUsrs; // Students' records or teachers' records
|
|
|
|
|
unsigned RecsPerPag; // Number of rows of records in a row (only for printing)
|
|
|
|
|
bool WithPhotos;
|
|
|
|
|
} Listing;
|
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
unsigned Cols;
|
|
|
|
|
} ClassPhoto;
|
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
unsigned long TimeToRefreshInMs;
|
|
|
|
|
unsigned NumUsr;
|
|
|
|
|
unsigned NumUsrs;
|
|
|
|
|
unsigned NumUsrsToList;
|
2022-10-19 18:07:49 +02:00
|
|
|
|
struct Con_ConnectedUsrs Usrs[Rol_NUM_ROLES];
|
2014-12-01 23:55:08 +01:00
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
long UsrCod;
|
|
|
|
|
bool ThisCrs;
|
2015-10-26 22:34:29 +01:00
|
|
|
|
time_t TimeDiff;
|
2014-12-01 23:55:08 +01:00
|
|
|
|
} Lst[Cfg_MAX_CONNECTED_SHOWN];
|
|
|
|
|
} Connected;
|
2017-01-28 15:58:46 +01:00
|
|
|
|
char FileNamePhoto[NAME_MAX + 1]; // File name (with no path and no .jpg) of the temporary file with the selected face
|
2017-03-30 11:20:06 +02:00
|
|
|
|
Enr_RegRemOneUsrAction_t RegRemAction; // Enrolment action
|
2014-12-01 23:55:08 +01:00
|
|
|
|
} Usrs;
|
2019-04-04 10:45:15 +02:00
|
|
|
|
struct
|
|
|
|
|
{
|
2023-10-03 23:18:13 +02:00
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
char AbsPriv[PATH_MAX + 1]; // Absolute path to the private directory of the course
|
|
|
|
|
char RelPubl[PATH_MAX + 1]; // Relative path to the public directory of the course
|
|
|
|
|
char URLPubl[PATH_MAX + 1]; // Abolute URL to the public part of the course
|
|
|
|
|
} Path;
|
2020-04-10 19:14:08 +02:00
|
|
|
|
struct Grp_Groups Grps;
|
2020-04-12 02:47:32 +02:00
|
|
|
|
struct Inf_Info Info;
|
2019-04-04 10:45:15 +02:00
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
struct RecordField Field;
|
|
|
|
|
struct LstRecordFields LstFields;
|
|
|
|
|
} Records;
|
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
long HighlightNotCod; // Notice code of a notice to be highlighted
|
|
|
|
|
} Notices;
|
|
|
|
|
} Crs;
|
2014-12-01 23:55:08 +01:00
|
|
|
|
struct
|
|
|
|
|
{
|
2015-10-03 00:38:01 +02:00
|
|
|
|
unsigned Id; // Each file browser in the page has a unique identifier
|
2014-12-01 23:55:08 +01:00
|
|
|
|
Brw_FileBrowser_t Type;
|
|
|
|
|
bool FullTree; // Show full tree?
|
|
|
|
|
bool ShowOnlyPublicFiles; // Show only public files?
|
|
|
|
|
bool UploadingWithDropzone;
|
|
|
|
|
struct
|
|
|
|
|
{
|
2023-10-03 23:18:13 +02:00
|
|
|
|
char AboveRootFolder[PATH_MAX + 1];
|
|
|
|
|
char RootFolder[PATH_MAX + 1];
|
|
|
|
|
} Path;
|
2017-01-13 01:51:23 +01:00
|
|
|
|
char NewFilFolLnkName[NAME_MAX + 1];
|
2022-09-24 18:30:26 +02:00
|
|
|
|
struct Brw_FilFolLnk FilFolLnk;
|
2014-12-01 23:55:08 +01:00
|
|
|
|
unsigned Level;
|
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
Brw_FileBrowser_t FileBrowser; // Type of the file browser
|
2023-09-20 10:36:07 +02:00
|
|
|
|
long HieCod; // Code of the institution/center/degree/course/group related to the file browser with the clipboard
|
2014-12-01 23:55:08 +01:00
|
|
|
|
long WorksUsrCod; // User code of the user related to the works file browser with the clipboard
|
2016-11-14 19:18:34 +01:00
|
|
|
|
unsigned Level;
|
2022-09-24 18:30:26 +02:00
|
|
|
|
struct Brw_FilFolLnk FilFolLnk;
|
2014-12-01 23:55:08 +01:00
|
|
|
|
bool IsThisTree; // When showing a file browser, is it that corresponding to the clipboard?
|
|
|
|
|
bool IsThisFile; // When showing a row of a file browser, are we in the path of the clipboard?
|
|
|
|
|
} Clipboard;
|
2019-03-20 14:36:26 +01:00
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
char L[2 + 1]; // Left directory: 2 first chars
|
|
|
|
|
char R[NAME_MAX + 1]; // Right directory: rest of chars
|
|
|
|
|
} TmpPubDir;
|
2022-11-06 22:07:49 +01:00
|
|
|
|
bool HiddenLevels[1 + BrwSiz_MAX_DIR_LEVELS];
|
2023-10-02 10:48:33 +02:00
|
|
|
|
struct Asg_Assignment Asg; // Data of assignment when browsing level 1 of an assignment zone.
|
2020-04-14 17:15:17 +02:00
|
|
|
|
// TODO: Remove from global?
|
2014-12-01 23:55:08 +01:00
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
bool CreateZIP;
|
2017-01-13 01:51:23 +01:00
|
|
|
|
char TmpDir[NAME_MAX + 1];
|
2014-12-01 23:55:08 +01:00
|
|
|
|
} ZIP;
|
|
|
|
|
} FileBrowser; // Struct used for a file browser
|
2017-06-20 14:43:26 +02:00
|
|
|
|
|
|
|
|
|
/* Cache */
|
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
struct
|
|
|
|
|
{
|
2023-09-20 20:07:04 +02:00
|
|
|
|
long HieCod;
|
2020-01-07 22:07:06 +01:00
|
|
|
|
Lan_Language_t Language;
|
2017-06-20 14:43:26 +02:00
|
|
|
|
char CtyName[Cty_MAX_BYTES_NAME + 1];
|
2023-09-22 14:47:56 +02:00
|
|
|
|
bool Valid;
|
2017-06-20 14:43:26 +02:00
|
|
|
|
} CountryName;
|
|
|
|
|
struct
|
|
|
|
|
{
|
2023-09-20 20:07:04 +02:00
|
|
|
|
long HieCod;
|
2023-10-10 10:51:21 +02:00
|
|
|
|
char ShrtName[Nam_MAX_BYTES_SHRT_NAME + 1];
|
|
|
|
|
char CtyName[Nam_MAX_BYTES_FULL_NAME + 1];
|
2023-09-22 14:47:56 +02:00
|
|
|
|
bool Valid;
|
2019-03-07 13:00:18 +01:00
|
|
|
|
} InstitutionShrtNameAndCty;
|
2020-01-06 18:27:43 +01:00
|
|
|
|
struct
|
|
|
|
|
{
|
2023-09-20 20:07:04 +02:00
|
|
|
|
long HieCod;
|
2020-01-06 18:27:43 +01:00
|
|
|
|
unsigned NumDpts;
|
2023-09-22 14:47:56 +02:00
|
|
|
|
bool Valid;
|
|
|
|
|
} NumDptsInIns;
|
2020-01-07 00:42:24 +01:00
|
|
|
|
struct
|
|
|
|
|
{
|
2023-09-20 20:07:04 +02:00
|
|
|
|
long HieCod;
|
2023-09-20 21:55:11 +02:00
|
|
|
|
unsigned Num;
|
2023-09-22 14:47:56 +02:00
|
|
|
|
bool Valid;
|
|
|
|
|
} NumNodesInHieLvl[Hie_NUM_LEVELS][Hie_NUM_LEVELS];
|
2020-01-07 13:14:42 +01:00
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
unsigned NumUsrs;
|
2023-09-22 14:47:56 +02:00
|
|
|
|
bool Valid;
|
2020-01-07 13:14:42 +01:00
|
|
|
|
} NumUsrsWhoDontClaimToBelongToAnyCty;
|
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
unsigned NumUsrs;
|
2023-09-22 14:47:56 +02:00
|
|
|
|
bool Valid;
|
2020-01-07 13:14:42 +01:00
|
|
|
|
} NumUsrsWhoClaimToBelongToAnotherCty;
|
|
|
|
|
struct
|
|
|
|
|
{
|
2023-09-20 20:07:04 +02:00
|
|
|
|
long HieCod;
|
2020-01-07 13:14:42 +01:00
|
|
|
|
unsigned NumUsrs;
|
2023-09-22 14:47:56 +02:00
|
|
|
|
bool Valid;
|
|
|
|
|
} NumUsrsWhoClaimToBelongTo[Hie_NUM_LEVELS];
|
2017-06-20 14:43:26 +02:00
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
long UsrCod;
|
|
|
|
|
bool IsSuperuser;
|
2023-09-22 14:47:56 +02:00
|
|
|
|
bool Valid;
|
2017-06-20 14:43:26 +02:00
|
|
|
|
} UsrIsSuperuser;
|
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
long UsrCod;
|
2023-09-20 10:36:07 +02:00
|
|
|
|
long HieCod;
|
2017-06-20 14:43:26 +02:00
|
|
|
|
bool CountOnlyAcceptedCourses;
|
|
|
|
|
bool Belongs;
|
2023-09-22 14:47:56 +02:00
|
|
|
|
bool Valid;
|
|
|
|
|
} UsrBelongsTo[Hie_NUM_LEVELS];
|
2017-06-20 14:43:26 +02:00
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
long UsrCod;
|
|
|
|
|
bool Belongs;
|
2023-09-22 14:47:56 +02:00
|
|
|
|
bool Valid;
|
2017-06-20 14:43:26 +02:00
|
|
|
|
} UsrBelongsToCurrentCrs;
|
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
long UsrCod;
|
|
|
|
|
bool Accepted;
|
2023-09-22 14:47:56 +02:00
|
|
|
|
bool Valid;
|
2017-06-20 14:43:26 +02:00
|
|
|
|
} UsrHasAcceptedInCurrentCrs;
|
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
long UsrCod;
|
|
|
|
|
bool SharesAnyOfMyCrs;
|
2023-09-22 14:47:56 +02:00
|
|
|
|
bool Valid;
|
2017-06-20 14:43:26 +02:00
|
|
|
|
} UsrSharesAnyOfMyCrs;
|
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
long GrpCod;
|
|
|
|
|
bool IBelong;
|
2023-09-22 14:47:56 +02:00
|
|
|
|
bool Valid;
|
2017-06-20 14:43:26 +02:00
|
|
|
|
} IBelongToGrp;
|
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
long UsrCod;
|
|
|
|
|
bool Shares;
|
2023-09-22 14:47:56 +02:00
|
|
|
|
bool Valid;
|
2017-06-20 14:43:26 +02:00
|
|
|
|
} UsrSharesAnyOfMyGrpsInCurrentCrs;
|
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
long UsrCod;
|
|
|
|
|
long CrsCod;
|
|
|
|
|
Rol_Role_t Role;
|
2023-09-22 14:47:56 +02:00
|
|
|
|
bool Valid;
|
2017-06-20 14:43:26 +02:00
|
|
|
|
} RoleUsrInCrs;
|
2021-04-15 19:42:00 +02:00
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
Rol_Role_t Role;
|
2023-09-22 14:47:56 +02:00
|
|
|
|
bool Valid;
|
2021-04-15 19:42:00 +02:00
|
|
|
|
} MyRoleInCurrentCrs;
|
2017-10-08 16:12:58 +02:00
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
long PrjCod;
|
2019-04-11 15:24:05 +02:00
|
|
|
|
unsigned RolesInProject;
|
2023-09-22 14:47:56 +02:00
|
|
|
|
bool Valid;
|
2019-04-11 15:24:05 +02:00
|
|
|
|
} MyRolesInProject;
|
2019-02-22 14:04:54 +01:00
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
long UsrCod;
|
|
|
|
|
unsigned NumFollowing;
|
|
|
|
|
unsigned NumFollowers;
|
2023-09-22 14:47:56 +02:00
|
|
|
|
bool Valid;
|
|
|
|
|
} Follow;
|
2017-06-20 14:43:26 +02:00
|
|
|
|
} Cache;
|
2014-12-01 23:55:08 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/****************************** Public prototypes ****************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
void Gbl_InitializeGlobals (void);
|
|
|
|
|
void Gbl_Cleanup (void);
|
|
|
|
|
|
|
|
|
|
#endif
|