Hello everyone!
I try to send a mail with some information when user tryes to edit a post and submit post modificated.
I find the following data:
1 - original message -> $cur_post['message']
2 - original subject of the post -> $cur_post['subject']
Now i'm trying (and i didn't find yet) variables for:
1 - post url  ... maybe 'f.redirect_url'? to send the link by mail
2 - username that change the post ... maybe $pun_user['username']?
After i find that i want to send an "hidden to user" mail to administrator/moderator in internet using php mail function when i confirm the submit button on edit.php.
<form id="edit" method="post" action="edit.php?id=<?php echo $id ?>&amp;action=edit" onsubmit="return process_form(this)">
How can i add another function on "submit" event?

edit add.

i've tried for hours sad and i'm in the fog....
i'm running punbb in localhost to perform change to prevent online errors for users...
i made an echo of pun_user['username'] and nothing print..... seems i ain't got a pun_user, but it's impossible (i'm logged with admin profile, i supposed Admin is a particular case of an user).
ok, next step...
i wrote in my code: require FORUM_ROOT.'include/email.php';
but when i test the page an error occourred about finding "email.php" , where i'm wrong?? it couldn't find this filw and i've got it in that path sad
last step (maybe one day i will offer you a beer for the patience)
for post link i must write something like this?
<a href="viewtopic.php?pid=<?php echo $id.'#p'.$id ?>"> link here </a>
maybe i'm stupid but i can't find this error...

Thank You Very much!

I'm designing a website for learning and sharing information.

File: forum/include/functions.php
Line: 250
PunBB reported: Unable to delete from online list
Database reported: ERROR: canceling statement due to statement timeout
Failed query: DELETE FROM pun_online WHERE ident='83.21.75.15'

Hi i got this error, I checked database and I have only one record in the pun_online. I can't delete this record...What should I do to solve that?

the line where is the problem is:

if ($cur_user['user_id'] == '1')
    $db->query('DELETE FROM '.$db->prefix.'online WHERE ident=\''.$db->escape($cur_user['ident']).'\'') or error('Unable to delete from online list', __FILE__, __LINE__, $db->error());

       
all code is stored in update_users_online() function.
Is there some kind of connection between some tables, therefore I can't delete this record?

Thank's a lot!