File "functions.php"
Full Path: /home/ozbarhaber/public_html/19052025___siteeee/wp-content/themes/anka/functions.php
File size: 1.08 KB
MIME-type: text/x-php
Charset: utf-8
<?php if(!defined('ABSPATH')) exit; ?>
<?php
// Ioncube Check
$safirPHPVersion = phpversion();
if(strlen($safirPHPVersion) >=3) $safirPHPVersion = substr($safirPHPVersion, 0, 3);
if($safirPHPVersion == "8.0") {
include(get_template_directory() . "/lib/safirtema/ioncube.8.0.php");
die();
}
if(!extension_loaded("IonCube Loader")) {
add_action( 'admin_notices', 'safir_admin_ioncube_error' );
if(!is_admin()) {
include(get_template_directory() . "/lib/safirtema/ioncube.php");
die();
}
} else {
switch ($safirPHPVersion) {
case '8.2':
include("functions/php.8.2.php");
break;
case '8.1':
include("functions/php.8.1.php");
break;
case '7.4':
include("functions/php.7.4.php");
break;
default:
include("functions/php.7.3.php");
break;
}
}
function safir_admin_ioncube_error() {
printf( '<div class="notice notice-error"><p><strong>Sunucunuzda tema için gerekli olan Ioncube bileşeni yüklü değil. Hosting firmanızdan son sürüm Ioncube yüklemesini isteyiniz.</strong></p></div>');
}