403Webshell
Server IP : 173.209.174.21  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux wcfs-server 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64
User : nodor ( 1000)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/thelittlebigshow/app/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/thelittlebigshow/app/admin/adjust_fav_vote.php
<?php
session_start();
ob_start();
require_once 'config/config.php';
require_once BASE_PATH . '/includes/auth_validate.php';

$db = getDbInstance();

$vehicle_id = filter_input(INPUT_GET,'vehicle',FILTER_VALIDATE_INT);
if(!$vehicle_id){
    header("Location: /admin/customers.php");
    exit();
}

$actioy_type = filter_input(INPUT_GET,'inrease');


if($_SERVER['REQUEST_METHOD'] == 'POST'){

    $vcl = $db->where('id',$vehicle_id)->getOne('vehicles');
    if($actioy_type == 'true'){
        $up = (int) $vcl['fav_vote'] +1;
        $success = $db->where('id',$vehicle_id)->update('vehicles',['fav_vote' => $up]);
        if($success){
            echo json_encode(["success" => true, "vote" => $up]);
        }
    }else{
        $down = max(0, (int) $vcl['fav_vote'] - 1);
        $success = $db->where('id',$vehicle_id)->update('vehicles',['fav_vote' => $down]);
        if($success){
            echo json_encode(["success" => true, "vote" => $down]);
        }

    }
 
}










Youez - 2016 - github.com/yon3zu
LinuXploit