DVerse
Member
- Oct 8, 2016
- 53
- 6
Hi guys its me, again.
Yesterday i started to mix some CMS to create something unique.
Now i encountered a problem.
I want to use the home.php from the TwistCMS and implement it on my SleekCMS. So far so well.
Now when i click My Profile in the Navbar it comes an error. (See Image).
I know i must change something in the app folder but i dont know what. I have the feeling its something like class.core.php etc.
This is the home.php that want to use.
Anybody have an idea? (if you need to see some other codes hit me up.
Cheers.
Edit: If you want to have a look my hotel is
Yesterday i started to mix some CMS to create something unique.
Now i encountered a problem.
I want to use the home.php from the TwistCMS and implement it on my SleekCMS. So far so well.
Now when i click My Profile in the Navbar it comes an error. (See Image).
I know i must change something in the app folder but i dont know what. I have the feeling its something like class.core.php etc.
This is the home.php that want to use.
<?php
global $core;
include('/includes/header.php');
if(!isset($_SESSION['user']['username'])){
header('Location: /index');
exit();
}
// User Info \\
$userinfo = mysql_query("SELECT * FROM users WHERE username='$username' or id='$userid'");
$get2 = mysql_fetch_assoc($userinfo);
$user = $get2['username'];
$id = $get2['id'];
$looks = $get2['look'];
$email = $get2['mail'];
$rank = $get2['rank'];
$motto = $get2['motto'];
$credits = $get2['credits'];
$pixels = $get2['activity_points'];
$pvip = $get2['vip_points'];
$online = $get2['online'];
$role = $get2['role'];
$youtube = $get2['youtube'];
$account_created = $get2['account_created'];
$home = mysql_query("SELECT * FROM users WHERE username = '" . Filter($_GET['user']) . "' LIMIT 1");
if(mysql_num_rows($home) != 1)
{
$home = mysql_query("SELECT * FROM users WHERE username = '" . $_SESSION['user']['username'] . "' LIMIT 1");
}
$user = mysql_fetch_assoc($home);
?>
<div id="web_main">
<div id="main">
<div class="ab_title"><font><font>- <?php echo $user['username']; ?>'s Avatar</font></font></div>
<?php
$getuip = mysql_fetch_assoc(mysql_query("SELECT ip_last FROM users WHERE id='".$id."' LIMIT 1"));
$isBanned = mysql_query("SELECT null FROM bans WHERE value='".$getuip['ip_last']."' OR value='".$user['username']."' LIMIT 1") or die(mysql_error());
if(mysql_num_rows($isBanned) > 0)
{
echo '<div style="float: center;background: #FA5858;width: 897px; padding-left: 60px;padding-top:8px; border-radius: 5px; border: 2px solid #F78181;"><span style="color:white">This user is <b>banned</b>!</span></p></div><br><br>';
}
else
{
echo '';
}
?>
<div id="user_infobox">
<div style="float:left; width:450px;">
<div class="userinfos">
<div class="user_avatar">
<div style="margin-bottom: 14px;width:64px;height:110px;margin-left:auto;position:relative;margin-right:auto;background:url(
</div>
<div style="float:right;width:315px;margin-top: 35px;">
<div class="playername">This is <b><?php echo $user['username']; ?></b>!</div>
<div class="usercredits">
<div class="CreditIcon"></div>
<div class="cmenge"><?php echo $core->format_num($user['credits']); ?></div>
<div style="clear:both;"></div>
</div>
<div class="usercredits">
<div class="DucketIcon"></div>
<div class="cmenge"><?php echo $core->format_num($user['activity_points']); ?></div>
<div style="clear:both;"></div>
</div>
<div class="usercredits">
<div class="DiamondIcon"></div>
<div class="cmenge"><?php echo $core->format_num($user['vip_points']); ?></div>
<div style="clear:both;"></div>
</div>
<div class="usercredits">
<div class="GotwIcon"></div>
<div class="cmenge"><?php echo $core->format_num($user['gotw_points']); ?></div>
<div style="clear:both;"></div>
</div>
<div class="usermission">
<div class="MottoIcon"></div>
<div class="mission"><?php echo $user['motto']; ?></div>
<div style="clear:both;"></div>
</div>
</div>
</div>
</div>
<div style="float:right; width:510px;">
<div class="tb_box">
<div class="title">About <?php echo $user['username']; ?></div>
<p style="float: left;"><?php echo $user['aboutme']; ?></p><img style="float: right;" src="
<div style="clear:both;"></div>
</div>
</div>
<div style="clear:both;"></div>
</div>
<div style="clear:both; height:20px;"></div>
<div style="float: left; width: 600px;display: block;">
<iframe width="600" height="256" src="//
</div>
<div style="width: 360px;float: right;">
<div id="ul_box">
<div id="title">Social Medias</div>
<td><b><img src="/app/tpl/skins/{skin}/images/homes/twittericon.png"><font> Twitter:</b> <?php echo $user['twitter']; ?></font></td><br><br>
<td><b><img src="/app/tpl/skins/{skin}/images/homes/snogicon.png"><font> Snog:</b> <?php echo $user['snog']; ?></font></td><br><br>
<td><b><img src="/app/tpl/skins/{skin}/images/homes/kikicon.png"><font> Kik:</b> <?php echo $user['kik']; ?></font></td><br><br>
<td><b><img src="/app/tpl/skins/{skin}/images/homes/snapchaticon.png"><font> Snapchat:</b> <?php echo $user['snapchat']; ?></font></td><br><br>
<td><b><img src="/app/tpl/skins/{skin}/images/homes/skypeicon.png"><font> Skype:</b> <?php echo $user['skype']; ?></font></td><br><br>
<td><b><img src="/app/tpl/skins/{skin}/images/homes/instagramicon.png"><font> Instagram:</b> <?php echo $user['instagram']; ?></font></td>
<div style="height:10px;"></div>
</div></div>
</div>
</div>
<?php include('/includes/footer.php'); ?>
global $core;
include('/includes/header.php');
if(!isset($_SESSION['user']['username'])){
header('Location: /index');
exit();
}
// User Info \\
$userinfo = mysql_query("SELECT * FROM users WHERE username='$username' or id='$userid'");
$get2 = mysql_fetch_assoc($userinfo);
$user = $get2['username'];
$id = $get2['id'];
$looks = $get2['look'];
$email = $get2['mail'];
$rank = $get2['rank'];
$motto = $get2['motto'];
$credits = $get2['credits'];
$pixels = $get2['activity_points'];
$pvip = $get2['vip_points'];
$online = $get2['online'];
$role = $get2['role'];
$youtube = $get2['youtube'];
$account_created = $get2['account_created'];
$home = mysql_query("SELECT * FROM users WHERE username = '" . Filter($_GET['user']) . "' LIMIT 1");
if(mysql_num_rows($home) != 1)
{
$home = mysql_query("SELECT * FROM users WHERE username = '" . $_SESSION['user']['username'] . "' LIMIT 1");
}
$user = mysql_fetch_assoc($home);
?>
<div id="web_main">
<div id="main">
<div class="ab_title"><font><font>- <?php echo $user['username']; ?>'s Avatar</font></font></div>
<?php
$getuip = mysql_fetch_assoc(mysql_query("SELECT ip_last FROM users WHERE id='".$id."' LIMIT 1"));
$isBanned = mysql_query("SELECT null FROM bans WHERE value='".$getuip['ip_last']."' OR value='".$user['username']."' LIMIT 1") or die(mysql_error());
if(mysql_num_rows($isBanned) > 0)
{
echo '<div style="float: center;background: #FA5858;width: 897px; padding-left: 60px;padding-top:8px; border-radius: 5px; border: 2px solid #F78181;"><span style="color:white">This user is <b>banned</b>!</span></p></div><br><br>';
}
else
{
echo '';
}
?>
<div id="user_infobox">
<div style="float:left; width:450px;">
<div class="userinfos">
<div class="user_avatar">
<div style="margin-bottom: 14px;width:64px;height:110px;margin-left:auto;position:relative;margin-right:auto;background:url(
You must be registered for see links
<?php echo $user['look']; ?>&size=b&direction=3&head_direction=3&gesture=sml);"></div></div>
<div style="float:right;width:315px;margin-top: 35px;">
<div class="playername">This is <b><?php echo $user['username']; ?></b>!</div>
<div class="usercredits">
<div class="CreditIcon"></div>
<div class="cmenge"><?php echo $core->format_num($user['credits']); ?></div>
<div style="clear:both;"></div>
</div>
<div class="usercredits">
<div class="DucketIcon"></div>
<div class="cmenge"><?php echo $core->format_num($user['activity_points']); ?></div>
<div style="clear:both;"></div>
</div>
<div class="usercredits">
<div class="DiamondIcon"></div>
<div class="cmenge"><?php echo $core->format_num($user['vip_points']); ?></div>
<div style="clear:both;"></div>
</div>
<div class="usercredits">
<div class="GotwIcon"></div>
<div class="cmenge"><?php echo $core->format_num($user['gotw_points']); ?></div>
<div style="clear:both;"></div>
</div>
<div class="usermission">
<div class="MottoIcon"></div>
<div class="mission"><?php echo $user['motto']; ?></div>
<div style="clear:both;"></div>
</div>
</div>
</div>
</div>
<div style="float:right; width:510px;">
<div class="tb_box">
<div class="title">About <?php echo $user['username']; ?></div>
<p style="float: left;"><?php echo $user['aboutme']; ?></p><img style="float: right;" src="
You must be registered for see links
"/><div style="clear:both;"></div>
</div>
</div>
<div style="clear:both;"></div>
</div>
<div style="clear:both; height:20px;"></div>
<div style="float: left; width: 600px;display: block;">
<iframe width="600" height="256" src="//
You must be registered for see links
<?php echo $user['youtube_embed']; ?>?autoplay=0" frameborder="0" allowfullscreen></iframe></div>
<div style="width: 360px;float: right;">
<div id="ul_box">
<div id="title">Social Medias</div>
<td><b><img src="/app/tpl/skins/{skin}/images/homes/twittericon.png"><font> Twitter:</b> <?php echo $user['twitter']; ?></font></td><br><br>
<td><b><img src="/app/tpl/skins/{skin}/images/homes/snogicon.png"><font> Snog:</b> <?php echo $user['snog']; ?></font></td><br><br>
<td><b><img src="/app/tpl/skins/{skin}/images/homes/kikicon.png"><font> Kik:</b> <?php echo $user['kik']; ?></font></td><br><br>
<td><b><img src="/app/tpl/skins/{skin}/images/homes/snapchaticon.png"><font> Snapchat:</b> <?php echo $user['snapchat']; ?></font></td><br><br>
<td><b><img src="/app/tpl/skins/{skin}/images/homes/skypeicon.png"><font> Skype:</b> <?php echo $user['skype']; ?></font></td><br><br>
<td><b><img src="/app/tpl/skins/{skin}/images/homes/instagramicon.png"><font> Instagram:</b> <?php echo $user['instagram']; ?></font></td>
<div style="height:10px;"></div>
</div></div>
</div>
</div>
<?php include('/includes/footer.php'); ?>
Anybody have an idea? (if you need to see some other codes hit me up.
Cheers.
Edit: If you want to have a look my hotel is
You must be registered for see links