File manager - Edit - /home/u300416816/domains/bestrecipe4u.com/public_html/xhr/like.php
Back
<?php require_once '../config.php'; require_once '../app/includes/constant.php'; require_once '../app/includes/app_start.php'; $game_id = mysqli_real_escape_string($socket, $_POST['gi']); $ui = mysqli_real_escape_string($socket, $_POST['ui']); if (num_rows(T_ZON_LIKES, "game_id=$game_id && user_id=$ui") > 0) { if (mysqli_query($socket, "DELETE FROM " . T_ZON_LIKES . " WHERE game_id=$game_id && user_id=$ui ")) { echo num_rows(T_ZON_LIKES, "game_id=$game_id"); } } else { if (mysqli_query($socket, "INSERT INTO " . T_ZON_LIKES . " (user_id, game_id) VALUES ($ui, $game_id) ")) { echo num_rows(T_ZON_LIKES, "game_id=$game_id"); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings