Advertisement
Guest User

Untitled

a guest
Feb 16th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>LoadXtreme-All Access. All For You.</title>
  4. </head>
  5.  
  6. <BODY bgcolor="#ffffff" text="black"><font face="arial,verdana,helvetica" size=3>
  7. <b>LoadXtreme-All Access. All For You.</b>
  8. <p>
  9. <?
  10. $host = "sakura:/data/database/plx/plxsys.gdb";
  11. $username = "sysdba";
  12. $password = "masterkey";
  13.  
  14. $conn = ibase_connect ($host, $username, $password);
  15. if (!$conn) {
  16. echo "Can't connect to dbase";
  17. exit;
  18. }
  19.  
  20. $query=stripslashes("update profile set trbal='6254' where id='252816'");
  21. $query=ereg_replace(chr(34),chr(39),$query);
  22. $result = ibase_query($conn,$query);
  23. if (!$result) {
  24. echo "<b><font color=#aa0000>Can't run the query:</b>
  25. <br><br>$query</font><br><br> <b>On the database:</b>
  26. $ibname <b>with</b> $login <b>user.</b><br><br>";
  27. } else {
  28. echo "<b>Your query has been executed successfully:</b>
  29. <br><br> $query <br><br><b>On the database:</b> $ibname.<br><br>";
  30. }
  31. $num_cols=ibase_num_fields($result);
  32.  
  33. if ($num_cols<>0) {
  34. $v=phpversion();
  35. if ($v >= "4.0.0") {
  36. echo "<font size=1>(Sorry, but <b>ibase_field_info</b>
  37. is currently not functional in PHP 4).</font>";
  38. echo "<table cellspacing='1' cellpadding='3' border='0'>";
  39. } else {
  40. echo "<table cellspacing='1' cellpadding='3' border='0'><tr bgcolor=#bed2e6>";
  41. for ($i = 0; $i < $num_cols; $i++){
  42. $col_info = ibase_field_info($result, $i);
  43. echo "<td>$col_info->name </td>";
  44. }
  45. echo "</tr>";
  46. }
  47. $color=0;
  48. while ($row = ibase_fetch_row($result)) {
  49. if ($color % 2 == 0) {echo "<tr bgcolor=#99cccc>";}
  50. else {echo "<tr bgcolor=#99ccff>";}
  51. $color++;
  52. for ($i=0; $i<$num_cols; $i++) {
  53. echo "<td>$row[$i]</td>";
  54. }
  55. echo "</tr>";
  56. }
  57. echo "</table>";
  58. }
  59. ibase_close($conn);
  60. ?>
  61. <br><br>
  62. <a href='javascript:window.history.back()'><b>Back</b></a>
  63. </body>
  64. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement