I've seen all these images, but no real good php code.. Maybe show us some of your classes? I understand you have all these images but it would get boring just looking at images and no snips.
You should really concentrate on your own development rather than trolling mine.
But here, have a peek at my horrible coding (as you so call stated).
PHP Code:<?php
defined('SECURITY') or die('Unallowed access');
function listBan()
{
global $db;
return ($db->sql_query("SELECT ID,Username FROM users WHERE Rank = '1'"));
}
function deleteBan($user)
{
global $db;
return ($db->sql_query("UPDATE users SET Rank = '2' WHERE Username = '".$db->sql_escape($user)."' LIMIT 1"));
}
function remoteBan($user)
{
global $db;
return ($db->sql_query("UPDATE users SET Rank = '1' WHERE Username = '".$db->sql_escape($user)."' LIMIT 1"));
}
function listFeature()
{
global $db;
return ($db->sql_query("SELECT Image,Message FROM featured"));
}
function deleteFeature($id)
{
global $db;
return ($db->sql_query("DELETE FROM featured WHERE Message = '".$db->sql_escape($id)."' LIMIT 1"));
}
function editFeature($id)
{
global $db;
$result = $db->sql_query("SELECT ID,Image,Message FROM featured WHERE Message = '".$db->sql_escape($id)."' LIMIT 1");
return ($db->sql_fetchrow($result));
}
function updateFeature($image,$message,$id)
{
global $db;
return ($db->sql_query("UPDATE featured SET Image = '".$db->sql_escape($image)."', Message = '".$db->sql_escape($message)."' WHERE ID = '".$db->sql_escape($id)."' LIMIT 1"));
}
?>
Still not sure about this function
When banning someone in the emu his rank will not be set to 1, he will just be added to the bans table. Not sure if it is a smart way to go.PHP Code:function remoteBan($user)
{
global $db;
return ($db->sql_query("UPDATE users SET Rank = '1' WHERE Username = '".$db->sql_escape($user)."' LIMIT 1"));
}
I might be missing something though.
- ID links you back to the webpage for that article.
- When updating the article the title, message, author and timestamp get updated. $title and $message are defined by what you place in the text box's, but the author is automatically updated to the person updating it last and timestamp gets updated to time().
- Textarea won't stretch on its x axis, but you can alter its height how much you want. Thanks to width and max-width.
- Remove basically deletes the article from the database.
Lets go over an overview whats included inside FailPHP.
- Mysqli (supports 2 mysql versions, 4.1+ 5.0+)
- 2 class's, 4 function's and 1 config files
- 17 images being stored on FailPHP and 2 .CSS files
What's on FailPHP.
- .htacess
- articles.php
- errors.php
- index.php
- logout.php
- me.php
- profile.php
- register.php
- settings/email/password
- support.php
Housekeeping
- add.article.php
- add.feature.php
- index.php
- list.article.php
- list.ban.php
- list.feature.php
- remote.ban.php
what's planned next...
I'm heading onto doing a maintenance page, probably static (therefore .HTML will be used). Add a few more things into housekeeping (support topics, content, etc).
Try it out: Habbo Hotel: Login (Been updated to the latest revision, database wipe).
Though the index design looked pretty shit, updated it.
Didn't like the magnifying glass.
![]()
Probably going to take a break from FailPHP, but if anyone wants to continue the development, give me a PM or post a message here.
Ah, stop changing it up. I keep coming back and its all different. I loved the first. then it went to rubbish.. :(
& Can I get a copy of this, I might play around with it :) Just message me it? thanks if you can bro.
Dead?
It's an unfinished project. Why is it unfinished? I can't be arsed updating the tables to Phoenix/Uber.
Credits: phpBB Group for their dbal.
Download: housekeeping.zip
Ye, cool story ^
After a long think in my little brain, I learnt that it's pointless coding a CMS from scratch because everyone will still use UberCMS... This is the first time I've actually touched the original release and here's what I've done so far...
#Revision 1
- Removed magic_quotes from global.php
- Removed uservoice from head-int.tpl (including defined HIDE_FEEDBACK)
- Added site_name into class.tpl
- Updated flash_build to 63_1132
- Updated web_build to 63_1dc60c6d6ea6e089c6893ab4e0541ee0/863
- Updated web_build_str to 63-BUILD1132 - 15.02.2012 23:05 - com
- Removed UberCMS overrides (.tpl)
- Removed Uber Pedo seal
Progress: http://i.imgur.com/AbuxY.png
#Revision 2
Updated http://images.habbo.com/habboweb/%we.../frontpage.css to http://images.habbo.com/habboweb/%we.../frontpage.css
Updated head-init.tpl (indenting)
Updated head-bottom.tpl (removed keywords from meta description)
Progress: http://i.imgur.com/PV8a3.png
#Revision 3
Updated case frontpage on class.tpl
Updated head-init.tplPHP Code:case "frontpage":
$this->AddIncludeFile(new IncludeFile('text/css', '%www%/templates/css/frontpage.css', 'stylesheet'));
break;
Updated head-bottom.tpl
Updated page-fp.tpl
Removed generic->footer from index.phpPHP Code:<body>
<div id="site-header">
<form action="%www%/account/submit" method="post">
%login_result%
<div id="site-header-content">
<div id="habbo-logo"></div>
<div id="login-form">
<div id="login-form-email">
<label class="login-text">Email</label>
<input type="text" class="login-field" name="credentials.username" id="login-username" maxlength="48">
</div>
<div id="login-form-password">
<label class="login-text">Password</label>
<input type="password" class="login-field" name="credentials.password" id="login-password" maxlength="32">
</div>
<div id="login-form-submit">
<input type="submit" id="login-submit-button" value="Login" />
</div>
<div id="login-onlinecount">
0 members online
</div>
</div>
</div>
</form>
</div>
<div id="fp-container">
<div id="tagline">%site_name% Hotel... make friends, chillax, get noticed!</div>
<div id="frontpage-image-container">
<div id="frontpage-image">
<a href="register" id="frontpage-image-button"></a>
</div>
</div>
</div>
</body>
</html>
Progress: http://i.imgur.com/irznm.png
Updated index.php
Progress: http://i.imgur.com/KdZZQ.png
I don't know why you guys are trolling Predict so hard, the codes not that bad, he just needs to patch exploits in his queries etc.Everyone does things different