From 831fc50a89d48eec38b49e89a4742d6678996f23 Mon Sep 17 00:00:00 2001 From: azammitdcarf Date: Mon, 10 Jan 2011 22:30:59 +0000 Subject: [PATCH] Fixed path problems --- voip/startvoipprocess.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/voip/startvoipprocess.php b/voip/startvoipprocess.php index ecf3f281..d236a340 100644 --- a/voip/startvoipprocess.php +++ b/voip/startvoipprocess.php @@ -42,13 +42,16 @@ include (realpath(dirname(__FILE__) . "/../db.inc.php")); /** * Process */ -include (realpath(dirname(__FILE__) . "/../functions/functions.process.php"); +include (realpath(dirname(__FILE__) . "/../functions/functions.process.php")); //end any other process $p = is_process_running(); -if ($p) end_process($p); - -start_process(realpath(dirname(__FILE__) . "/process.php")); +if ($p) +{ + kill_process($p); + end_process($p); +} +start_process(realpath(dirname(__FILE__) . "/../admin/process.php")); ?>