Location: PHPKode > projects > mBlog > includes/lost.php
<?php
require "user_init.php";

$user_id = post_param ('user_id');

$res = sql_query ("SELECT * FROM m_user WHERE (user_id='$user_id' OR user_email='$user_id') LIMIT 1", 1);
$row = sql_fetch_array ($res);
if (empty($row['user_id'])) msg_die ('lost_error');

$row['site_url'] = $config['site_url'];
$row['site_name'] = $config['site_name'];
$body = quick_tpl (load_tpl ($config['skin'].'/mail_lost.tpl'), $row);
email ($row['user_email'], $lang['l_mail_lost_subject'], $body);
msg_die ('lost_ok');
?>
Return current item: mBlog