2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Added VoIP watch from browser (executes background PHP file process.php)

This commit is contained in:
azammitdcarf
2008-12-01 23:42:50 +00:00
parent bf03b51bca
commit 30557ffadf
8 changed files with 449 additions and 2 deletions

View File

@@ -347,13 +347,18 @@ class voipWatch extends voip {
*
*
*/
function watch()
function watch($process_id = false)
{
/**
* Database file
*/
include_once(dirname(__FILE__).'/../db.inc.php');
/**
* Process file
*/
if ($process_id) include_once(dirname(__FILE__).'/../functions/functions.process.php');
$line = "";
if ($this->socket === false)
@@ -482,6 +487,8 @@ class voipWatch extends voip {
@flush();
if ($process_id) $this->keepWatching = !is_process_killed($process_id);
} while ($this->keepWatching);
}