• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[AAC] Oceanic CMS

What do you mean by item auctions?..
Good job and thanks :thumbup:
 
Updated all code, so here comes a Lite version of the new CMS.
The full version come on Friday.

Post what you think about it, and what you want me to change.

Add in to SQL
PHP:
CREATE TABLE `xcms_char_text` (
  `char_id` int(11) NOT NULL,
  `text` longtext,
  PRIMARY KEY  (`char_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
 

Attachments

Last edited:
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 :p 6 days and 1 view.
 
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 :p 6 days and 1 view.

Yeah im still working on it, have mutch to do on work
 
How about it's safe?

It's harder to SQL-inject it than AFS-CSM and geisors, wich is easy to sql-inject.
 
All I can say is that Oceanic knows a hell of a lot about security. I can assure you that.
 
Found some bugs in this one.
Code:
//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());
}

Code:
//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());
}

Here you can just tamper the author data and spoof that you are another player in comments, make sure the "author" is on the posters account:
Code:
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');

}

There's probably many other bugs, I just looked thru it quickly. There's also alot of optimizations and cleanups you could do to this CMS, everything in one file is not really good organizing and it makes it all into a mess.
 
Talaturen, would you still recommend using the ingame, aac, or is this one still a bit better than the other, or should we take a look at Nicaw AAC?
 
Back
Top