Title: EG-Attachments
Author: emmanuelg
Published: <strong>1. Februar 2009</strong>
Last modified: 26. April 2015

---

Plugins suchen

![](https://s.w.org/plugins/geopattern-icon/eg-attachments_fbfbfb.svg)

# eg-attachments

 Von [emmanuelg](https://profiles.wordpress.org/emmanuelg/)

 * [Details](https://de.wordpress.org/plugins/eg-attachments/#description)
 * [Rezensionen](https://de.wordpress.org/plugins/eg-attachments/#reviews)
 * [Entwicklung](https://de.wordpress.org/plugins/eg-attachments/#developers)

 [Support](https://wordpress.org/support/plugin/eg-attachments/)

## Beschreibung

Dieses Plugin wurde mit dem 7. März 2024 stillgelegt und ist nicht zum Download 
verfügbar. Grund: Sicherheitsproblem.

## Rezensionen

![](https://secure.gravatar.com/avatar/9480463b1c9f8f28452d0ebd17aa16079970f3dbfa579d2b8f6f41455f3d3257?
s=60&d=retro&r=g)

### 󠀁[Plugin Query is not dynamic](https://wordpress.org/support/topic/plugin-query-is-not-dynamic/)󠁿

 [sunil.ch](https://profiles.wordpress.org/sunilch/) 27. April 2017 1 Antwort

In database query inside a plugin file is not as per the standard WordPress queries.
In file „\eg-attachments\inc\eg-attachments-public.inc.php“ there is a function „
record_click“. In this function author is using below query: $sql = $wpdb->prepare(‚
SELECT click_id,clicks_number FROM wp_eg_attachments_clicks WHERE click_date=CURRENT_DATE()
AND attach_id=%d AND post_id=%d‘, $attach_id, $parent_id); Just look at the query,
author is using “wp_eg_attachments_clicks” for a table. Here table prefix for that
table is “wp_” which is not dynamic. Author should use something like below: $sql
= $wpdb->prepare(‚SELECT click_id,clicks_number FROM ‚.$wpdb->prefix.’eg_attachments_clicks
WHERE click_date=CURRENT_DATE() AND attach_id=%d AND post_id=%d‘, $attach_id, $parent_id);
In place of „wp_“ we should always use „$wpdb->prefix“ in our queries so that our
query will not break even change of table prefix by the user from wp-config.php 
file. Request to author, please update it in your next release. Thanks, Sunil Chaudhary

 [ Alle 8 Rezensionen lesen ](https://wordpress.org/support/plugin/eg-attachments/reviews/)

## Mitwirkende und Entwickler

„EG-Attachments“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin
mitgewirkt:

Mitwirkende

 *   [ emmanuelg ](https://profiles.wordpress.org/emmanuelg/)

[Übersetze „EG-Attachments“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/eg-attachments)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/eg-attachments/),
sieh dir das [SVN-Repository](https://plugins.svn.wordpress.org/eg-attachments/)
an oder abonniere das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/eg-attachments/)
per [RSS](https://plugins.trac.wordpress.org/log/eg-attachments/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **2.1.3**
 *  Zuletzt aktualisiert **vor 11 Jahren**
 *  Aktive Installationen **k. A.**
 *  WordPress-Version ** 3.9.0 oder höher **
 *  Getestet bis **4.2.0**
 *  Sprache
 * [English (US)](https://wordpress.org/plugins/eg-attachments/)
 *  [Erweiterte Ansicht](https://de.wordpress.org/plugins/eg-attachments/advanced/)