mirror of https://github.com/acanas/swad-core.git
Version 14.117.10
This commit is contained in:
parent
7d65769acd
commit
dbcb247ba4
|
@ -103,11 +103,12 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 14.117.9 (2015/07/21)"
|
#define Log_PLATFORM_VERSION "SWAD 14.117.10 (2015/07/21)"
|
||||||
|
|
||||||
// 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.117.10:Jul 21, 2015 Checking "alt" and "title" in all images. (185167 lines)
|
||||||
Version 14.117.9: Jul 21, 2015 Checking "alt" and "title" in all images. (185157 lines)
|
Version 14.117.9: Jul 21, 2015 Checking "alt" and "title" in all images. (185157 lines)
|
||||||
Version 14.117.8: Jul 21, 2015 Checking "alt" and "title" in all images. (185027 lines)
|
Version 14.117.8: Jul 21, 2015 Checking "alt" and "title" in all images. (185027 lines)
|
||||||
Version 14.117.7: Jul 21, 2015 Checking "alt" and "title" in all images. (185008 lines)
|
Version 14.117.7: Jul 21, 2015 Checking "alt" and "title" in all images. (185008 lines)
|
||||||
|
|
75
swad_forum.c
75
swad_forum.c
|
@ -866,6 +866,8 @@ static void For_ShowThreadPosts (long ThrCod,char *LastSubject)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormul[The_NUM_THEMES];
|
extern const char *The_ClassFormul[The_NUM_THEMES];
|
||||||
extern const char *Txt_Thread;
|
extern const char *Txt_Thread;
|
||||||
|
extern const char *Txt_There_are_new_posts;
|
||||||
|
extern const char *Txt_No_new_posts;
|
||||||
extern const char *Txt_Messages;
|
extern const char *Txt_Messages;
|
||||||
bool IsLastItemInLevel[1+For_FORUM_MAX_LEVELS];
|
bool IsLastItemInLevel[1+For_FORUM_MAX_LEVELS];
|
||||||
struct ForumThread Thr;
|
struct ForumThread Thr;
|
||||||
|
@ -920,11 +922,17 @@ static void For_ShowThreadPosts (long ThrCod,char *LastSubject)
|
||||||
IsLastItemInLevel[2] = true;
|
IsLastItemInLevel[2] = true;
|
||||||
Lay_IndentDependingOnLevel (2,IsLastItemInLevel);
|
Lay_IndentDependingOnLevel (2,IsLastItemInLevel);
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/%s16x16.gif\" alt=\"\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/%s16x16.gif\""
|
||||||
" class=\"ICON16x16\" style=\"vertical-align:middle;\" /> ",
|
" alt=\"%s\" title=\"%s\""
|
||||||
|
" class=\"ICON16x16\""
|
||||||
|
" style=\"vertical-align:middle;\" /> ",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Thr.NumUnreadPosts ? "msg-unread" :
|
Thr.NumUnreadPosts ? "msg-unread" :
|
||||||
"msg-open");
|
"msg-open",
|
||||||
|
Thr.NumUnreadPosts ? Txt_There_are_new_posts :
|
||||||
|
Txt_No_new_posts,
|
||||||
|
Thr.NumUnreadPosts ? Txt_There_are_new_posts :
|
||||||
|
Txt_No_new_posts);
|
||||||
For_WriteThrSubject (ThrCod);
|
For_WriteThrSubject (ThrCod);
|
||||||
|
|
||||||
/***** Get posts of a thread from database *****/
|
/***** Get posts of a thread from database *****/
|
||||||
|
@ -1041,6 +1049,8 @@ static void For_ShowThreadPosts (long ThrCod,char *LastSubject)
|
||||||
|
|
||||||
static void For_ShowAForumPost (struct ForumThread *Thr,unsigned PstNum,long PstCod,bool LastPst,char *LastSubject,bool NewPst,bool ICanModerateForum)
|
static void For_ShowAForumPost (struct ForumThread *Thr,unsigned PstNum,long PstCod,bool LastPst,char *LastSubject,bool NewPst,bool ICanModerateForum)
|
||||||
{
|
{
|
||||||
|
extern const char *Txt_unread_MESSAGE;
|
||||||
|
extern const char *Txt_MSG_Open;
|
||||||
extern const char *Txt_Remove_post;
|
extern const char *Txt_Remove_post;
|
||||||
extern const char *Txt_no_subject;
|
extern const char *Txt_no_subject;
|
||||||
extern const char *Txt_Post_X_allowed;
|
extern const char *Txt_Post_X_allowed;
|
||||||
|
@ -1076,13 +1086,17 @@ static void For_ShowAForumPost (struct ForumThread *Thr,unsigned PstNum,long Pst
|
||||||
"<td class=\"%s\" style=\"width:24px;"
|
"<td class=\"%s\" style=\"width:24px;"
|
||||||
" text-align:center; vertical-align:top;\">"
|
" text-align:center; vertical-align:top;\">"
|
||||||
"<img src=\"%s/%s16x16.gif\""
|
"<img src=\"%s/%s16x16.gif\""
|
||||||
" alt=\"\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
NewPst ? "MSG_TIT_BG_NEW" :
|
NewPst ? "MSG_TIT_BG_NEW" :
|
||||||
"MSG_TIT_BG",
|
"MSG_TIT_BG",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
NewPst ? "msg-unread" :
|
NewPst ? "msg-unread" :
|
||||||
"msg-open");
|
"msg-open",
|
||||||
|
NewPst ? Txt_unread_MESSAGE :
|
||||||
|
Txt_MSG_Open,
|
||||||
|
NewPst ? Txt_unread_MESSAGE :
|
||||||
|
Txt_MSG_Open);
|
||||||
|
|
||||||
/***** Write post number *****/
|
/***** Write post number *****/
|
||||||
Msg_WriteMsgNumber ((unsigned long) PstNum,NewPst);
|
Msg_WriteMsgNumber ((unsigned long) PstNum,NewPst);
|
||||||
|
@ -1159,11 +1173,14 @@ static void For_ShowAForumPost (struct ForumThread *Thr,unsigned PstNum,long Pst
|
||||||
PstNum);
|
PstNum);
|
||||||
fprintf (Gbl.F.Out,"<span title=\"%s\">"
|
fprintf (Gbl.F.Out,"<span title=\"%s\">"
|
||||||
"<img src=\"%s/%s_off16x16.gif\""
|
"<img src=\"%s/%s_off16x16.gif\""
|
||||||
" alt=\"%s\" class=\"ICON16x16\" /></span>",
|
" alt=\"%s\" title=\"%s\""
|
||||||
|
" class=\"ICON16x16\" />"
|
||||||
|
"</span>",
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Enabled ? "visible" :
|
Enabled ? "visible" :
|
||||||
"hidden",
|
"hidden",
|
||||||
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1789,8 +1806,7 @@ static void For_WriteLinkToTopLevelOfForums (void)
|
||||||
" %s"
|
" %s"
|
||||||
"</a>",
|
"</a>",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Forums,
|
Txt_Forums,Txt_Forums,
|
||||||
Txt_Forums,
|
|
||||||
Txt_Forums);
|
Txt_Forums);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
fprintf (Gbl.F.Out,"</li>");
|
fprintf (Gbl.F.Out,"</li>");
|
||||||
|
@ -1988,17 +2004,19 @@ static void For_WriteLinkToAForum (For_ForumType_t ForumType,bool ShowNumOfPosts
|
||||||
{
|
{
|
||||||
case For_FORUM_GLOBAL_USRS:
|
case For_FORUM_GLOBAL_USRS:
|
||||||
case For_FORUM_GLOBAL_TCHS:
|
case For_FORUM_GLOBAL_TCHS:
|
||||||
sprintf (Icon,"<img src=\"%s/forum16x16.gif\" alt=\"%s\""
|
sprintf (Icon,"<img src=\"%s/forum16x16.gif\""
|
||||||
|
" alt=\"%s\" title=\"%s\""
|
||||||
" class=\"ICON16x16\" style=\"vertical-align:middle;\" />",
|
" class=\"ICON16x16\" style=\"vertical-align:middle;\" />",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
ForumName);
|
ForumName,ForumName);
|
||||||
break;
|
break;
|
||||||
case For_FORUM_SWAD_USRS:
|
case For_FORUM_SWAD_USRS:
|
||||||
case For_FORUM_SWAD_TCHS:
|
case For_FORUM_SWAD_TCHS:
|
||||||
sprintf (Icon,"<img src=\"%s/swad16x16.gif\""
|
sprintf (Icon,"<img src=\"%s/swad16x16.gif\""
|
||||||
" class=\"ICON16x16\" style=\"vertical-align:middle;\" alt=\"%s\" />",
|
" alt=\"%s\" title=\"%s\""
|
||||||
|
" class=\"ICON16x16\" style=\"vertical-align:middle;\" />",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
ForumName);
|
ForumName,ForumName);
|
||||||
break;
|
break;
|
||||||
case For_FORUM_INSTITUTION_USRS:
|
case For_FORUM_INSTITUTION_USRS:
|
||||||
case For_FORUM_INSTITUTION_TCHS:
|
case For_FORUM_INSTITUTION_TCHS:
|
||||||
|
@ -2009,10 +2027,12 @@ static void For_WriteLinkToAForum (For_ForumType_t ForumType,bool ShowNumOfPosts
|
||||||
break;
|
break;
|
||||||
case For_FORUM_COURSE_USRS:
|
case For_FORUM_COURSE_USRS:
|
||||||
case For_FORUM_COURSE_TCHS:
|
case For_FORUM_COURSE_TCHS:
|
||||||
sprintf (Icon,"<img src=\"%s/dot16x16.gif\" alt=\"%s\""
|
sprintf (Icon,"<img src=\"%s/dot16x16.gif\""
|
||||||
" class=\"ICON16x16\" style=\"vertical-align:middle;\" />",
|
" alt=\"%s\" title=\"%s\""
|
||||||
|
" class=\"ICON16x16\""
|
||||||
|
" style=\"vertical-align:middle;\" />",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
ForumName);
|
ForumName,ForumName);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2101,6 +2121,7 @@ static void For_WriteLinkToForum (For_ForumType_t ForumType,Act_Action_t NextAct
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormul[The_NUM_THEMES];
|
extern const char *The_ClassFormul[The_NUM_THEMES];
|
||||||
extern const char *The_ClassFormulB[The_NUM_THEMES];
|
extern const char *The_ClassFormulB[The_NUM_THEMES];
|
||||||
|
extern const char *Txt_Copy_not_allowed;
|
||||||
extern const char *Txt_Paste_thread;
|
extern const char *Txt_Paste_thread;
|
||||||
unsigned NumThrs;
|
unsigned NumThrs;
|
||||||
unsigned NumThrsWithNewPosts;
|
unsigned NumThrsWithNewPosts;
|
||||||
|
@ -2126,8 +2147,9 @@ static void For_WriteLinkToForum (For_ForumType_t ForumType,Act_Action_t NextAct
|
||||||
/* Check if thread to move is yet in current forum */
|
/* Check if thread to move is yet in current forum */
|
||||||
if (For_CheckIfThrBelongsToForum (Gbl.Forum.ThreadToMove,ForumType))
|
if (For_CheckIfThrBelongsToForum (Gbl.Forum.ThreadToMove,ForumType))
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/paste_off16x16.gif\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/paste_off16x16.gif\""
|
||||||
" alt=\"\" class=\"ICON16x16\" />",
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
Gbl.Prefs.IconsURL);
|
Gbl.Prefs.IconsURL,
|
||||||
|
Txt_Copy_not_allowed,Txt_Copy_not_allowed);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Act_FormStart (For_ActionsPasThrFor[ForumType]);
|
Act_FormStart (For_ActionsPasThrFor[ForumType]);
|
||||||
|
@ -3253,12 +3275,18 @@ void For_ListForumThrs (long ThrCods[Pag_ITEMS_PER_PAGE],struct Pagination *Pagi
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,Txt_You_have_written_X_posts_in_this_thread,
|
fprintf (Gbl.F.Out,Txt_You_have_written_X_posts_in_this_thread,
|
||||||
Thr.NumMyPosts);
|
Thr.NumMyPosts);
|
||||||
fprintf (Gbl.F.Out,"\"><img src=\"");
|
fprintf (Gbl.F.Out,"\">"
|
||||||
|
"<img src=\"");
|
||||||
if (Gbl.Usrs.Me.PhotoURL[0]) // If I have photo
|
if (Gbl.Usrs.Me.PhotoURL[0]) // If I have photo
|
||||||
fprintf (Gbl.F.Out,"%s",Gbl.Usrs.Me.PhotoURL);
|
fprintf (Gbl.F.Out,"%s",
|
||||||
|
Gbl.Usrs.Me.PhotoURL);
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%s/usr_bl.jpg",Gbl.Prefs.IconsURL);
|
fprintf (Gbl.F.Out,"%s/usr_bl.jpg",
|
||||||
fprintf (Gbl.F.Out,"\" class=\"PHOTO12x16\" alt=\"%s\" /></span>",
|
Gbl.Prefs.IconsURL);
|
||||||
|
fprintf (Gbl.F.Out,"\" alt=\"%s\" title=\"%s\""
|
||||||
|
" class=\"PHOTO12x16\" />"
|
||||||
|
"</span>",
|
||||||
|
Txt_Thread_with_posts_from_you,
|
||||||
Txt_Thread_with_posts_from_you);
|
Txt_Thread_with_posts_from_you);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
@ -3266,13 +3294,16 @@ void For_ListForumThrs (long ThrCods[Pag_ITEMS_PER_PAGE],struct Pagination *Pagi
|
||||||
/***** Put an icon with thread status *****/
|
/***** Put an icon with thread status *****/
|
||||||
fprintf (Gbl.F.Out,"<td style=\"width:24px; text-align:left;"
|
fprintf (Gbl.F.Out,"<td style=\"width:24px; text-align:left;"
|
||||||
" vertical-align:top; background-color:%s;\">"
|
" vertical-align:top; background-color:%s;\">"
|
||||||
"<img src=\"%s/%s16x16.gif\" alt=\"\" title=\"%s\""
|
"<img src=\"%s/%s16x16.gif\""
|
||||||
|
" alt=\"%s\" title=\"%s\""
|
||||||
" class=\"ICON16x16\" />",
|
" class=\"ICON16x16\" />",
|
||||||
ThisThreadIsInMyClipboard ? LIGHT_GREEN :
|
ThisThreadIsInMyClipboard ? LIGHT_GREEN :
|
||||||
Gbl.ColorRows[Gbl.RowEvenOdd],
|
Gbl.ColorRows[Gbl.RowEvenOdd],
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Thr.NumUnreadPosts ? "msg-unread" :
|
Thr.NumUnreadPosts ? "msg-unread" :
|
||||||
"msg-open",
|
"msg-open",
|
||||||
|
Thr.NumUnreadPosts ? Txt_There_are_new_posts :
|
||||||
|
Txt_No_new_posts,
|
||||||
Thr.NumUnreadPosts ? Txt_There_are_new_posts :
|
Thr.NumUnreadPosts ? Txt_There_are_new_posts :
|
||||||
Txt_No_new_posts);
|
Txt_No_new_posts);
|
||||||
if (PermissionThreadDeletion[Gbl.Forum.ForumType] &
|
if (PermissionThreadDeletion[Gbl.Forum.ForumType] &
|
||||||
|
|
23
swad_text.c
23
swad_text.c
|
@ -46980,28 +46980,7 @@ const char *Txt_Upload_photo =
|
||||||
#elif L==8
|
#elif L==8
|
||||||
"Fazer upload de foto";
|
"Fazer upload de foto";
|
||||||
#endif
|
#endif
|
||||||
/*
|
|
||||||
const char *Txt_Upload_not_allowed =
|
|
||||||
#if L==0
|
|
||||||
"Còpia no permès";
|
|
||||||
#elif L==1
|
|
||||||
"Upload nicht erlaubt";
|
|
||||||
#elif L==2
|
|
||||||
"Upload not allowed";
|
|
||||||
#elif L==3
|
|
||||||
"Subida no permitida";
|
|
||||||
#elif L==4
|
|
||||||
"Télécharge pas autorisé";
|
|
||||||
#elif L==5
|
|
||||||
"Subida no permitida"; // Okoteve traducción
|
|
||||||
#elif L==6
|
|
||||||
"Carica non ammessi";
|
|
||||||
#elif L==7
|
|
||||||
"Dodaj nie wolno";
|
|
||||||
#elif L==8
|
|
||||||
"Upload não permitida";
|
|
||||||
#endif
|
|
||||||
*/
|
|
||||||
const char *Txt_Uploaded_by =
|
const char *Txt_Uploaded_by =
|
||||||
#if L==0
|
#if L==0
|
||||||
"Penjat per";
|
"Penjat per";
|
||||||
|
|
Loading…
Reference in New Issue