PDA

View Full Version : Please.



chrisgocrazyH
04-09-2008, 09:19 AM
Hey,


Hello as i have been disrespected on this forum and all can we forget about it as i really need some help.


Im after a Habbo Image updater like Habbo has?

Now i have seen some habbo cms's (retro ones) and they have the code but i cant seem to get it to work..

The sql code thing we want it to update to.

$user[username]


accounts.php (the holocms)

<?php
/*================================================= ==+
|| # HoloCMS - Website and Content Management System
|+================================================ ===+
|| # Copyright © 2008 Meth0d. All rights reserved.
|| # http://www.meth0d.org
|+================================================ ===+
|| # HoloCMS is provided "as is" and comes without
|| # warrenty of any kind. HoloCMS is free software!
|+================================================ ===+
|| # Friends Management by Yifan Lu
|| # www.obbahhotel.com
|+================================================ ===*/

$allow_guests = false;

require_once('core.php');
require_once('includes/session.php');
if(function_exists(SendMUSData) !== true){ include('includes/mus.php'); }

$pagename = "Account Settings";
$body_id = "profile";
$pageid = "2";

if(isset($_GET['tab'])){
if($_GET['tab'] < 1 || $_GET['tab'] > 8 ){
header("Location: account.php?tab=1");
$tab = 0;
exit;
} else {
$tab = $_GET['tab'];
}
} else {
$tab = "1";
}

if($tab == "1"){

if(isset($_POST['figureData'])){
$refer = $_SERVER['HTTP_REFERER']; $pos = strrpos($refer, "account.php"); if ($pos === false) { echo "<h1>Security check failure.</h1>"; exit; }
$new_figure = addslashes($_POST['figureData']);
$new_gender = addslashes($_POST['newGender']);
if($new_gender !== "M" && $new_gender !== "F"){
$result = "An error occured. Please try again.";
$error = "1";
} else {
if(empty($new_figure)){
$result = "An error occured trying to process your request.";
$error = "1";
} else {
mysql_query("UPDATE users SET figure = '".$new_figure."', sex = '".$new_gender."' WHERE name = '".$rawname."' LIMIT 1") or die(mysql_error());
$result = "Account settings updated successfully.";
$mylook1 = addslashes($_POST['figureData']);
$mysex1 = addslashes($_POST['newGender']);
@SendMUSData('UPRA' . $my_id);
}
}
} else {
$mylook1 = $myrow['figure'];
$mysex1 = $myrow['sex'];
}

// Wardrobe handler
$slot1 = mysql_query("SELECT figure,gender FROM cms_wardrobe WHERE slotid = '1' AND userid = '".$my_id."' LIMIT 1") or die(mysql_error());
$slot1 = mysql_fetch_assoc($slot1);
if(!empty($slot1['figure'])){ $slot1_url = "http://www.habbo.co.uk/habbo-imaging/avatarimage?figure=".$slot1['figure']."&size=s&direction=4&head_direction=4&gesture=sml"; }
$slot2 = mysql_query("SELECT figure,gender FROM cms_wardrobe WHERE slotid = '2' AND userid = '".$my_id."' LIMIT 1") or die(mysql_error());
$slot2 = mysql_fetch_assoc($slot2);
if(!empty($slot2['figure'])){ $slot2_url = "http://www.habbo.co.uk/habbo-imaging/avatarimage?figure=".$slot2['figure']."&size=s&direction=4&head_direction=4&gesture=sml"; }
$slot3 = mysql_query("SELECT figure,gender FROM cms_wardrobe WHERE slotid = '3' AND userid = '".$my_id."' LIMIT 1") or die(mysql_error());
$slot3 = mysql_fetch_assoc($slot3);
if(!empty($slot3['figure'])){ $slot3_url = "http://www.habbo.co.uk/habbo-imaging/avatarimage?figure=".$slot3['figure']."&size=s&direction=4&head_direction=4&gesture=sml"; }
$slot4 = mysql_query("SELECT figure,gender FROM cms_wardrobe WHERE slotid = '4' AND userid = '".$my_id."' LIMIT 1") or die(mysql_error());
$slot4 = mysql_fetch_assoc($slot4);
if(!empty($slot4['figure'])){ $slot4_url = "http://www.habbo.co.uk/habbo-imaging/avatarimage?figure=".$slot4['figure']."&size=s&direction=4&head_direction=4&gesture=sml"; }
$slot5 = mysql_query("SELECT figure,gender FROM cms_wardrobe WHERE slotid = '5' AND userid = '".$my_id."' LIMIT 1") or die(mysql_error());
$slot5 = mysql_fetch_assoc($slot5);
if(!empty($slot5['figure'])){ $slot5_url = "http://www.habbo.co.uk/habbo-imaging/avatarimage?figure=".$slot5['figure']."&size=s&direction=4&head_direction=4&gesture=sml"; }

} else if($tab == "2"){
if(isset($_POST['save'])){
if(strlen($_POST['motto']) > 32){
$result = "Sorry, but the motto you have chosen is too long!";
$error = "1";
$motto = $_POST['motto']; // Do not add slashes, no database communication here.
} else {
$motto = htmlspecialchars(addslashes($_POST['motto']));
mysql_query("UPDATE users SET mission = '".$motto."' WHERE name = '".$rawname."' and password = '".$rawpass."' LIMIT 1");
$result = "Changes saved successfully.";
$motto = $_POST['motto']; // Do not add slashes, this is for display purposes.
@SendMUSData('UPRA' . $my_id);
}
} else {
$motto = stripslashes($myrow['mission']);
}
} else if($tab == "3"){
if(isset($_POST['save'])){
$pass1 = $_POST['password'];
//Hashes and salts the first password with the user id (in lowercase) --encryption--
$pass1_hash = HoloHash($pass1, $myrow['name']);
$day1 = $_POST['day'];
$month1 = $_POST['month'];
$year1 = $_POST['year'];
$formatted_dob = "".$day1."-".$month1."-".$year1."";
$mail1 = $_POST['email'];
$themail = $mail1;
//checks password --encryption--
if($pass1_hash == $myrow['password'] && $formatted_dob == $myrow['birth']){
$email_check = preg_match("/^[a-z0-9_\.-]+@([a-z0-9]+([\-]+[a-z0-9]+)*\.)+[a-z]{2,7}$/i", $mail1);
if($email_check == "1"){
mysql_query("UPDATE users SET email = '".$mail1."' WHERE name = '".$rawname."' and password = '".$rawpass."'") or die(mysql_error());
$result = "Your e-mail address has been changed to ".$mail1."";
} else {
$result = "Invalid e-mail address";
$error = "1";
}
} else {
$result = "The given information doesn't match what we have on record";
$error = "1";
}
} else {
$themail = $myrow['email'];
}
} else if($tab == "4"){
if(isset($_POST['save'])){
$pass1 = $_POST['password'];
//Hashes and salts the old password with the user id (in lowercase) --encryption--
$pass1_hash = HoloHash($pass1, $myrow['name']);
$day1 = $_POST['day'];
$month1 = $_POST['month'];
$year1 = $_POST['year'];
$formatted_dob = "".$day1."-".$month1."-".$year1."";
$newpass = $_POST['pass'];
//Hashes and salts the new password with the user id (in lowercase) --encryption--
$newpass_hash = HoloHash($newpass, $rawname);
$newpass_conf = $_POST['confpass'];
if($pass1_hash == $myrow['password'] && $formatted_dob == $myrow['birth']){
if($newpass == $newpass_conf){
if(strlen($newpass) < 6){
$result = "Password is too short, 6 characters minimum";
$error = "1";
} else {
if(strlen($newpass) > 25){
$result = "Password is too long, 25 characters maximum";
$error = "1";
} else {
//Updates password --encryption--
mysql_query("UPDATE users SET password = '".$newpass_hash."' WHERE name = '".$rawname."' and password = '".$rawpass."'") or die(mysql_error());
$result = "Your password has been changed successfully. You will need to login again.";
}
}
} else {
$result = "The passwords don't match";
$error = "1";
}
} else {
$result = "The given information doesn't match what we have on record";
$error = "1";
}
}
} else if($tab == "7"){
if(isset($_POST['save'])){
$pass1 = $_POST['password'];
//Hashes and salts the old password with the user id (in lowercase) --encryption--
$pass1_hash = HoloHash($pass1, $myrow['name']);
$day1 = $_POST['day'];
$month1 = $_POST['month'];
$year1 = $_POST['year'];
$formatted_dob = "".$day1."-".$month1."-".$year1."";
$newpass = $_POST['pass'];
//Hashes and salts the new password with the user id (in lowercase) --encryption--
$newpass_hash = HoloHash($newpass, $rawname);
$newpass_conf = $_POST['confpass'];
if($pass1_hash == $myrow['password'] && $formatted_dob == $myrow['birth']){
if($newpass == $newpass_conf){
if(strlen($newpass) < 6){
$result = "Password is too short, 6 characters minimum";
$error = "1";
} else {
if(strlen($newpass) > 25){
$result = "Password is too long, 25 characters maximum";
$error = "1";
} else {
//Updates password --encryption--
mysql_query("UPDATE users SET password = '".$newpass_hash."' WHERE name = '".$rawname."' and password = '".$rawpass."'") or die(mysql_error());
$result = "Your password has been changed successfully. You will need to login again.";
}
}
} else {
$result = "The passwords don't match";
$error = "1";
}
} else {
$result = "The given information doesn't match what we have on record";
$error = "1";
}
}
} else if($tab == "8"){
if(isset($_POST['save'])){
mysql_query("UPDATE users SET screen = '".$_POST['screen']."', rea = '".$_POST['rea']."', language = '".$_POST['language']."' WHERE id = '".$my_id."'");
$result = "Updated";
}
}

include('templates/community/subheader.php');
include('templates/community/header.php');

// Save it in a variable to avoid having to check wether this user is HC member or not each time
$hc_member = IsHCMember($my_id);

?>

<div id="container">
<div id="content">
<div>
<div class="content">
<div class="habblet-container" style="float:left; width:210px;">
<div class="cbb settings">

<h2 class="title">Account Settings</h2>
<div class="box-content">
<div id="settingsNavigation">
<ul>
<?php
if($tab == "1"){
echo "<li class='selected'>Looks
</li>";
} else {
echo "<li><a href='account.php?tab=1'>Looks</a>
</li>";
}

if($tab == "2"){
echo "<li class='selected'>Motto &amp; Preferences
</li>";
} else {
echo "<li><a href='account.php?tab=2'>Motto &amp; Preferences</a>
</li>";
}

if($tab == "3"){
echo "<li class='selected'>Email
</li>";
} else {
echo "<li><a href='account.php?tab=3'>Email</a>
</li>";
}

if($tab == "4"){
echo "<li class='selected'>Password
</li>";
} else {
echo "<li><a href='account.php?tab=4'>Password</a>
</li>";
}

if($tab == "5"){
echo "<li class='selected'>Refer Options
</li>";
} else {
echo "<li><a href='account.php?tab=5'>Refer Options</a>
</li>";
}

if($tab == "6"){
echo "<li class='selected'>Friend Management
</li>";
} else {
echo "<li><a href='account.php?tab=6'>Friend Management</a>
</li>";
}

if($tab == "8"){
echo "<li class='selected'>Client Settings
</li>";
} else {
echo "<li><a href='account.php?tab=8'>Client Settings</a>
</li>";
}
?>
</ul>
</div>
</div></div>
<?php if( !IsHCMember($my_id) ){ ?>
<div class="cbb habboclub-tryout">
<h2 class="title">Join <?php echo $shortname; ?> Club</h2>
<div class="box-content">
<div class="habboclub-banner-container habboclub-clothes-banner"></div>
<p class="habboclub-header"><?php echo $shortname; ?> Club is our VIP members-only club: absolutely no riff-raff admitted! Members enjoy a wide range of benifits, including exclusive clothes, free gifts and an extended Friend List.</p>
<p class="habboclub-link"><a href="club.php">Check out <?php echo $shortname; ?> Club &gt;&gt;</a></p>
</div>
</div>
<?php } ?>
</div>

<?php if($tab == "1"){ ?>
<div class="habblet-container" style="float:left; width: 560px;">
<div class="cbb clearfix settings">

<h2 class="title">Change your looks</h2>
<div class="box-content">

<?php
if(!empty($result)){
if($error == "1"){
echo "<div class='rounded rounded-red'>";
} else {
echo "<div class='rounded rounded-green'>";
}
echo "".$result."<br />
</div><br />";
}
?>
<div>&nbsp;</div>

<div id="settings-editor">
You need to have a Flash player installed on your computer before being able to edit your Habbo character. You can download the player from here: <a target="_blank" href="http://www.adobe.com/go/getflashplayer">http://www.adobe.com/go/getflashplayer</a>
</div>

<?php if($hc_member){ ?><div id="settings-wardrobe" style="display: none">
<ol id="wardrobe-slots">
<li>
<p id="wardrobe-slot-1" style="background-image: url(<?php echo $slot1_url; ?>)">
<span id="wardrobe-store-1" class="wardrobe-store"></span>
<span id="wardrobe-dress-1" class="wardrobe-dress"></span>
</p>
</li>
<li>
<p id="wardrobe-slot-2" style="background-image: url(<?php echo $slot2_url; ?>)">
<span id="wardrobe-store-2" class="wardrobe-store"></span>
<span id="wardrobe-dress-2" class="wardrobe-dress"></span>
</p>
</li>
<li>
<p id="wardrobe-slot-3" style="background-image: url(<?php echo $slot3_url; ?>)">
<span id="wardrobe-store-3" class="wardrobe-store"></span>
<span id="wardrobe-dress-3" class="wardrobe-dress"></span>
</p>
</li>
<li>
<p id="wardrobe-slot-4" style="background-image: url(<?php echo $slot4_url; ?>)">
<span id="wardrobe-store-4" class="wardrobe-store"></span>
<span id="wardrobe-dress-4" class="wardrobe-dress"></span>
</p>
</li>
<li>
<p id="wardrobe-slot-5" style="background-image: url(<?php echo $slot5_url; ?>)">
<span id="wardrobe-store-5" class="wardrobe-store"></span>
<span id="wardrobe-dress-5" class="wardrobe-dress"></span>
</p>
</li>
</ol>

<script type="text/javascript">
<?php if(!empty($slot1['figure'])){ ?>
Wardrobe.add(1, "<?php echo $slot1['figure']; ?>", "<?php echo $slot1['gender']; ?>", true);
$("wardrobe-dress-" + 1).show();
<?php } ?>
<?php if(!empty($slot2['figure'])){ ?>
Wardrobe.add(2, "<?php echo $slot2['figure']; ?>", "<?php echo $slot2['gender']; ?>", true);
$("wardrobe-dress-" + 2).show();
<?php } ?>
<?php if(!empty($slot3['figure'])){ ?>
Wardrobe.add(3, "<?php echo $slot3['figure']; ?>", "<?php echo $slot3['gender']; ?>", true);
$("wardrobe-dress-" + 3).show();
<?php } ?>
<?php if(!empty($slot4['figure'])){ ?>
Wardrobe.add(4, "<?php echo $slot4['figure']; ?>", "<?php echo $slot4['gender']; ?>", true);
$("wardrobe-dress-" + 4).show();
<?php } ?>
<?php if(!empty($slot5['figure'])){ ?>
Wardrobe.add(5, "<?php echo $slot5['figure']; ?>", "<?php echo $slot5['gender']; ?>", true);
$("wardrobe-dress-" + 5).show();
<?php } ?>
L10N.put("profile.figure.wardrobe_replace.title", "Replace?");
L10N.put("profile.figure.wardrobe_replace.dialog", "<p\>\nAre you sure you want to replace the stored outfit with the new one?\n</p\>\n\n<p\>\n<a href=\"#\" class=\"new-button\" id=\"wardrobe-replace-cancel\"\><b\>Cancel</b\><i\></i\></a\>\n<a href=\"#\" class=\"new-button\" id=\"wardrobe-replace-ok\"\><b\>OK</b\><i\></i\></a\>\n</p\>\n\n<div class=\"clear\"\></div\>\n");
L10N.put("profile.figure.wardrobe_invalid_data", "Error! This outfit cannot be saved.");
L10N.put("profile.figure.wardrobe_instructions", "Press red arrows to save up to 5 outfits to your wardrobe. Press green arrow to select an outfit and save changes to take it into use.");
Wardrobe.init();
</script>
</div><?php } ?>

<div id="settings-hc" style="display: none">
<div class="rounded rounded-hcred clearfix">
<a href="club.php" id="settings-hc-logo"></a>
Items marked with the Habbo Club symbol <img src="./web-gallery/v2/images/habboclub/hc_mini.png" /> are available only to Habbo Club members. <a href="club.php">Join now!</a>
</div>
</div>

<div id="settings-oldfigure" style="display: none">
<div class="rounded rounded-lightbrown clearfix">
Your Habbo had clothes or colors that are not selectable anymore.
Please save your new looks here.
</div>
</div>

<form method="post" action="account.php?tab=1" id="settings-form" style="display: none">
<input type="hidden" name="tab" value="1" />
<input type="hidden" name="__app_key" value="HoloCMS" />
<input type="hidden" name="figureData" id="settings-figure" value="<?php echo $mylook1; ?>" />
<input type="hidden" name="newGender" id="settings-gender" value="<?php echo $mysex1; ?>" />
<input type="hidden" name="editorState" id="settings-state" value="" />
<a href="#" id="settings-submit" class="new-button disabled-button"><b>Save changes</b><i></i></a>

<script type="text/javascript" language="JavaScript">
var swfobj = new SWFObject("http://www.habbo.co.uk/flash/HabboRegistration.swf", "habboreg", "435", "400", "8");
swfobj.addParam("base", "http://www.habbo.co.uk/flash/");
swfobj.addParam("wmode", "opaque");
swfobj.addParam("AllowScriptAccess", "always");
swfobj.addVariable("figuredata_url", "http://www.habbohotel.co.uk/gamedata/figuredata");
swfobj.addVariable("draworder_url", "http://www.habbohotel.co.uk/gamedata/figurepartconfig/draworder");
swfobj.addVariable("localization_url", "http://www.habbo.co.uk/figure/figure_editor_xml");
swfobj.addVariable("figure", "<?php echo $mylook1; ?>");
swfobj.addVariable("gender", "<?php echo $mysex1; ?>");

swfobj.addVariable("showClubSelections", "1");
<?php if( $hc_member ){ ?>swfobj.addVariable("userHasClub", "1");<?php } ?>

if (deconcept.SWFObjectUtil.getPlayerVersion()["major"] >= 8) {
<?php if( !$hc_member){ ?>$("settings-editor").setStyle({ textAlign: "center"});<?php } ?>
swfobj.write("settings-editor");
$("settings-form").show();
<?php if( $hc_member){ ?>$("settings-wardrobe").show();<?php } ?>
}
</script>

</form>

</div>

</div>
</div>
</div>
</div>
</div>
<?php } else if($tab == "2"){ ?>
<div class="habblet-container " style="float:left; width: 560px;">
<div class="cbb clearfix settings">

<h2 class="title">Change Your Profile</h2>
<div class="box-content">



<form action="account.php?tab=2" method="post">
<input type="hidden" name="tab" value="2" />
<input type="hidden" name="__app_key" value="HoloCMS" />

<?php
if(!empty($result)){
if($error == "1"){
echo "<div class='rounded rounded-red'>";
} else {
echo "<div class='rounded rounded-green'>";
}
echo $result . "<br />
</div><br />";
}
?>

<h3>Your motto</h3>

<p>
Your motto is seen by everyone, so think carefully!
</p>

<p>
<span class="label">Motto:</span>
<input type="text" name="motto" size="32" maxlength="32" value="<?php echo stripslashes($motto); ?>" id="avatarmotto" />
</p>

<?php if( IsHCMember($my_id) ){ ?>
<h3>Club Membership</h3>

<p>You are a <?php echo $shortname; ?> Club member. Your membership will expire in <b><?php echo HCDaysLeft($my_id); ?></b> days. If you would like to extend your membership, please click <a href='club.php'>here</a>.</p>
<?php }?>
<div class="settings-buttons">
<input type="submit" value="Save changes" name="save" class="submit" />
</div>

</form>

</div>
</div>
</div>
</div></div>
</div>
<?php } else if($tab == "3"){ ?>
<div class="habblet-container " style="float:left; width: 560px;">
<div class="cbb clearfix settings">

<h2 class="title">Change Your Email Settings</h2>
<div class="box-content">

<?php
if(!empty($result)){
if($error == "1"){
echo "<div class='rounded rounded-red'>";
} else {
echo "<div class='rounded rounded-green'>";
}
echo "".$result."<br />
</div><br />";
}
?>



<form action="account.php?tab=3" method="post" id="emailform">
<input type="hidden" name="tab" value="3" />
<input type="hidden" name="__app_key" value="HoloCMS" />

<div class="settings-step">

<h4>1.</h4>
<div class="settings-step-content">

<h3>Give your current details</h3>

<p>
<label for="currentpassword">Current password:</label><br />
<input type="password" size="32" maxlength="32" name="password" id="currentpassword" class="currentpassword " />
</p>

<div>
<div><label for="birthdate">Birthdate:</label></div>
<div id="required-birthday" ><select name="day" id="day" class="dateselector"><option value="">Day</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option></select> <select name="month" id="month" class="dateselector"><option value="">Month</option><option value="1">January</option><option value="2">February</option><option value="3">March</option><option value="4">April</option><option value="5">May</option><option value="6">June</option><option value="7">July</option><option value="8">August</option><option value="9">September</option><option value="10">October</option><option value="11">November</option><option value="12">December</option></select> <select name="year" id="year" class="dateselector"><option value="">Year</option><option value="2008">2008</option><option value="2007">2007</option><option value="2006">2006</option><option value="2005">2005</option><option value="2004">2004</option><option value="2003">2003</option><option value="2002">2002</option><option value="2001">2001</option><option value="2000">2000</option><option value="1999">1999</option><option value="1998">1998</option><option value="1997">1997</option><option value="1996">1996</option><option value="1995">1995</option><option value="1994">1994</option><option value="1993">1993</option><option value="1992">1992</option><option value="1991">1991</option><option value="1990">1990</option><option value="1989">1989</option><option value="1988">1988</option><option value="1987">1987</option><option value="1986">1986</option><option value="1985">1985</option><option value="1984">1984</option><option value="1983">1983</option><option value="1982">1982</option><option value="1981">1981</option><option value="1980">1980</option><option value="1979">1979</option><option value="1978">1978</option><option value="1977">1977</option><option value="1976">1976</option><option value="1975">1975</option><option value="1974">1974</option><option value="1973">1973</option><option value="1972">1972</option><option value="1971">1971</option><option value="1970">1970</option><option value="1969">1969</option><option value="1968">1968</option><option value="1967">1967</option><option value="1966">1966</option><option value="1965">1965</option><option value="1964">1964</option><option value="1963">1963</option><option value="1962">1962</option><option value="1961">1961</option><option value="1960">1960</option><option value="1959">1959</option><option value="1958">1958</option><option value="1957">1957</option><option value="1956">1956</option><option value="1955">1955</option><option value="1954">1954</option><option value="1953">1953</option><option value="1952">1952</option><option value="1951">1951</option><option value="1950">1950</option><option value="1949">1949</option><option value="1948">1948</option><option value="1947">1947</option><option value="1946">1946</option><option value="1945">1945</option><option value="1944">1944</option><option value="1943">1943</option><option value="1942">1942</option><option value="1941">1941</option><option value="1940">1940</option><option value="1939">1939</option><option value="1938">1938</option><option value="1937">1937</option><option value="1936">1936</option><option value="1935">1935</option><option value="1934">1934</option><option value="1933">1933</option><option value="1932">1932</option><option value="1931">1931</option><option value="1930">1930</option><option value="1929">1929</option><option value="1928">1928</option><option value="1927">1927</option><option value="1926">1926</option><option value="1925">1925</option><option value="1924">1924</option><option value="1923">1923</option><option value="1922">1922</option><option value="1921">1921</option><option value="1920">1920</option><option value="1919">1919</option><option value="1918">1918</option><option value="1917">1917</option><option value="1916">1916</option><option value="1915">1915</option><option value="1914">1914</option><option value="1913">1913</option><option value="1912">1912</option><option value="1911">1911</option><option value="1910">1910</option><option value="1909">1909</option><option value="1908">1908</option><option value="1907">1907</option><option value="1906">1906</option><option value="1905">1905</option><option value="1904">1904</option><option value="1903">1903</option><option value="1902">1902</option><option value="1901">1901</option><option value="1900">1900</option></select> </div>
</div>

</div>
</div>
<div class="settings-step">

<h4>2.</h4>
<div class="settings-step-content">

<h3>Enter your new email address</h3>

<p>Make sure you type in your email address correctly!</p>

<p>
<label for="email">Email address:</label><br />
<input type="text" name="email" id="email" size="32" maxlength="48" value="<?php echo $themail; ?>" />
</p>

<p>
<input name="directemail" id="directemail" type="checkbox"> <label for="directemail">Yes, please send me <?php echo $sitename; ?> updates, including the newsletter!</label>
</p>

</div>
</div>

<div class="settings-buttons">
<input type="submit" value="Save changes" name="save" class="submit" />
</div>

</form>

</div></div></div></div>


</div>
</div>
<?php } else if($tab == "4"){ ?>
<div class="habblet-container " style="float:left; width: 560px;">
<div class="cbb clearfix settings">

<h2 class="title">Change Your Password Settings</h2>
<div class="box-content">

<?php
if(!empty($result)){
if($error == "1"){
echo "<div class='rounded rounded-red'>";
} else {
echo "<div class='rounded rounded-green'>";
}
echo "".$result."<br />
</div><br />";
}
?>

<form action="account.php?tab=4" method="post" id="passwordform">
<input type="hidden" name="tab" value="4" />
<input type="hidden" name="__app_key" value="HoloCMS" />

<div class="settings-step">

<h4>1.</h4>
<div class="settings-step-content">

<h3>Give your current details</h3>

<p>
<label for="currentpassword">Current password:</label><br />
<input type="password" size="32" maxlength="32" name="password" id="currentpassword" class="currentpassword " />
</p>

<div>
<div><label for="birthdate">Birthdate:</label></div>
<div id="required-birthday" ><select name="day" id="day" class="dateselector"><option value="">Day</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option></select> <select name="month" id="month" class="dateselector"><option value="">Month</option><option value="1">January</option><option value="2">February</option><option value="3">March</option><option value="4">April</option><option value="5">May</option><option value="6">June</option><option value="7">July</option><option value="8">August</option><option value="9">September</option><option value="10">October</option><option value="11">November</option><option value="12">December</option></select> <select name="year" id="year" class="dateselector"><option value="">Year</option><option value="2008">2008</option><option value="2007">2007</option><option value="2006">2006</option><option value="2005">2005</option><option value="2004">2004</option><option value="2003">2003</option><option value="2002">2002</option><option value="2001">2001</option><option value="2000">2000</option><option value="1999">1999</option><option value="1998">1998</option><option value="1997">1997</option><option value="1996">1996</option><option value="1995">1995</option><option value="1994">1994</option><option value="1993">1993</option><option value="1992">1992</option><option value="1991">1991</option><option value="1990">1990</option><option value="1989">1989</option><option value="1988">1988</option><option value="1987">1987</option><option value="1986">1986</option><option value="1985">1985</option><option value="1984">1984</option><option value="1983">1983</option><option value="1982">1982</option><option value="1981">1981</option><option value="1980">1980</option><option value="1979">1979</option><option value="1978">1978</option><option value="1977">1977</option><option value="1976">1976</option><option value="1975">1975</option><option value="1974">1974</option><option value="1973">1973</option><option value="1972">1972</option><option value="1971">1971</option><option value="1970">1970</option><option value="1969">1969</option><option value="1968">1968</option><option value="1967">1967</option><option value="1966">1966</option><option value="1965">1965</option><option value="1964">1964</option><option value="1963">1963</option><option value="1962">1962</option><option value="1961">1961</option><option value="1960">1960</option><option value="1959">1959</option><option value="1958">1958</option><option value="1957">1957</option><option value="1956">1956</option><option value="1955">1955</option><option value="1954">1954</option><option value="1953">1953</option><option value="1952">1952</option><option value="1951">1951</option><option value="1950">1950</option><option value="1949">1949</option><option value="1948">1948</option><option value="1947">1947</option><option value="1946">1946</option><option value="1945">1945</option><option value="1944">1944</option><option value="1943">1943</option><option value="1942">1942</option><option value="1941">1941</option><option value="1940">1940</option><option value="1939">1939</option><option value="1938">1938</option><option value="1937">1937</option><option value="1936">1936</option><option value="1935">1935</option><option value="1934">1934</option><option value="1933">1933</option><option value="1932">1932</option><option value="1931">1931</option><option value="1930">1930</option><option value="1929">1929</option><option value="1928">1928</option><option value="1927">1927</option><option value="1926">1926</option><option value="1925">1925</option><option value="1924">1924</option><option value="1923">1923</option><option value="1922">1922</option><option value="1921">1921</option><option value="1920">1920</option><option value="1919">1919</option><option value="1918">1918</option><option value="1917">1917</option><option value="1916">1916</option><option value="1915">1915</option><option value="1914">1914</option><option value="1913">1913</option><option value="1912">1912</option><option value="1911">1911</option><option value="1910">1910</option><option value="1909">1909</option><option value="1908">1908</option><option value="1907">1907</option><option value="1906">1906</option><option value="1905">1905</option><option value="1904">1904</option><option value="1903">1903</option><option value="1902">1902</option><option value="1901">1901</option><option value="1900">1900</option></select> </div>
</div>

</div>
</div>
<div class="settings-step">

<h4>2.</h4>
<div class="settings-step-content">

<h3>Choose a new password</h3>

<p>Enter your new password of choice and confirm it in the second field.</p>

<p>
<label for="pass">New password:</label><br />
<input type="password" name="pass" id="password" size="32" maxlength="48" value="" />
</p>

<p>
<label for="confpass">Confirm new password:</label><br/>
<input type="password" name="confpass" id="password" size="32" maxlength="48" value="" />
</p>

</div>
</div>

<div class="settings-buttons">
<input type="submit" value="Save changes" name="save" class="submit" />
</div>

</form>

</div></div></div></div>


</div>
</div>
<?php } else if($tab == "5"){ ?>
<div class="habblet-container " style="float:left; width: 560px;">
<div class="cbb clearfix settings">

<h2 class="title">Refer Options</h2>
<div class="box-content">
<h3>Refer users and get credits</h3>
<p>Out of credits again? Can't find staff that is willing to fill up your purse? Want to buy that shiney rare but just don't have the credits for it? Don't stress, just get a few friends to sign up on <?php echo $shortname; ?>! Do that, and your purse will be filled again in no time! Below are a few options you have at your disposal.</p>
<h3>Referal Options</h3>
<p>There are two ways you can use to get refers, and with that, free credits.</p>
<p><b>1. Send your friends a link</b><br />This option is probably as easy as it gets; it basicly does step 2, but automaticly! You just send your friends a invite with the link shown below, your friends click the link, and if they complete registration, you get free credits! This is your referal link to get some easy credits:<br /><br />
<input type="text" size="80%" disabled="disabled" value="<?php if(!empty($path)){ echo $path; } ?>register.php?refer=<?php echo $rawname; ?>"></p>
<p><b>2. Let them fill in your name during registration</b><br />During the registration process, users can manually give the username of the person that referred them to the site. If they complete registration, that person gets credits! And that person could be you, if you have some friends that are nice enough to fill in your username.
<h3>Today's Referal Reward</h3>
<p>This is the amount of credits you get per user you refer. This amount may change over time.<br />
<br />
<b><?php echo $reward; ?></b> credits <sup>per refer</sup>
</p>
</div>
</div>
</div>
<?php } elseif($tab == "6"){ ?>
<div id="friend-management" class="habblet-container">
<div class="cbb clearfix settings">
<h2 class="title">Friend Management</h2>
<div id="friend-management-container" class="box-content">
<div id="category-view" class="clearfix">
<div id="search-view">
Search for a friend below:
<div id="friend-search" class="friendlist-search">
<input type="text" maxlength="32" id="friend_query" class="friend-search-query" />
<a class="friendlist-search new-button search-icon" id="friend-search-button"><b><span></span></b><i></i></a>
</div>
</div>
<div id="category-list">
<div id="friends-category-title">
Friend categories
</div>

<div class="category-default category-item selected-category" id="category-item-0">Friends</div>

<input type="text" maxlength="32" id="category-name" class="create-category" /><div id="add-category-button" class="friendmanagement-small-icons add-category-item add-category"></div>
</div>
</div>
<div id="friend-list" class="clearfix">
<div id="friend-list-header-container" class="clearfix">
<div id="friend-list-header">
<div class="page-limit">
<div class="big-icons friend-header-icon">Friends
<br />Show
30 |
<a class="category-limit" id="pagelimit-50">50</a> |
<a class="category-limit" id="pagelimit-100">100</a>
</div>
</div>
</div>
<div id="friend-list-paging">
1 |
<?php
$afriendscount = mysql_query("SELECT COUNT(*) FROM messenger_friendships WHERE userid = '1' OR friendid = '1'") or die(mysql_error());
$friendscount = mysql_result($afriendscount, 0);

$pages = ceil($friendscount / 30);

$n = 1;

while ($n < $pages) {
$n++;
echo "<a href=\"#\" class=\"friend-list-page\" id=\"page-".$n."\">".$n."</a> |";
}

echo "<a href=\"#\" class=\"friend-list-page\" id=\"page-2\">&gt;&gt;</a>"
?>

</div>
</div>


<form id="friend-list-form">
<table id="friend-list-table" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr class="friend-list-header">
<td class="friend-select" />
<td class="friend-name table-heading">Name</td>
<td class="friend-login table-heading">Last login</td>
<td class="friend-remove table-heading">Remove</td>
</tr>
<?php
$i = 0;
$getem = mysql_query("SELECT * FROM messenger_friendships WHERE userid = '1' OR friendid = '1' LIMIT 30") or die(mysql_error());

while ($row = mysql_fetch_assoc($getem)) {
$i++;

if(IsEven($i)){
$even = "odd";
} else {
$even = "even";
}

if($row['friendid'] == 1){
$friendsql = mysql_query("SELECT * FROM users WHERE id = '".$row['userid']."'");
} else {
$friendsql = mysql_query("SELECT * FROM users WHERE id = '".$row['friendid']."'");
}

$friendrow = mysql_fetch_assoc($friendsql);



printf(" <tr class=\"%s\">
<td><input type=\"checkbox\" name=\"friendList[]\" value=\"%s\" /></td>
<td class=\"friend-name\">
%s
</td>
<td class=\"friend-login\" title=\"%s\">%s</td>
<td class=\"friend-remove\"><div id=\"remove-friend-button-%s\" class=\"friendmanagement-small-icons friendmanagement-remove remove-friend\"></div></td>
</tr>", $even, $friendrow['id'], $friendrow['name'], $friendrow['lastvisit'], $friendrow['lastvisit'], $friendrow['id']);
}
?>
</tbody>
</table>
<a class="select-all" id="friends-select-all" href="#">Select all</a> |
<a class="deselect-all" href=#" id="friends-deselect-all">Deselect all</a>
</form> </div>
<script type="text/javascript">
new FriendManagement({ currentCategoryId: 0, pageListLimit: 30, pageNumber: 1});
</script>
<div id="category-options" class="clearfix">
<select id="category-list-select" name="category-list">
<option value="0">Friends</option>
<option value="1">Test Friends</option>
</select>
<div class="friend-del"><a class="new-button red-button cancel-icon" href="#" id="delete-friends"><b><span></span>Delete selected friends</b><i></i></a></div>
<div class="friend-move"><a class="new-button" href="#" id="move-friend-button"><b><span></span>Move</b><i></i></a></div> </div>
</div>
</div>
</div>
</div>

<script type="text/javascript">

L10N.put("friendmanagement.tooltip.deletefriends", "Are you sure you want to delete these selected friends?\n<div class=\"friendmanagement-small-icons friendmanagement-save friendmanagement-tip-delete\"\>\n <a class=\"friends-delete-button\" id=\"delete-friends-button\"\>Delete</a\>\n</div\>\n<div class=\"friendmanagement-small-icons friendmanagement-remove friendmanagement-tip-cancel\"\>\n <a id=\"cancel-delete-friends\"\>Cancel</a\>\n</div\>\n\n");
L10N.put("friendmanagement.tooltip.deletefriend", "Are you sure you want to delete this friend?\n<div class=\"friendmanagement-small-icons friendmanagement-save friendmanagement-tip-delete\"\>\n <a id=\"delete-friend-%friend_id%\"\>Delete</a\>\n</div\>\n<div class=\"friendmanagement-small-icons friendmanagement-remove friendmanagement-tip-cancel\"\>\n <a id=\"remove-friend-can-%friend_id%\"\>Cancel</a\>\n</div\>");
L10N.put("friendmanagement.tooltip.deletecategory", "Are you sure you want to delete this category?\n<div class=\"friendmanagement-small-icons friendmanagement-save friendmanagement-tip-delete\"\>\n <a class=\"delete-category-button\" id=\"delete-category-%category_id%\"\>Delete</a\>\n</div\>\n<div class=\"friendmanagement-small-icons friendmanagement-remove friendmanagement-tip-cancel\"\>\n <a id=\"cancel-cat-delete-%category_id%\"\>Cancel</a\>\n</div\>");
</script>

</div>
</div>
<?php } else if($tab == "8"){ ?>
<div class="habblet-container " style="float:left; width: 560px;">
<div class="cbb clearfix settings">

<h2 class="title">Client Settings</h2>
<div class="box-content">



<form action="account.php?tab=8" method="post">
<input type="hidden" name="tab" value="8" />
<input type="hidden" name="__app_key" value="HoloCMS" />

<?php
if(!empty($result)){
if($error == "1"){
echo "<div class='rounded rounded-red'>";
} else {
echo "<div class='rounded rounded-green'>";
}
echo $result . "<br />
</div><br />";
}
?>

<h3>Screen Size</h3>

<p>
<?php
$sqll = mysql_query("SELECT screen,rea FROM users WHERE id = '".$my_id."'");
$roww = mysql_fetch_assoc($sqll);
if($roww['screen'] == "wide"){ ?>
<input type="radio" name="screen" value="wide" checked> Widescreen
<br />
<input type="radio" name="screen" value="full"> Fullscreen
<?php } else { ?>
<input type="radio" name="screen" value="wide"> Widescreen
<br />
<input type="radio" name="screen" value="full" checked> Fullscreen
<?php } ?>
</p>

<h3>Reauthenticate</h3>
<p>
Turning this on would prevent any friends or siblings from accessing your account when you forget to log out.<br />
<?php
if($roww['rea'] == "enabled"){ ?>
<input type="radio" name="rea" value="enabled" checked> Enabled
<br />
<input type="radio" name="rea" value="disabled"> Disabled
<?php } else { ?>
<input type="radio" name="rea" value="enabled"> Enabled
<br />
<input type="radio" name="rea" value="disabled" checked> Disabled
<?php } ?>
</p>

<div class="settings-buttons">
<input type="submit" value="Save changes" name="save" class="submit" />
</div>

</form>

</div>
</div>
</div>
</div></div>
</div>
<?php } else { ?>
<b>Tab appears to be valid, but no tab data found. Please report this issue.</b>
<?php } ?><?php

include('templates/community/footer.php');

?>

Calon
04-09-2008, 10:30 AM
So now you're fiddling with retros.

I don't think you deserve help, so I refuse to help you.

Excellent
04-09-2008, 12:25 PM
Dude, do you have a brain? You think because you come here and ask everybody to put the past behind then admit to using a retro that somebody will actually help you!? You're deluded my friend.

Meti
04-09-2008, 02:18 PM
Lol. You've done the bad things. Now we. You can't say that WE should put the behind us?:S

chrisgocrazyH
05-09-2008, 05:49 AM
I dont use retros i was having a look at Habbo CMS's and i found this holocms one..

I know i have done bad things but i need some help with this..

Calon
05-09-2008, 10:04 AM
I dont use retros i was having a look at Habbo CMS's and i found this holocms one..

I know i have done bad things but i need some help with this..
Now you're ripping Coldplay's signiture and editing it.

Sorry, but you never learn. You we're disrespected for things YOU did, not at random.. everyone earns their own respect.

Oh, so what will use this on?! Obviously not a retro!

Alexz0r
06-09-2008, 01:36 AM
HMM I wonder why you have bad rep..

Dentafrice
06-09-2008, 03:19 AM
Look on HabboRing, there's plenty of scripts floating around, it's not that hard.. there's tutorials everywhere.

This doesn't deserve a new thread, just asking to put it behind isn't going to work.

My opinion is you leech off of the community, never giving anything.

Calon
07-09-2008, 01:58 AM
Look on HabboRing, there's plenty of scripts floating around, it's not that hard.. there's tutorials everywhere.

This doesn't deserve a new thread, just asking to put it behind isn't going to work.

My opinion is you leech off of the community, never giving anything.

I agree.

Turbocom
07-09-2008, 03:24 AM
ALL I can say is LOL at you for going this far.

Meti
07-09-2008, 07:44 AM
Yh :P Close this thread, lol.

Want to hide these adverts? Register an account for free!