khanat-opennel-code/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/helpers.php

21 lines
460 B
PHP
Raw Normal View History

2013-06-06 06:04:46 +00:00
<?php
2013-06-06 06:39:33 +00:00
class Helpers{
public function loadTemplate( $template, $vars = array () )
{
extract( $vars );
include( $template );
}
public function check_if_game_client()
{
// if HTTP_USER_AGENT is not set then its ryzom core
if ( !isset( $_SERVER['HTTP_USER_AGENT'] ) ){
return true;
}else{
return false;
}
}
2013-06-06 06:04:46 +00:00
}