Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.9.0
- * @ Author : DeZender
- * @ Release on : 08.08.2019
- * @ Official site : http://DeZender.Net
- *
- */
- function wpaff_blmaktif()
- {
- 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>';
- }
- function lisensi_cb()
- {
- global $options;
- $options = get_option('cb_pengaturan');
- echo '<div class="wrap">';
- if (isset($_POST['username']) && isset($_POST['password'])) {
- $url = 'https://lisensi.cafebisnis.com/';
- $post = 'username=' . urlencode($_POST['username']) . '&password=' . urlencode($_POST['password']) . '&url=' . home_url();
- $cek = postData($url, $_SERVER['HTTP_USER_AGENT'], $post);
- echo '<h2>Aktifasi Plugin WP-Affiliasi</h2>';
- if (strlen($cek) == 36) {
- $options['lisensi'] = $cek;
- update_option('cb_pengaturan', $options);
- 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>';
- }
- else {
- echo '<p>Ada kesalahan saat menghubungi Cafebisnis</p><p>' . $cek . '</p>';
- }
- }
- else {
- 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>';
- }
- echo '</div>' . "\r\n\t" . '</div>';
- ...................................................................
- ....................................
- ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement