<?php require 'include/core/common.php'; //session_start(); require_once PATHS_LIBRARIES . 'admin.lib.php'; $_GET['id'] = intval($_GET['id']); if (!is_numeric($_GET['id']) && isset($_GET['id'])) { die('FISK ' . $_GET['id']); } if (isset($_GET['refuse']) && is_numeric($_GET['refuse']) && login_checklogin() && is_privilegied('avatar_admin')) { refuse_image($_GET['refuse'], $_SESSION['login']['username']); jscript_alert('Borttaget!'); jscript_selfclose(); die; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Visningsbild på Hamsterpaj</title> <link rel="icon" href="http://images.hamsterpaj.net/favicon.png" type="image/x-icon" /> <link rel="shortcut icon" href="http://images.hamsterpaj.net/favicon.png" type="image/x-icon" /> <style type="text/css"> @import url('/stylesheets/avatar.css'); @import url('/stylesheets/shared.css'); </style> <script type="text/javascript" language="javascript" src="/javascripts/avatar.js"></script> </head>
function preform_avatar_action($data, $validator) { foreach ($data as $uid => $status) { $uid = substr($uid, 5); if (is_numeric($status) && is_numeric($uid)) { if ($status == 2) { validate_image($uid, $validator); } if ($status == 3) { refuse_image($uid, $validator); } if ($status == 4) { block_user($uid); } } } }