mirror of https://github.com/acanas/swad-core.git
Version 14.85.1
This commit is contained in:
parent
91e3111909
commit
47ba602209
|
@ -740,6 +740,9 @@ void Acc_CompletelyEliminateAccount (struct UsrData *UsrDat,
|
|||
UsrDat->UsrCod);
|
||||
DB_QueryDELETE (Query,"can not remove sessions of a user");
|
||||
|
||||
/***** Remove user's figures *****/
|
||||
Usr_RemoveUsrFigures (UsrDat->UsrCod);
|
||||
|
||||
/***** Remove the user from the list of users without photo *****/
|
||||
Pho_RemoveUsrFromTableClicksWithoutPhoto (UsrDat->UsrCod);
|
||||
|
||||
|
|
|
@ -103,11 +103,12 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 14.85 (2015/03/11)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 14.85.1 (2015/03/11)"
|
||||
|
||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
||||
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
|
||||
/*
|
||||
Version 14.85.1: Mar 11, 2015 Remove user's figures when removing a user. (181472 lines)
|
||||
Version 14.85: Mar 11, 2015 Number of messages sent is stored in user's figures. (181457 lines)
|
||||
2 changes necessary in database:
|
||||
ALTER TABLE usr_figures ADD COLUMN NumForPst INT NOT NULL DEFAULT -1 AFTER NumClicks;
|
||||
|
|
16
swad_user.c
16
swad_user.c
|
@ -8055,7 +8055,21 @@ static void Usr_GetNumMsgSntAndStoreAsUsrFigure (long UsrCod)
|
|||
DB_QueryINSERT (Query,"can not create user's figures");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/**************************** Remove user's figures **************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
void Usr_RemoveUsrFigures (long UsrCod)
|
||||
{
|
||||
char Query[128];
|
||||
|
||||
/***** Remove user's figures *****/
|
||||
sprintf (Query,"DELETE FROM usr_figures WHERE UsrCod='%ld'",
|
||||
UsrCod);
|
||||
DB_QueryDELETE (Query,"can not delete user's figures");
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/*** Check if it exists an entry for this user in table of user's figures ****/
|
||||
|
|
|
@ -332,6 +332,7 @@ void Usr_CalculateFirstClickTime (void);
|
|||
void Usr_CalculateNumClicks (void);
|
||||
void Usr_CalculateNumForPst (void);
|
||||
void Usr_CalculateNumMsgSnt (void);
|
||||
void Usr_RemoveUsrFigures (long UsrCod);
|
||||
void Usr_IncrementNumClicksUsr (long UsrCod);
|
||||
void Usr_IncrementNumForPstUsr (long UsrCod);
|
||||
void Usr_IncrementNumMsgSntUsr (long UsrCod);
|
||||
|
|
Loading…
Reference in New Issue