Just a normal boring one:)
Printable View
It looks like he just put parts of CMS' together - it doesn't look like a coherent website, anyway thanks for sharing!
For people using this release.
This release uses the bug report page I made(which is pretty shit), because it was made in a few minutes I did not add any checks atall or limits or even a check if it is a valid user that is submitting the report.
I noticed people have made a tool spamming it eventually causing his site to go down.(Over 20000 post submits in under 5 minutes).
I would advise you to remove this page as soon as possible and wait till tomorrow when I have a chance to recode it with security as #1 priority.
I didn't bother adding a check the first time mainly because it wasn't supposed to be released. Someone just asked me to release so I did(just forgot to add a check before releasing).
- - - Updated - - -
Fixed bug report page.
SQLCode:<?php
if($_POST['add_ban']){
$text = mysql_real_escape_string($_POST['text']);
$type = mysql_real_escape_string($_POST['type']);
$username = mysql_real_escape_string($_POST['username']);
$resolved = mysql_real_escape_string($_POST['resolved']);
$bugcheck = mysql_query("SELECT id, resolved FROM hk_issues WHERE username = '{$_SESSION['user']['username']}' AND resolvedc = '0'");
if(empty($text)){
echo '<div class = "alert">You have not entered a bug/feature request?</div><br>';
}
if(mysql_num_rows($bugcheck) >= 2){
echo 'You must wait until your current bug reports are resolved.';
}
else{
$query = "INSERT INTO hk_issues SET type='{$type}', text='{$text}', username='" . $_SESSION['user']['username'] ."'";
mysql_query($query) or die ("Error in query: {$logtest}. ".mysql_error());
mysql_query($banlog);
echo '<div class = "alert">Bug/Feature request added successfully.<meta http-equiv="refresh" content="3;url={url}/bugs"/></div><br>';
}
}
?>
<form method = "post">
<select name = "type">
<option value="bug">Bug</option>
<option value="request">Feature Request</option>
</select><br>
<b>Bug/Feature?: </b><br><input type = "text" value = "<?php echo $_POST['text']; ?>" name = "text"><br><br>
<input type = "sub
Added a column 'resolvedc' that needs to be set for 1 in order for the user to make more than three requests.Code:DROP TABLE IF EXISTS `hk_issues`;
CREATE TABLE `hk_issues` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`type` enum('bug','request','') NOT NULL,
`text` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`resolved` text,
`resolvedc` enum('0','1') NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of hk_issues
-- ----------------------------
INSERT INTO `hk_issues` VALUES ('1', 'bug', 'l', 'Test', 'Content', '0');
INSERT INTO `hk_issues` VALUES ('2', 'bug', 'l', 'Test', 'Content', '1');
INSERT INTO `hk_issues` VALUES ('3', 'bug', 'l', 'Test', 'Content', '1');
INSERT INTO `hk_issues` VALUES ('4', 'bug', 'te', 'Test', 'Content', '1');
INSERT INTO `hk_issues` VALUES ('5', 'bug', '.', 'Test', null, '1');
INSERT INTO `hk_issues` VALUES ('6', 'bug', 'l', 'Test', null, '0');
Also add case "bugs": to class.core near cases so it can't be viewed if someone does not have a active session( near case "me": )
I just want one thing its the choose country code with form what i mean by that ex.
<b>Country</b>
<select> Sweden</select> but with all countries i would appriciate if someone posted it on pastebin and i would love it if it would work!!! Thanks!
The features is useful, but the theme is very similar to other revCMS habbo theme edits.