FreePBX-AvantFAX/page.helloworld.php

35 lines
926 B
PHP
Raw Normal View History

2013-05-03 14:44:25 -04:00
<?php
2012-12-20 16:22:05 -05:00
//Check if user is "logged in"
if (!defined('FREEPBX_IS_AUTH')) { die('No direct script access allowed'); }
//Handling form stuff....
isset($_REQUEST['action'])?$action = $_REQUEST['action']:$action='';
//the item we are currently displaying
isset($_REQUEST['itemid'])?$itemid=$db->escapeSimple($_REQUEST['itemid']):$itemid='';
switch ($action) {
case "add":
needreload();
break;
case "delete":
needreload();
redirect_standard();
break;
case "edit":
needreload();
redirect_standard();
break;
}
2013-05-03 14:44:25 -04:00
$variables = array(
'astmanconnected' => $astman->connected(),
'listcommands' => $astman->ListCommands(),
'astdatabase' => $astman->database_show(),
2013-06-02 20:58:03 -04:00
'ds' => drawselects('',1,false,false),
'amp_conf' => $amp_conf
2013-05-03 14:44:25 -04:00
);
$html = load_view(dirname(__FILE__).'/views/main.tpl', $variables);
echo $html;
$astman->database_put('family','key','valuer');
$out = $astman->database_get('family','key');
2013-06-02 20:58:03 -04:00
//echo $out;