<?php
//v1.0.4 www.bcoos.net 2006/10 GPL
// $Id: waiting.inc.php,v 1.1 2003/08/31 12:16:13 half-dead Exp $
// ------------------------------------------------------------------------- //
//               E-Xoops: Content Management for the Masses                  //
//                       < http://www.e-xoops.com >                          //
// ------------------------------------------------------------------------- //
// Original Author: Half-Dead
// Author Website : http://www.e-xoops.com
// License Type   : LGPL: See /manual/LICENSES/LGPL.txt
// ------------------------------------------------------------------------- //
//---------------------------------------------------------------------------------------//
/**
* Description
*
* @param type $var description
* @return type description
*/
function myalbum_waiting() {
global $db,$bcoosConfig;
$count   = 0;
$waiting = array();
$result = $db->query("SELECT COUNT(*) FROM ".$db->prefix("myalbum_photos")." WHERE status=0");
if ($result) {
	list($num) = $db->fetchRow($result);
	$num = intval($num);
	if ($num > 0) {
		$waiting[$count]['image'] = XOOPS_URL."/images/icons/".$bcoosConfig['iconset']."pointer.gif";
		$waiting[$count]['link']  = XOOPS_URL."/modules/myalbum/admin/index.php?op=listNewLinks";
		$waiting[$count]['text']  = _MB_MYALBUM_WDLS;
		$waiting[$count]['count'] = $num;
		$count++;
	}
}
return $waiting;
}
?>
