Suggested patchs
This commit is contained in:
parent
3b142816eb
commit
34594c884f
|
@ -292,6 +292,7 @@ class DB_Sql {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $Name
|
* @param string $Name
|
||||||
|
* @return integer
|
||||||
*/
|
*/
|
||||||
function f($Name) {
|
function f($Name) {
|
||||||
return $this->Record[$Name];
|
return $this->Record[$Name];
|
||||||
|
|
|
@ -223,7 +223,6 @@ class m_action {
|
||||||
*
|
*
|
||||||
* @global m_err $err
|
* @global m_err $err
|
||||||
* @global m_mysql $db
|
* @global m_mysql $db
|
||||||
* @param type $all
|
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
function get_old() {
|
function get_old() {
|
||||||
|
|
|
@ -312,8 +312,8 @@ class m_admin {
|
||||||
* @global type $err
|
* @global type $err
|
||||||
* @global type $mem
|
* @global type $mem
|
||||||
* @global type $cuid
|
* @global type $cuid
|
||||||
* @param boolean $all
|
* @param integer $all
|
||||||
* @param boolean $creator
|
* @param integer $creator
|
||||||
* @param string $pattern
|
* @param string $pattern
|
||||||
* @param string $pattern_type
|
* @param string $pattern_type
|
||||||
* @return boolean | array an associative array containing all the fields of the
|
* @return boolean | array an associative array containing all the fields of the
|
||||||
|
@ -564,11 +564,11 @@ class m_admin {
|
||||||
* @param string $prenom First name of the account owner
|
* @param string $prenom First name of the account owner
|
||||||
* @param string $mail Email address of the account owner, useful to get
|
* @param string $mail Email address of the account owner, useful to get
|
||||||
* one's lost password
|
* one's lost password
|
||||||
* @param boolean $canpass
|
* @param integer $canpass
|
||||||
* @param string $type Account type for quotas
|
* @param string $type Account type for quotas
|
||||||
* @param int $duration
|
* @param int $duration
|
||||||
* @param string $notes
|
* @param string $notes
|
||||||
* @param boolean $force
|
* @param integer $force
|
||||||
* @param boolean $create_dom
|
* @param boolean $create_dom
|
||||||
* @param int $db_server_id
|
* @param int $db_server_id
|
||||||
* @return boolean Returns FALSE if an error occurs, TRUE if not.
|
* @return boolean Returns FALSE if an error occurs, TRUE if not.
|
||||||
|
@ -1413,7 +1413,7 @@ EOF;
|
||||||
* @param int $maxsize Maximum Password size
|
* @param int $maxsize Maximum Password size
|
||||||
* @param int $classcount How many class of characters must this password have
|
* @param int $classcount How many class of characters must this password have
|
||||||
* @param boolean $allowlogin Do we allow the password to be like the login ?
|
* @param boolean $allowlogin Do we allow the password to be like the login ?
|
||||||
* @return booleanTRUE if the policy has been edited, or FALSE if an error occured.
|
* @return boolean if the policy has been edited, or FALSE if an error occured.
|
||||||
*/
|
*/
|
||||||
function editPolicy($policy,$minsize,$maxsize,$classcount,$allowlogin) {
|
function editPolicy($policy,$minsize,$maxsize,$classcount,$allowlogin) {
|
||||||
global $db;
|
global $db;
|
||||||
|
|
|
@ -99,8 +99,8 @@ class m_bro {
|
||||||
* @param string $dir
|
* @param string $dir
|
||||||
* @global m_mem $mem
|
* @global m_mem $mem
|
||||||
* @param string $dir Dossier absolu que l'on souhaite vérifier
|
* @param string $dir Dossier absolu que l'on souhaite vérifier
|
||||||
* @param boolean $strip
|
* @param integer $strip
|
||||||
* @return boolean|string Retourne le nom du dossier vrifi, relatif au
|
* @return false|string Retourne le nom du dossier vrifi, relatif au
|
||||||
* dossier de l'utilisateur courant, ventuellement corrig.
|
* dossier de l'utilisateur courant, ventuellement corrig.
|
||||||
* ou FALSE si le dossier n'est pas dans le dossier de l'utilisateur.
|
* ou FALSE si le dossier n'est pas dans le dossier de l'utilisateur.
|
||||||
*/
|
*/
|
||||||
|
@ -543,8 +543,6 @@ class m_bro {
|
||||||
*
|
*
|
||||||
* @global m_err $err
|
* @global m_err $err
|
||||||
* @param string $R Dossier dans lequel se trouve les fichiers renommer.
|
* @param string $R Dossier dans lequel se trouve les fichiers renommer.
|
||||||
* @param array $old Ancien nom des fichiers
|
|
||||||
* @param array $new Nouveau nom des fichiers
|
|
||||||
* @param boolean $verbose Shall we 'echo' what we did ?
|
* @param boolean $verbose Shall we 'echo' what we did ?
|
||||||
* @return boolean TRUE Si les fichiers ont t renomms, FALSE si une erreur s'est produite.
|
* @return boolean TRUE Si les fichiers ont t renomms, FALSE si une erreur s'est produite.
|
||||||
*/
|
*/
|
||||||
|
@ -645,7 +643,7 @@ class m_bro {
|
||||||
* @param string $file Full or relative path to the archive
|
* @param string $file Full or relative path to the archive
|
||||||
* @param string $dest Path of the extract destination, the
|
* @param string $dest Path of the extract destination, the
|
||||||
* same directory as the archive by default
|
* same directory as the archive by default
|
||||||
* @return boolean != 0 on error
|
* @return integer|null != 0 on error
|
||||||
*/
|
*/
|
||||||
function ExtractFile($file, $dest=null) {
|
function ExtractFile($file, $dest=null) {
|
||||||
global $err,$cuid,$mem,$action;
|
global $err,$cuid,$mem,$action;
|
||||||
|
@ -786,7 +784,7 @@ class m_bro {
|
||||||
* @global m_err $err
|
* @global m_err $err
|
||||||
* @param string $R Dossier dans lequel on cherche le fichier
|
* @param string $R Dossier dans lequel on cherche le fichier
|
||||||
* @param string $file Fichier dont on souhaite obtenir le contenu.
|
* @param string $file Fichier dont on souhaite obtenir le contenu.
|
||||||
* @return boolean TRUE si le fichier a bien été mis sur
|
* @return string|false TRUE si le fichier a bien été mis sur
|
||||||
* echo, ou FALSE si une erreur est survenue.
|
* echo, ou FALSE si une erreur est survenue.
|
||||||
*/
|
*/
|
||||||
function content($R,$file) {
|
function content($R,$file) {
|
||||||
|
@ -869,7 +867,7 @@ class m_bro {
|
||||||
* @global m_err $err
|
* @global m_err $err
|
||||||
* @param string $dir
|
* @param string $dir
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @return boolean
|
* @return null|boolean
|
||||||
*/
|
*/
|
||||||
function can_edit($dir,$name) {
|
function can_edit($dir,$name) {
|
||||||
global $mem,$err;
|
global $mem,$err;
|
||||||
|
@ -958,7 +956,7 @@ class m_bro {
|
||||||
* @global m_err $err
|
* @global m_err $err
|
||||||
* @param string $R
|
* @param string $R
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @return boolean
|
* @return null|false
|
||||||
*/
|
*/
|
||||||
function content_send($R,$file) {
|
function content_send($R,$file) {
|
||||||
global $err;
|
global $err;
|
||||||
|
@ -985,7 +983,7 @@ class m_bro {
|
||||||
* écrasé sans confirmation.
|
* écrasé sans confirmation.
|
||||||
* @param string $R Dossier dans lequel on modifie le fichier
|
* @param string $R Dossier dans lequel on modifie le fichier
|
||||||
* @param string $texte Texte du fichier à sauver dedans
|
* @param string $texte Texte du fichier à sauver dedans
|
||||||
* @return boolean TRUE si tout s'est bien pass, FALSE si une erreur s'est produite.
|
* @return false|null TRUE si tout s'est bien pass, FALSE si une erreur s'est produite.
|
||||||
*/
|
*/
|
||||||
function save($file,$R,$texte) {
|
function save($file,$R,$texte) {
|
||||||
global $err;
|
global $err;
|
||||||
|
@ -1152,7 +1150,7 @@ class m_bro {
|
||||||
* @global m_mem $mem
|
* @global m_mem $mem
|
||||||
* @global m_err $err
|
* @global m_err $err
|
||||||
* @param string $dir Le chemin destination du tarball produit
|
* @param string $dir Le chemin destination du tarball produit
|
||||||
* @return boolean
|
* @return boolean|null
|
||||||
*/
|
*/
|
||||||
function alternc_export_data($dir){
|
function alternc_export_data($dir){
|
||||||
global $mem,$err;
|
global $mem,$err;
|
||||||
|
|
Loading…
Reference in New Issue