nickpage work
This commit is contained in:
parent
45ca500cc3
commit
0637c14b23
5 changed files with 76 additions and 82 deletions
|
@ -45,12 +45,17 @@ class nickpage extends module{
|
|||
|
||||
$result=$db->query("SELECT * FROM `" . $config["prefix"] . "v_nickpage` WHERE `username`='".$db->escape($_GET['user'])."' LIMIT 1");
|
||||
$user=$db->fetch_array($result);
|
||||
|
||||
$themedir = $this->getTemplateDir();
|
||||
if(!isset($_GET['user']) || $db->num_rows($result)<=0 || $_GET['user']==''){
|
||||
$db->free_result($result);
|
||||
header("HTTP/1.1 404 Not Found");
|
||||
header("Status: 404 Not Found");
|
||||
$user['sitetitle']='Nickpage nicht gefunden';
|
||||
$this->tpl->assign('user',$user);
|
||||
$this->tpl->assign("themepath",'/themes/'.$config['theme']);
|
||||
$this->tpl->assign('domain',$config['domain']);
|
||||
$content=$this->tpl->fetch('nickpage_error.tpl');
|
||||
$core->make_page($content,TRUE,$themedir.'/nickpage.tpl',NULL,NULL);
|
||||
}else{
|
||||
$parser=new textparser();
|
||||
$loggedin = false;
|
||||
|
@ -136,9 +141,9 @@ class nickpage extends module{
|
|||
$data=get_user_room($user['username']);
|
||||
if($data){
|
||||
$user['room']=$data['room'];
|
||||
$user['roomlock']='<img src="'.$path.'/themes/funchat/images/unlocked.png" alt="Offen" />';
|
||||
$user['roomlock']='<img src="'.$config['fullpath'].'/themes/funchat/images/unlocked.png" alt="Offen" />';
|
||||
if($user['roomlocked']){
|
||||
$user['roomlock']='<img src="'.$path.'/themes/funchat/images/locked.png" alt="Abgeschlossen" />';
|
||||
$user['roomlock']='<img src="'.$config['fullpath'].'/themes/funchat/images/locked.png" alt="Abgeschlossen" />';
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -193,7 +198,6 @@ class nickpage extends module{
|
|||
$this->tpl->assign('pagination',$pagination);
|
||||
$content=$this->tpl->fetch('nickpage_content.tpl');
|
||||
}
|
||||
$themedir = $this->getTemplateDir();
|
||||
$core->make_page($content,TRUE,$themedir.'/nickpage.tpl',NULL,NULL);
|
||||
}
|
||||
|
||||
|
@ -207,7 +211,14 @@ class nickpage extends module{
|
|||
}
|
||||
return $themedir;
|
||||
}
|
||||
|
||||
function output_entry(){
|
||||
if(!empty($_POST['submit'])){
|
||||
die("Post entry");
|
||||
} else {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function output_edit(){
|
||||
global $module,$tpl,$config,$db,$log,$core,$error, $session;
|
||||
If($_POST['submit']){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue