Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

User permissions?

Status
Not open for further replies.
Initiate Mage
Joined
Oct 23, 2011
Messages
35
Reaction score
1
Hi!

I have an "problem" with Bots for RevCMS.
My Hotel sells VIP and i fixed so people can make Bots but how can i make that only VIP's can make Bots?

Maybe so only VIP's can enter Bots "Shop"? :junglejane:

Pic:
Capo93 - User permissions? - RaGEZONE Forums


--
Sorry for bad English im Swedish :/
 
Initiate Mage
Joined
Oct 23, 2011
Messages
35
Reaction score
1
Thanks!

Here goes:
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>{hotelName} - Bot Shop</title>

<link rel="stylesheet" href="{url}/app/tpl/skins/Custom-Habbo/styles/common.css" type="text/css">
<script type="text/javascript" src="{url}/app/tpl/skins/Custom-Habbo/js/libs2.js"></script>
<script type="text/javascript" src="{url}/app/tpl/skins/Custom-Habbo/js/visual.js"></script>
<script type="text/javascript" src="{url}/app/tpl/skins/Custom-Habbo/js/libs.js"></script>
<script type="text/javascript" src="{url}/app/tpl/skins/Custom-Habbo/js/common.js"></script>
<script type="text/javascript" src="{url}/app/tpl/skins/Custom-Habbo/js/fullcontent.js"></script>

<script type="text/javascript">
document.habboLoggedIn = true;
var habboName = "{username}";
var habboId = {userid};
var habboReqPath = "";
var habboStaticFilePath = "{url}/app/tpl/skins/Custom-Habbo";
var habboImagerUrl = "http://www.habbo.nl/habbo-imaging/";
var habboPartner = "";
var habboDefaultClientPopupUrl = "{url}/client";
window.name = "habboMain";
if (typeof HabboClient != "undefined") {
HabboClient.windowName = "eac955c8dbc88172421193892a3e98fc7402021a";
HabboClient.maximizeWindow = true;
}
</script>
<script type="text/javascript">
function validateForm()
{
var x=document.forms["form"]["name"].value;
if (x==null || x=="")
{
alert("All fields must be filled out");
return false;
}
}
</script>

<!--[if IE 8]>
<link rel="stylesheet" href="{url}/app/tpl/skins/Custom-Habbo/styles/ie8.css" type="text/css">
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="{url}/app/tpl/skins/Custom-Habbo/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="{url}/app/tpl/skins/Custom-Habbo/styles/ie6.css" type="text/css" />
<script type="text/javascript" src="{url}/app/tpl/skins/Custom-Habbo/js/pngfix.js"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>
<style type="text/css">
body { behavior: url({url}/app/tpl/skins/Custom-Habbo/js/csshover.htc); }
</style>
<![endif]-->
</head>

<body id="home">

<div id="overlay"></div>
<div id="header-container">
<div id="header" class="clearfix">
<h1><a href="{url}/"></a></h1>
<div id="subnavi">
<div id="subnavi-user">
</div>
<div id="subnavi-search">
<div id="subnavi-search-upper">
<ul id="subnavi-search-links">
<li><a href="{url}/help" style="color:#000" target="_blank">Hjälp </a></li><li><a href="{url}/logout" style="color:#000">Checka ut</a></li>
</ul>
</div>
</div>
<div id="to-hotel">
<a href="{url}/client" class="new-button green-button" target="eac955c8dbc88172421193892a3e98fc7402021a" onclick="HabboClient.openOrFocus(this); return false;"><b>Enter {hotelName} Hotel</b><i></i></a>
</div>
</div>
<ul id="navi">
<li class="metab"><a href="{url}/me">{username}</a><span></span></li>
<li><a href="{url}/community">Community</a><span></span></li>
<li class="selected"><a href="{url}/vip">Shop</a><span></span></li>
</ul>
<div id="habbos-online"><div class="rounded"><span>{online} Användare online</span></div></div>
</div>
</div>
<div id="content-container">
<div id="navi2-container" class="pngbg">
<div id="navi2" class="pngbg clearfix">
<ul>
<li><a href="{url}/vip">Vip</a><span></span></li>
<li class="selected">Bots<span></span></li>
</ul>
</div>
</div>

<div id="container">
<div id="content" style="position: relative" class="clearfix">
<div id="column1" class="column">
<div class="habblet-container ">
<div class="cbb clearfix blue ">
<h2 class="title">Bot Shop</h2>
<div style="padding:5px">
<form name="form" action="/bots/insert.php" onsubmit="return validateForm();" method="post">
<span title="Var inte orolig när det gäller ID, Det skrivs in Automatiskt.">Bot ID: </span><br />
<input type="text" name="id" value="<?php
$sql = "SELECT * FROM bots ORDER BY id DESC LIMIT 0,1";
$result = mysql_query($sql);
$info = mysql_fetch_array($result);
$id = $info['id'];
$addition = $id + 1;

echo $addition;
?>" readonly /><br /><br />

<span title="För att hitta Rum ID, Gå till rummet och klicka "Rum info". Kolla under "Länk till detta rum", kopiera rums numme roch skriv det nedan.">Rum ID: </span><br />
<select name="room_id">
<?php
$getID = mysql_query('SELECT * FROM rooms WHERE id AND owner = "'.$_SESSION['user']['username'].'"');

while($row = mysql_fetch_array($getID)){
echo "<option>";
echo $row['id'];
echo "<br /></option>";
}
?>
</select><br /><br />

<span title="Self-explanatory.">Bot namn: </span><br />
<input type="text" name="name" /><br /><br />

<span title="Kommer ses när andra trycker på din BOT.">Bot motto: </span><br />
<input type="text" name="motto" /><br /><br />

<span title="">Utseende: </span><br />
<input type="text" name="look" value="hd-180-7.sh-290-110.lg-270-91.ch-809-62.hr-828-45" /><br /><br />

<span title="Säg :coords på hotellet där du står för tillfället.">Kordinater: </span><br />
X: <input type="number" name="x" /><br /><br />
Y: <input type="number" name="y" /><br /><br />
Z: <input type="number" name="z" /><br /><br />
Rotation: <input type="number" name="rotation" /><br /><br />

<span title="Det finns 3 typer av walkmode (Gå lägen) : stand(stå), freeroam(gå vart som helst) och specified_range(Gå inom en speiciell plats), ganska självförklarande.">Walk mode: </span><br />
<select name="walk_mode">
<option>stand</option>
<option>freeroam</option>
<option>specified_range</option>
</select><br /><br />

<input type="submit" value="Skapa bot" class="submit">
</form>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
</div>
</div>
</div>

<div id="column2" class="column">
<div class="habblet-container ">
<div class="cbb clearfix blue ">
<h2 class="title">Allt om botar</h2>
<div style="padding:5px">
Du hittar botar på olika platser i {hotelName}, de flesta är bosatta i vissa av de offentliga rummen. Men nu kan du få din alldeles egna bot för ditt rum! Bot svar kommer snart.
<br><br>Please note that this feature is currently in testing stage.
</div>
</div>
</div>
</div>

</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<script type="text/javascript">
HabboView.run();
</script>

<!--[if lt IE 7]>
<script type="text/javascript">
Pngfix.doPngImageFix();
</script>
<![endif]-->

<div id="footer" >
</div>
</body>
</html>
 
Upvote 0
Status
Not open for further replies.
Back
Top