function getOpenCallCount($option, $caller_user_name = '')
{
    $count_arr = returnOpenCalls($option, $caller_user_name, '', 'COUNT(call_log.call_id) count');
    $count = isset($count_arr[0]['count']) ? $count_arr[0]['count'] : 0;
    return $count;
}
Ejemplo n.º 2
0
<?php

session_start();
header("Content-type: text/xml");
?>
<rss version="2.0">
  <channel> 
    <title>ITS Helpdesk - Call Log Web Feeds</title>
    <description>Feeds that you care about</description>
	<link>https://www.plymouth.edu/webapp/calllog</link>
<?php 
$my_calls = returnOpenCalls($_GET['action'], $_GET['group_id']);
for ($i = 0; $i < count($my_calls); $i++) {
    if ($my_calls[$i]['call_id'] != "") {
        $my_calls[$i]['comments'] = substr(str_replace("’", "&#39;", $my_calls[$i]['comments']), 50) . "...";
        $my_calls[$i]['comments'] = substr(str_replace("&", "&amp;", $my_calls[$i]['comments']), 50) . "...";
        ?>
		<item>
		<title><?php 
        echo $my_calls[$i]['caller_first_name'];
        ?>
 <?php 
        echo $my_calls[$i]['caller_last_name'];
        ?>
 (<?php 
        echo $my_calls[$i]['caller_username'];
        ?>
)</title>
		<link>https://www.plymouth.edu/webapp/calllog/new_call.html?caller_user_name=<?php 
        echo $my_calls[$i]['caller_username'];
        ?>