Mini Shell

Direktori : /home/rizant5/public_html_old/
Upload File :
Current File : //home/rizant5/public_html_old/get_img_toscreen.php

<?php
require_once('config.php');
if(isset($_POST["imgSet"])){
    
    $screenType = $_POST["imgSet"];

    $data = $conn->query("select * from options where option_name='$screenType'");
    $result=$data->fetchall();
    $img = !empty($result[0]['option_value']) ? $result[0]['option_value'] : '';

    echo $img;
}
else if (isset($_POST["offerBgset"])){
    $screenType = $_POST["offerBgset"];

    $data = $conn->query("select * from options where option_name='$screenType' and option_status='1'");
    $result=$data->fetchall();
    $img = !empty($result[0]['option_value']) ? $result[0]['option_value'] : 'not';

    echo $img;
}

?>

Zerion Mini Shell 1.0