#SOLVED Client Stock At 76 Precent #PLUSEMU

LeZack

Don
Jul 22, 2015
64
16
Any suggestions ?

You must be registered for see images attach


PORTS OPEN
F12 no error's

My externe variables:


When close emu client disconnecteds.
 

LeZack

Don
Jul 22, 2015
64
16
@Etrion
<?php
// User gets checked if logged on in class.html.php
$uid = $_SESSION['user']['id'];
$conn = $db->PDO();
// Check for recent boxes opened
$stmt = $conn->pdo->prepare("SELECT `item_id` FROM `cms_box_opened` WHERE `user_id` = :uid AND `received` = 0");
$stmt->bindParam(':uid', $uid, $db->PARAM_INT);
$stmt->execute();
if($stmt->rowCount() > 0) {
foreach($stmt as $box) {
$users->giveUserItem($uid, $box['item_id']);
}
$stmt = $conn->pdo->prepare("UPDATE `cms_box_opened` SET `received` = 1 WHERE `user_id` = :uid");
$stmt->bindParam(':uid', $uid, $db->PARAM_INT);
$stmt->execute();
}

// Check for recent purchases of packages
$stmt = $conn->pdo->prepare("SELECT `id` FROM `cms_packages_bought` WHERE `user_id` = :uid AND `itemsGiven` = 0 LIMIT 1");
$stmt->bindParam(':uid', $uid, $db->PARAM_INT);
$stmt->execute();
if($stmt->rowCount() > 0) {
$pid = $stmt->fetchColumn();
$p = $admin->packageDecode($pid);
// Start Badge SQL
$item_id = $p['item_id'];
$bid = $p['badge_id'];
$pCredits = ($users->getUserInfo($uid, 'credits') + $p['credits']);
$pDuckets = ($users->getUserInfo($uid, 'activity_points') + $p['duckets']);
if(!$users->hasBadge($uid, $bid)) {
// User doesn't have this badge
$users->giveUserBadge($uid, $bid);
}
// End Badge SQL
// Start Item SQL
// Check if package includes more than 1 item
$number = substr($p['item_name'], 0, 1);
if(is_numeric($number)) {
//$number equals amount of items to be given by first character in item_name..
for($i = 0; $i < $number; $i++) {
$users->giveUserItem($uid, $item_id);
}
} else {
// Give user 1 item
$users->giveUserItem($uid, $item_id);
}
// End Item SQL
// Give user amount of credits and duckets
$users->updateUser($uid, 'credits', $pCredits);
$users->updateUser($uid, 'activity_points', $pDuckets);

$stmt = $conn->pdo->prepare("UPDATE `cms_packages_bought` SET `itemsGiven` = 1 WHERE `user_id` = :uid AND `id` = :pid LIMIT 1");
$stmt->bindParam(':uid', $uid, $db->PARAM_INT);
$stmt->bindParam(':pid', $pid, $db->PARAM_INT);
$stmt->execute();
}

$conn = null;
?>
<!DOCTYPE html>
<html lang="da">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>{hotelName}: Hotel</title>
{favicons}
<link rel="stylesheet" href="static/css/client.css" type="text/css">
<link href="{hotelurl}/static/css/modal.min.css" rel="stylesheet" />
<link href="{hotelurl}/static/css/bootstrap.min.css" rel="stylesheet" />
<link href="{hotelurl}/static/css/habbo-theme.css" rel="stylesheet" />
<link href="{hotelurl}/static/css/newhabbo.css" rel="stylesheet" />
<link href="//fonts.googleapis.com/css?family=Ubuntu:400,300,700" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="{hotelurl}/static/js/ajax/swiffy-v2.3.js"></script>

<script type="text/javascript">
var BaseUrl = " ";
var flashvars = {
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "0",
"connection.info.host" : "EMPTY",
"connection.info.port" : "30000",
"site.url" : " ",
"url.prefix" : " ",
"client.reload.url" : "{hotelurl}/client",
"client.fatal.error.url" : "{hotelurl}/me",
"client.connection.failed.url" : "{hotelurl}/me",
"external.variables.txt" : " ",
"external.texts.txt" : " ",
"external.override.texts.txt" : " ",
"external.override.variables.txt" : " ",
"external.figurepartlist.txt" : " ",
"productdata.load.url" : " ",
"furnidata.load.url" : " ",
"use.sso.ticket" : "0",
"sso.ticket" : "{sso}",
"client.starting" : "Please wait! {hotelName} is starting up.",
"processlog.enabled" : "0",
"flash.client.url" : BaseUrl + "/",
"flash.client.origin" : "popup"
};
var params = {
"base" : BaseUrl + "/",
"allowScriptAccess" : "always",
"menu" : "false"
};
swfobject.embedSWF(BaseUrl + "/Habbo.swf", "client", "100%", "100%", "10.1.0", BaseUrl + "/expressInstall.swf", flashvars, params, null);


</script>
</head>
<body>

<div class="modal fade forgot-password" id="clientModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<span style="width: 70px;"><?php echo date('Y-m-d'); ?></span>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span class="hidden-xs-up">Close</span></button>
</div>
<div class="modal-title">
<h3>Updates</h3>
</div>
<div class="modal-body">
<p id="clientModalBody"></p>
</div>
</div>
</div>
</div>

<div id="client"></div>

</body>

<!-- Bootstrap Minified JS -->
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" type="text/javascript"></script>

</html>
 

Users who are viewing this thread

Top