Beispiel #1
0
function show_downgrade($dbVer)
{
    tpl_open();
    ?>
<h1>Incompatible version</h1>
<p>Please update your server.</p>
<?php 
    tpl_close();
}
Beispiel #2
0
        $cmp++;
    }
    return $data;
}
function totals($report, $run)
{
    $data = array();
    foreach ($report->getFields() as $field) {
        $data = init_data($report, $data, $run->getTotals(), $field);
    }
    return $data;
}
switch ($_GET['w']) {
    case 'csv':
        header("Content-type: text/csv");
        header("Content-Disposition: attachment; filename=rapport.csv");
        $params = $_GET;
        unset($params['m']);
        unset($params['n']);
        report_csv($_GET['m'], $_GET['n'], $params);
        break;
    case 'display':
    default:
        $domain = $_GET['m'];
        $id = $_GET['n'];
        $report = get_report($domain, $id);
        tpl_open();
        tpl_report($report);
        tpl_close();
        break;
}
Beispiel #3
0
function show_login_page()
{
    // Pasteque login page ?
    tpl_open();
    global $loginErrorMessage;
    if ($loginErrorMessage != NULL) {
        \Pasteque\tpl_msg_box($message, $loginErrorMessage);
    }
    ?>
<form class="edit" method="POST">
    <label for="login">Login :</label><input name="login" type="text" /><br />
    <label for="password">Password :</label><input name="password" type="password" /><br />
    <input style="margin:10px; width:auto; margin-left: 27%;" type="submit" />
</form>
<?php 
    tpl_close();
}
Beispiel #4
0
function index_run()
{
    tpl_open();
    url_content();
    tpl_close();
}