repo.or.cz
/
phpmyadmin
/
dkf.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Translation update done using Pootle.
[phpmyadmin/dkf.git]
/
scripts
/
convertcfg.pl
blob
14c0709f1fb7fb620d8e007f2abc4f66e7215e74
1
#!/usr/bin/perl
2
#
3
# $Id$
4
#
5
# Configuration converter
6
# Converts from old-style (Pre-2.3) configuration files to new format found in PMA-2.3
7
#
8
# Takes input from STDIN, sends output to STDOUT
9
#
10
11
while
(<>)
12
{
s/\$cfg(\w+)/\$cfg\[\'$1\'\]/g
;
13
print
;
14
}
15
16