Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.0.9.0
  8. * @ Author : DeZender
  9. * @ Release on : 08.08.2019
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function wpaff_blmaktif()
  15. {
  16. echo '<div class="notice notice-warning is-dismissible">' . "\r\n" . ' <p>WP Affiliasi belum aktif. Silahkan masuk menu <a href="admin.php?page=lisensi_cb">Lisensi</a></p>' . "\r\n\t" . '</div>';
  17. }
  18.  
  19. function lisensi_cb()
  20. {
  21. global $options;
  22. $options = get_option('cb_pengaturan');
  23. echo '<div class="wrap">';
  24. if (isset($_POST['username']) && isset($_POST['password'])) {
  25. $url = 'https://lisensi.cafebisnis.com/';
  26. $post = 'username=' . urlencode($_POST['username']) . '&password=' . urlencode($_POST['password']) . '&url=' . home_url();
  27. $cek = postData($url, $_SERVER['HTTP_USER_AGENT'], $post);
  28. echo '<h2>Aktifasi Plugin WP-Affiliasi</h2>';
  29.  
  30. if (strlen($cek) == 36) {
  31. $options['lisensi'] = $cek;
  32. update_option('cb_pengaturan', $options);
  33. echo '<div class="notice notice-success is-dismissible">' . "\r\n\t\t\t" . '<p>Lisensi telah sukses didaftarkan. Silahkan memulai <a href="admin.php?page=pengaturan">pengaturan</a></p>' . "\r\n\t\t\t" . '</div>';
  34. }
  35. else {
  36. echo '<p>Ada kesalahan saat menghubungi Cafebisnis</p><p>' . $cek . '</p>';
  37. }
  38. }
  39. else {
  40. echo "\r\n\t" . '<div class="form-wrap">' . "\r\n\t" . '<h2>Aktifasi Plugin WP-Affiliasi</h2>' . "\r\n\t" . '<p>Untuk mengaktifkan plugin ini, silahkan login menggunakan username dan password di Cafebisnis.com. <br/>Pastikan web ini benar-benar akan anda pakai, karena lisensi yang telah dipakai <strong>tidak dapat dihapus ataupun dipindahkan</strong> ke website lain.</p>' . "\r\n\t" . '<form action="" method="post">' . "\r\n\t" . '<div class="form-field form-required term-name-wrap">' . "\r\n\t\t" . '<label for="tag-name">Username:</label>' . "\r\n\t\t" . '<input type="text" style="width:100%; max-width:200px" name="username"/>' . "\r\n\t\t" . '<p>Username anda di Cafebisnis.</p>' . "\r\n\t" . '</div>' . "\r\n\t" . '<div class="form-field form-required term-name-wrap">' . "\r\n\t\t" . '<label for="tag-password">Password:</label>' . "\r\n\t\t" . '<input type="password" style="width:100%; max-width:200px" name="password"/>' . "\r\n\t\t" . '<p>Password anda di Cafebisnis.</p>' . "\r\n\t" . '</div>' . "\r\n\t" . '<input type="submit" value="Aktifkan Lisensi" class="button button-primary"/>' . "\r\n\t" . '</form>';
  41. }
  42.  
  43. echo '</div>' . "\r\n\t" . '</div>';
  44. ...................................................................
  45. ....................................
  46. ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement