bcast-bridge/web/include/Helper.class.php

34 lines
469 B
PHP
Raw Normal View History

2006-12-11 21:36:44 +01:00
<?php
class Helper {
static function show($var) {
echo '<pre>';
print_r($var);
echo '</pre>';
}
static function show2($var) {
echo '<pre>';
var_dump($var);
echo '</pre>';
}
static function redirect($uri) {
header('Location: '.$uri);
die();
}
static function reload($args = false, $anker = false) {
$dest = $_SERVER['PHP_SELF'];
if ($args)
$dest .= "?".$args;
if ($anker)
$dest .= "#".$anker;
Helper::redirect($dest);
}
}
?>