コード例 #1
0
function vplan_single($pi = '')
{
    global $output;
    if ($_GET['key'] != 'kmyxl09') {
        $output->secure();
    }
    $user_pi = '0';
    if (isset($_GET['d'])) {
        $user_pi = $_GET['d'];
    }
    if (strlen($pi) == 0) {
        $pi = $user_pi;
    }
    (int) $pi;
    $vplan = get_vplan($pi);
    $vars = vplan2html_single($vplan['text']);
    $vars['%url%'] = sessionurl('single.php?d=' . $pi);
    $vars['%titel%'] = 'Vertretungsplan';
    echo FileReader::readFile('single.html', $vars);
}
コード例 #2
0
<?php

include 'var.php';
require_once $root . 'class_file.php';
$html_titel[] = 'FAQ';
$html_headline[] = '<a title="Frequently Asked Questions (H&auml;ufig gestellte Fragen)">FAQ</a>';
$inhalt = FileReader::readFile('faq.html');
$output->out('<h1><a title="Frequently Asked Questions (H&auml;ufig gestellte Fragen)">FAQ</a></h1>' . $inhalt);
コード例 #3
0
<?php

include 'var.php';
require_once $root . 'class_file.php';
function arrayContainsValue($array, $value)
{
    foreach ($array as $i => $v) {
        if (is_array($v)) {
            if (arrayContainsValue($v, $value)) {
                return true;
            }
        } else {
            if ($v == $value) {
                return true;
            }
        }
    }
    return false;
}
if (arrayContainsValue($dok_menu, $_GET['dok'])) {
    $inhalt = FileReader::readFile($_GET['dok'], array(), './');
    $output->out($inhalt);
} else {
    redirect('./');
}
コード例 #4
-5
function htmlformat_menuitem($root, $s, $u, $c)
{
    $v['%sign%'] = $s;
    $v['%url%'] = $u;
    $v['%caption%'] = $c;
    $a = Path::absolute($u);
    $b = Path::absolute($root . substr($_SERVER['REQUEST_URI'], 1));
    if ($a == $b) {
        $item = FileReader::readFile($root . 'menulinkv.html', $v);
    } else {
        $item = FileReader::readFile($root . 'menulink.html', $v);
    }
    return $item;
}
コード例 #5
-5
function get_neu_person_form($person)
{
    $dir = $GLOBALS['root'] . 'benutzer/';
    if (isset($person['accept'])) {
        $person['accept'] = ' checked';
    } else {
        $person['accept'] = '';
    }
    if (!isset($person['vorname'])) {
        $person['vorname'] = '';
    }
    if (!isset($person['nachname'])) {
        $person['nachname'] = '';
    }
    if (!isset($person['gebtag'])) {
        $person['gebtag'] = '';
    }
    if (!isset($person['gebmon'])) {
        $person['gebmon'] = '';
    }
    if (!isset($person['mail'])) {
        $person['mail'] = '';
    }
    if (!isset($person['passwd1'])) {
        $person['passwd1'] = '';
    }
    if (!isset($person['passwd2'])) {
        $person['passwd2'] = '';
    }
    $vars['%bedingungen%'] = FileReader::readFile($dir . 'bedingungen.html');
    $vars['%accept%'] = $person['accept'];
    $vars['%vorname%'] = text2html($person['vorname']);
    $vars['%nachname%'] = text2html($person['nachname']);
    if (isset($person['gebjahr'])) {
        $gebjahr = $person['gebjahr'];
    } else {
        $gebjahr = date('Y') - 12;
    }
    $gebdat = get_select_int('person[gebtag]', 1, 32, $person['gebtag']);
    $gebdat .= get_select_int('person[gebmon]', 1, 13, $person['gebmon']);
    $gebdat .= get_select_int('person[gebjahr]', date('Y') - 65, date('Y') - 5, $gebjahr);
    $vars['%gebdat%'] = $gebdat;
    $vars['%mail%'] = $person['mail'];
    $vars['%passwd1%'] = text2html($person['passwd1']);
    $vars['%passwd2%'] = text2html($person['passwd2']);
    $form = FileReader::readFile($dir . 'neu_person.html', $vars);
    return $form;
}