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.1.0.0
- * @ Author : DeZender
- * @ Release on : 15.05.2020
- * @ Official site : http://DeZender.Net
- *
- */
- function get_domain($url)
- {
- $pieces = parse_url($url);
- $domain = (isset($pieces['host']) ? $pieces['host'] : '');
- 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 __gc()
- {
- $site = $_SERVER['SERVER_NAME'];
- $site = get_domain('http://' . $site);
- $key = 'safir.web.portal';
- $sfrLicenseCode = hash('sha1', $site . $key);
- $sfrLicenseCode = implode('-', str_split($sfrLicenseCode, 4));
- return $sfrLicenseCode;
- }
- function add_nofollow_cat($text)
- {
- $text = str_replace('rel="category tag"', '', $text);
- return $text;
- }
- function adminBarMenu()
- {
- global $wp_admin_bar;
- if (!is_super_admin() || !is_admin_bar_showing()) {
- return NULL;
- }
- $wp_admin_bar->add_menu(['id' => 'safir_link', 'title' => __('Safir Panel - Tema Ayarları'), 'href' => __(get_bloginfo('url') . '/wp-admin/admin.php?page=safirpanel.php')]);
- }
- function xoption($option)
- {
- $returnedValue = get_option('safir_' . SAFIR_THEME_SLUG . '_' . $option);
- if (is_string($returnedValue)) {
- return stripslashes($returnedValue);
- }
- else {
- return $returnedValue;
- }
- }
- function setxoption($option, $newvalue)
- {
- update_option('safir_' . SAFIR_THEME_SLUG . '_' . $option, $newvalue);
- }
- function xoption2($option)
- {
- if ($x = get_option('sfr_' . $option)) {
- if (is_string($x)) {
- return stripslashes($x);
- }
- else {
- return $x;
- }
- }
- else {
- return false;
- }
- }
- function safir_add_demo_importer()
- {
- add_theme_page('Safir Demo İçerik', 'Safir Demo İçerik', 'administrator', 'safir-demo-importer', 'safir_demo_importer_page');
- }
- function safir_demo_importer_page()
- {
- global $safir_demo_importer_selfcheck;
- global $safir_demo_importer_success;
- echo '<div class="wrap">' . "\n\t" . '<h1>Safir Demo İçerik</h1>' . "\n\t";
- if (empty($_POST['safir_importing'])) {
- echo '<p>Bu sayfada tek tuş ile demo içerik aktarımı yapabilirsiniz.<br /><br />' . "\n\t\t\t" . '<b>DİKKAT! Demo aktarım işlemi tüm yazı, sayfa ve ayarlarınızı siler!<br />' . "\n\t\t\t" . 'Bu işlemin sıfır bir wordpress kurulumu ile yapılması tavsiye edilir.</b></p>' . "\n\t\t\t" . '<p> </p>';
- echo "\t\t\t";
- if (empty($safir_demo_importer_selfcheck)) {
- echo "\t\t\t\t" . '<p><input type="checkbox" name="safir-demo-import-accept" id="safir-demo-import-accept">' . "\n\t\t\t\t\t" . '<label for="safir-demo-import-accept">Yukarıdaki açıklamaları okudum ve tüm içeriklerimin silineceğini anladım.</label>' . "\n\t\t\t\t" . '</p>' . "\n\t\t\t\t" . '<form id="safir-demo-import-form" method="post">' . "\n\t\t\t\t\t" . '<input type="hidden" name="safir_importing" value="1" />' . "\n\t\t\t\t\t" . '<input type="submit" name="submit" id="safir-demo-import-submit" disabled class="button button-primary" value="Tüm Verileri Sil ve Demo İçerikleri Getir!" />' . "\n\t\t\t\t" . '</form>' . "\n\t\t\t\t" . '<div class="submitUyari" style="display:none; margin: 20px 0; font-size: 16px;">Bu işlem, sunucunuzun hızına göre birkaç dakika sürebilmektedir, lütfen sayfayı kapatmayın.</div>' . "\n\t\t\t\t";
- }
- echo "\t\t\t" . '<script>' . "\n\t\t\t" . 'jQuery(function($) {' . "\n\t\t\t\t" . '$(\'#safir-demo-import-accept\').change(function() {' . "\n\t\t\t\t\t" . '$(\'#safir-demo-import-submit\').attr(\'disabled\', $(\'#safir-demo-import-accept:checked\').length == 0);' . "\n\t\t\t\t" . '});' . "\n\t\t\t\t" . '$("#safir-demo-import-form").submit(function() {' . "\n\t\t\t\t\t" . '$(\'#safir-demo-import-submit, #safir-demo-import-accept\').attr(\'disabled\', \'disabled\');' . "\n\t\t\t\t\t" . '$(".submitUyari").fadeIn();' . "\n\t\t\t\t" . '});' . "\n\t\t\t" . '});' . "\n\t\t\t" . '</script>' . "\n\t\t\t";
- }
- else if (!empty($safir_demo_importer_success)) {
- if (function_exists('safir_delete_cache')) {
- safir_delete_cache();
- }
- flush_rewrite_rules();
- ..........................................................................
- ..................................................
- ..................
Add Comment
Please, Sign In to add comment