0 && RegBlock::remove($id)) { mysqli_query($GLOBALS['link'], "INSERT INTO " . TB_PREFIX . "admin_log VALUES (0, " . $admid . ", 'Registration block removed (id " . $id . ")', " . time() . ")"); header("Location: ../../../Admin/admin.php?p=blockReg&msg=" . urlencode('Block removed.')); exit; } header("Location: ../../../Admin/admin.php?p=blockReg&msg=" . urlencode('Could not remove block.')); exit; } header("Location: ../../../Admin/admin.php?p=blockReg"); exit; /** Small helper: keep the admin-log message readable/short. */ function RegBlock_safe($v) { $v = strtolower(trim((string)$v)); return strlen($v) > 80 ? substr($v, 0, 77) . '...' : $v; } ?>