Improved image-buttons and colored image creation
This commit is contained in:
@@ -47,12 +47,9 @@ function write_mac($mac, $user_mac='xx:xx:xx:xx:xx:xx') {
|
||||
return $user_mac;
|
||||
}
|
||||
|
||||
// redirect page
|
||||
function header_location($location) {
|
||||
// send header
|
||||
header("location: " . $location);
|
||||
|
||||
// exit to be sure
|
||||
// redirect page
|
||||
header('location:' . $location);
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -79,14 +76,6 @@ function sanitize($input) {
|
||||
return $input;
|
||||
}
|
||||
|
||||
function mysql_nullstring($input) {
|
||||
if (isset($input)) {
|
||||
return $input;
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
function lang_getfrombrowser ($allowed_languages, $default_language, $lang_variable = null, $strict_mode = true) {
|
||||
if ($lang_variable === null) {
|
||||
$lang_variable = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
|
||||
@@ -139,7 +128,6 @@ function print_tree_rec($tree, $level) {
|
||||
return $output;
|
||||
}
|
||||
|
||||
//function print_tree($params, &$smarty) {
|
||||
function print_tree($params, Smarty_Internal_Template $template) {
|
||||
if (empty($params['level'])) {
|
||||
$level = 0;
|
||||
@@ -153,12 +141,9 @@ function print_tree($params, Smarty_Internal_Template $template) {
|
||||
}
|
||||
}
|
||||
|
||||
function msgout(array $parameters, Smarty_Internal_Template $smarty)
|
||||
{
|
||||
function msgout(array $parameters, Smarty_Internal_Template $smarty) {
|
||||
// This is just a quick hack around missing {php} in Smarty3
|
||||
$GLOBALS['g_error']->PrintOut();
|
||||
$GLOBALS['g_warning']->PrintOut();
|
||||
$GLOBALS['g_message']->PrintOut();
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user