FreePBX-AvantFAX/HelloWorld/page.HelloWorld.php

26 lines
558 B
PHP
Raw Normal View History

2012-12-20 16:25:36 -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;
echo "<h2>"._("Hello World")."</h2>";
}
?>