mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-15 05:04:11 +02:00
Version 17.10.5
This commit is contained in:
parent
6cd32ccf9a
commit
073aaa905c
|
@ -252,13 +252,14 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 17.10.4 (2017-09-25)"
|
#define Log_PLATFORM_VERSION "SWAD 17.10.5 (2017-09-25)"
|
||||||
#define CSS_FILE "swad17.0.css"
|
#define CSS_FILE "swad17.0.css"
|
||||||
#define JS_FILE "swad16.206.3.js"
|
#define JS_FILE "swad16.206.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 17.10.5: Sep 25, 2017 Removed unused code in projects. (231354 lines)
|
||||||
Version 17.10.4: Sep 25, 2017 Changes in form behaviour when editing a project. (231365 lines)
|
Version 17.10.4: Sep 25, 2017 Changes in form behaviour when editing a project. (231365 lines)
|
||||||
Version 17.10.3: Sep 25, 2017 Check permission when editing projects.
|
Version 17.10.3: Sep 25, 2017 Check permission when editing projects.
|
||||||
Check permission when removing a user from a project. (231359 lines)
|
Check permission when removing a user from a project. (231359 lines)
|
||||||
|
|
|
@ -2468,20 +2468,6 @@ void Prj_RemoveUsrFromProjects (long UsrCod)
|
||||||
DB_QueryDELETE (Query,"can not remove user from projects");
|
DB_QueryDELETE (Query,"can not remove user from projects");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
|
||||||
/******************** Get number of projects in a course *********************/
|
|
||||||
/*****************************************************************************/
|
|
||||||
|
|
||||||
unsigned Prj_GetNumProjectsInCrs (long CrsCod)
|
|
||||||
{
|
|
||||||
char Query[256];
|
|
||||||
|
|
||||||
/***** Get number of projects in a course from database *****/
|
|
||||||
sprintf (Query,"SELECT COUNT(*) FROM projects WHERE CrsCod=%ld",
|
|
||||||
CrsCod);
|
|
||||||
return (unsigned) DB_QueryCOUNT (Query,"can not get number of projects in course");
|
|
||||||
}
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/******************** Get number of courses with projects ********************/
|
/******************** Get number of courses with projects ********************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -125,7 +125,6 @@ void Prj_RecFormProject (void);
|
||||||
void Prj_RemoveCrsProjects (long CrsCod);
|
void Prj_RemoveCrsProjects (long CrsCod);
|
||||||
void Prj_RemoveUsrFromProjects (long UsrCod);
|
void Prj_RemoveUsrFromProjects (long UsrCod);
|
||||||
|
|
||||||
unsigned Prj_GetNumProjectsInCrs(long CrsCod);
|
|
||||||
unsigned Prj_GetNumCoursesWithProjects (Sco_Scope_t Scope);
|
unsigned Prj_GetNumCoursesWithProjects (Sco_Scope_t Scope);
|
||||||
unsigned Prj_GetNumProjects (Sco_Scope_t Scope);
|
unsigned Prj_GetNumProjects (Sco_Scope_t Scope);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user