require(_DIR_ . '/../config.php');
if (isset($_FILES["file"]) && isset($_POST["add_frame"]) && isset($_POST["add_price"])) {
echo add_frame();
exit;
}
if (isset($_POST["delete_frame"])) {
echo delete_frame();
exit;
}
if (isset($_POST["save_settings"])) {
echo saveFramesSetting();
exit;
}
if (isset($_POST["save_frame"]) && isset($_POST["save_price"])) {
echo save_frame();
exit;
}
if (isset($_POST["edit_frame"])) {
echo edit_frame();
exit;
}
if (isset($_POST["get_next"]) && isset($_POST["page"])) {
echo get_next();
exit;
}
if (isset($_POST["get_frame"])) {
echo get_frame_item();
exit;
}
if (isset($_POST["gift_add_box"])) {
echo gift_add_box();
exit;
}
if(isset($_POST['get_user_frames_list'])){
$afsc = $mysqli->query('SELECT avatar_frame.*, boom_users.*
FROM avatar_frame, boom_users
WHERE avatar_frame.id = boom_users.avatar_frame
');
$data =array();
if($afsc->num_rows > 0){
while($afc = $afsc->fetch_array()){
$data[] = array_push($data, array('user_id' => $afc['user_id'], 'tumb' => $afc['tumb']));
}
echo json_encode($data);
}
die();
}
if (isset($_POST["get_box"]) && boomAllow($setting["user_kisisel_cerceve_rank"])) {
echo get_box();
exit;
}
if (isset($_POST["set_frame"]) && boomAllow($setting["user_kisisel_cerceve_rank"])) {
echo set_frame();
exit;
}
if (isset($_POST["unset_frame"]) && boomAllow($setting["user_kisisel_cerceve_rank"])) {
echo unset_frame();
exit;
}
© 2023 Quttera Ltd. All rights reserved.