Beispiel #1
0
<?php

session_start();
session_unset();
$subdomain = array_shift(explode(".", $_SERVER['HTTP_HOST']));
include_once "api.php";
$api = new Conducttr_API(-1);
if (is_numeric($subdomain)) {
    $CONDUCTTR_PROJECT_ID = $subdomain;
    $CONDUCTTR_PROJECT_NAME = "";
} else {
    $CONDUCTTR_PROJECT_ID = -1;
    $CONDUCTTR_PROJECT_NAME = $subdomain;
}
$PROJECT_ID = $api->check_project($CONDUCTTR_PROJECT_ID, $CONDUCTTR_PROJECT_NAME);
if ($PROJECT_ID) {
    ?>

<!Doctype html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title> Conducttr Communicator </title>
		
		<meta name="mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<link href="css/main_communicator.css"  rel="stylesheet" type="text/css" />

		<?php 
    echo '<link rel="shortcut icon" href="styles/' . $PROJECT_ID . '/images/favicon.ico" />';
    echo '<link rel="stylesheet" href="styles/' . $PROJECT_ID . '/communicator.css" type="text/css" />';