Title: EG-Attachments
Author: emmanuelg
Published: <strong>Fébruari 1, 2009</strong>
Last modified: April 26, 2015

---

Nggoléki Plugin

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

# eg-attachments

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

 * [Detil](https://jv.wordpress.org/plugins/eg-attachments/#description)
 * [Mācā ulang](https://jv.wordpress.org/plugins/eg-attachments/#reviews)
 * [Pangembangan](https://jv.wordpress.org/plugins/eg-attachments/#developers)

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

## Katrangan

This plugin has been closed as of Maret 7, 2024 and is not available for download.
Reason: Security Issue.

## Mācā ulang

![](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/) April 27, 2017 1 reply

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

 [ Read all 8 reviews ](https://wordpress.org/support/plugin/eg-attachments/reviews/)

## Contributors & Developers

“EG-Attachments” is open source software. The following people have contributed 
to this plugin.

Kontributor

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

[Translate “EG-Attachments” into your language.](https://translate.wordpress.org/projects/wp-plugins/eg-attachments)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/eg-attachments/), check
out the [SVN repository](https://plugins.svn.wordpress.org/eg-attachments/), or 
subscribe to the [development log](https://plugins.trac.wordpress.org/log/eg-attachments/)
by [RSS](https://plugins.trac.wordpress.org/log/eg-attachments/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **2.1.3**
 *  Last updated **11 taun sing kepungkur**
 *  Active installations **N/A**
 *  WordPress version ** 3.9.0 or higher **
 *  Tested up to **4.2.0**
 *  Language
 * [English (US)](https://wordpress.org/plugins/eg-attachments/)
 *  [Nonton lanjutan](https://jv.wordpress.org/plugins/eg-attachments/advanced/)