[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3master/usr/share/se3/includes/ -> config.inc.sh (summary)

(no description)

File Size: 147 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 function

  usage()

Functions
Functions that are not part of a class:

usage(echo "script permettant la lecture des infos dans la table params de mysql" echo "usage: $0 -c -l -p -b -h -s -m -d -o -f"echo " -c : parametres de configuration generale, ex urlse3"echo " -l : parametres ldap, ex ldap_base_dn"echo " -p : chemins, ex path_to_wwwse3"echo " -b : parametres sauvegarde, ex bck_user"echo " -m : parametres masques, ex xppass"echo " -s : parametres systemes, ex quota_warn_home "echo " -d : parametres dhcp, ex dhcp_iface"echo " -o : only : uniquement les variables pour interroger mysql"echo " -h : show this help"echo " -v : mode verbeux : liste les variables initialisees"echo " -f : ecrit les parametres selectionnes dans les ficihers cache /etc/se3/config_*.cache.sh "exit $1}function getmypasswd {WWWPATH="/var/www"if [ -e $WWWPATH/se3/includes/config.inc.php ]; thendbhost=`cat $WWWPATH/se3/includes/config.inc.php | grep "dbhost=" | cut -d = -f 2 |cut -d \" -f 2`dbname=`cat $WWWPATH/se3/includes/config.inc.php | grep "dbname=" | cut -d = -f 2 |cut -d \" -f 2`dbuser=`cat $WWWPATH/se3/includes/config.inc.php | grep "dbuser=" | cut -d = -f 2 |cut -d \" -f 2`dbpass=`cat $WWWPATH/se3/includes/config.inc.php | grep "dbpass=" | cut -d = -f 2 |cut -d \" -f 2`elseecho "Fichier de conf inaccessible."exit 1fi}function getmysql {getmypasswdif [ "$2" == "2" ]; thenecho "fifor i in $(echo "SELECT name FROM params WHERE cat='$1'" | mysql -h $dbhost $dbname -u $dbuser -p$dbpass | grep -v "^name$")   X-Ref
No description



Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1