示例#1
0
<?php

require "functions.php";
if (checkdevice()) {
    header("Location: new.php");
    die('Redirecting...');
}
示例#2
0
文件: new.php 项目: TomWis97/CallTom
/*   Documentation: Cause
		1 = Food
		2 = IT help
        //TODO: Again, better translation.
		3 = Talk to us!
	*/
/*   Documentation: Response
		0 = No response
		1 = Read
		2 = ASAP
		3 = Within 5 minutes
		4 = Other
	*/
require 'functions.php';
checkdevice();
if (isset($_POST['cause'])) {
    $callid = uniqid('c_');
    $deviceid = $_COOKIE['call_devid'];
    $type = 0;
    switch ($_POST['cause']) {
        case 1:
            $type = 1;
            break;
        case 2:
            $type = 2;
            break;
        case 3:
            $type = 3;
            break;
        default: