mirror of https://github.com/acanas/swad-core.git
Version 15.192.4
This commit is contained in:
parent
ae0b97aa96
commit
fe4d47a1f2
|
@ -2074,10 +2074,15 @@ a:hover img.CENTRE_PHOTO_SHOW
|
|||
/************************************ Forum **********************************/
|
||||
.FOR_IMG
|
||||
{
|
||||
width:480px;
|
||||
width:100%;
|
||||
border-radius:4px;
|
||||
margin:10px 0;
|
||||
}
|
||||
.FOR_IMG_TIT
|
||||
{
|
||||
width:480px;
|
||||
margin:10px 0;
|
||||
}
|
||||
|
||||
/*********************************** Messages ********************************/
|
||||
.MSG_TO_ONE_RCP
|
||||
|
@ -2089,10 +2094,15 @@ a:hover img.CENTRE_PHOTO_SHOW
|
|||
}
|
||||
.MSG_IMG
|
||||
{
|
||||
width:480px;
|
||||
width:100%;
|
||||
border-radius:4px;
|
||||
margin:10px 0;
|
||||
}
|
||||
.MSG_IMG_TIT
|
||||
{
|
||||
width:480px;
|
||||
margin:10px 0;
|
||||
}
|
||||
.MSG_TXT {color:#404040; font-size:13pt;}
|
||||
.MSG_TIT {color:#4D88A1; font-size:13pt;}
|
||||
.MSG_TIT_NEW {color:#4D88A1; font-size:13pt; font-weight:bold;}
|
||||
|
|
|
@ -128,18 +128,22 @@
|
|||
// TODO: In Statistics > Degrees, show only degrees with students
|
||||
// TODO: Change PhotoAttribution in table centres from TEXT to VARCHAR(255) (check maximum length first)
|
||||
// TODO: In social refreshing via AJAX, an error occurs when session expirates
|
||||
// TODO: Messages in msg_content_deleted older than a certain time should be deleted to ensure the protection of personal data
|
||||
|
||||
// TODO: Show image original when writing the reply to a message?
|
||||
|
||||
/*****************************************************************************/
|
||||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.192.3 (2016-04-11)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.192.4 (2016-04-11)"
|
||||
#define CSS_FILE "swad15.192.css"
|
||||
#define JS_FILE "swad15.190.1.js"
|
||||
|
||||
// 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 15.192.4: Apr 11, 2016 Fixed bug when removing messages. (199370 lines)
|
||||
Version 15.192.3: Apr 11, 2016 Fixed bugs when receiving forum image. (199355 lines)
|
||||
Version 15.192.2: Apr 11, 2016 Fixed bug when getting forum post content. (199344 lines)
|
||||
Version 15.192.1: Apr 10, 2016 Remove image attached to forum post when the post is removed. (199340 lines)
|
||||
|
|
|
@ -3857,7 +3857,7 @@ static void For_WriteFormForumPst (bool IsReply,long ThrCod,const char *Subject)
|
|||
/* Image title/attribution */
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ImgTit\""
|
||||
" placeholder=\"%s (%s)…\""
|
||||
" class=\"FOR_IMG\" maxlength=\"%u\" value=\"\">",
|
||||
" class=\"FOR_IMG_TIT\" maxlength=\"%u\" value=\"\">",
|
||||
Txt_Image_title_attribution,Txt_optional,
|
||||
Img_MAX_BYTES_TITLE);
|
||||
|
||||
|
|
|
@ -439,7 +439,7 @@ static void Msg_PutFormMsgUsrs (const char *Content)
|
|||
/* Image title/attribution */
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ImgTit\""
|
||||
" placeholder=\"%s (%s)…\""
|
||||
" class=\"MSG_IMG\" maxlength=\"%u\" value=\"\">",
|
||||
" class=\"MSG_IMG_TIT\" maxlength=\"%u\" value=\"\">",
|
||||
Txt_Image_title_attribution,Txt_optional,
|
||||
Img_MAX_BYTES_TITLE);
|
||||
|
||||
|
@ -1573,12 +1573,14 @@ static void Msg_MoveMsgContentToDeleted (long MsgCod)
|
|||
|
||||
/***** Move message from msg_content to msg_content_deleted *****/
|
||||
/* Insert message content into msg_content_deleted */
|
||||
sprintf (Query,"INSERT IGNORE INTO msg_content_deleted (MsgCod,Subject,Content)"
|
||||
" SELECT MsgCod,Subject,Content FROM msg_content WHERE MsgCod='%ld'",
|
||||
sprintf (Query,"INSERT IGNORE INTO msg_content_deleted"
|
||||
" (MsgCod,Subject,Content,ImageName,ImageTitle)"
|
||||
" SELECT MsgCod,Subject,Content,ImageName,ImageTitle"
|
||||
" FROM msg_content WHERE MsgCod='%ld'",
|
||||
MsgCod);
|
||||
DB_QueryINSERT (Query,"can not remove the content of a message");
|
||||
|
||||
/* Messages in msg_content_deleted older than a certain time
|
||||
/* TODO: Messages in msg_content_deleted older than a certain time
|
||||
should be deleted to ensure the protection of personal data */
|
||||
|
||||
/* Delete message from msg_content *****/
|
||||
|
|
Loading…
Reference in New Issue