public static function remove_vote($adv_id) { DAL::removeVote(Cleaning::cleanInt($adv_id), $_SESSION['id']); unset($_SESSION['votes'][array_search($adv_id, $_SESSION['votes'])]); //var_dump($_SESSION['votes']); }
public static function add_photo($adv_id, $user_id, $path) { DAL::addPhoto($adv_id, Cleaning::cleanInt($user_id), Cleaning::cleanString($path)); }