Last change
on this file since 713 was
382,
checked in by presbrey, 17 years ago
|
new SQL signup and server
|
-
Property svn:executable set to
*
|
File size:
367 bytes
|
Line | |
---|
1 | #!/usr/bin/php |
---|
2 | <?php |
---|
3 | |
---|
4 | list($h,$u,$p) = explode("\t",`/mit/scripts/sql/bin/get-password`); |
---|
5 | $d = $argv[1]; |
---|
6 | $drop_r = explode(',',file_get_contents('https://sql.mit.edu/main/do/batch/drop_db?d=' . urlencode($d) . '&u=' . urlencode($u) . '&p=' . urlencode($p))); |
---|
7 | $return_r = array_shift($drop_r); |
---|
8 | $dropped = implode(',',$drop_r); |
---|
9 | if ($return_r == '0') echo $dropped; |
---|
10 | |
---|
11 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.