Jump to content
MakeWebGames

IMO a better mailbox than the other FREE


rtg

Recommended Posts

This mailbox is for V1 as you folks refer to it. It keeps the subject in the line when you are replying to it and also it lets you know if the person has read the mail or not. It also gives you a select function to delete. It has smilies in it as well.

In your header.php file add this java script code.

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Mailbox.php file is as follows:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

Re: IMO a better mailbox than the other FREE

ORIGINAL poster: rtg

Here i reposted the script to save space...I AM NOT POSTING AS MINE!

This mailbox is for V1 as you folks refer to it. It keeps the subject in the line when you are replying to it and also it lets you know if the person has read the mail or not. It also gives you a select function to delete. It has smilies in it as well.

In your header.php file add this java script code.

<script type="text/javascript">

function selectAll(x) {

for(var i=0,l=x.form.length; i<l; i++)

if(x.form.type == 'checkbox' && x.form.name != 'sAll')

x.form.checked=x.form.checked?false:true

}

</script>

 

Mailbox.php file is as follows:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

Guest Anonymous

Re: IMO a better mailbox than the other FREE

Do NOT use this on a public facing server UNTIL you have secured against SQL injection.

Link to comment
Share on other sites

Guest Anonymous

Re: IMO a better mailbox than the other FREE

That's the trouble, and I see it happen time and time again... Security is not something you bolt on... It has to be built it from line #1 of your project.

I've seen so many games where someone has missed one little thing and pouf - instantly trashed.

Now whilst it's great to see people releasing modifications, it's making the whole system rather unstable with less experience developers uploading the latest mods into their game only to find a glaring hole has been exploited.

As for where ... look again at the mail_compose( ) function for starters

Link to comment
Share on other sites

Re: IMO a better mailbox than the other FREE

but thats what im saying. I cant see where i am going wrong. I addslashes, removeslashes, replace strings, stop html. Apart from mysql_escape_string i cant see what else i can do. If you no more then please tell me. I shall rewrite the code and repost it.

Link to comment
Share on other sites

Guest Anonymous

Re: IMO a better mailbox than the other FREE

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Don't use inline queries like this - it's messy, difficult to read, and far to easy to make a mistake:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

This has the added effect that if $_GET['ID'] was not checked .... It will we converted by sprintf into a number.

However.. You still can't trust this as there have been exploits in sprintf detected, so:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

Re: IMO a better mailbox than the other FREE

ah thank you. Code now changed and inserted below. I will look at all the other Get functions i have tho its not that many now as most have been changed to post where it matters.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...