When register users receive 15000 credits, but in config file I defined to receive 0 credits!!!
Printable View
When register users receive 15000 credits, but in config file I defined to receive 0 credits!!!
Well, Apparently the download website is down ;(
Change the default value of 'credits' in the 'user' table in your database.
Also check the registration queries on the pages, it may also be the problem.
Anyone got a fix to my problem? Some users keep getting demoted. I told them to create new accounts (I changed their names so they could use them again), it seems to have been working.
Hmmm, I am using this on IIS this is the error I get..
http://www.iaza.com/work/120530C/iaza15125653662800.png
Help anyone?
new links for download
http://ladyceramics.com/UberCMS-2-0-1-PL1.zip
http://ladyceramics.com/UberCMS-2-0-1-DB.zip
thanks for the credits change i was trying to fuiger that out to ohh and how do you make it so the users get so and so credits every 15 mins or so ??
Josh do u know how to fix my error?......
If you, like me, have problems with the homes not saving on IIS then here is a fix that worked for me.
open myhabbo/save.php and replace the content with this ->
PHP Code:<?php
if(!defined('NOWHOS'))
{
define('NOWHOS', true);
}
define('Xukys', true);
require_once '../global.php';
require_once '../includes/class.homes.php';
if(isset($_POST["stickers"]))
{
$var = explode('/', $_POST['stickers']);
//var_dump($var);
foreach($var as $var_data)
{
if(empty($var_data))
{
break;
}
$vardata = explode(':', $var_data);
$xyz = explode(',', $vardata[1]);
$sql = mysql_query("SELECT skin FROM site_inventory_items WHERE userId = '" . USER_ID . "' AND id = '" . mysql_real_escape_string($vardata[0]) ."' AND isWaiting = '1' LIMIT 1");
if(mysql_num_rows($sql) > 0)
{
$row = mysql_fetch_array($sql);
mysql_query("INSERT INTO homes_items (id, home_id, type, x, y, z, data, skin, owner_id, link) VALUES (NULL, '".USER_ID."', 'sticker', '".mysql_real_escape_string($xyz[0])."', '".mysql_real_escape_string($xyz[1])."', '".mysql_real_escape_string($xyz[2])."', '".$row['skin']."', '', '".USER_ID."', '".mysql_real_escape_string($vardata[0])."');");
// mysql_query("UPDATE site_inventory_items SET isWaiting = '0' WHERE id = '".mysql_real_escape_string($vardata[0])."' AND userId = '".USER_ID."' LIMIT 1;");
//echo 'ok';
}
else
{
mysql_query("UPDATE homes_items SET x = '".mysql_real_escape_string($xyz[0])."', y = '".mysql_real_escape_string($xyz[1])."', z = '".mysql_real_escape_string($xyz[2])."' WHERE id = '".mysql_real_escape_string($vardata[0])."' AND owner_id = '".USER_ID."' LIMIT 1");
//echo 'else';
}
}
}
if(isset($_POST["stickienotes"]))
{
$varstickienotes = explode('/', $_POST['stickienotes']);
//var_dump($var);
foreach($varstickienotes as $var_datastickienotes)
{
if(empty($var_datastickienotes))
{
break;
}
$vardatastickienotes = explode(':', $var_datastickienotes);
$xyzstickienotes = explode(',', $vardatastickienotes[1]);
$sqlstickienotes = mysql_query("SELECT skin FROM site_inventory_items WHERE userId = '" . USER_ID . "' AND id = '" . mysql_real_escape_string($vardatastickienotes[0]) ."' AND isWaiting = '1' LIMIT 1");
if(mysql_num_rows($sqlstickienotes) > 0)
{
$rowstickienotes = mysql_fetch_assoc($sqlstickienotes);
mysql_query("INSERT INTO homes_items (id, home_id, type, x, y, z, data, skin, owner_id) VALUES (NULL, '".USER_ID."', 'sticker', '".mysql_real_escape_string($xyzstickienotes[0])."', '".mysql_real_escape_string($xyzstickienotes[1])."', '".mysql_real_escape_string($xyzstickienotes[2])."', '".$rowstickienotes['skin']."', '', '".USER_ID."');");
// mysql_query("UPDATE site_inventory_items SET isWaiting = '0' WHERE id = '".mysql_real_escape_string($vardatastickienotes[0])."' AND userId = '".USER_ID."' LIMIT 1");
}
else
{
mysql_query("UPDATE homes_items SET x = '".mysql_real_escape_string($xyzstickienotes[0])."', y = '".mysql_real_escape_string($xyzstickienotes[1])."', z = '".mysql_real_escape_string($xyzstickienotes[2])."' WHERE id = '".mysql_real_escape_string($vardatastickienotes[0])."' AND owner_id = '".USER_ID."' LIMIT 1");
}
}
}
if(isset($_POST["widgets"]))
{
$varwidgets = explode('/', $_POST['widgets']);
//var_dump($var);
foreach($varwidgets as $var_datawidgets)
{
if(empty($var_datawidgets))
{
break;
}
$vardatawidgets = explode(':', $var_datawidgets);
$xyzwidgets = explode(',', $vardatawidgets[1]);
$sqlwidgets = mysql_query("SELECT skin FROM site_inventory_items WHERE userId = '" . USER_ID . "' AND id = '" . mysql_real_escape_string($vardatawidgets[0]) ."' AND isWaiting = '1' LIMIT 1");
if(mysql_num_rows($sqlwidgets) > 0)
{
$rowwidgets = mysql_fetch_assoc($sqlwidgets);
//mysql_query("INSERT INTO homes_items (id, home_id, type, x, y, z, data, skin, owner_id) VALUES (NULL, '".USER_ID."', 'sticker', '".mysql_real_escape_string($xyzwidgets[0])."', '".mysql_real_escape_string($xyzwidgets[1])."', '".mysql_real_escape_string($xyzwidgets[2])."', '".$rowwidgets['skin']."', '', '".USER_ID."');");
// mysql_query("UPDATE site_inventory_items SET isWaiting = '0' WHERE id = '".mysql_real_escape_string($vardatawidgets[0])."' AND userId = '".USER_ID."' LIMIT 1");
}
else
{
mysql_query("UPDATE homes_items SET x = '".mysql_real_escape_string($xyzwidgets[0])."', y = '".mysql_real_escape_string($xyzwidgets[1])."', z = '".mysql_real_escape_string($xyzwidgets[2])."' WHERE id = '".mysql_real_escape_string($vardatawidgets[0])."' AND owner_id = '".USER_ID."' LIMIT 1");
}
}
}
if(isset($_POST['background']))
{
$background = $gtfo->cleanWord($_POST['background']);
$bg = explode(':', $_POST['background']);
if(is_numeric($bg[0]))
{
$sql = mysql_query("SELECT userId from site_inventory_items WHERE id = '".$bg[0]."'");
$data = mysql_fetch_array($sql);
//echo $bg[0];
if(mysql_num_rows($sql) > 0)
{
if($data['userId'] == USER_ID)
{
mysql_query("UPDATE homes SET bgimage = '".$bg[1]."' WHERE home_id = '".USER_ID."'");
//echo 'ok';
}
}
}
}
unset($_SESSION['startSessionEditHome']);
?>
<script language="JavaScript" type="text/javascript">
waitAndGo('/home/<?php echo $_SESSION['UBER_USER_N']; ?>');
</script>
Seem to be having the login error that some has been experiencing. If I register a new account I can login fine, but if I try to login with my correct details already registered before the switch to Uber 2.0 It just refreshes the page. Anyone got a fix by any chance?
In order to change password hashing, use CTRL + F and hit Replace in all files, then change
toCode:$users->UserHash
ThanksCode:$core->UberHash
:/ I get this error when trying to load my client, (I imported some tables from my old rev db if thats it...)
http://i49.tinypic.com/nbun15.png
Any Ideas?