mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-10 10:45:23 +02:00
Version 15.138
This commit is contained in:
parent
2188fedd92
commit
0a74c8a7a1
|
@ -37,6 +37,7 @@
|
||||||
#include "swad_ID.h"
|
#include "swad_ID.h"
|
||||||
#include "swad_notification.h"
|
#include "swad_notification.h"
|
||||||
#include "swad_parameter.h"
|
#include "swad_parameter.h"
|
||||||
|
#include "swad_preference.h"
|
||||||
#include "swad_profile.h"
|
#include "swad_profile.h"
|
||||||
#include "swad_social.h"
|
#include "swad_social.h"
|
||||||
|
|
||||||
|
@ -101,12 +102,13 @@ void Acc_ShowFormAccount (void)
|
||||||
Acc_ShowFormChangeMyAccount ();
|
Acc_ShowFormChangeMyAccount ();
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Acc_ShowFormRequestNewAccountWithParams ("","");
|
/* Links to log in and to change language */
|
||||||
|
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
|
||||||
|
Usr_PutLinkToLogin ();
|
||||||
|
Pre_PutLinkToChangeLanguage ();
|
||||||
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/***** Form to send students to be enrolled / removed *****/
|
Acc_ShowFormRequestNewAccount ();
|
||||||
Act_FormStart (ActEdiPrf);
|
|
||||||
Lay_PutConfirmButton ("Change language");
|
|
||||||
Act_FormEnd ();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,11 +116,19 @@ void Acc_ShowFormAccount (void)
|
||||||
/********************* Show form to create a new account *********************/
|
/********************* Show form to create a new account *********************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
void Acc_ShowFormRequestNewAccount (void)
|
||||||
|
{
|
||||||
|
Acc_ShowFormRequestNewAccountWithParams ("","");
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/************ Show form to create a new account using parameters *************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
static void Acc_ShowFormRequestNewAccountWithParams (const char *NewNicknameWithoutArroba,
|
static void Acc_ShowFormRequestNewAccountWithParams (const char *NewNicknameWithoutArroba,
|
||||||
const char *NewEmail)
|
const char *NewEmail)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassForm[The_NUM_THEMES];
|
extern const char *The_ClassForm[The_NUM_THEMES];
|
||||||
extern const char *Txt_Log_in;
|
|
||||||
extern const char *Txt_Nickname;
|
extern const char *Txt_Nickname;
|
||||||
extern const char *Txt_HELP_nickname;
|
extern const char *Txt_HELP_nickname;
|
||||||
extern const char *Txt_HELP_email;
|
extern const char *Txt_HELP_email;
|
||||||
|
@ -127,12 +137,6 @@ static void Acc_ShowFormRequestNewAccountWithParams (const char *NewNicknameWith
|
||||||
extern const char *Txt_Create_account;
|
extern const char *Txt_Create_account;
|
||||||
char NewNicknameWithArroba[Nck_MAX_BYTES_NICKNAME_WITH_ARROBA+1];
|
char NewNicknameWithArroba[Nck_MAX_BYTES_NICKNAME_WITH_ARROBA+1];
|
||||||
|
|
||||||
/***** Link to log in *****/
|
|
||||||
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
|
|
||||||
Lay_PutContextualLink (ActFrmLogIn,NULL,"login64x64.png",
|
|
||||||
Txt_Log_in,Txt_Log_in);
|
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
|
||||||
|
|
||||||
/***** Form to enter some data of the new user *****/
|
/***** Form to enter some data of the new user *****/
|
||||||
Act_FormStart (ActCreUsrAcc);
|
Act_FormStart (ActCreUsrAcc);
|
||||||
sprintf (Gbl.Title,Txt_New_on_PLATFORM_Sign_up,Cfg_PLATFORM_SHORT_NAME);
|
sprintf (Gbl.Title,Txt_New_on_PLATFORM_Sign_up,Cfg_PLATFORM_SHORT_NAME);
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
void Acc_ShowFormAccount (void);
|
void Acc_ShowFormAccount (void);
|
||||||
|
void Acc_ShowFormRequestNewAccount (void);
|
||||||
void Acc_ShowFormChangeMyAccount (void);
|
void Acc_ShowFormChangeMyAccount (void);
|
||||||
bool Acc_CreateNewAccountAndLogIn (void);
|
bool Acc_CreateNewAccountAndLogIn (void);
|
||||||
void Acc_CreateNewUsr (struct UsrData *UsrDat);
|
void Acc_CreateNewUsr (struct UsrData *UsrDat);
|
||||||
|
|
|
@ -4539,7 +4539,7 @@ void Act_AdjustActionWhenNoUsrLogged (void)
|
||||||
else if (Gbl.CurrentCty.Cty.CtyCod > 0) // Country selected
|
else if (Gbl.CurrentCty.Cty.CtyCod > 0) // Country selected
|
||||||
Gbl.Action.Act = ActSeeCtyInf;
|
Gbl.Action.Act = ActSeeCtyInf;
|
||||||
else
|
else
|
||||||
Gbl.Action.Act = Cfg_DEFAULT_ACTION_WHEN_NO_USR_LOGGED;
|
Gbl.Action.Act = ActFrmLogIn;
|
||||||
Tab_SetCurrentTab ();
|
Tab_SetCurrentTab ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -110,23 +110,30 @@
|
||||||
// TODO: Reply to all
|
// TODO: Reply to all
|
||||||
// TODO: Hour in exam announcement should start at six a.m.
|
// TODO: Hour in exam announcement should start at six a.m.
|
||||||
|
|
||||||
// TODO: FIX BUG: In results of search of students, no mark of confirmation is shown even if the student really has confirmed his/her registration in the course
|
|
||||||
// TODO: Forum SWAD should be always named "SWAD"?
|
// TODO: Forum SWAD should be always named "SWAD"?
|
||||||
// TODO: Enable chat for guests?
|
// TODO: Enable chat for guests?
|
||||||
// TODO: Go to forum post (or at least to forum thread) from social timeline and notifications?
|
// TODO: Go to forum post (or at least to forum thread) from social timeline and notifications?
|
||||||
// TODO: Width of column for data in notifications is too short
|
// TODO: Width of column for data in notifications is too short
|
||||||
|
// TODO: Change size of DegTypName in table deg_types from VARCHAR(32) TO VARCHAR(255)
|
||||||
|
// TODO: Remove AllowDirectLogIn in table deg_types
|
||||||
|
// TODO: If a follower follows a user whose profile is no longer visible ==> put icon to unfollow in list of followed
|
||||||
|
// TODO: FIX BUG: In results of search of students, no mark of confirmation is shown even if the student really has confirmed his/her registration in the course
|
||||||
|
|
||||||
|
// TODO: Remove edition of years in edition of degrees. Every degree will have years from 1 to 12 (and N.A.)
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 15.137.2 (2016-02-16)"
|
#define Log_PLATFORM_VERSION "SWAD 15.138 (2016-02-29)"
|
||||||
#define CSS_FILE "swad15.137.2.css"
|
#define CSS_FILE "swad15.137.2.css"
|
||||||
#define JS_FILE "swad15.131.3.js"
|
#define JS_FILE "swad15.131.3.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 15.138: Feb 29, 2016 Form to sign up is shown below login form. (196012 lines)
|
||||||
|
Version 15.137.3: Feb 29, 2016 Change in button when file uploading is done. (195986 lines)
|
||||||
Version 15.137.2: Feb 13, 2016 Fixed bug in search of my documents. (195985 lines)
|
Version 15.137.2: Feb 13, 2016 Fixed bug in search of my documents. (195985 lines)
|
||||||
Version 15.137.1: Feb 13, 2016 Fixed bug at the end of ranking (number too low). (195968 lines)
|
Version 15.137.1: Feb 13, 2016 Fixed bug at the end of ranking (number too low). (195968 lines)
|
||||||
Version 15.137: Feb 07, 2016 New figure about number of social notes. (195953 lines)
|
Version 15.137: Feb 07, 2016 New figure about number of social notes. (195953 lines)
|
||||||
|
|
|
@ -84,7 +84,6 @@
|
||||||
#define Cfg_ABOUT_LOGO_HEIGHT 40
|
#define Cfg_ABOUT_LOGO_HEIGHT 40
|
||||||
|
|
||||||
#define Cfg_DEFAULT_COLUMNS Lay_SHOW_BOTH_COLUMNS
|
#define Cfg_DEFAULT_COLUMNS Lay_SHOW_BOTH_COLUMNS
|
||||||
#define Cfg_DEFAULT_ACTION_WHEN_NO_USR_LOGGED ActFrmUsrAcc
|
|
||||||
|
|
||||||
#define Cfg_EXTERNAL_LOGIN_CLIENT_COMMAND "" // Client of the web service called by this CGI
|
#define Cfg_EXTERNAL_LOGIN_CLIENT_COMMAND "" // Client of the web service called by this CGI
|
||||||
#define Cfg_EXTERNAL_LOGIN_SERVICE_SHORT_NAME ""
|
#define Cfg_EXTERNAL_LOGIN_SERVICE_SHORT_NAME ""
|
||||||
|
@ -137,7 +136,6 @@
|
||||||
#define Cfg_ABOUT_LOGO_HEIGHT 32
|
#define Cfg_ABOUT_LOGO_HEIGHT 32
|
||||||
|
|
||||||
#define Cfg_DEFAULT_COLUMNS Lay_SHOW_BOTH_COLUMNS
|
#define Cfg_DEFAULT_COLUMNS Lay_SHOW_BOTH_COLUMNS
|
||||||
#define Cfg_DEFAULT_ACTION_WHEN_NO_USR_LOGGED ActFrmUsrAcc
|
|
||||||
|
|
||||||
#define Cfg_EXTERNAL_LOGIN_CLIENT_COMMAND "" // Client of the web service called by this CGI
|
#define Cfg_EXTERNAL_LOGIN_CLIENT_COMMAND "" // Client of the web service called by this CGI
|
||||||
#define Cfg_EXTERNAL_LOGIN_SERVICE_SHORT_NAME ""
|
#define Cfg_EXTERNAL_LOGIN_SERVICE_SHORT_NAME ""
|
||||||
|
@ -207,7 +205,6 @@
|
||||||
#define Cfg_ABOUT_LOGO_HEIGHT 32
|
#define Cfg_ABOUT_LOGO_HEIGHT 32
|
||||||
|
|
||||||
#define Cfg_DEFAULT_COLUMNS Lay_SHOW_BOTH_COLUMNS
|
#define Cfg_DEFAULT_COLUMNS Lay_SHOW_BOTH_COLUMNS
|
||||||
#define Cfg_DEFAULT_ACTION_WHEN_NO_USR_LOGGED ActFrmLogIn
|
|
||||||
|
|
||||||
#define Cfg_EXTERNAL_LOGIN_CLIENT_COMMAND "./prado" // Client of the web service called by this CGI
|
#define Cfg_EXTERNAL_LOGIN_CLIENT_COMMAND "./prado" // Client of the web service called by this CGI
|
||||||
#define Cfg_EXTERNAL_LOGIN_SERVICE_SHORT_NAME "PRADO"
|
#define Cfg_EXTERNAL_LOGIN_SERVICE_SHORT_NAME "PRADO"
|
||||||
|
@ -267,7 +264,6 @@
|
||||||
#define Cfg_ABOUT_LOGO_HEIGHT 32
|
#define Cfg_ABOUT_LOGO_HEIGHT 32
|
||||||
|
|
||||||
#define Cfg_DEFAULT_COLUMNS Lay_SHOW_BOTH_COLUMNS
|
#define Cfg_DEFAULT_COLUMNS Lay_SHOW_BOTH_COLUMNS
|
||||||
#define Cfg_DEFAULT_ACTION_WHEN_NO_USR_LOGGED ActFrmLogIn
|
|
||||||
|
|
||||||
#define Cfg_EXTERNAL_LOGIN_CLIENT_COMMAND "" // Client of the web service called by this CGI
|
#define Cfg_EXTERNAL_LOGIN_CLIENT_COMMAND "" // Client of the web service called by this CGI
|
||||||
#define Cfg_EXTERNAL_LOGIN_SERVICE_SHORT_NAME ""
|
#define Cfg_EXTERNAL_LOGIN_SERVICE_SHORT_NAME ""
|
||||||
|
|
|
@ -230,6 +230,19 @@ void Pre_RemoveOldPrefsFromIP (void)
|
||||||
DB_QueryDELETE (Query,"can not remove old preferences");
|
DB_QueryDELETE (Query,"can not remove old preferences");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/************** Put link to change language (edit preferences) ***************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
void Pre_PutLinkToChangeLanguage (void)
|
||||||
|
{
|
||||||
|
extern const char *Txt_Log_in;
|
||||||
|
|
||||||
|
Lay_PutContextualLink (ActEdiPrf,NULL,
|
||||||
|
"cty64x64.gif",
|
||||||
|
"Change language","Change language");
|
||||||
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/********************* Put a selector to select language *********************/
|
/********************* Put a selector to select language *********************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -45,6 +45,7 @@ void Pre_GetPrefsFromIP (void);
|
||||||
void Pre_SetPrefsFromIP (void);
|
void Pre_SetPrefsFromIP (void);
|
||||||
void Pre_RemoveOldPrefsFromIP (void);
|
void Pre_RemoveOldPrefsFromIP (void);
|
||||||
|
|
||||||
|
void Pre_PutLinkToChangeLanguage (void);
|
||||||
void Pre_PutSelectorToSelectLanguage (void);
|
void Pre_PutSelectorToSelectLanguage (void);
|
||||||
void Pre_AskChangeLanguage (void);
|
void Pre_AskChangeLanguage (void);
|
||||||
void Pre_ChangeLanguage (void);
|
void Pre_ChangeLanguage (void);
|
||||||
|
|
10
swad_text.c
10
swad_text.c
|
@ -11382,23 +11382,23 @@ const char *Txt_File_size =
|
||||||
|
|
||||||
const char *Txt_FILE_UPLOAD_Done =
|
const char *Txt_FILE_UPLOAD_Done =
|
||||||
#if L==1
|
#if L==1
|
||||||
"Finalitzar";
|
"Fet";
|
||||||
#elif L==2
|
#elif L==2
|
||||||
"Gemacht";
|
"Gemacht";
|
||||||
#elif L==3
|
#elif L==3
|
||||||
"Done";
|
"Done";
|
||||||
#elif L==4
|
#elif L==4
|
||||||
"Finalizar";
|
"Hecho";
|
||||||
#elif L==5
|
#elif L==5
|
||||||
"Fini";
|
"Terminé";
|
||||||
#elif L==6
|
#elif L==6
|
||||||
"Finalizar"; // Okoteve traducción
|
"Hecho"; // Okoteve traducción
|
||||||
#elif L==7
|
#elif L==7
|
||||||
"Fatto";
|
"Fatto";
|
||||||
#elif L==8
|
#elif L==8
|
||||||
"Gotowe";
|
"Gotowe";
|
||||||
#elif L==9
|
#elif L==9
|
||||||
"Terminar";
|
"Feito";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const char *Txt_File_with_the_logo =
|
const char *Txt_File_with_the_logo =
|
||||||
|
|
26
swad_user.c
26
swad_user.c
|
@ -1443,6 +1443,19 @@ void Usr_Logout (void)
|
||||||
Lay_AdvertisementMobile ();
|
Lay_AdvertisementMobile ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/*************************** Put link to log in ******************************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
void Usr_PutLinkToLogin (void)
|
||||||
|
{
|
||||||
|
extern const char *Txt_Log_in;
|
||||||
|
|
||||||
|
Lay_PutContextualLink (ActFrmLogIn,NULL,
|
||||||
|
"login-green64x64.png",
|
||||||
|
Txt_Log_in,Txt_Log_in);
|
||||||
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/************************ Write form for user log in *************************/
|
/************************ Write form for user log in *************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1450,7 +1463,6 @@ void Usr_Logout (void)
|
||||||
void Usr_WriteFormLogin (void)
|
void Usr_WriteFormLogin (void)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormBold[The_NUM_THEMES];
|
extern const char *The_ClassFormBold[The_NUM_THEMES];
|
||||||
extern const char *Txt_Create_account;
|
|
||||||
extern const char *Txt_Enter_from_X;
|
extern const char *Txt_Enter_from_X;
|
||||||
extern const char *Txt_Log_in;
|
extern const char *Txt_Log_in;
|
||||||
extern const char *Txt_User;
|
extern const char *Txt_User;
|
||||||
|
@ -1461,10 +1473,6 @@ void Usr_WriteFormLogin (void)
|
||||||
/***** Links to other actions *****/
|
/***** Links to other actions *****/
|
||||||
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
|
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
|
||||||
|
|
||||||
/* Link to create a new account */
|
|
||||||
Lay_PutContextualLink (ActFrmUsrAcc,NULL,"arroba64x64.gif",
|
|
||||||
Txt_Create_account,Txt_Create_account);
|
|
||||||
|
|
||||||
/* Link to enter from external site */
|
/* Link to enter from external site */
|
||||||
if (Cfg_EXTERNAL_LOGIN_URL[0] &&
|
if (Cfg_EXTERNAL_LOGIN_URL[0] &&
|
||||||
Cfg_EXTERNAL_LOGIN_SERVICE_SHORT_NAME[0])
|
Cfg_EXTERNAL_LOGIN_SERVICE_SHORT_NAME[0])
|
||||||
|
@ -1480,8 +1488,9 @@ void Usr_WriteFormLogin (void)
|
||||||
fprintf (Gbl.F.Out,"</a>");
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Link to send a new password */
|
/* Links to send a new password and to change language */
|
||||||
Pwd_PutLinkToSendNewPasswd ();
|
Pwd_PutLinkToSendNewPasswd ();
|
||||||
|
Pre_PutLinkToChangeLanguage ();
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
|
@ -1538,6 +1547,9 @@ void Usr_WriteFormLogin (void)
|
||||||
Lay_EndRoundFrameTable ();
|
Lay_EndRoundFrameTable ();
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
|
||||||
|
/***** Form to create a new account *****/
|
||||||
|
Acc_ShowFormRequestNewAccount ();
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2620,7 +2632,7 @@ void Usr_ShowFormsLogoutAndRole (void)
|
||||||
|
|
||||||
/***** Link to log out *****/
|
/***** Link to log out *****/
|
||||||
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
|
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
|
||||||
Lay_PutContextualLink (ActLogOut,NULL,"logout64x64.png",
|
Lay_PutContextualLink (ActLogOut,NULL,"logout-red64x64.png",
|
||||||
Txt_Log_out,Txt_Log_out);
|
Txt_Log_out,Txt_Log_out);
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
|
|
|
@ -247,6 +247,7 @@ bool Usr_ChkIfEncryptedUsrCodExists (const char *EncryptedUsrCod);
|
||||||
|
|
||||||
void Usr_WriteFormLoginLogout (void);
|
void Usr_WriteFormLoginLogout (void);
|
||||||
void Usr_Logout (void);
|
void Usr_Logout (void);
|
||||||
|
void Usr_PutLinkToLogin (void);
|
||||||
void Usr_WriteFormLogin (void);
|
void Usr_WriteFormLogin (void);
|
||||||
void Usr_WelcomeUsr (void);
|
void Usr_WelcomeUsr (void);
|
||||||
void Usr_PutFormLogIn (void);
|
void Usr_PutFormLogIn (void);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user