daily pastebin goal


a guest Aug 12th, 2017 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   if(!empty($_POST['edit'])){
  2.     echo '<script>ip =  prompt("Nová Ip adresa");</script>';
  3.     echo '<script>port = prompt("Nový port");</script>';
  4.     echo '<script>prikaz = prompt("Nový příkaz");</script>';
  5.     echo '<script>komentar = prompt("Nová komentar");</script>';
  6.     echo '<form method="POST" name="editace">';
  7.     echo '<input type="hidden" name="ip1">';
  8.     echo '<input type="hidden" name="port1">';
  9.     echo '<input type="hidden" name="prikaz1">';
  10.     echo '<input type="hidden" name="komentar1">';
  11.     echo '<input type="hidden" value="'.$_POST['smaz'].'" name="id">';
  12.     echo '</form>';
  13.     echo '<script>document.editace.ip1.value= ip; document.editace.port1.value= port; document.forms["editace"].prikaz1.value= prikaz; document.forms["editace"].komentar1.value= komentar; document.forms["editace"].submit();</script>';
  15.   }
  16.         if(!empty($_POST['uprav'])){
  17.         connect_db();
  18.         mysql_query("UPDATE ".PREFIX."cpc SET ip='".$_POST['ip1']."', port='".$_POST['port1']."', prikaz='".$_POST['prikaz1']."', komentar='".$_POST['komentar1']."',  WHERE id='".$_POST['id']."' ") or die (mysql_error());
  19.         close_db();
  20.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand