I told him to add deaths xD dunno if hell add em
CREATE TABLE `xcms_char_text` (
`char_id` int(11) NOT NULL,
`text` longtext,
PRIMARY KEY (`char_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
Is it anything "special" with this, that wants us to use this instead of Gesior's CIP page, or AFS-CMS's version?
Afraid I think you got pretty heavy competition 6 days and 1 view.
//Male druid
else if($_POST["sex"] == 1 && $vocation == 2){
mysql_query("INSERT INTO players (name,account_id,level,vocation,health,healthmax,experience,lookbody,lookfeet,lookhead,looklegs,looktype,lookaddons,maglevel,mana,manamax,soul,town_id,posx,posy,posz,cap,sex)
VALUES(,'$char_name','$account_id','$level','$vocation',[B]'$health_knight','$health_knight'[/B],'$experience','$look_body','$look_feet','$look_head','$look_legs','128','$look_addons',[B]'$maglevel_knight','$mana_knight','$mana_knight'[/B],'$soul','$town_id','$posx','$posy','$posz','$cap','1')")
or die(mysql_error());
}
//Male Paladin
else if($_POST["sex"] == 1 && $vocation == 3){
mysql_query("INSERT INTO players (name,account_id,level,vocation,health,healthmax,experience,lookbody,lookfeet,lookhead,looklegs,looktype,lookaddons,maglevel,mana,manamax,soul,town_id,posx,posy,posz,cap,sex)
VALUES('$char_name','$account_id','$level','$vocation',[B]'$health_knight','$health_knight'[/B],'$experience','$look_body','$look_feet','$look_head','$look_legs','128','$look_addons',[B]'$maglevel_knight','$mana_knight','$mana_knight'[/B],'$soul','$town_id','$posx','$posy','$posz','$cap','1')")
or die(mysql_error());
}
//Female druid
else if($_POST["sex"] == 0 && $vocation == 2){
mysql_query("INSERT INTO players (name,account_id,level,vocation,health,healthmax,experience,lookbody,lookfeet,lookhead,looklegs,looktype,lookaddons,maglevel,mana,manamax,soul,town_id,posx,posy,posz,cap,sex)
VALUES('$char_name','$account_id','$level','$vocation',[B]'$health_knight','$health_knight'[/B],'$experience','$look_body','$look_feet','$look_head','$look_legs','138','$look_addons',[B]'$maglevel_knight','$mana_knight','$mana_knight'[/B],'$soul','$town_id','$posx','$posy','$posz','$cap','0')")
or die(mysql_error());
}
//Frmale Paladin
else if($_POST["sex"] == 0 && $vocation == 3){
mysql_query("INSERT INTO players (name,account_id,level,vocation,health,healthmax,experience,lookbody,lookfeet,lookhead,looklegs,looktype,lookaddons,maglevel,mana,manamax,soul,town_id,posx,posy,posz,cap,sex)
VALUES('$char_name','$account_id','$level','$vocation',[B]'$health_knight','$health_knight'[/B],'$experience','$look_body','$look_feet','$look_head','$look_legs','138','$look_addons',[B]'$maglevel_knight','$mana_knight','$mana_knight'[/B],'$soul','$town_id','$posx','$posy','$posz','$cap','0')")
or die(mysql_error());
}
if(isset($_POST["title"]) && !empty($_POST["title"]) && isset($_POST["text"]) && !empty($_POST["text"]) && isset($_POST["author"]) && !empty($_POST["author"]) && $_SESSION["admin"] == true){
$title = mysql_real_escape_string($_POST["title"]);
$text = mysql_real_escape_string($_POST["text"]);
$author = mysql_real_escape_string($_POST["author"]);
mysql_query("SELECT * FROM `oceanic_cms_text`");
mysql_query("INSERT INTO oceanic_cms_text (title,text,author)
VALUES('$title','$text','$author')")
or die(mysql_error());
header('Location: ?link=news');
}