Untitled

From Gabor, 9 Years ago, written in Plain Text, viewed 617 times.
URL https://paste.godclan.hu/view/33dVaD6R Embed
Download Paste or View Raw
  1. hw_id_from_file = fileread("hw_id.txt");
  2. hw_id_from_file = md5(hw_id);
  3.  
  4. if (hw_id_from_file == HW_ID()) {
  5.  a program működik!
  6. }
  7. else {
  8.  write("Írd be a serialt!");
  9.  serial = read();
  10.  serial = md5(serial);
  11.  sendToServer(serial, HW_ID);
  12.  
  13.  response = getServerResponse();
  14.  if (response == MAX_COMPUTER_NUMBER_REACHED) {
  15.   write("Nincs több géped, amire felteheted!");
  16.   return;
  17.  }
  18.  if (response == WRONG_SERIAL) {
  19.   write("Rossz serial kód!");
  20.   return;
  21.  }
  22.  if (response == SUCCESS) {
  23.   filewrite("hw_id.txt", HW_ID());
  24.   a program működik!
  25.  }
  26. }

Reply to "Untitled"

Here you can reply to the paste above