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 vy_notice($msg, $type = 'success')
- {
- return '<div class="notice notice-' . $type . '"><p>' . $msg . '</p></div>';
- }
- function VYPLUGINS()
- {
- return plugin_dir_path(__DIR__);
- }
- function get_domain($url)
- {
- $pieces = parse_url($url);
- $domain = (isset($pieces['host']) ? $pieces['host'] : $pieces['path']);
- if (preg_match('/(?P<domain>[a-z0-9][a-z0-9\\-]{1,63}\\.[a-z\\.]{2,6})$/i', $domain, $regs)) {
- return $regs['domain'];
- }
- return false;
- }
- function HasInstalled()
- {
- global $wpdb;
- $tableName0055 = $wpdb->prefix . 'options';
- if (!isset($wpdb->get_results('SELECT * FROM ' . $tableName0055 . ' WHERE option_name = \'wpvy_lisans\' LIMIT 1')[0]->option_name)) {
- return false;
- }
- return true;
- }
- function InstallScript()
- {
- global $wpdb;
- $tableName0055 = $wpdb->prefix . 'options';
- $sutunlar = ['("wpvy_lisans", "", "yes")', '("wpvy_aktif", "0", "yes")', '("wpvy_son_kontrol", "", "yes")', '("wpvy_yazi", "", "yes")', '("wpvy_yazi_eklensin", "1", "yes")', '("wpvy_yazi_arkaplan", "rgba(255, 255, 255, 0.5)", "yes")', '("wpvy_yazi_renk", "#000000", "yes")'];
- foreach ($sutunlar as $sutun) {
- $wpdb->get_results('INSERT INTO ' . $tableName0055 . ' (option_name, option_value, autoload) VALUES ' . $sutun);
- }
- }
- function VYGet($item1, $justOne = true)
- {
- global $wpdb;
- $tableName0055 = $wpdb->prefix . 'options';
- if ($justOne) {
- return $wpdb->get_results('SELECT * FROM ' . $tableName0055 . ' WHERE option_name = \'' . $item1 . '\' LIMIT 1')[0]->option_value;
- }
- else {
- return $wpdb->get_results('SELECT * FROM ' . $tableName0055 . ' WHERE autoload = \'' . $item1 . '\'');
- }
- }
- function VYUpdate($item1, $item2, $item3, $id)
- {
- global $wpdb;
- $tableName0055 = $wpdb->prefix . 'options';
- if ($id == 'none') {
- $guncelle = $wpdb->get_results('UPDATE ' . $tableName0055 . ' SET option_value = \'' . $item2 . '\', autoload = \'' . $item3 . '\' WHERE option_name = \'' . $item1 . '\'');
- }
- else {
- $guncelle = $wpdb->get_results('UPDATE ' . $tableName0055 . ' SET option_name = \'' . $item1 . '\', option_value = \'' . $item1 . '\', option_value = \'' . $item2 . '\', autoload = \'' . $item3 . '\' WHERE option_name = \'' . $idsi . '\'');
- }
- if ($guncelle) {
- return true;
- }
- return false;
- }
- function v_lisans_sorgula($anahtar = NULL)
- {
- $domain = $_SERVER['HTTP_HOST'];
- $anahtar = ($anahtar != NULL ? $anahtar : vyget('wpvy_lisans'));
- $client = new GuzzleHttp\Client(['http_errors' => false]);
- $alpha = 'https://';
- $mido = 'vlkn.dev/lisans.php';
- $response = $client->get($alpha . $mido . '?lisans=' . urlencode($anahtar) . '&domain=' . urlencode($domain), [
- 'headers' => ['WPVY' => rand(1, 17) * 7]
- ]);
- $res = json_decode($response->getBody()->getContents(), 1);
- if ($res['code'] == 707) {
- vyupdate('wpvy_aktif', '1', 'yes', 'none');
- }
- return $res;
- }
- function v_lisans()
- {
- if (vyget('wpvy_lisans')) {
- if (vyget('wpvy_aktif') == 1) {
- ....................................................................................
- ..............................................
- ....................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement