From 19e5e158f8a6e9dda406c2eb70ad035211613df8 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Sat, 14 Jul 2012 21:14:29 +0200 Subject: introduce classes --- callnotifier.php | 95 ++++++++++---------------------------------------------- 1 file changed, 17 insertions(+), 78 deletions(-) (limited to 'callnotifier.php') diff --git a/callnotifier.php b/callnotifier.php index a481b1f..9093691 100644 --- a/callnotifier.php +++ b/callnotifier.php @@ -1,84 +1,23 @@ #!/usr/bin/env php CDPN[41], - var_dump($details); - $regex = '#CGPN\\[([^\\]]+)\\]->CDPN\\[([^\\]]+)\\]#'; - if (preg_match($regex, $details, $matches)) { - var_dump('a call!', $matches); - } -} +$cli = new CLI(); +$cli->run(); ?> \ No newline at end of file -- cgit v1.2.3