* * http://www.radix.net/~cknudsen * * Modified by Mark Peters * * -------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * * Free Software Foundation; either version 2 of the License, or (at your * * option) any later version. * \**************************************************************************/ if(@$GLOBALS['phpgw_info']['server']['infolog_type'] == 'mcal' && extension_loaded('mcal') == False) { $GLOBALS['phpgw_info']['server']['infolog_type'] = 'sql'; } /* This will be elminated when ical is fully implemented */ else { $GLOBALS['phpgw_info']['server']['infolog_type'] = 'sql'; } function get_event_ids() { $from = $where = ' '; $sql = 'SELECT DISTINCT info_id, info_type, info_from,info_subject,info_owner,info_datemodified,info_startdate, info_enddate,info_uid, info_priority ' . 'FROM phpgw_infolog'; //. $from; //. 'WHERE (phpgw_cal_user.info_id = phpgw_cal.info_id) ' //. $where . $extra; //echo "SQL : ".$sql ."
\n"; if($this->debug) { echo "FULL SQL : ".$sql."
\n"; } $this->stream->query($sql,__LINE__,__FILE__); $retval = Array(); if($this->stream->num_rows() == 0) { if($this->debug) { echo "No records found!
\n"; } return $retval; } while($this->stream->next_record()) { $retval[] = (int)$this->stream->f('info_id'); } if($this->debug) { echo "Records found!
\n"; } return $retval; } include(PHPGW_INCLUDE_ROOT.'/infolog/inc/class.soinfolog__.inc.php'); include(PHPGW_INCLUDE_ROOT.'/infolog/inc/class.soinfolog_'.$GLOBALS['phpgw_info']['server']['infolog_type'].'.inc.php'); ?>