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

17 lines
740 B
PHP

<?php
class comment {
public static function new_comment($id){
$hasrated = \SQL\GO_TRAINER_GET_HASRATED::Q1(array(\SYSTEM\SECURITY\Security::getUser(), $id));
if (\SYSTEM\SECURITY\Security::isLoggedIn() && $hasrated){
return SYSTEM\PAGE\replace::replaceFile((new PPAGE('default_guide/tpl/default_new_comment.tpl'))->SERVERPATH());
}
elseif (\SYSTEM\SECURITY\Security::isLoggedIn()) {
return SYSTEM\PAGE\replace::replaceFile((new PPAGE('default_guide/tpl/default_new_comment_loggedin.tpl'))->SERVERPATH());
}
else{
return SYSTEM\PAGE\replace::replaceFile((new PPAGE('default_guide/tpl/default_new_comment_loggedout.tpl'))->SERVERPATH());
}
}
}