Gepost door: Rene Kreijveld
in unix/linux, joomla op
30 juli 2009
In my daily work as an Internet developer I love working on the Unix/Linux commandline. It is a very powerfull tool that can get things done very quickly and efficient.
I'd like to share two handy scripts that I use almost daily. First one is joomlainfo:
#!/bin/sh
#
# joomlainfo
# Provides basic information about a Joomla 1.5.x installation.
#
# Written by Rene Kreijveld, Webcreatives
# rene.kreijveld [at] webcreatives.nl
#
database=`grep "db = " ./configuration.php | cut -d \' -f 2`
dbuser=`grep "user = " ./configuration.php | grep -v ftp_user | grep -v smtpuser | cut -d \' -f 2`
password=`grep "password = " ./configuration.php | cut -d \' -f 2`
prefix=`grep "dbprefix = " ./configuration.php | cut -d \' -f 2`
versm=`grep var..RELEASE ./libraries/joomla/version.php | cut -d \' -f 2`
verss=`grep var..DEV_LEVEL ./libraries/joomla/version.php | cut -d \' -f 2`