Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: list of users emails  (Read 4494 times)

0 Members and 1 Guest are viewing this topic.

wipqozn1

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
list of users emails
« on: January 09, 2007, 03:07:56 pm »

Hi,

in this thread: http://forum.coppermine-gallery.net/index.php?topic=1228.40 Nibbler showed a way to display a full list of coppermine's gallery users emails:

Code: [Select]
<?php

define
('IN_COPPERMINE'1);
require 
'include/init.inc.php';

$test db_query("SELECT DISTINCT(user_email) FROM {$CONFIG['TABLE_USERS']} WHERE user_email <> ''");

while (
$row mysql_fetch_assoc($test))
echo $row['user_email'] . "<br />";

?>

But it returns:

Quote
Fatal error: Call to undefined function: db_query() in /var/www/web1/html/b.php on line 6

I use  v.1.4.10. So how can I get that list?
« Last Edit: January 09, 2007, 03:20:42 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: list of users emails
« Reply #1 on: January 09, 2007, 03:11:45 pm »

If you read to the end of the thread you will find the solution.
Logged

wipqozn1

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
Re: list of users emails
« Reply #2 on: January 09, 2007, 03:20:05 pm »

I missed that attached zip, thanks :-)
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.