From ce06cfb553543a4b6c1ff8c01563e8d0cebc4bde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Wed, 16 Nov 2016 23:19:52 +0100 Subject: [PATCH] Version 16.63 --- swad_RSS.c | 2 +- swad_account.c | 38 +- swad_action.c | 36 +- swad_assignment.c | 4 +- swad_attendance.c | 2 +- swad_changelog.h | 88 +-- swad_config.h | 46 +- swad_enrollment.c | 22 +- swad_exam.c | 2 +- swad_file_browser.c | 4 +- swad_follow.c | 4 +- swad_global.c | 2 +- swad_global.h | 4 +- swad_layout.c | 4 +- swad_mail.c | 302 +++++----- swad_mail.h | 4 +- swad_message.c | 17 +- swad_notice.c | 6 +- swad_notification.c | 48 +- swad_notification.h | 2 +- swad_password.c | 24 +- swad_preference.c | 2 +- swad_record.c | 4 +- swad_report.c | 2 +- swad_social.c | 4 +- swad_statistic.c | 27 +- swad_string.c | 2 +- swad_survey.c | 4 +- swad_text.c | 1328 +++++++++++++++++++++---------------------- swad_user.c | 46 +- swad_user.h | 4 +- swad_web_service.c | 42 +- 32 files changed, 1069 insertions(+), 1057 deletions(-) diff --git a/swad_RSS.c b/swad_RSS.c index 89a15dfc..78f47d17 100644 --- a/swad_RSS.c +++ b/swad_RSS.c @@ -93,7 +93,7 @@ void RSS_UpdateRSSFileForACrs (struct Course *Crs) fprintf (FileRSS,"%s\n", Cfg_RSS_LANGUAGE); fprintf (FileRSS,"%s (%s)\n", - Cfg_PLATFORM_RESPONSIBLE_E_MAIL,Cfg_PLATFORM_RESPONSIBLE_NAME); + Cfg_PLATFORM_RESPONSIBLE_EMAIL,Cfg_PLATFORM_RESPONSIBLE_NAME); fprintf (FileRSS,"\n"); fprintf (FileRSS,"%s/swad112x32.png\n", diff --git a/swad_account.c b/swad_account.c index 2f75848a..bd8ed6aa 100644 --- a/swad_account.c +++ b/swad_account.c @@ -360,7 +360,7 @@ static void Acc_ShowFormRequestNewAccountWithParams (const char *NewNicknameWith Txt_HELP_nickname, NewNicknameWithArroba); - /***** E-mail *****/ + /***** Email *****/ fprintf (Gbl.F.Out,"" "" "%s:" @@ -425,26 +425,26 @@ void Acc_ShowFormChangeMyAccount (void) bool IShouldConfirmEmail = false; bool IShouldFillID = false; - /***** Get current user's nickname and e-mail address - It's necessary because current nickname or e-mail could be just updated *****/ + /***** Get current user's nickname and email address + It's necessary because current nickname or email could be just updated *****/ Nck_GetNicknameFromUsrCod (Gbl.Usrs.Me.UsrDat.UsrCod,Gbl.Usrs.Me.UsrDat.Nickname); Mai_GetEmailFromUsrCod (&Gbl.Usrs.Me.UsrDat); - /***** Check nickname, e-mail and ID *****/ + /***** Check nickname, email and ID *****/ if (!Gbl.Usrs.Me.UsrDat.Nickname[0]) IMustFillNickname = true; else if (!Gbl.Usrs.Me.UsrDat.Email[0]) IMustFillEmail = true; else { - if (!Gbl.Usrs.Me.UsrDat.EmailConfirmed && // E-mail not yet confirmed - !Gbl.Usrs.Me.ConfirmEmailJustSent) // Do not ask for e-mail confirmation when confirmation e-mail is just sent + if (!Gbl.Usrs.Me.UsrDat.EmailConfirmed && // Email not yet confirmed + !Gbl.Usrs.Me.ConfirmEmailJustSent) // Do not ask for email confirmation when confirmation email is just sent IShouldConfirmEmail = true; if (!Gbl.Usrs.Me.UsrDat.IDs.Num) IShouldFillID = true; } - /***** Show alert to report that confirmation e-mail has been sent *****/ + /***** Show alert to report that confirmation email has been sent *****/ if (Gbl.Usrs.Me.ConfirmEmailJustSent) Mai_ShowMsgConfirmEmailHasBeenSent (); @@ -472,7 +472,7 @@ void Acc_ShowFormChangeMyAccount (void) /***** Separator *****/ Acc_PrintAccountSeparator (); - /***** E-mail *****/ + /***** Email *****/ if (IMustFillEmail || IShouldConfirmEmail) { fprintf (Gbl.F.Out,"" @@ -568,10 +568,10 @@ bool Acc_CreateMyNewAccountAndLogIn (void) Nck_UpdateMyNick (NewNicknameWithoutArroba); strcpy (Gbl.Usrs.Me.UsrDat.Nickname,NewNicknameWithoutArroba); - /***** Save e-mail *****/ + /***** Save email *****/ if (Mai_UpdateEmailInDB (&Gbl.Usrs.Me.UsrDat,NewEmail)) { - /* E-mail updated sucessfully */ + /* Email updated sucessfully */ strcpy (Gbl.Usrs.Me.UsrDat.Email,NewEmail); Gbl.Usrs.Me.UsrDat.EmailConfirmed = false; } @@ -640,17 +640,17 @@ static bool Acc_GetParamsNewAccount (char *NewNicknameWithoutArroba, Lay_ShowAlert (Lay_WARNING,Gbl.Message); } - /***** Step 2/3: Get new e-mail from form *****/ + /***** Step 2/3: Get new email from form *****/ Par_GetParToText ("NewEmail",NewEmail,Usr_MAX_BYTES_USR_EMAIL); - if (Mai_CheckIfEmailIsValid (NewEmail)) // New e-mail is valid + if (Mai_CheckIfEmailIsValid (NewEmail)) // New email is valid { - /* Check if the new e-mail matches - any of the confirmed e-mails of other users */ + /* Check if the new email matches + any of the confirmed emails of other users */ sprintf (Query,"SELECT COUNT(*) FROM usr_emails" " WHERE E_mail='%s' AND Confirmed='Y'", NewEmail); - if (DB_QueryCOUNT (Query,"can not check if e-mail already existed")) // An e-mail of another user is the same that my e-mail + if (DB_QueryCOUNT (Query,"can not check if email already existed")) // An email of another user is the same that my email { Error = true; sprintf (Gbl.Message,Txt_The_email_address_X_had_been_registered_by_another_user, @@ -658,7 +658,7 @@ static bool Acc_GetParamsNewAccount (char *NewNicknameWithoutArroba, Lay_ShowAlert (Lay_WARNING,Gbl.Message); } } - else // New e-mail is not valid + else // New email is not valid { Error = true; sprintf (Gbl.Message,Txt_The_email_address_entered_X_is_not_valid, @@ -1118,14 +1118,14 @@ static void Acc_RemoveUsr (struct UsrData *UsrDat) UsrDat->UsrCod); DB_QueryDELETE (Query,"can not remove user's nicknames"); - /***** Remove user's e-mails *****/ + /***** Remove user's emails *****/ sprintf (Query,"DELETE FROM pending_emails WHERE UsrCod='%ld'", UsrDat->UsrCod); - DB_QueryDELETE (Query,"can not remove pending user's e-mails"); + DB_QueryDELETE (Query,"can not remove pending user's emails"); sprintf (Query,"DELETE FROM usr_emails WHERE UsrCod='%ld'", UsrDat->UsrCod); - DB_QueryDELETE (Query,"can not remove user's e-mails"); + DB_QueryDELETE (Query,"can not remove user's emails"); /***** Remove user's IDs *****/ sprintf (Query,"DELETE FROM usr_IDs WHERE UsrCod='%ld'", diff --git a/swad_action.c b/swad_action.c index 2a75d9ee..5fd61261 100644 --- a/swad_action.c +++ b/swad_action.c @@ -1049,15 +1049,15 @@ Users: 879. ActChgPwdStd Change the password of another user 880. ActChgPwdTch Change the password of another user - 881. ActFrmMaiOth Show form to the change of the e-mail of another user - 882. ActFrmMaiStd Show form to the change of the e-mail of another user - 883. ActFrmMaiTch Show form to the change of the e-mail of another user - 884. ActRemMaiOth Remove one of the e-mail of another user - 885. ActRemMaiStd Remove one of the e-mail of another user - 886. ActRemMaiTch Remove one of the e-mail of another user - 887. ActNewMaiOth Create a new user's e-mail for another user - 888. ActNewMaiStd Create a new user's e-mail for another user - 889. ActNewMaiTch Create a new user's e-mail for another user + 881. ActFrmMaiOth Show form to the change of the email of another user + 882. ActFrmMaiStd Show form to the change of the email of another user + 883. ActFrmMaiTch Show form to the change of the email of another user + 884. ActRemMaiOth Remove one of the email of another user + 885. ActRemMaiStd Remove one of the email of another user + 886. ActRemMaiTch Remove one of the email of another user + 887. ActNewMaiOth Create a new user's email for another user + 888. ActNewMaiStd Create a new user's email for another user + 889. ActNewMaiTch Create a new user's email for another user 890. ActRemStdCrs Remove a student from the current course 891. ActRemTchCrs Remove a teacher from the current course @@ -1258,7 +1258,7 @@ Messages: 1075. ActReqMsgUsr Write message to several users 1076. ActSeeRcvMsg Show the messages received from other users (link in menu) 1077. ActSeeSntMsg Show the messages sent to other users - 1078. ActMaiStd Send an e-mail to students + 1078. ActMaiStd Send an email to students 1079. ActWriAnn Show form to create a new global announcement 1080. ActRcvAnn Receive and create a new global announcement 1081. ActHidAnn Hide a global announcement that was active @@ -1332,8 +1332,8 @@ Profile: 1146. ActEdiPrf Show forms to edit preferences 1147. ActAdmBrf Show the briefcase of private archives - 1148. ActReqSndNewPwd Show form to send a new password via e-mail - 1149. ActSndNewPwd Send a new password via e-mail + 1148. ActReqSndNewPwd Show form to send a new password via email + 1149. ActSndNewPwd Send a new password via email 1150. ActLogOut Close session 1151. ActAutUsrInt Authentify user internally (directly from the platform) @@ -1348,9 +1348,9 @@ Profile: 1159. ActNewIDMe Create a new user's ID for me 1160. ActRemOldNic Remove one of my old nicknames 1161. ActChgNic Change my nickname - 1162. ActRemMaiMe Remove one of my old e-mails - 1163. ActNewMaiMe Change my e-mail address - 1164. ActCnfMai Confirm e-mail address + 1162. ActRemMaiMe Remove one of my old emails + 1163. ActNewMaiMe Change my email address + 1164. ActCnfMai Confirm email address 1165. ActFrmChgMyPwd Show form to the change of the password 1166. ActChgPwd Change the password 1167. ActReqRemMyAcc Request the removal of my account @@ -1390,7 +1390,7 @@ Profile: 1195. ActShoRgtCol Show right side column 1196. ActChgIco Change icon set 1197. ActChgMnu Change menu - 1198. ActChgNtfPrf Change whether to notify by e-mail new messages + 1198. ActChgNtfPrf Change whether to notify by email new messages 1199. ActPrnUsrQR Show my QR code ready to print 1200. ActPrnMyTT Show the timetable listo to impresión of all my courses @@ -2682,7 +2682,7 @@ struct Act_Actions Act_Actions[Act_NUM_ACTIONS] = /* ActReqMsgUsr */{ 26, 3,TabMsg,ActReqMsgUsr ,0x1FE,0x1FE,0x1FE,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Msg_FormMsgUsrs ,"editnewmsg64x64.gif" }, /* ActSeeRcvMsg */{ 3, 4,TabMsg,ActSeeRcvMsg ,0x1FE,0x1FE,0x1FE,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Msg_ShowRecMsgs ,"recmsg64x64.gif" }, /* ActSeeSntMsg */{ 70, 5,TabMsg,ActSeeSntMsg ,0x1FE,0x1FE,0x1FE,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Msg_ShowSntMsgs ,"sntmsg64x64.gif" }, - /* ActMaiStd */{ 100, 6,TabMsg,ActMaiStd ,0x110,0x100,0x000,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Mai_ListEMails ,"email64x64.gif" }, + /* ActMaiStd */{ 100, 6,TabMsg,ActMaiStd ,0x110,0x100,0x000,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Mai_ListEmails ,"email64x64.gif" }, // Actions not in menu: /* ActWriAnn */{1237,-1,TabUnk,ActSeeAnn ,0x100,0x100,0x100,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Ann_ShowFormAnnouncement ,NULL}, @@ -4848,7 +4848,7 @@ void Act_AdjustCurrentAction (void) return; } - /***** If I have no nickname or e-mail in database, + /***** If I have no nickname or email in database, the only action possible is show a form to change my account *****/ if (!Gbl.Usrs.Me.UsrDat.Nickname[0] || !Gbl.Usrs.Me.UsrDat.Email[0]) diff --git a/swad_assignment.c b/swad_assignment.c index 81f07256..428604c1 100644 --- a/swad_assignment.c +++ b/swad_assignment.c @@ -1361,7 +1361,7 @@ void Asg_RecFormAssignment (void) /* Free memory for list of selected groups */ Grp_FreeListCodSelectedGrps (); - /***** Notify by e-mail about the new assignment *****/ + /***** Notify by email about the new assignment *****/ if ((NumUsrsToBeNotifiedByEMail = Ntf_StoreNotifyEventsToAllUsrs (Ntf_EVENT_ASSIGNMENT,NewAsg.AsgCod))) Asg_UpdateNumUsrsNotifiedByEMailAboutAssignment (NewAsg.AsgCod,NumUsrsToBeNotifiedByEMail); Ntf_ShowAlertNumUsrsToBeNotifiedByEMail (NumUsrsToBeNotifiedByEMail); @@ -1822,7 +1822,7 @@ unsigned Asg_GetNumAssignments (Sco_Scope_t Scope,unsigned *NumNotif) if (sscanf (row[0],"%u",&NumAssignments) != 1) Lay_ShowErrorAndExit ("Error when getting number of assignments."); - /***** Get number of notifications by e-mail *****/ + /***** Get number of notifications by email *****/ if (row[1]) { if (sscanf (row[1],"%u",NumNotif) != 1) diff --git a/swad_attendance.c b/swad_attendance.c index d3db24ac..e2e33bb8 100644 --- a/swad_attendance.c +++ b/swad_attendance.c @@ -1792,7 +1792,7 @@ unsigned Att_GetNumAttEvents (Sco_Scope_t Scope,unsigned *NumNotif) if (sscanf (row[0],"%u",&NumAttEvents) != 1) Lay_ShowErrorAndExit ("Error when getting number of attendance events."); - /***** Get number of notifications by e-mail *****/ + /***** Get number of notifications by email *****/ if (row[1]) { if (sscanf (row[1],"%u",NumNotif) != 1) diff --git a/swad_changelog.h b/swad_changelog.h index 55c9419b..d0bd4c6f 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -145,7 +145,7 @@ // TODO: Writing a message to several recipients: include message to indicate that list of nicknames must be comma separated // TODO: When requesting inscription, I can not click in the photo of my record. Change the form? -// TODO: Import ID, e-mail, Surname1, Surname2, Name from CSV, suggested by Javier Melero +// TODO: Import ID, email, Surname1, Surname2, Name from CSV, suggested by Javier Melero // TODO: Remove columns DegCod,CrsCod from database table surveys @@ -153,19 +153,29 @@ // TODO: When an assignment has the same name or the same folder as another existing assignment, after error the fields are empty! +// TODO: Remove all files inside the root folder (except the root folder itself) just as made with copy-paste? + +// TODO: Cuando se seleccionan varios alumnos para sus trabajos y después se vuelve atrás y se vuelven a ver, salen los estudiantes duplicados ==> comprobar cada uno de los que se muestra si ya se ha mostrado para no hacerlo de nuevo + +// TODO: Comprobar que cuando se da de baja un estudiante y luego se vuelve a dar de alta se han eliminado sus trabajos (Javier dice que no se eliminan) + +// TODO: Hay un problema cuando se eliminan usuarios de una asignatura: quedan sus trabajos sin eliminar para siempre, ocupando espacio +// TODO: Se elimina un único estudiante de la asignatura. ¿Se eliminan sus trabajos? Si no, habría que cambiar el mensaje "eliminando sus trabajos...". + /*****************************************************************************/ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.62.2 (2016-11-14)" +#define Log_PLATFORM_VERSION "SWAD 16.63 (2016-11-16)" #define CSS_FILE "swad16.60.1.css" #define JS_FILE "swad16.46.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 16.62.2: Nov 14, 2016 Changes message related to clipboard. - Fixed minor bug when copying all files inside root folder. (207157 lines) + Version 16.63: Nov 16, 2016 "e-mail" changed to "email", except in database fields. (? lines) + Version 16.62.2: Nov 14, 2016 Changed message related to clipboard. + Fixed minor bug when copying all files inside root folder. (207158 lines) Version 16.62.1: Nov 14, 2016 Code refactoring in clipboard. (207151 lines) Version 16.62: Nov 14, 2016 Copy of all files inside root folder is now allowed (root folder not copied). (207165 lines) Version 16.61.8: Nov 14, 2016 Code refactoring in clipboard. (207148 lines) @@ -427,15 +437,15 @@ INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1587','es','N','Move Version 16.21.3: Oct 12, 2016 Changes in layout of file browser. (205266 lines) Version 16.21.2: Oct 12, 2016 Unused code removed from actions. (205263 lines) Version 16.21.1: Oct 12, 2016 Code refactoring in actions. (205280 lines) - Version 16.21: Oct 12, 2016 Code refactoring related with warning about e-mail notifications. - Notification mail is sent only if e-mail is confirmed. (205278 lines) + Version 16.21: Oct 12, 2016 Code refactoring related with warning about email notifications. + Notification mail is sent only if email is confirmed. (205278 lines) Version 16.20: Oct 11, 2016 New button to edit/view file browser. (205241 lines) Version 16.19.3: Oct 11, 2016 Code optimization in file browser. (205210 lines) Version 16.19.2: Oct 11, 2016 Code optimization in file browser. (205198 lines) - Version 16.19.1: Oct 10, 2016 Message to report that confirmation e-mail has been sent. (205203 lines) - Version 16.19: Oct 10, 2016 Warning in User > Session to confirm user's e-mail address. + Version 16.19.1: Oct 10, 2016 Message to report that confirmation email has been sent. (205203 lines) + Version 16.19: Oct 10, 2016 Warning in User > Session to confirm user's email address. Changes in form to edit user's account. (205194 lines) - Version 16.18.1: Oct 10, 2016 Warning in User > Account to confirm user's e-mail address. (205116 lines) + Version 16.18.1: Oct 10, 2016 Warning in User > Account to confirm user's email address. (205116 lines) Version 16.18: Oct 09, 2016 Removed external authentication (previously used at University of Granada). (205092 lines) 4 changes necessary in database: DROP TABLE IF EXISTS imported_groups; @@ -599,7 +609,7 @@ ALTER TABLE msg_content_deleted CHANGE COLUMN ImageURL ImageURL VARCHAR(255) NOT Version 15.247: Jul 26, 2016 In listings of users, show institution logo with link to institution. (204093 lines) Version 15.246.2: Jul 26, 2016 List of users in web service use the list filled instead of querying database a second time to get all user's data. Code refactoring in copying of user's data in web service. (204089 lines) - Version 15.246.1: Jul 26, 2016 Attendance of users and e-mail to users use the list filled instead of querying database a second time to get all user's data. (204093 lines) + Version 15.246.1: Jul 26, 2016 Attendance of users and email to users use the list filled instead of querying database a second time to get all user's data. (204093 lines) Version 15.246: Jul 26, 2016 Classphoto of users uses the list filled instead of querying database a second time to get all user's data. Origin place is removed from classphoto. (204094 lines) Version 15.245.5: Jul 26, 2016 Fixed bug in user's data. (204116 lines) @@ -609,7 +619,7 @@ ALTER TABLE msg_content_deleted CHANGE COLUMN ImageURL ImageURL VARCHAR(255) NOT Version 15.245.1: Jul 25, 2016 Code refactoring in building of queries to get/search users. (204081 lines) Version 15.245: Jul 25, 2016 List of users is filled with user's name and user's institution. Search of users uses the list filled instead of querying database a second time to get all user's data. (204192 lines) - Version 15.244: Jul 25, 2016 Removed e-mail column from some lists of users (usually it's not necessary). (203969 lines) + Version 15.244: Jul 25, 2016 Removed email column from some lists of users (usually it's not necessary). (203969 lines) Version 15.243.2: Jul 24, 2016 Guests now have permission to write messages. (203963 lines) Version 15.243.1: Jul 21, 2016 Fixed bugs in web service. (203962 lines) Version 15.243: Jul 20, 2016 Fixed bug in web service (getNotifications). @@ -646,7 +656,7 @@ DROP TABLE IF EXISTS notif_backup,sta_notif_backup,usr_data_backup; Version 15.238: Jul 01, 2016 Hidden fields in in selectors of class photo / list with message subject and content. (203274 lines) Version 15.237.3: Jul 01, 2016 Fixed bug in messages. (203257 lines) Version 15.237.2: Jul 01, 2016 Fixed minor problem in textarea for message content. (203261 lines) - Version 15.237.1: Jul 01, 2016 Code refactoring in function to send e-mail to students. (203254 lines) + Version 15.237.1: Jul 01, 2016 Code refactoring in function to send email to students. (203254 lines) Version 15.237: Jul 01, 2016 The form "Show more recipients" now have a hidden field with the content. (203243 lines) Version 15.236: Jun 30, 2016 The form "Show more recipients" now have a hidden field with the subject. (? lines) Version 15.235.1: Jun 30, 2016 Minor change in icon to download files. (203206 lines) @@ -897,9 +907,9 @@ INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1570','es','N','Conf Version 15.202.4: Apr 23, 2016 Code refactoring in record card. (200926 lines) Version 15.202.3: Apr 23, 2016 Code refactoring in record card. (200911 lines) Version 15.202.2: Apr 23, 2016 Code refactoring in record card. (200899 lines) - Version 15.202.1: Apr 23, 2016 Code refactoring related to showing user's e-mail. (200887 lines) + Version 15.202.1: Apr 23, 2016 Code refactoring related to showing user's email. (200887 lines) Version 15.202: Apr 23, 2016 User's IDs are show in green or red. - Code refactoring and bug fixing related to showing user's ID and e-mail. (200908 lines) + Code refactoring and bug fixing related to showing user's ID and email. (200908 lines) Version 15.201.9: Apr 22, 2016 Code refactoring in record card. Changes in layout of record cards. (200895 lines) Version 15.201.8: Apr 22, 2016 Code refactoring in record card. @@ -2139,8 +2149,8 @@ INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1484','es','N','Camb Version 15.40.1: Nov 19, 2015 Changes in behaviour of links to countries, institutions, centres and degrees. (187288 lines) Version 15.40: Nov 17, 2015 Changes in statistics of number of users. Changes in listing of countries. (187275 lines) - Version 15.39.1: Nov 16, 2015 User' e-mail can be removed even if it is the unique. (187236 lines) - Version 15.39: Nov 16, 2015 Administrators can edit another user' e-mails. (187268 lines) + Version 15.39.1: Nov 16, 2015 User' email can be removed even if it is the unique. (187236 lines) + Version 15.39: Nov 16, 2015 Administrators can edit another user' emails. (187268 lines) 9 changes necessary in database: INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1475','es','N','Solicitar edición dir. correo invitado'); INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1476','es','N','Solicitar edición dir. correo estudiante'); @@ -3412,7 +3422,7 @@ Copy the new swad_smtp.py into swad cgi directory Changes in admin of one user for students. (167497 lines) Version 14.5.2: Oct 11, 2014 One message translated. Minor code refactoring. (167396 lines) - Version 14.5.1: Oct 08, 2014 Minor changes related to messages in automatic e-mails. (167374 lines) + Version 14.5.1: Oct 08, 2014 Minor changes related to messages in automatic emails. (167374 lines) Version 14.5: Oct 07, 2014 Fixed issues related with charset. (167368 lines) Version 14.4.2: Oct 07, 2014 Changes in upload of files. (167354 lines) Version 14.4.1: Oct 07, 2014 Changes in upload of files. (167351 lines) @@ -3902,7 +3912,7 @@ UPDATE log SET Role=Role+1 WHERE Role>='1' AND Role<='4'; DELETE FROM actions WHERE ActCod='1164'; UPDATE actions SET Obsolete='Y' WHERE ActCod='1162'; - Version 13.43: Jan 29, 2014 A new account must be created with a @nick, an e-mail and an ID. (161513 lines) + Version 13.43: Jan 29, 2014 A new account must be created with a @nick, an email and an ID. (161513 lines) Version 13.42.3: Jan 28, 2014 Changes related to user importation. (161385 lines) Version 13.42.2: Jan 27, 2014 The number of user's IDs for a user is now limited. (161386 lines) Version 13.42.1: Jan 26, 2014 Some messages translated. (161348 lines) @@ -4209,7 +4219,7 @@ Add swad_banner.o to list of object files CREATE TABLE IF NOT EXISTS banners (BanCod INT NOT NULL AUTO_INCREMENT,ShortName VARCHAR(32) NOT NULL,FullName VARCHAR(255) NOT NULL,WWW VARCHAR(255) NOT NULL,UNIQUE INDEX(BanCod)); Version 13.6: Oct 20, 2013 A teacher/admin can register another user in groups. (155736 lines) - Version 13.5: Oct 17, 2013 Register / remove several users using nicknames or e-mails, not only IDs. (155339 lines) + Version 13.5: Oct 17, 2013 Register / remove several users using nicknames or emails, not only IDs. (155339 lines) Version 13.4.8: Oct 16, 2013 Fixed bug in searching of documents. (155326 lines) Version 13.4.7: Oct 16, 2013 Creating ZIP is permitted for all users. (155305 lines) Version 13.4.6: Oct 16, 2013 Create ZIP only if full size is less than a limit. (155281 lines) @@ -4261,7 +4271,7 @@ INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1123','es','N','Desc INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1111','es','N','Descargar arch. doc. asg.'); Version 13.2.2: Oct 09, 2013 User's QR code is moved to user's account. - New QR code for confirmed e-mail. (154443 lines) + New QR code for confirmed email. (154443 lines) 1 change necessary in database: UPDATE actions SET Obsolete='Y' WHERE ActCod='1021'; @@ -4362,11 +4372,11 @@ UPDATE IP_prefs SET IconSet='nuvola'; Version 12.67.6: Sep 17, 2013 Changes in layout. (153199 lines) Version 12.67.5: Sep 15, 2013 Changes in layout. (153161 lines) Version 12.67.4: Sep 14, 2013 Changes in layout. (153175 lines) - Version 12.67.3: Sep 14, 2013 Fixed bug in form to enter ID, @nick or e-mail. (153198 lines) + Version 12.67.3: Sep 14, 2013 Fixed bug in form to enter ID, @nick or email. (153198 lines) Version 12.67.2: Sep 14, 2013 Fixed bug in statistics. (153198 lines) Version 12.67.1: Sep 14, 2013 Changes in nickname form. Several messages translated. (153197 lines) - Version 12.67: Sep 13, 2013 Nickname and e-mail are allowed to create, remove, change a user. (153137 lines) + Version 12.67: Sep 13, 2013 Nickname and email are allowed to create, remove, change a user. (153137 lines) Version 12.66.1: Sep 12, 2013 User's encrypted code is used instead user's ID when possible. (153107 lines) Version 12.66: Sep 11, 2013 User's code instead of user's ID in log tables. (153015 lines) 4 slow changes necessary in database (may spend many minutes or even hours depending on the size of log tables): @@ -4382,18 +4392,18 @@ UPDATE log,usr_data SET log.UsrCod=usr_data.UsrCod WHERE log.UsrCod='-1' AND log Version 12.65: Sep 04, 2013 When a user logs in and no course is selected, use last visited course. Clear list of user's courses when he/she logs out. (152890 lines) Version 12.64.6: Jul 17, 2013 Fixed bug in mail domains. - Changes in e-mail form in user's account. (152848 lines) + Changes in email form in user's account. (152848 lines) Version 12.64.5: Jun 29, 2013 Fixed bug in web service, reported by Juan Miguel Boyero Corral. New MIME type allowed. (152811 lines) - Version 12.64.4: Jun 11, 2013 Users can log in web service with e-mail. (152706 lines) + Version 12.64.4: Jun 11, 2013 Users can log in web service with email. (152706 lines) Version 12.64.3: Jun 11, 2013 Fixed bug in nicknames, reported by Juan Miguel Boyero Corral. (152704 lines) Version 12.64.2: Jun 11, 2013 Several messages translated to spanish and english. (152715 lines) - Version 12.64.1: Jun 11, 2013 New button to confirm e-mail. (152335 lines) - Version 12.64: Jun 11, 2013 Users can login with e-mail. - Messages can be sent with e-mail. - Fixed bug when changing the e-mail, reported by Francisco A. Ocaña Lara. (152361 lines) + Version 12.64.1: Jun 11, 2013 New button to confirm email. (152335 lines) + Version 12.64: Jun 11, 2013 Users can login with email. + Messages can be sent with email. + Fixed bug when changing the email, reported by Francisco A. Ocaña Lara. (152361 lines) Version 12.63.12:Jun 10, 2013 Changes in user's record card. - E-mail field removed from user's data table. (152320 lines) + Email field removed from user's data table. (152320 lines) 4 changes necessary in database: DROP TABLE IF EXISTS usr_data_copy; CREATE TABLE usr_data_copy LIKE usr_data; @@ -4406,18 +4416,18 @@ ALTER TABLE usr_data DROP COLUMN E_mail; ALTER TABLE usr_data DROP COLUMN Nickname; Version 12.63.10:Jun 06, 2013 Changes in user's record card. (152251 lines) - Version 12.63.9: May 29, 2013 E-mail address is no longer filled in user's record card, only in account. - Nickname and e-mail are shown in record card after user's ID. (152189 lines) + Version 12.63.9: May 29, 2013 Email address is no longer filled in user's record card, only in account. + Nickname and email are shown in record card after user's ID. (152189 lines) 1 change necessary in database: INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1091','es','N','Confirmar dirección de correo'); - Version 12.63.8: May 29, 2013 E-mail address can be confirmed. (152163 lines) - Version 12.63.7: May 29, 2013 E-mail address can be confirmed. (152117 lines) - Version 12.63.6: May 28, 2013 E-mail address can be confirmed. (152109 lines) + Version 12.63.8: May 29, 2013 Email address can be confirmed. (152163 lines) + Version 12.63.7: May 29, 2013 Email address can be confirmed. (152117 lines) + Version 12.63.6: May 28, 2013 Email address can be confirmed. (152109 lines) 1 change necessary in database: CREATE TABLE IF NOT EXISTS pending_emails (UsrCod INT NOT NULL,E_mail VARCHAR(255) COLLATE latin1_general_ci NOT NULL,MailKey CHAR(43) COLLATE latin1_bin NOT NULL,DateAndTime DATETIME NOT NULL,INDEX(UsrCod),UNIQUE INDEX(MailKey)); - Version 12.63.5: May 27, 2013 E-mail address can be confirmed. (152061 lines) + Version 12.63.5: May 27, 2013 Email address can be confirmed. (152061 lines) 1 change necessary in database: ALTER TABLE usr_emails ADD COLUMN Confirmed ENUM('N','Y') NOT NULL DEFAULT 'N' AFTER CreatTime; @@ -4427,13 +4437,13 @@ ALTER TABLE usr_emails ADD COLUMN Confirmed ENUM('N','Y') NOT NULL DEFAULT 'N' A INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1089','es','N','Eliminar apodo'); INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1090','es','N','Eliminar dirección de correo'); - Version 12.63.2: May 23, 2013 Changing user's e-mail. (151732 lines) + Version 12.63.2: May 23, 2013 Changing user's email. (151732 lines) 3 changes necessary in database: INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1086','es','N','Ver datos arch. calif. asg.'); INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1087','es','N','Ver datos arch. calif. grp.'); INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1088','es','N','Cambiar mi dirección de correo'); - Version 12.63.1: May 22, 2013 Changing user's e-mail. (151625 lines) + Version 12.63.1: May 22, 2013 Changing user's email. (151625 lines) Version 12.63: May 21, 2013 Option "Nickname" is changed to option "User's account". (151396 lines) 1 change necessary in database: RENAME TABLE nicknames TO usr_nicknames; @@ -5105,7 +5115,7 @@ mv swad_data_protection.html data_protection/index.html Version 11.72.6: Jul 11, 2012 The word "DNI" is changed to "ID (DNI/cédula/pasaporte) in Spanish. (134447 lines) Version 11.72.5: Jul 09, 2012 The data protection clause is moved to an external file. (134445 lines) - Version 11.72.4: Jul 09, 2012 Changes in configuration related with automatic sending of e-mail. (134601 lines) + Version 11.72.4: Jul 09, 2012 Changes in configuration related with automatic sending of email. (134601 lines) Version 11.72.3: Jul 08, 2012 New statistics of forums of centres. (134595 lines) Version 11.72.2: Jul 08, 2012 Fixed bug in forums. (134592 lines) Version 11.72.1: Jul 08, 2012 Fixed bug in list of countries. (134591 lines) @@ -5278,7 +5288,7 @@ INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1051','es','N','Camb Version 11.30.7: Jan 15, 2012 Several messages translated (still 39 messages to be translated). (125168 lines) Version 11.30.6: Jan 14, 2012 Several messages translated (still 53 messages to be translated). Other minor changes. (124913 lines) - Version 11.30.5: Jan 14, 2012 Pending notifications are sent by e-mail on refresh actions. (124802 lines) + Version 11.30.5: Jan 14, 2012 Pending notifications are sent by email on refresh actions. (124802 lines) Version 11.30.4: Jan 14, 2012 When a user is removed from a course or from a group, it is better not to set notifications as inaccessible because the user can be enrolled again. (124802 lines) Version 11.30.3: Jan 14, 2012 When a course is removed, the notifications in that course are set as removed. When a user is removed from a course or from a group, the notifications inaccessible are set as inaccessible. (124842 lines) diff --git a/swad_config.h b/swad_config.h index f53c3407..741ca8c6 100644 --- a/swad_config.h +++ b/swad_config.h @@ -66,10 +66,10 @@ #define Cfg_PLATFORM_LOGO_BIG_HEIGHT 40 #define Cfg_PLATFORM_RESPONSIBLE_NAME "Antonio Cañas Vargas" // Main responsible for the platform -#define Cfg_PLATFORM_RESPONSIBLE_E_MAIL "webmaster@openswad.org" // Main responsible for the platform -#define Cfg_AUTOMATIC_EMAIL_SMTP_SERVER "openswad.org" // SMTP server for sending automatic e-mails -#define Cfg_AUTOMATIC_EMAIL_SMTP_PORT "465" // SMTP port for sending automatic e-mails -#define Cfg_AUTOMATIC_EMAIL_FROM "acanas@openswad.org" // E-mail address from where automatic e-mails will be sent +#define Cfg_PLATFORM_RESPONSIBLE_EMAIL "webmaster@openswad.org" // Main responsible for the platform +#define Cfg_AUTOMATIC_EMAIL_SMTP_SERVER "openswad.org" // SMTP server for sending automatic emails +#define Cfg_AUTOMATIC_EMAIL_SMTP_PORT "465" // SMTP port for sending automatic emails +#define Cfg_AUTOMATIC_EMAIL_FROM "acanas@openswad.org" // Email address from where automatic emails will be sent #define Cfg_DATABASE_HOST "localhost" // Database host #define Cfg_DEFAULT_LANGUAGE Txt_LANGUAGE_ES // Default language #define Cfg_LOG_START_YEAR 2012 // Year when the log started in the database @@ -83,7 +83,7 @@ #define Cfg_DEFAULT_COLUMNS Lay_SHOW_BOTH_COLUMNS -#define Cfg_TIME_TO_SEND_PENDING_NOTIF ((time_t)(30UL*60UL)) // After these seconds after first pending notification, all the pending notifications are sent by e-mail +#define Cfg_TIME_TO_SEND_PENDING_NOTIF ((time_t)(30UL*60UL)) // After these seconds after first pending notification, all the pending notifications are sent by email #define Cfg_GOOGLE_ANALYTICS "" @@ -107,10 +107,10 @@ #define Cfg_PLATFORM_LOGO_BIG_HEIGHT 40 #define Cfg_PLATFORM_RESPONSIBLE_NAME "Antonio Cañas Vargas" // Main responsible for the platform -#define Cfg_PLATFORM_RESPONSIBLE_E_MAIL "webmaster@openswad.org" // Main responsible for the platform -#define Cfg_AUTOMATIC_EMAIL_SMTP_SERVER "mail.openswad.org" // SMTP server for sending automatic e-mails -#define Cfg_AUTOMATIC_EMAIL_SMTP_PORT "465" // SMTP port for sending automatic e-mails -#define Cfg_AUTOMATIC_EMAIL_FROM "acanas@openswad.org" // E-mail address from where automatic e-mails will be sent +#define Cfg_PLATFORM_RESPONSIBLE_EMAIL "webmaster@openswad.org" // Main responsible for the platform +#define Cfg_AUTOMATIC_EMAIL_SMTP_SERVER "mail.openswad.org" // SMTP server for sending automatic emails +#define Cfg_AUTOMATIC_EMAIL_SMTP_PORT "465" // SMTP port for sending automatic emails +#define Cfg_AUTOMATIC_EMAIL_FROM "acanas@openswad.org" // Email address from where automatic emails will be sent #define Cfg_DATABASE_HOST "localhost" // Database host #define Cfg_DEFAULT_LANGUAGE Txt_LANGUAGE_EN // Default language #define Cfg_LOG_START_YEAR 2012 // Year when the log started in the database @@ -124,7 +124,7 @@ #define Cfg_DEFAULT_COLUMNS Lay_SHOW_BOTH_COLUMNS -#define Cfg_TIME_TO_SEND_PENDING_NOTIF ((time_t)(30UL*60UL)) // After these seconds after first pending notification, all the pending notifications are sent by e-mail +#define Cfg_TIME_TO_SEND_PENDING_NOTIF ((time_t)(30UL*60UL)) // After these seconds after first pending notification, all the pending notifications are sent by email /* Google Analytics without cookies. * This code comes from http://stackoverflow.com/a/19995629 @@ -165,10 +165,10 @@ #define Cfg_PLATFORM_LOGO_BIG_HEIGHT 40 #define Cfg_PLATFORM_RESPONSIBLE_NAME "UGR" // Main responsible for the platform -#define Cfg_PLATFORM_RESPONSIBLE_E_MAIL "swad@ugr.es" // Main responsible for the platform -#define Cfg_AUTOMATIC_EMAIL_SMTP_SERVER "smtp.ugr.es" // SMTP server for sending automatic e-mails -#define Cfg_AUTOMATIC_EMAIL_SMTP_PORT "587" // SMTP port for sending automatic e-mails -#define Cfg_AUTOMATIC_EMAIL_FROM "swad@ugr.es" // E-mail address from where automatic e-mails will be sent +#define Cfg_PLATFORM_RESPONSIBLE_EMAIL "swad@ugr.es" // Main responsible for the platform +#define Cfg_AUTOMATIC_EMAIL_SMTP_SERVER "smtp.ugr.es" // SMTP server for sending automatic emails +#define Cfg_AUTOMATIC_EMAIL_SMTP_PORT "587" // SMTP port for sending automatic emails +#define Cfg_AUTOMATIC_EMAIL_FROM "swad@ugr.es" // Email address from where automatic emails will be sent #define Cfg_DATABASE_HOST "localhost" // Database host #define Cfg_DEFAULT_LANGUAGE Txt_LANGUAGE_ES // Default language #define Cfg_LOG_START_YEAR 2005 // Year when the log started in the database @@ -182,7 +182,7 @@ #define Cfg_DEFAULT_COLUMNS Lay_SHOW_BOTH_COLUMNS -#define Cfg_TIME_TO_SEND_PENDING_NOTIF ((time_t)(60UL*60UL)) // After these seconds after first pending notification, all the pending notifications are sent by e-mail +#define Cfg_TIME_TO_SEND_PENDING_NOTIF ((time_t)(60UL*60UL)) // After these seconds after first pending notification, all the pending notifications are sent by email #define Cfg_GOOGLE_ANALYTICS "