<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>HabX ~ </title>
<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
var ad_keywords = "";
document.habboLoggedIn = true;
var habboName = "NewBloods";
var habboReqPath = "http://localhost";
var habboStaticFilePath = "http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1077/web-gallery";
var habboImagerUrl = "http://www.habbo.co.uk/habbo-imaging/";
var habboPartner = "";
var habboDefaultClientPopupUrl = "http://localhost/client";
window.name = "habboMain";
if (typeof HabboClient != "undefined") { HabboClient.windowName = "uberClientWnd"; }
</script>
<link rel="shortcut icon" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1077/web-gallery/v2/favicon.ico" type="image/vnd.microsoft.icon" /> <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1077/web-gallery/static/js/libs2.js" type="text/javascript"></script>
<script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1077/web-gallery/static/js/visual.js" type="text/javascript"></script>
<script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1077/web-gallery/static/js/libs.js" type="text/javascript"></script>
<script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1077/web-gallery/static/js/common.js" type="text/javascript"></script>
<script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1077/web-gallery/static/js/fullcontent.js" type="text/javascript"></script>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1077/web-gallery/styles/style.css" type="text/css" />
<link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1077/web-gallery/styles/buttons.css" type="text/css" />
<link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1077/web-gallery/styles/boxes.css" type="text/css" />
<link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1077/web-gallery/styles/tooltips.css" type="text/css" />
<link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1077/web-gallery/styles/habboclient.css" type="text/css" />
<link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1077/web-gallery/styles/habboflashclient.css" type="text/css" />
<script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1077/web-gallery/static/js/habboflashclient.js" type="text/javascript"></script>
<meta name="description" content="Luxo Hotel is a virtual world where you can meet and make friends. Make friends, join the fun, get noticed!" />
<meta name="keywords" content="meth0d, nillus, youporn, retro, keep it real, private server, free, credits, habbo hotel , virtual, world, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets , room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer" />
<!--[if IE 8]>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1077/web-gallery/v2/styles/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1077/web-gallery/v2/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1077/web-gallery/v2/styles/ie6.css" type="text/css" />
<script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1077/web-gallery/static/js/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>
<style type="text/css">
body { behavior: url(http://www.habbo.co.uk/js/csshover.htc); }
</style>
<![endif]-->
<meta name="build" content="51-BUILD45 - 18.05.2010 16:16 - uk - ROPER EDIT" />
</head>
<body id="client" class="flashclient">
<script type="text/javascript">
var habboDefaultClientPopupUrl = "http://localhost/client";
</script>
<noscript>
<meta http-equiv="refresh" content="0;url=http://localhost/client/nojs" />
</noscript>
<script type="text/javascript">
FlashExternalInterface.loginLogEnabled = true;
FlashExternalInterface.logLoginStep("web.view.start");
if (top == self) {
FlashHabboClient.cacheCheck();
}
var flashvars = {
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "0",
"connection.info.host" : "127.0.0.1",
"connection.info.port" : "30000",
"site.url" : "http://localhost",
"url.prefix" : "http://localhost",
"client.reload.url" : "http://localhost/account/reauthenticate?page=/flash_client",
"client.fatal.error.url" : "http://localhost/flash_client_error",
"client.connection.failed.url" : "http://localhost/client_connection_failed",
"external.hash" : "",
"external.variables.txt" : "http://link.com/client1/r63/external_variables.txt",
"external.texts.txt" : "http://link.com/client1/r63/external_flash_texts.txt",
"use.sso.ticket" : "1",
"sso.ticket" : "ST-561947-4616648608-2084859259-*****-2",
"processlog.enabled" : "0",
"account_id" : "0",
"client.starting" : "Loading hotel name Hotel...",
"flash.client.url" : "http://link.com/client1/r63/",
"user.hash" : "",
"facebook.user" : "0",
"has.identity" : "0",
"flash.client.origin" : "popup"
};
var params = {
"base" : "http://link.com/client1/r63/",
"allowScriptAccess" : "always",
"menu" : "false"
};
if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "opaque";
}
var clientUrl = "http://212.38.176.149/r63/gordon/RELEASE63-34096-33779-201105271559/Habbo.swf";
try {
if (swfobject.getFlashPlayerVersion().major <= 9) {
clientUrl = "http://212.38.176.149/r63/gordon/RELEASE63-34096-33779-201105271559/Habbo.swf";
}
} catch(e) {}
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "9.0.115", "http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1077/web-gallery/flash/expressInstall.swf", flashvars, params);
</script>
<div id="overlay"></div>
<div id="client-ui" >
<div id="flash-wrapper">
<div id="flash-container">
<div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none">
<div class="cbb clearfix">
<h2 class="title">Please install Adobe Flash Player.</h2>
<div class="box-content">
<p>You can install and download Adobe Flash Player here: <a href="http://get.adobe.com/flashplayer/">Install flash player</a>. More instructions for installation can be found here: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">More information</a></p>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/207/web-gallery/v2/images/client/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
</div>
</div>
<script type="text/javascript">
$('content').show();
</script>
<noscript>
<div style="width: 400px; margin: 20px auto 0 auto; text-align: center">
<p>If you are not automatically redirected, please <a href="/client/nojs">click here</a></p>
</div>
</noscript>
</div>
</div>
<div id="content" class="client-content"></div>
</div>
<div style="display: none">
<div id="habboCountUpdateTarget">
0 users online now!
</div>
<script language="JavaScript" type="text/javascript">
setTimeout(function() {
HabboCounter.init(600);
}, 20000);
</script>
</div>
<script type="text/javascript">
RightClick.init("flash-wrapper", "flash-container");
</script>
</body>
</html>
<!-- uberCMS: Took 0.145339012146 to output this page -->
char.conversion.mac=[128:219,130:226,131:196,132:227,133:201,134:160,135:224,136:246,137:228,139:220,140:206,145:212,146:213,147:210,148:211,149:165,150:208,151:209,152:247,153:170,155:221,156:207,159:217,161:193,165:180,167:164,168:172,170:187,171:199,172:194,173:208,174:168,176:161,180:171,182:166,183:225,184:252,186:188,187:200,191:192,192:203,193:231,194:229,195:204,196:128,197:129,198:174,199:130,200:233,201:131,202:230,203:232,204:237,205:234,206:235,207:236,209:132,210:241,211:238,212:239,213:205,214:133,216:175,217:244,218:242,219:243,220:134,223:167,224:136,225:135,226:137,227:139,228:138,229:140,230:190,231:141,232:143,233:142,234:144,235:145,236:147,237:146,238:148,239:149,241:150,242:152,243:151,244:153,246:154,247:214,248:191,249:157,250:156,251:158,252:159,255:216]
stats.tracking.javascript=google
productdata.load.url=http://127.0.0.1/client/r63/productdata.txt
image.library.questing.url=http://127.0.0.1/client/r63/c_images/Quests/
purse.widget.enabled=1
avatar.widget.enabled=1
figure.partsets.xml=http://127.0.0.1/client/r63/figurepartconfig/partsets.xml
struct.font.grey=[#font:"v", #fontSize:9,#lineHeight:10,#color:rgb("#666666"),#ilk:#struct,#fontStyle:[#italic]]
viral.furni.post_type=appRequest
billboard.adwarning.left.url=AdWarningsUK/ad_warning_L.png
security.cast.load.url=http://127.0.0.1/client/r63/sec.cct?t=%token%
navigator.default.view=public
latencytest.interval=20000
external.figurepartlist.txt=http://127.0.0.1/client/r63/figuredata.xml
image.library.url=http://127.0.0.1/client/r63/c_images/
navigator.visible.public.root=3
permitted.name.chars=1234567890qwertyuiopasdfghjklzxcvbnm-=?!@:.,
external.texts.txt=http://127.0.0.1/client/r63/external_flash_texts.txt
latencytest.report.delta=100
struct.font.bold=[#font:"vb",#fontSize:9,#lineHeight:10,#color:rgb("#000000"),#ilk:#struct,#fontStyle:[#plain]]
figure.draworder.xml=http://127.0.0.1/client/r63/figurepartconfig/draworder.xml
client.hotel_view.image=hotel_view_images_hq/grass_view.png
billboard.adwarning.right.url=AdWarningsUK/ad_warning_R.png
image.library.catalogue.url=http://127.0.0.1/client/r63/c_images/catalogue/
flash.dynamic.download.url=http://127.0.0.1/client/r63/hof_furni/
room.default.wall=201
new.chat.bubbles.enabled=1
navigator.always_open_after_login=0
menu.avatar.enabled=true
infostand.use.button.enabled=1
purse.widget.currency.shells.enabled=0
feed.badge_decorations.decoration_id=001
purse.transactions.active=1
new.chat.widget.enabled=1
client.use.invites=1
struct.font.plain=[#font:"v", #fontSize:9,#lineHeight:10,#color:rgb("#000000"),#ilk:#struct,#fontStyle:[#plain]]
hotelview.banner.url=http://127.0.0.1/client/r63/banner/
client.textdata.utf8=1
logout.concurrent.url=http://127.0.0.1/reload.php
figure.animation.xml=http://127.0.0.1/client/r63/figurepartconfig/animation.xml
dynamic.download.url=http://127.0.0.1/client/r63/hof_furni/
language=en
struct.font.italic=[#font:"v", #fontSize:9,#lineHeight:10,#color:rgb("#000000"),#ilk:#struct,#fontStyle:[#italic]]
feed.badge_decorations.album=Feed_Badges
external.figurepartlist.txt.secure=https://64.186.134.147/client/r63/figuredata.xml
logout.url=http://127.0.0.1/reload.php
room.default.floor=111
navigator.public.default=3
tutorial.name.new_user_flow=NUF_mini
furnidata.load.url=http://127.0.0.1/client/r63/furnidata.txt
flash.dynamic.download.name.template=%typeid%.swf
struct.font.tooltip=[#font:"v", #fontSize:9,#lineHeight:10,#color:rgb("#000000"),#ilk:#struct,#fontStyle:[#plain]]
struct.font.link=[#font:"v", #fontSize:9,#lineHeight:10,#color:rgb("#000000"),#ilk:#struct,#fontStyle:[#underline]]
figure.draworder.xml.secure=https://64.186.134.147/client/r63/figurepartconfig/draworder
fuse.project.id=habbo_de
flash.dynamic.download.samples.template=mp3/sound_machine_sample_%typeid%.mp3
navigator.private.default=4
client.window.title=Habbo Hotel
dynamic.download.name.template=hh_furni_xx_%typeid%.cct
avatareditor.allowclubtryout=1
private.image.library.url=http://127.0.0.1/client/r63/c_images/
logout.disconnect.url=http://127.0.0.1/reload.php
latencytest.report.index=3
dynamic.download.samples.template=%typeid%.cct
navigator.visible.private.root=4
stats.tracking.javascript.template=\TCODE
link.format.friendlist.pref=http://127.0.0.1/profile/friendsmanagement?tab=6
cast.entry.10=hh_human_hats
cast.entry.11=hh_human_hair
group.badge.url=http://127.0.0.1/habbo-imaging/badge/%imagerdata%.gif
cast.entry.12=hh_human_shirt
interface.cmds.user.friend=["friend","trade","ignore","unignore","userpage"]
cast.entry.13=hh_human_leg
cast.entry.14=hh_human_shoe
cast.entry.15=hh_kiosk_room
cast.entry.17=hh_room_utils
cast.entry.16=hh_pets_common
cast.entry.19=hh_furni_classes
cast.entry.18=hh_room_ui
link.format.credits=http://127.0.0.1/credits
cfh.usercategories.withnoharasser=101,102,103,104,105,106
room.cast.12=hh_human_50_fx
interface.cmds.active.ctrl=["move","rotate"]
room.cast.11=hh_human_fx
avatar.editor.url=http://127.0.0.1/profile
room.cast.10=hh_roomdimmer
client.minimail.embed.enabled=true
link.format.pets=http://127.0.0.1/hotel/pets
room.cast.1=hh_soundmachine
room.cast.2=hh_human_acc_chest
room.cast.3=hh_human_acc_waist
link.format.club=http://127.0.0.1/credits/habboclub
club.subscription.disabled=1
cfh.usercategories.withharasser=101,102,103,104,105,106
room.cast.8=hh_human_50_acc_chest
link.format.user.search=http://127.0.0.1/me#habbo-search
room.cast.9=hh_human_50_acc_waist
moderatoractionlog.url=https://theallseeingeye.sulake.com/ase/habbo/de/housekeeping/extra/hobba/moderator_activity.action?searchCriteria.habboName=
link.format.habboclub=http://127.0.0.1/credits/habboclub
room.cast.4=hh_human_50_shirt
interstitial.interval=120000
room.cast.5=hh_human_50_leg
avatar.editor.character.update.url=http://127.0.0.1/profile/characterupdate
room.cast.6=hh_human_50_shoe
room.cast.7=hh_human_50_item
navigator.tagcolorlimit.yellow=500
interstitial.show.time=5000
roomadmin.url=https://theallseeingeye.sulake.com/ase/habbo/de/housekeeping/extra/hobba/roomadmin_search.action?searchParamType=3&searchParamValue=
avatar.editor.club.promo.image=http://images.habbohotel.com/c_images/catalogue/club_promo_uk.gif
link.format.mail.compose=http://127.0.0.1/me#mail/compose/%recipientid%/%random%/
room.rating.enable=1
interface.cmds.user.personal=["badge","dance","wave","hcdance","userpage"]
paalu.key.list=[#bal1:"Q", #bal2:"E", #push1:"A", #push2:"D", #move1:"N", #move2:"M", #stabilise:"SPACE"]
navigator.cache.duration=30
navigator.colorlimit.orange=80
room.cast.private=["hh_room_private", "hh_room_landscapes"]
link.format.userpage=http://127.0.0.1//rd/%ID%
displayer.tag.expiration.time=600000
navigator.default_tab=official
navigator.tagcolorlimit.orange=1000
client.full.refresh.period=5000
interface.cmds.user.owner=["take_rights","give_rights","kick","friend","trade","ignore","unignore","userpage"]
wordfilter.url=https://theallseeingeye.sulake.com/ase/habbo/de/housekeeping/extra/localization/wordfilter_select.action
text.crap.fixing=1
castload.retry.delay=20000
roomenterad.habblet.enabled=true
habboinfotool.url=https://64.186.134.147/housekeeping/users/searchParamName=username&database=Stats&searchParamValue=
rosetta.warning.page.url=http://127.0.0.1/client_popup/rosetta_info
link.format.tag.search=http://127.0.0.1//tag/search?tag=%tag%
navigator.always_open_after_login=0
interstitial.enabled=true
pixels.enabled=true
friendbar.enabled=true
interface.cmds.item.owner=["pick"]
cast.entry.42=hh_friend_list
interface.cmds.photo.owner=["pick","delete"]
cast.entry.41=hh_human_50_body
room.cast.small.1=hh_pets_50
cast.entry.44=hh_pets
interface.cmds.active.owner=["move","rotate","pick"]
cast.entry.43=hh_instant_messenger
cast.entry.45=hh_guide
embed.showInRoomInfo=true
client.fatal.error.url=http://127.0.0.1/client_error
cast.entry.40=hh_human_50_acc_head
swimjump.key.list=[#run1:"A", #run2:"D", #dive1:"W", #dive2:"E", #dive3:"A", #dive4:"S", #dive5:"D", #dive6:"Y", #dive7:"X", #jump:"SPACE"]
cast.entry.9=hh_human_item
cast.entry.8=hh_human_face
cast.entry.7=hh_human_body
cast.entry.6=hh_human
cast.entry.5=hh_patch_de
cast.entry.4=hh_interface
cast.entry.3=hh_shared
cast.entry.2=hh_entry_base
cast.entry.1=hh_entry_de
client.credits.embed.enabled=true
avatar.editor.trial.promo=1
text.render.compatibility.mode=2
moderator.cmds=[":alert x",":ban x",":kick x",":superban x",":shutup x",":unmute x",":transfer x",":softkick x"]
cast.entry.38=hh_human_50_acc_eye
cast.entry.39=hh_human_50_acc_face
cast.entry.37=hh_human_50_hair
cast.entry.36=hh_human_50_hats
cast.entry.35=hh_human_50_face
avatar.editor.club.promo=0
cast.entry.34=hh_human_acc_head
cast.entry.33=hh_human_acc_face
cast.entry.32=hh_human_acc_eye
cast.entry.31=hh_entry_init
cast.entry.30=hh_badges
navigator.colorlimit.yellow=50
interstitial.max.displays=5
client.flood.timeout=300000
client.version.id=401
navigator.tagcolorlimit.red=2000
link.format.collectibles=http://127.0.0.1/credits/collectibles
cast.entry.27=hh_dynamic_downloader
cast.entry.28=hh_recycler
cast.entry.29=hh_poll
cast.entry.24=hh_cat_new
cast.entry.23=hh_navigator
cast.entry.26=hh_buffer
cast.entry.25=hh_cat_gfx_all
cast.entry.20=hh_room
cast.entry.22=hh_photo
infostand.report.show=1
cast.entry.21=hh_club
subscription.reminder.when.days.left=5
navigator.colorlimit.red=92
interface.cmds.user.ctrl=["kick","friend","trade","ignore","unignore","userpage"]
interface.cmds.photo.ctrl=[]
link.format.mail.inbox=http://127.0.0.1/me#mail
interface.cmds.item.ctrl=[]
lagWarningLog.enabled=1
client.toolbar.static.enabled=true
questing.startQuestDelayInSeconds=10
client.hotel_view.show_on_startup=1
cfh.usercategories.withnoharasser=101,102,103,104,105,106
roominfo.widget.enabled=1
navigator.always_open_after_login=0
client.minimail.embed.enabled=true
friend_bar.helper.friend_finding.enabled=true
interstitial.enabled=true
pixels.enabled=true
questing.enabled=true
welcome.screen.enabled=0
link.format.club=http://%predefined%/credits/habboclub
club.subscription.disabled=1
cfh.usercategories.withharasser=101,102,103,104,105,106
client.fatal.error.url=http://%predefined%/client_error
embed.showInRoomInfo=true
friendbar.enabled=true
moderatoractionlog.url=https://theallseeingeye.sulake.com/ase/habbo/us/housekeeping/extra/hobba/moderator_activity.action?searchCriteria.habboName=
interstitial.interval=120000
roomadmin.url=https://theallseeingeye.sulake.com/ase/habbo/us/housekeeping/extra/hobba/roomadmin_search.action?searchParamType=3&searchParamValue=
interstitial.show.time=5000
client.allow.external.links=1
client.credits.embed.enabled=true
room.rating.enable=1
navigator.colorlimit.yellow=50
new.chat.widget.enabled=1
interstitial.max.displays=8
questing.defaultCampaign=room_builder
navigator.colorlimit.orange=80
link.format.collectibles=http://%predefined%/credits/collectibles
link.format.userpage=http://%predefined%//rd/%ID%
avatar.widget.enabled=1
navigator.default_tab=official
client.logout.enabled=true
subscription.reminder.when.days.left=5
infostand.report.show=1
navigator.colorlimit.red=92
client.news.embed.enabled=true
purse.widget.enabled=1
questing.showDetailsForNextQuest=true
room.dragging.always_center=0
client.allow.facebook.like=1
catalog.drag_and_drop=true
hover.name.enabled=true
trax.player.sample.memory.purge.enabled=1
standaloneAchievementList.enabled=true
menu.own_avatar.enabled=1
menu.avatar.enabled=true
questing.useWing=true
catalog.furniture.animation=true
friendbar.notifications.enabled=true
userdefinedroomevents.enabled=true
room.recommendations=1
avatar.editor.trial.promo=1
userdefinedroomevents.enabled=true
text.crap.fixing=1
welcome.screen.enabled=1
menu.avatar.enabled=true
hover.name.enabled=true
new.chat.bubbles.enabled=1
infostand.use.button.enabled=1
inventory.furni.tab.new=new
questing.enabled=true
standaloneAchievementList.enabled=true
menu.own_avatar.enabled=1
toolbar.new_additions.notification.enabled=true
simple.memenu.enabled=1
friendbar.requests.enabled=true
friendbar.notifications.enabled=true
friendbar.stream.enabled=true
supersaverads.video.promo.enabled=true
"external.variables.txt" : "http://link.com/client1/r63/external_variables.txt",
"external.texts.txt" : "http://link.com/client1/r63/external_flash_texts.txt",
the Oops google chrome could not connect to local host could be to do with something like you havent got turned your MYSQL and Apache on via XamppI fixed that now i get disconnected from the client when i do certain things? And i cant get to my site? I get a Oops! Google Chrome could not connect to localhost
<?php
namespace Revolution;
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
class forms implements iForms
{
public $error;
final public function setData()
{
global $engine;
foreach($_POST as $key => $value)
{
if($value != null)
{
$this->$key = $engine->secure($value);
}
else
{
$this->error = 'Please fill in all fields';
return;
}
}
}
final public function unsetData()
{
global $template;
foreach($this as $key => $value)
{
unset($this->$key);
}
}
final public function writeData($key)
{
global $template;
echo $this->$key;
}
final public function outputError()
{
global $template;
if(isset($this->error))
{
echo "<div id='message'> " . $this->error . " </div>";
}
}
/* Manage different pages */
final public function getPageNews()
{
global $template, $engine;
if(!isset($_GET['id']) || !is_numeric($_GET['id']))
{
$_GET['id'] = 1;
}
$result = mysql_query("SELECT title, id FROM cms_news WHERE id != '" . $engine->secure($_GET['id']) . "' ORDER BY id DESC");
while($news1 = mysql_fetch_array($result))
{
$template->setParams('newsList', '« <a href="index.php?url=news&id='.$news1["id"].'">' . $news1['title'] . '</a><br/>');
}
$news = $engine->fetch_assoc("SELECT id, title, shortstory, longstory, author, published FROM cms_news WHERE id = '" . $engine->secure($_GET['id']) . "' LIMIT 1");
$template->setParams('newsID', $news['id']);
$template->setParams('newsTitle', $news['title']);
$template->setParams('newsContent', $news['longstory']);
$template->setParams('newsAuthor', $news['author']);
$template->setParams('newsDate', date("d-m-y", $news['published']));
unset($result);
unset($news1);
unset($news);
}
[B] final public function getPageHome()[/B]
[B] {[/B]
[B] global $template, $engine;[/B]
[B] $a = 1;[/B]
[B] $data = mysql_query("SELECT title, id, published, shortstory, image FROM cms_news ORDER BY id DESC LIMIT 5");[/B]
[B] while($news = mysql_fetch_array($data, MYSQL_ASSOC))[/B]
[B] {[/B]
[B] $template->setParams('newsTitle-' . $a, $news['title']);[/B]
[B] $template->setParams('newsID-' . $a, $news['id']);[/B]
[B] $template->setParams('newsDate-' . $a, date("d-m-y", $news['published']));[/B]
[B] $template->setParams('newsCaption-' . $a, $news['shortstory']);[/B]
[B] $template->setParams('newsIMG-' . $a, $news['image']);[/B]
[B] $a++;[/B]
[B] }[/B]
unset($news);
unset($data);
}
}
?>
Warning
: mysql_fetch_array() expects parameter 1 to be resource, boolean given in
C:\Users\papaw6395\Desktop\New Folder\xampp\htdocs\app\tpl\class.forms.php
on line
87
Code:<?php namespace Revolution; if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); } class forms implements iForms { public $error; final public function setData() { global $engine; foreach($_POST as $key => $value) { if($value != null) { $this->$key = $engine->secure($value); } else { $this->error = 'Please fill in all fields'; return; } } } final public function unsetData() { global $template; foreach($this as $key => $value) { unset($this->$key); } } final public function writeData($key) { global $template; echo $this->$key; } final public function outputError() { global $template; if(isset($this->error)) { echo "<div id='message'> " . $this->error . " </div>"; } } /* Manage different pages */ final public function getPageNews() { global $template, $engine; if(!isset($_GET['id']) || !is_numeric($_GET['id'])) { $_GET['id'] = 1; } $result = mysql_query("SELECT title, id FROM cms_news WHERE id != '" . $engine->secure($_GET['id']) . "' ORDER BY id DESC"); while($news1 = mysql_fetch_array($result)) { $template->setParams('newsList', '« <a href="index.php?url=news&id='.$news1["id"].'">' . $news1['title'] . '</a><br/>'); } $news = $engine->fetch_assoc("SELECT id, title, shortstory, longstory, author, published FROM cms_news WHERE id = '" . $engine->secure($_GET['id']) . "' LIMIT 1"); $template->setParams('newsID', $news['id']); $template->setParams('newsTitle', $news['title']); $template->setParams('newsContent', $news['longstory']); $template->setParams('newsAuthor', $news['author']); $template->setParams('newsDate', date("d-m-y", $news['published'])); unset($result); unset($news1); unset($news); } [B] final public function getPageHome()[/B] [B] {[/B] [B] global $template, $engine;[/B] [B] $a = 1;[/B] [B] $data = mysql_query("SELECT title, id, published, shortstory, image FROM cms_news ORDER BY id DESC LIMIT 5");[/B] [B] while($news = mysql_fetch_array($data, MYSQL_ASSOC))[/B] [B] {[/B] [B] $template->setParams('newsTitle-' . $a, $news['title']);[/B] [B] $template->setParams('newsID-' . $a, $news['id']);[/B] [B] $template->setParams('newsDate-' . $a, date("d-m-y", $news['published']));[/B] [B] $template->setParams('newsCaption-' . $a, $news['shortstory']);[/B] [B] $template->setParams('newsIMG-' . $a, $news['image']);[/B] [B] $a++;[/B] [B] }[/B] unset($news); unset($data); } } ?>
Idk whats wrong with that but i couldnt find line 87 because when i counted i got somewhere on an empty line in that bold sectin so i just made whats around it bold whoever can find it gets a cookie
You must be registered for see links
<?php
namespace Revolution;
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
class forms implements iForms
{
public $error;
final public function setData()
{
global $engine;
foreach($_POST as $key => $value)
{
if($value != null)
{
$this->$key = $engine->secure($value);
}
else
{
$this->error = 'Please fill in all fields';
return;
}
}
}
final public function unsetData()
{
global $template;
foreach($this as $key => $value)
{
unset($this->$key);
}
}
final public function writeData($key)
{
global $template;
echo $this->$key;
}
final public function outputError()
{
global $template;
if(isset($this->error))
{
echo "<div id='message'> " . $this->error . " </div>";
}
}
/* Manage different pages */
final public function getPageNews()
{
global $template, $engine;
if(!isset($_GET['id']) || !is_numeric($_GET['id']))
{
$_GET['id'] = 1;
}
$result = mysql_query("SELECT title, id FROM cms_news WHERE id != '" . $engine->secure($_GET['id']) . "' ORDER BY id DESC");
while($news1 = mysql_fetch_array($result))
{
$template->setParams('newsList', '« <a href="index.php?url=news&id='.$news1["id"].'">' . $news1['title'] . '</a><br/>');
}
$news = $engine->fetch_assoc("SELECT title, shortstory, longstory, author, date FROM cms_news WHERE id = '" . $engine->secure($_GET['id']) . "' LIMIT 1");
$template->setParams('newsTitle', $news['title']);
$template->setParams('newsContent', $news['longstory']);
$template->setParams('newsAuthor', $news['author']);
$template->setParams('newsDate', date("d-m-y", $news['date']));
$template->setParams('newsPreview', $news['shortstory']);
unset($result);
unset($news1);
unset($news);
}
final public function getPageHome()
{
global $template, $engine;
$a = 1;
$data = mysql_query("SELECT title, id, date, shortstory, image FROM cms_news ORDER BY id DESC LIMIT 5");
while($news = mysql_fetch_array($data, MYSQL_ASSOC))
{
$template->setParams('newsTitle-' . $a, $news['title']);
$template->setParams('newsID-' . $a, $news['id']);
$template->setParams('newsDate-' . $a, date("d-m-y", $news['date']));
$template->setParams('newsCaption-' . $a, $news['shortstory']);
$template->setParams('newsIMG-' . $a, $news['image']);
$a++;
}
unset($news);
unset($data);
}
}
?>