PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/donotdelte2024june28/pennwood.place/admin-panel/pages/auto-delete/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/donotdelte2024june28/pennwood.place/admin-panel/pages/auto-delete/content.html

<div class="container-fluid">
    <div class="block-header">
        <h2>Tools > Auto Delete Videos</h2>
    </div>
    <div class="row">
        <div class="col-lg-6 col-md-6">
            <div class="card">
                <div class="header">
                    <h2>Auto Delete Videos</h2> 
                    <br>
                    <small>It's recommended to create a backup before applying any actions.</small>
                </div>
                <div class="body">
                  <div>
                    <select id="select_type">
                      <option value="keyword">Delete By Keyword</option>
                      <option value="category">Delete By Category</option>
                    </select>
                  </div>
                  <br>
                  <div class="form-group form-float" id="keyword_section">
                      <div class="form-line">
                        <label for="selected_keyword">Keyword</label>
                        <input type="text" class="form-control" name="selected_keyword" id="selected_keyword">
                      </div>
                  </div>
                  <div id="category_section" style="display: none;">
                    <label for="selected_category">Select category</label>
                    <select class="form-control show-tick" id="selected_category" name="selected_category">
                       <?php 
                        foreach($pt->categories as $key => $category) { 
                            $selected = ($key == $category_filter) ? 'selected' : '';
                        ?>
                        <option value="<?php echo $key?>" <?php echo $selected?>><?php echo $category?></option>
                        <?php } ?>
                    </select>
                    <div class="clearfix"></div>
                    
                  </div>
                  <br>
                    <label for="selected_time">Select time</label>
                    <select class="form-control show-tick" id="selected_time" name="selected_time">
                      <option value="all">All</option>
                      <option value="today">Today</option>
                      <option value="this_week">This Week</option>
                      <option value="this_month">This Month</option>
                      <option value="this_year">This Year</option>
                    </select>
                  <input type="hidden" id="selected_type" value="keyword">
                   
                  <div class="clearfix"></div><br>
                  <small>This process might take some time, you can check for your site changes after few minutes.</small><br>
                  <button type="submit" class="btn btn-danger waves-effect waves-light m-t-20" id="delete-btn">Delete Data</button>
                </div>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
    </div>
<script>
$(document).on('change', '#select_type', function(event) {
  if ($(this).val() == 'keyword') {
    $('#keyword_section').slideDown('400');
    $('#category_section').slideUp('400');
    $('#selected_type').val('keyword');
  }
  else{
    $('#keyword_section').slideUp('400');
    $('#category_section').slideDown('400');
    $('#selected_type').val('category');
  }
});
$(document).on('click', '#delete-btn', function(event) {
	event.preventDefault();
	if (!confirm('Are you sure you want to delete? this action can\'t be undo')) {
		return false;
	}
	$(this).text('Please wait..');
	$.get('{{LINK aj/ap/auto_delete}}', {selected_type:$('#selected_type').val(),selected_keyword:$('#selected_keyword').val(),selected_category:$('#selected_category').val(),selected_time:$('#selected_time').val()}, function(data, textStatus, xhr) {
		$('#delete-btn').text('Data is being deleted, check your site after few mins.');
		setTimeout(function () {
			$('#delete-btn').text('Delete Data');
		}, 4000);
	});
});
</script>