source:
tags/expresso/2.0.0.rc1/doc-expressolivre/debian/arqs-conf/makedn.php
@
67
Revision 67, 252 bytes checked in by niltonneto, 17 years ago (diff) | |
---|---|
|
Line | |
---|---|
1 | #!/usr/bin/php -q |
2 | <?php |
3 | global $argv; |
4 | $domain = $argv[1]; |
5 | |
6 | $array = split ('\.', $domain); |
7 | |
8 | $dn = ''; |
9 | $i = 0; |
10 | foreach ($array as $part_domain) |
11 | { |
12 | $dn_array[$i] = "dc=$part_domain"; |
13 | $i++; |
14 | } |
15 | |
16 | $dn = implode(",", $dn_array); |
17 | |
18 | echo $dn; |
19 | ?> |
Note: See TracBrowser
for help on using the repository browser.