Implemented nodesettings in backend files and qware template
This commit is contained in:
parent
dc632f56c5
commit
c9c07284aa
@ -435,10 +435,14 @@ function systemPrint($data)
|
|||||||
* @access private
|
* @access private
|
||||||
* @return chaine entier noeud de configuration
|
* @return chaine entier noeud de configuration
|
||||||
*/
|
*/
|
||||||
function recupCommunity($get='id', $langcode="fr")
|
function recupCommunity($node=false, $get='id', $langcode="fr")
|
||||||
{
|
{
|
||||||
/* Récupération de la communauté courante */
|
/* Récupération de la communauté courante */
|
||||||
|
if( $node && is_numeric($node))
|
||||||
|
$myEntryNode =$node;
|
||||||
|
else
|
||||||
$myEntryNode =$GLOBALS["SYSTEM_USER_SESSION"]->entryNodeId; /* Noeud d'entrée de l'utilisateur */
|
$myEntryNode =$GLOBALS["SYSTEM_USER_SESSION"]->entryNodeId; /* Noeud d'entrée de l'utilisateur */
|
||||||
|
|
||||||
$myTree =$GLOBALS["SYSTEM_MANAGER"]["TREE_NODE"]->createInstance($myEntryNode); /* Récupération du Tree correspondant */
|
$myTree =$GLOBALS["SYSTEM_MANAGER"]["TREE_NODE"]->createInstance($myEntryNode); /* Récupération du Tree correspondant */
|
||||||
|
|
||||||
$nodeId=NULL;
|
$nodeId=NULL;
|
||||||
|
@ -34,8 +34,8 @@ if ( !defined('SYSTEM_IN') )
|
|||||||
*
|
*
|
||||||
* <p>Contrôle l'existence de caractères non autorisés dans une chaîne de caractères</p>
|
* <p>Contrôle l'existence de caractères non autorisés dans une chaîne de caractères</p>
|
||||||
*
|
*
|
||||||
* @param chaine
|
* @param $string
|
||||||
* @param pattern
|
* @param $pattern
|
||||||
* @return bolean true/false
|
* @return bolean true/false
|
||||||
*/
|
*/
|
||||||
function checkDataChars($string, $pattern)
|
function checkDataChars($string, $pattern)
|
||||||
@ -51,7 +51,7 @@ function checkDataChars($string, $pattern)
|
|||||||
*
|
*
|
||||||
* <P>Transforme les caractères HTML d'une chaine en caractères courant</P>
|
* <P>Transforme les caractères HTML d'une chaine en caractères courant</P>
|
||||||
*
|
*
|
||||||
* @param chaine
|
* @param $string
|
||||||
*/
|
*/
|
||||||
function unhtmlentities ($string)
|
function unhtmlentities ($string)
|
||||||
{
|
{
|
||||||
@ -67,11 +67,10 @@ function unhtmlentities ($string)
|
|||||||
*
|
*
|
||||||
* <P>Transforme les caractères HTML d'une chaine en caractères courant</P>
|
* <P>Transforme les caractères HTML d'une chaine en caractères courant</P>
|
||||||
*
|
*
|
||||||
* @param chaine
|
* @param $string
|
||||||
*/
|
*/
|
||||||
function htmlentitiesconv( $string )
|
function htmlentitiesconv( $string )
|
||||||
{
|
{
|
||||||
// var_dump($string);
|
|
||||||
if( !empty($string) && $string != "" )
|
if( !empty($string) && $string != "" )
|
||||||
return (htmlentities($string, ENT_QUOTES, SYSTEM_DEFAULT_HTMLENTITIES));
|
return (htmlentities($string, ENT_QUOTES, SYSTEM_DEFAULT_HTMLENTITIES));
|
||||||
else
|
else
|
||||||
@ -83,7 +82,7 @@ function htmlentitiesconv( $string )
|
|||||||
*
|
*
|
||||||
* <P>Transforme les caractères HTML d'une chaine en caractères courant</P>
|
* <P>Transforme les caractères HTML d'une chaine en caractères courant</P>
|
||||||
*
|
*
|
||||||
* @param chaine
|
* @param $string
|
||||||
*/
|
*/
|
||||||
function unhtmlspecialchars( $mixed, $quote_style = ENT_QUOTES ) {
|
function unhtmlspecialchars( $mixed, $quote_style = ENT_QUOTES ) {
|
||||||
if(is_array($mixed)){
|
if(is_array($mixed)){
|
||||||
@ -108,7 +107,7 @@ function mktimetodate($timestamp, $mask){
|
|||||||
*
|
*
|
||||||
* <P>Transforme une chaine en date</P>
|
* <P>Transforme une chaine en date</P>
|
||||||
*
|
*
|
||||||
* @param chaine
|
* @param $string
|
||||||
* @return date formatée
|
* @return date formatée
|
||||||
*/
|
*/
|
||||||
function strgbtomktime($in){
|
function strgbtomktime($in){
|
||||||
@ -130,7 +129,7 @@ function strgbtomktime($in){
|
|||||||
*
|
*
|
||||||
* <P>Transforme une chaine en date</P>
|
* <P>Transforme une chaine en date</P>
|
||||||
*
|
*
|
||||||
* @param chaine
|
* @param $string
|
||||||
* @return date formatée
|
* @return date formatée
|
||||||
*/
|
*/
|
||||||
function strfrtomktime($in){
|
function strfrtomktime($in){
|
||||||
@ -150,11 +149,11 @@ function strfrtomktime($in){
|
|||||||
*
|
*
|
||||||
* <P>Transforme une date au format fr en date au format gb</P>
|
* <P>Transforme une date au format fr en date au format gb</P>
|
||||||
*
|
*
|
||||||
* @param chaine
|
* @param $date
|
||||||
* @param "d" pour date ou "h" heure
|
* @param "d" pour date ou "h" heure
|
||||||
* @return date formatée
|
* @return date formatée
|
||||||
*/
|
*/
|
||||||
Function datefrtogb($date,$format="d")
|
Function datefrtogb($date, $format="d")
|
||||||
{
|
{
|
||||||
$jour_date = substr($date,0,2);
|
$jour_date = substr($date,0,2);
|
||||||
$mois_date = substr($date,3,2);
|
$mois_date = substr($date,3,2);
|
||||||
@ -212,7 +211,7 @@ Function dategbtofr($date,$format="d")
|
|||||||
* @param booléen encoder au format url
|
* @param booléen encoder au format url
|
||||||
* @desc url de redirection
|
* @desc url de redirection
|
||||||
*/
|
*/
|
||||||
function redirect($url,$encode=false)
|
function redirect($url, $encode=false)
|
||||||
{
|
{
|
||||||
if ($encode === true)
|
if ($encode === true)
|
||||||
$url=urlencode($url);
|
$url=urlencode($url);
|
||||||
@ -383,12 +382,10 @@ function objectSearch($needle, $haystack, $strict=false)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fonction getAllRights
|
* Recherche tous les droits disponibles pour une classe spécifiée
|
||||||
*<P>recherche tous les droits disponible pour une classe spécifié</P>
|
* @param $classname Nom de la classe
|
||||||
*<P>retourne un tableau de droits</P>
|
|
||||||
* @param chaine classname (nom de la classe)
|
|
||||||
* @access public
|
* @access public
|
||||||
* @return tableau (tableau des droits)
|
* @return Tableau des droits
|
||||||
*/
|
*/
|
||||||
function getAllRights($classname){
|
function getAllRights($classname){
|
||||||
$tab = get_class_methods($classname);
|
$tab = get_class_methods($classname);
|
||||||
@ -399,7 +396,7 @@ function getAllRights($classname){
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function permettant de verifié la validité d'un mail saisi
|
* Function permettant de verifier la validité d'une adresse courriel
|
||||||
* @access public
|
* @access public
|
||||||
* @return chaine chaine code message
|
* @return chaine chaine code message
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user