- Joined
- Jul 4, 2011
- Messages
- 1,390
- Reaction score
- 370
after sending the new pm
oooww. crap!!
I didn't saw that script!! xD
thanks for this)
but how can a player know where to send a message?
he/she still need to find out what is the account of the reciever.. xD
Better If we put the character name and it will direct to account ID.
this is the result when I send to a character name :
Btw, soon I am planning to release more stuff for MUCore, you can give me some suggestions what it should be
List of most modules what I have coded can be found HERE.
$dbv = $core_db2->Execute("INSERT INTO MUCore_PM (nick_from,nick_to,subject,message,date,ip,status,delete_from,delete_to) VALUES (?,?,?,?, GETDATE(),?,0,0,0)",array($user_auth_id, $nick_to, $subject, $message, $_SERVER['REMOTE_ADDR']));
$dbv = $core_db->Execute("INSERT INTO MUCore_PM (nick_from,nick_to,subject,message,date,ip,status,delete_from,delete_to) VALUES (?,?,?,?, GETDATE(),?,0,0,0)",array($user_auth_id, $nick_to, $subject, $message, $_SERVER['REMOTE_ADDR']));
This is not coded on Adodb only works under mssql, there is also a call to wrong tables, example
If you server works with 2 Db's this is bad
PHP:$dbv = $core_db2->Execute("INSERT INTO MUCore_PM (nick_from,nick_to,subject,message,date,ip,status,delete_from,delete_to) VALUES (?,?,?,?, GETDATE(),?,0,0,0)",array($user_auth_id, $nick_to, $subject, $message, $_SERVER['REMOTE_ADDR']));
must be
PHP:$dbv = $core_db->Execute("INSERT INTO MUCore_PM (nick_from,nick_to,subject,message,date,ip,status,delete_from,delete_to) VALUES (?,?,?,?, GETDATE(),?,0,0,0)",array($user_auth_id, $nick_to, $subject, $message, $_SERVER['REMOTE_ADDR']));
if you work under adodb is safer and works under PHP 5.2, PHP 5.3 and PHP 5.4
Anyway good job
"Another recomendation, try it work with .tDB files like news, this metod don't touch database, most secure and fast"
Sorry my bad english
oooww. crap!!
I didn't saw that script!! xD
thanks for this)
but how can a player know where to send a message?
he/she still need to find out what is the account of the reciever.. xD
Better If we put the character name and it will direct to account ID.
this is the result when I send to a character name :