This repository has been archived on 2025-04-04. You can view files and clone it, but cannot push or open issues or pull requests.
2016-04-18 01:43:35 +02:00

21 lines
690 B
PHP

<?php
class rate{
public static function rating($guide){
$rating = \SQL\GO_TRAINER_GET_GUIDE_RATING::Q1(array($guide));
if (!\SYSTEM\SECURITY\Security::isLoggedIn()){
return SYSTEM\PAGE\replace::replaceFile((new PPAGE('default_guide/tpl/default_rating_loggedout.tpl'))->SERVERPATH(), $rating);
}
else{
return SYSTEM\PAGE\replace::replaceFile((new PPAGE('default_guide/tpl/default_rating.tpl'))->SERVERPATH(), $rating);
}
}
}
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/