Version 18.33.2

This commit is contained in:
Antonio Cañas Vargas 2019-02-11 21:35:36 +01:00
parent dbf6d333e9
commit 9635fc36d6
5 changed files with 37 additions and 7 deletions

View File

@ -82,7 +82,7 @@ extern struct Globals Gbl;
/*****************************************************************************/ /*****************************************************************************/
static void Ctr_Configuration (bool PrintView); static void Ctr_Configuration (bool PrintView);
static void Ctr_PutIconsToPrintAndUpload (void); static void Ctr_PutIconsCtrConfig (void);
static void Ctr_PutIconToChangePhoto (void); static void Ctr_PutIconToChangePhoto (void);
static void Ctr_ShowNumUsrsInCrssOfCtr (Rol_Role_t Role); static void Ctr_ShowNumUsrsInCrssOfCtr (Rol_Role_t Role);
@ -326,7 +326,7 @@ static void Ctr_Configuration (bool PrintView)
Box_StartBox (NULL,NULL,NULL, Box_StartBox (NULL,NULL,NULL,
NULL,Box_NOT_CLOSABLE); NULL,Box_NOT_CLOSABLE);
else else
Box_StartBox (NULL,NULL,Ctr_PutIconsToPrintAndUpload, Box_StartBox (NULL,NULL,Ctr_PutIconsCtrConfig,
Hlp_CENTRE_Information,Box_NOT_CLOSABLE); Hlp_CENTRE_Information,Box_NOT_CLOSABLE);
/***** Title *****/ /***** Title *****/
@ -686,19 +686,22 @@ static void Ctr_Configuration (bool PrintView)
/************ Put contextual icons in configuration of a centre **************/ /************ Put contextual icons in configuration of a centre **************/
/*****************************************************************************/ /*****************************************************************************/
static void Ctr_PutIconsToPrintAndUpload (void) static void Ctr_PutIconsCtrConfig (void)
{ {
/***** Link to print info about centre *****/ /***** Put icon to print info about centre *****/
Ico_PutContextualIconToPrint (ActPrnCtrInf,NULL); Ico_PutContextualIconToPrint (ActPrnCtrInf,NULL);
/***** Put icon to view places *****/
Plc_PutIconToViewPlaces ();
if (Gbl.Usrs.Me.Role.Logged >= Rol_CTR_ADM) if (Gbl.Usrs.Me.Role.Logged >= Rol_CTR_ADM)
// Only centre admins, institution admins and system admins // Only centre admins, institution admins and system admins
// have permission to upload logo and photo of the centre // have permission to upload logo and photo of the centre
{ {
/***** Link to upload logo of centre *****/ /***** Put icon to upload logo of centre *****/
Log_PutIconToChangeLogo (Sco_SCOPE_CTR); Log_PutIconToChangeLogo (Sco_SCOPE_CTR);
/***** Link to upload photo of centre *****/ /***** Put icon to upload photo of centre *****/
Ctr_PutIconToChangePhoto (); Ctr_PutIconToChangePhoto ();
} }
} }

View File

@ -338,6 +338,8 @@ Buenos d
// TODO: Pedro Villar Castro: // TODO: Pedro Villar Castro:
// Al asignar un TFG a alumnos, no escribir el DNI del alumno, sino escogerlo de una lista de entre los alumnos inscritos en la asignatura. // Al asignar un TFG a alumnos, no escribir el DNI del alumno, sino escogerlo de una lista de entre los alumnos inscritos en la asignatura.
// TODO: Cuando se muestre un usuario duplicado, que SWAD calcvule automáticamente sus cifras no calculadas sin tener que pulsar en Calcular
// TODO: Miguel Damas Hermoso sugiere poder editar texto enriquecido (Markdown) en las preguntas de tipo test // TODO: Miguel Damas Hermoso sugiere poder editar texto enriquecido (Markdown) en las preguntas de tipo test
// TODO: No se puede pulsar sobre la foto de un remitente de un mensaje recibido. // TODO: No se puede pulsar sobre la foto de un remitente de un mensaje recibido.
@ -345,6 +347,14 @@ Buenos d
// TODO: Un administrador de centro ahora no tiene permisos para editar horario asignatura, pero le sale el icono de editar // TODO: Un administrador de centro ahora no tiene permisos para editar horario asignatura, pero le sale el icono de editar
// O le damos permisos o quitamos el icono de editar. Comprobar para admin. de titulaciones. // O le damos permisos o quitamos el icono de editar. Comprobar para admin. de titulaciones.
// TODO: "No mostrar de nuevo" debería llevar un icono aspa en lugar de una papelera
// TODO: Cifras > Jearquía: cambiar ejes X e Y en la tabla para que se vea más estrecho -> mejor en móviles
// TODO: Mensajes > Anuncios cuando no estás identificado, deberían salir algunos, ¿por qué no indicar que se muestren para todos?
// TODO: En el timeline, cambiar el icono de favorito de estrella a corazón (¿cambiar a "Me gusta"?
// TODO: Actualizar ayuda en GitHub, por ejemplo Preferencias ahora es Ajustes. // TODO: Actualizar ayuda en GitHub, por ejemplo Preferencias ahora es Ajustes.
// TODO: Chequear todas las directivas <label> // TODO: Chequear todas las directivas <label>
@ -353,6 +363,14 @@ Buenos d
// TODO: Chequear todos los iconos .gif y .png que restan, concretamente los de file_browser y los de redes sociales // TODO: Chequear todos los iconos .gif y .png que restan, concretamente los de file_browser y los de redes sociales
// TODO: Arreglar tamaño de iconos al ver la asistencia de un estudiante.
// TODO: Fix bug: En una ficha de un alumno, al pulsar sobre "Ver test" no se ven los test que ha hecho
// TODO: En Accesos por usuario de una asignatura: cambiar "Tipo" -> "Rol"
// TODO: Sale de vez en cuando un mensaje "Can not get information about a file or folder.", por ejemplo en el timeline.
/*****************************************************************************/ /*****************************************************************************/
/****************************** Public constants *****************************/ /****************************** Public constants *****************************/
/*****************************************************************************/ /*****************************************************************************/
@ -372,10 +390,11 @@ En OpenSWAD:
ps2pdf source.ps destination.pdf ps2pdf source.ps destination.pdf
*/ */
#define Log_PLATFORM_VERSION "SWAD 18.33.1 (2019-01-15)" #define Log_PLATFORM_VERSION "SWAD 18.33.2 (2019-02-11)"
#define CSS_FILE "swad18.33.css" #define CSS_FILE "swad18.33.css"
#define JS_FILE "swad18.32.1.js" #define JS_FILE "swad18.32.1.js"
/* /*
Version 18.33.2: Feb 11, 2019 Icon to view places in centre configuration. (239093 lines)
Version 18.33.1: Jan 15, 2019 Fixed bug in file browser, reported by Miguel Damas. Version 18.33.1: Jan 15, 2019 Fixed bug in file browser, reported by Miguel Damas.
SVG icons for folders in file browser. (239076 lines) SVG icons for folders in file browser. (239076 lines)
Copy the following icons to icon public directory: Copy the following icons to icon public directory:

View File

@ -81,6 +81,8 @@ static void Cla_CreateClassroom (struct Classroom *Cla);
/************************* List all the classrooms ***************************/ /************************* List all the classrooms ***************************/
/*****************************************************************************/ /*****************************************************************************/
#define A SIZE_MAX
void Cla_SeeClassrooms (void) void Cla_SeeClassrooms (void)
{ {
extern const char *Hlp_CENTRE_Classrooms; extern const char *Hlp_CENTRE_Classrooms;

View File

@ -104,6 +104,7 @@ void Gbl_InitializeGlobals (void)
Gbl.TimeGenerationInMicroseconds = Gbl.TimeSendInMicroseconds = 0L; Gbl.TimeGenerationInMicroseconds = Gbl.TimeSendInMicroseconds = 0L;
Gbl.PID = getpid (); Gbl.PID = getpid ();
Sta_GetRemoteAddr (); Sta_GetRemoteAddr ();
Cry_CreateUniqueNameEncrypted (Gbl.UniqueNameEncrypted); Cry_CreateUniqueNameEncrypted (Gbl.UniqueNameEncrypted);
srand ((unsigned int) Gbl.StartExecutionTimeUTC); // Initialize seed for rand() srand ((unsigned int) Gbl.StartExecutionTimeUTC); // Initialize seed for rand()

View File

@ -109,6 +109,11 @@ int main (void)
{ {
Par_CreateListOfParams (); Par_CreateListOfParams ();
Par_GetMainParameters (); Par_GetMainParameters ();
/*
if (!strcmp (Gbl.IP,"83.50.221.168"))
fprintf (stdout,"Status: 403\r\n\r\n");
*/
Hie_InitHierarchy (); Hie_InitHierarchy ();
if (!Gbl.WebService.IsWebService) if (!Gbl.WebService.IsWebService)
{ {