add files

This commit is contained in:
Andrey Kuvshinov
2025-07-09 21:21:17 +03:00
commit 8fc8cbae32
596 changed files with 207566 additions and 0 deletions

21
entrynode-single.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
/*
Template Name: Entry node single
*/
//die;
$post = get_post();
$content = $post->post_content;
$count = (int)get_option('entrynode_single_count');
$count = $count+1;
update_option('entrynode_single_count', $count);;
$links = explode("\n", $content);
wp_redirect($links[rand(0, count($links)-1)], 301);
exit;
?>