Little help needed please if i change my look it say error accourt or something i got some costem collers in my figuredata ? must that be coded in ?
Printable View
Little help needed please if i change my look it say error accourt or something i got some costem collers in my figuredata ? must that be coded in ?
Hey I did a VERY simple edit to make your code a class, a 1 minute edit, for anyone who's interested. If you are going to use it, don't give me credits, give Superfun full credits.
Usage (Method 1) (recommended):
Usage (Method 2) (great if you need to check multiple figures)PHP Code:<?php
$figure = "hd-180-1.ch-804-94.lg-270-82.sh-300-91.ha-1012-93"; //this is the figure to check, make it whatever you are checking from, register, profile, etc
$gender = "M"; //same as above but gender.
$check = new HoloFigureCheck($figure,$gender);
if($check->valid){ //optional: if($check->valid == true){
//do stuff here
}else{
//figure invalid, panic!
}
?>
PHP Code:<?php
//example script to check all figures in database
$check = new HoloFigureCheck();
$sql = mysql_query("SELECT id,name,figure,sex FROM users");
while($row = mysql_fetch_assoc($sql)){
if($check->HoloFigureCheck($row['figure'],$row['sex']) == false){
echo "ID <strong>".$row['id']."</strong>: Username <strong>".$row['name']."</strong> has an invalid figurem attempting to change figure to default.<br />\n";
mysql_query("UPDATE users SET figure = 'hd-180-1.ch-804-94.lg-270-82.sh-300-91.ha-1012-93', sex = 'M' WHERE id = '".$row['id']."' LIMIT 1"); //CHANGE THIS TO A VALID FIGURE
}
}
?>
Good Job Yifan_Lu Thanks !
Mark
Can you explain me how i do that?
Sorry for bumping, but can you update this script to check if the clothe is HC only or not? It is useful for blocking people trying to wear HC clothing when they don't have HC. I would do it myself, but I'm too busy with PHPRetro. Thanks.
If you update your look normal there isn't come Succesfully updated? why that
Hm, you should get all this data from gamedata/figuredata - than you always have an up to date check even if Habbo makes new clothes.
Thank you now nobody can't play for mutant any more
Worksssssss
thanks for this mutants was doing ma head in :thumbup1:
Very nice release! Now my server will be cleaned of pervert nacked Habbos XDDD
Is there anyway to get this to work with phpretro ? I've tried my self but it doesn't work..