- Timestamp:
- May 29, 2007, 11:28:41 PM (17 years ago)
- Location:
- locker/sql/bin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
locker/sql/bin/create-database
r131 r326 4 4 list($h,$u,$p) = explode("\t",`/mit/scripts/sql/bin/get-password`); 5 5 $d = $argv[1]; 6 $create_r = explode(',',file_get_contents( "http://sql.mit.edu/~sql/main/do/batch/create_db?d=$d&u=$u&p=$p"));6 $create_r = explode(',',file_get_contents('http://sql.mit.edu/~sql/main/do/batch/create_db?d=' . urlencode($d) . '&u=' . urlencode($u) . '&p=' . urlencode($p))); 7 7 $return_r = array_shift($create_r); 8 8 $created = implode(',',$create_r); -
locker/sql/bin/get-next-database
r131 r326 5 5 $newdb = str_replace($u.'+','',$argv[1]); 6 6 $testdb = str_replace('.','',$u).'+'.$newdb; 7 $dbs = explode("\n",file_get_contents( "http://sql.mit.edu/~sql/tools/list_dbs.php?h=$h&u=$u&p=$p"));7 $dbs = explode("\n",file_get_contents('http://sql.mit.edu/~sql/tools/list_dbs.php?h=' . urlencode($h) . '&u=' . urlencode($u) . '&p=' . urlencode($p))); 8 8 if (in_array($testdb,$dbs)) { 9 9 $i = 1; -
locker/sql/bin/get-password
r234 r326 32 32 } 33 33 34 $sql_status = file_get_contents('http://sql.mit.edu/~sql/main/do/batch/status?u=' .$env_user);34 $sql_status = file_get_contents('http://sql.mit.edu/~sql/main/do/batch/status?u=' . urlencode($env_user)); 35 35 switch($sql_status) { 36 36 case 1:
Note: See TracChangeset
for help on using the changeset viewer.