Initial commit
bla
This commit is contained in:
36
dev_mvc/controller/HUtils.php
Normal file
36
dev_mvc/controller/HUtils.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
Class HUtils{
|
||||
static function issetPost($arr_postvars){
|
||||
for ($i=0; $i <sizeof($arr_postvars) ; $i++)
|
||||
{
|
||||
if(!isset($_POST[$arr_postvars[$i]])){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
static function issetSession($arr_sessionvars)
|
||||
{
|
||||
for ($i=0; $i <sizeof($arr_sessionvars) ; $i++) {
|
||||
if(!isset($_POST[$arr_sessionvars[$i]])){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
static function sqlDateToPhpDate($date){
|
||||
|
||||
return new DateTime($date);
|
||||
}
|
||||
static function getPage(){
|
||||
$p = "";
|
||||
if(isset($_GET['p'])){
|
||||
$p = $_GET['p'];
|
||||
}
|
||||
return $p;
|
||||
}
|
||||
static function getSiteTitle(){
|
||||
return "hPHPForum";
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user