示例#1
0
<?php

// load Smarty library
require 'Smarty.class.php';
require 'classes/db_conn.inc';
require 'classes/kicker.inc';
$smarty = new Smarty();
$smarty->template_dir = 'C:\\Users\\Sven\\Projekte\\Lakitu\\templates';
$smarty->config_dir = ' C:\\Users\\Sven\\Projekte\\smarty\\config';
$smarty->cache_dir = 'C:\\Users\\Sven\\Projekte\\smarty\\cache';
$smarty->compile_dir = 'C:\\Users\\Sven\\Projekte\\smarty\\templates_c';
if (isset($_POST)) {
    if (isset($_POST['add_player']) && !empty($_POST['add_player'])) {
        kicker::add_player($_POST['add_player']);
    }
}
$smarty->display('options.tpl');