mirror of https://github.com/acanas/swad-core.git
Version 14.94.2
This commit is contained in:
parent
a5baf663c5
commit
6bd6193988
|
@ -103,11 +103,12 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 14.94.1 (2015/03/17)"
|
#define Log_PLATFORM_VERSION "SWAD 14.94.2 (2015/03/17)"
|
||||||
|
|
||||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
// 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
|
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
|
||||||
/*
|
/*
|
||||||
|
Version 14.94.2: Mar 17, 2015 Fixed bug in ranking. (182668 lines)
|
||||||
Version 14.94.1: Mar 17, 2015 Fixed bug in user's profile. (182667 lines)
|
Version 14.94.1: Mar 17, 2015 Fixed bug in user's profile. (182667 lines)
|
||||||
Version 14.94: Mar 17, 2015 Ranking for downloads, forum posts and messages in user's profile. (182666 lines)
|
Version 14.94: Mar 17, 2015 Ranking for downloads, forum posts and messages in user's profile. (182666 lines)
|
||||||
Version 14.93.4: Mar 17, 2015 Links in user's figures to ranking. (182661 lines)
|
Version 14.93.4: Mar 17, 2015 Links in user's figures to ranking. (182661 lines)
|
||||||
|
|
|
@ -28,9 +28,9 @@
|
||||||
/** Uncomment one of the following installations of SWAD or create your own **/
|
/** Uncomment one of the following installations of SWAD or create your own **/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
//#define LOCALHOST_UBUNTU // Comment this line if not applicable
|
#define LOCALHOST_UBUNTU // Comment this line if not applicable
|
||||||
//#define OPENSWAD_ORG // Comment this line if not applicable
|
//#define OPENSWAD_ORG // Comment this line if not applicable
|
||||||
#define SWAD_UGR_ES // Comment this line if not applicable
|
//#define SWAD_UGR_ES // Comment this line if not applicable
|
||||||
//#define WWW_CEVUNA_UNA_PY // Comment this line if not applicable
|
//#define WWW_CEVUNA_UNA_PY // Comment this line if not applicable
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -1264,8 +1264,8 @@ static void Prf_GetAndShowRankingFigure (const char *FieldName)
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"<table>");
|
fprintf (Gbl.F.Out,"<table>");
|
||||||
|
|
||||||
for (NumUsr = 0, Rank = 0;
|
for (NumUsr = 1, Rank = 1;
|
||||||
NumUsr < NumUsrs;
|
NumUsr <= NumUsrs;
|
||||||
NumUsr++)
|
NumUsr++)
|
||||||
{
|
{
|
||||||
/***** Get user and number of clicks *****/
|
/***** Get user and number of clicks *****/
|
||||||
|
@ -1281,7 +1281,7 @@ static void Prf_GetAndShowRankingFigure (const char *FieldName)
|
||||||
|
|
||||||
if (Figure < FigureHigh)
|
if (Figure < FigureHigh)
|
||||||
{
|
{
|
||||||
Rank++;
|
Rank = NumUsr;
|
||||||
FigureHigh = Figure;
|
FigureHigh = Figure;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1405,8 +1405,8 @@ void Prf_GetAndShowRankingClicksPerDay (void)
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"<table>");
|
fprintf (Gbl.F.Out,"<table>");
|
||||||
|
|
||||||
for (NumUsr = 0, Rank = 0;
|
for (NumUsr = 1, Rank = 1;
|
||||||
NumUsr < NumUsrs;
|
NumUsr <= NumUsrs;
|
||||||
NumUsr++)
|
NumUsr++)
|
||||||
{
|
{
|
||||||
/***** Get user and number of clicks *****/
|
/***** Get user and number of clicks *****/
|
||||||
|
@ -1420,7 +1420,7 @@ void Prf_GetAndShowRankingClicksPerDay (void)
|
||||||
NumClicksPerDay = Str_GetFloatNumFromStr (row[1]);
|
NumClicksPerDay = Str_GetFloatNumFromStr (row[1]);
|
||||||
if (NumClicksPerDay < NumClicksPerDayHigh)
|
if (NumClicksPerDay < NumClicksPerDayHigh)
|
||||||
{
|
{
|
||||||
Rank++;
|
Rank = NumUsr;
|
||||||
NumClicksPerDayHigh = NumClicksPerDay;
|
NumClicksPerDayHigh = NumClicksPerDay;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue