Version 16.142.1

This commit is contained in:
Antonio Cañas Vargas 2017-02-27 19:52:04 +01:00
parent dffae1b8b5
commit 7d4499dc2d
5 changed files with 84 additions and 76 deletions

View File

@ -678,6 +678,13 @@ CREATE TABLE IF NOT EXISTS log_recent (
INDEX(UsrCod), INDEX(UsrCod),
INDEX(ClickTime,Role)); INDEX(ClickTime,Role));
-- --
-- Table log_search: stores the log of search strings
--
CREATE TABLE IF NOT EXISTS log_search (
LogCod INT NOT NULL,
SearchStr VARCHAR(255) NOT NULL,
UNIQUE INDEX(LogCod));
--
-- Table log_ws: stores the log of calls to web service from plugins -- Table log_ws: stores the log of calls to web service from plugins
-- --
CREATE TABLE IF NOT EXISTS log_ws ( CREATE TABLE IF NOT EXISTS log_ws (

View File

@ -202,13 +202,14 @@
/****************************** Public constants *****************************/ /****************************** Public constants *****************************/
/*****************************************************************************/ /*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.142 (2017-02-27)" #define Log_PLATFORM_VERSION "SWAD 16.142.1 (2017-02-27)"
#define CSS_FILE "swad16.139.6.css" #define CSS_FILE "swad16.139.6.css"
#define JS_FILE "swad16.141.1.js" #define JS_FILE "swad16.141.1.js"
// 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 16.142.1: Feb 27, 2017 Public activity is renamed as timeline. (213085 lines)
Version 16.142: Feb 27, 2017 Searches are registered anonymously. (213077 lines) Version 16.142: Feb 27, 2017 Searches are registered anonymously. (213077 lines)
1 change necessary in database: 1 change necessary in database:
CREATE TABLE IF NOT EXISTS log_search (LogCod INT NOT NULL,SearchStr VARCHAR(255) NOT NULL,UNIQUE INDEX(LogCod)); CREATE TABLE IF NOT EXISTS log_search (LogCod INT NOT NULL,SearchStr VARCHAR(255) NOT NULL,UNIQUE INDEX(LogCod));

View File

@ -94,7 +94,7 @@ void Pri_EditMyPrivacy (void)
extern const char *Txt_Privacy; extern const char *Txt_Privacy;
extern const char *Txt_Photo; extern const char *Txt_Photo;
extern const char *Txt_Public_profile; extern const char *Txt_Public_profile;
extern const char *Txt_Public_activity; extern const char *Txt_Timeline;
/***** If any of my preferences about privacy is unknown *****/ /***** If any of my preferences about privacy is unknown *****/
if (Gbl.Usrs.Me.UsrDat.PhotoVisibility == Pri_VISIBILITY_UNKNOWN || if (Gbl.Usrs.Me.UsrDat.PhotoVisibility == Pri_VISIBILITY_UNKNOWN ||
@ -125,7 +125,7 @@ void Pri_EditMyPrivacy (void)
(1 << Pri_VISIBILITY_WORLD)); (1 << Pri_VISIBILITY_WORLD));
/***** Edit public activity (timeline) visibility *****/ /***** Edit public activity (timeline) visibility *****/
Pri_PutFormVisibility (Txt_Public_activity, Pri_PutFormVisibility (Txt_Timeline,
ActUnk,"VisTml", ActUnk,"VisTml",
Pri_VISIBILITY_SYSTEM, Pri_VISIBILITY_SYSTEM,
(1 << Pri_VISIBILITY_SYSTEM)); (1 << Pri_VISIBILITY_SYSTEM));

View File

@ -357,7 +357,7 @@ void Soc_ShowTimelineGbl2 (void)
static void Soc_ShowTimelineGblHighlightingNot (long NotCod) static void Soc_ShowTimelineGblHighlightingNot (long NotCod)
{ {
extern const char *Txt_Public_activity; extern const char *Txt_Timeline;
char Query[1024]; char Query[1024];
/***** Build query to get timeline *****/ /***** Build query to get timeline *****/
@ -366,7 +366,7 @@ static void Soc_ShowTimelineGblHighlightingNot (long NotCod)
Query); Query);
/***** Show timeline *****/ /***** Show timeline *****/
Soc_ShowTimeline (Query,Txt_Public_activity,NotCod); Soc_ShowTimeline (Query,Txt_Timeline,NotCod);
/***** Drop temporary tables *****/ /***** Drop temporary tables *****/
Soc_DropTemporaryTablesUsedToQueryTimeline (); Soc_DropTemporaryTablesUsedToQueryTimeline ();
@ -383,7 +383,7 @@ void Soc_ShowTimelineUsr (void)
static void Soc_ShowTimelineUsrHighlightingNot (long NotCod) static void Soc_ShowTimelineUsrHighlightingNot (long NotCod)
{ {
extern const char *Txt_Public_activity_OF_A_USER; extern const char *Txt_Timeline_OF_A_USER;
char Query[1024]; char Query[1024];
/***** Build query to show timeline with publishings of a unique user *****/ /***** Build query to show timeline with publishings of a unique user *****/
@ -392,7 +392,7 @@ static void Soc_ShowTimelineUsrHighlightingNot (long NotCod)
Query); Query);
/***** Show timeline *****/ /***** Show timeline *****/
sprintf (Gbl.Title,Txt_Public_activity_OF_A_USER,Gbl.Usrs.Other.UsrDat.FirstName); sprintf (Gbl.Title,Txt_Timeline_OF_A_USER,Gbl.Usrs.Other.UsrDat.FirstName);
Soc_ShowTimeline (Query,Gbl.Title,NotCod); Soc_ShowTimeline (Query,Gbl.Title,NotCod);
/***** Drop temporary tables *****/ /***** Drop temporary tables *****/

View File

@ -19135,23 +19135,23 @@ const char *Txt_MENU_TITLE[Tab_NUM_TABS][Act_MAX_OPTIONS_IN_MENU_PER_TAB] =
// TabSoc ***************************************************** // TabSoc *****************************************************
// 0: ActSeeSocTmlGbl // 0: ActSeeSocTmlGbl
#if L==1 #if L==1
"Activitat" "Timeline"
#elif L==2 #elif L==2
"Aktivit&auml;t" "Timeline"
#elif L==3 #elif L==3
"Activity" "Timeline"
#elif L==4 #elif L==4
"Actividad" "Timeline"
#elif L==5 #elif L==5
"Activit&eacute;" "Chronologie"
#elif L==6 #elif L==6
"Actividad" // Okoteve traducción "Timeline" // Okoteve traducción
#elif L==7 #elif L==7
"Attivit&agrave;" "Timeline"
#elif L==8 #elif L==8
"Aktywno&sacute;&cacute;" "Timeline"
#elif L==9 #elif L==9
"Atividade" "Timeline"
#endif #endif
, ,
// 1: ActSeeSocPrf // 1: ActSeeSocPrf
@ -21193,23 +21193,23 @@ const char *Txt_MENU_SUBTITLE[Tab_NUM_TABS][Act_MAX_OPTIONS_IN_MENU_PER_TAB] =
// TabSoc ***************************************************** // TabSoc *****************************************************
// 0: ActSeeSocTmlGbl // 0: ActSeeSocTmlGbl
#if L==1 #if L==1
"Activitat p&uacute;blica dels usuaris que segueixo" "Timeline dels usuaris que segueixo o de tots els usuaris"
#elif L==2 #elif L==2
"&Ouml;ffentliche Aktivit&auml;t der Nutzer Ich folge" "Timeline der Benutzer Ich folge oder alle Benutzern"
#elif L==3 #elif L==3
"Public activity of the users I follow" "Timeline of users I follow or all users"
#elif L==4 #elif L==4
"Actividad p&uacute;blica de los usuarios que sigo" "Timeline de los usuarios que sigo o de todos los usuarios"
#elif L==5 #elif L==5
"Activit&eacute; publique des utilisateurs je suivre" "Chronologie des utilisateurs que je suis ou de tous les utilisateurs"
#elif L==6 #elif L==6
"Actividad p&uacute;blica de los usuarios que sigo" // Okoteve traducción "Timeline de los usuarios que sigo o de todos los usuarios" // Okoteve traducción
#elif L==7 #elif L==7
"Attivit&agrave; pubblica degli utenti che seguo" "Timeline degli utenti che seguo o tutti gli utenti"
#elif L==8 #elif L==8
"Aktywno&sacute;&cacute; publiczna u&zdot;ytkownik&oacute;w &sacute;ledz&eogon;" "Timeline u&zdot;ytkownik&oacute;w &sacute;ledz&eogon; lub wszystkich u&zdot;ytkownik&oacute;w"
#elif L==9 #elif L==9
"Atividade p&uacute;blica dos usu&aacute;rios que eu sigo" "Timeline dos usu&aacute;rios que eu sigo ou de todos os usu&aacute;rios"
#endif #endif
, ,
// 1: ActSeeSocPrf // 1: ActSeeSocPrf
@ -29863,48 +29863,6 @@ const char *Txt_posts =
"posts"; "posts";
#endif #endif
const char *Txt_Public_activity =
#if L==1
"Activitat p&uacute;blica";
#elif L==2
"&Ouml;ffentliche Aktivit&auml;t";
#elif L==3
"Public activity";
#elif L==4
"Actividad p&uacute;blica";
#elif L==5
"Activit&eacute; public";
#elif L==6
"Actividad p&uacute;blica"; // Okoteve traducción
#elif L==7
"Attivit&agrave; pubblica";
#elif L==8
"Aktywno&sacute;&cacute; publiczne";
#elif L==9
"Atividade p&uacute;blica";
#endif
const char *Txt_Public_activity_OF_A_USER = // Warning: it is very important to include %s in the following sentences
#if L==1
"Activitat p&uacute;blica de %s";
#elif L==2
"%s &ouml;ffentliche Aktivit&auml;t";
#elif L==3
"%s public activity";
#elif L==4
"Actividad p&uacute;blica de %s";
#elif L==5
"Activit&eacute; public de %s";
#elif L==6
"Actividad p&uacute;blica de %s"; // Okoteve traducción
#elif L==7
"Attivit&agrave; pubblica di %s";
#elif L==8
"Aktywno&sacute;&cacute; publiczna %s";
#elif L==9
"Atividade p&uacute;blica de %s";
#endif
const char *Txt_Public_agenda_USER = // Warning: it is very important to include %s in the following sentences const char *Txt_Public_agenda_USER = // Warning: it is very important to include %s in the following sentences
#if L==1 #if L==1
"Agenda p&uacute;blica de %s"; "Agenda p&uacute;blica de %s";
@ -39551,23 +39509,23 @@ const char *Txt_STAT_USE_STAT_TYPES[Sta_NUM_FIGURES] =
#endif #endif
, ,
#if L==1 // Sta_SOCIAL_ACTIVITY #if L==1 // Sta_SOCIAL_ACTIVITY
"Activitat p&uacute;blica" "Timeline"
#elif L==2 #elif L==2
"&Ouml;ffentliche Aktivit&auml;t" "Timeline"
#elif L==3 #elif L==3
"Public activity" "Timeline"
#elif L==4 #elif L==4
"Actividad p&uacute;blica" "Timeline"
#elif L==5 #elif L==5
"Activit&eacute; public" "Chronologie"
#elif L==6 #elif L==6
"Actividad p&uacute;blica" // Okoteve traducción "Timeline" // Okoteve traducción
#elif L==7 #elif L==7
"Attivit&agrave; pubblica" "Timeline"
#elif L==8 #elif L==8
"Aktywno&sacute;&cacute; publiczne" "Timeline"
#elif L==9 #elif L==9
"Atividade p&uacute;blica" "Timeline"
#endif #endif
, ,
#if L==1 // Sta_FOLLOW #if L==1 // Sta_FOLLOW
@ -47779,6 +47737,48 @@ const char *Txt_Time_zone_used_in_the_calculation_of_these_statistics =
"Fuso hor&aacute;rio utilizado no c&aacute;lculo dessas estat&iacute;sticas"; "Fuso hor&aacute;rio utilizado no c&aacute;lculo dessas estat&iacute;sticas";
#endif #endif
const char *Txt_Timeline =
#if L==1
"Timeline";
#elif L==2
"Timeline";
#elif L==3
"Timeline";
#elif L==4
"Timeline";
#elif L==5
"Chronologie";
#elif L==6
"Timeline"; // Okoteve traducción
#elif L==7
"Timeline";
#elif L==8
"Timeline";
#elif L==9
"Timeline";
#endif
const char *Txt_Timeline_OF_A_USER = // Warning: it is very important to include %s in the following sentences
#if L==1
"Timeline de %s";
#elif L==2
"%s timeline";
#elif L==3
"%s timeline";
#elif L==4
"Timeline de %s";
#elif L==5
"Chronologie de %s";
#elif L==6
"Timeline de %s"; // Okoteve traducción
#elif L==7
"Timeline di %s";
#elif L==8
"Timeline %s";
#elif L==9
"Timeline de %s";
#endif
const char *Txt_TIMELINE_WHICH_USERS[Soc_NUM_WHICH_USRS] = const char *Txt_TIMELINE_WHICH_USERS[Soc_NUM_WHICH_USRS] =
{ {
// Soc_FOLLOWED // Soc_FOLLOWED