PATH:
home
/
letacommog
/
crmleta
<?php /* +********************************************************************************** * The contents of this file are subject to the vtiger CRM Public License Version 1.1 * ("License"); You may not use this file except in compliance with the License * The Original Code is: vtiger CRM Open Source * The Initial Developer of the Original Code is vtiger. * Portions created by vtiger are Copyright (C) vtiger. * All Rights Reserved. * ********************************************************************************** */ require_once 'includes/main/WebUI.php'; require_once 'include/utils/utils.php'; require_once 'include/utils/VtlibUtils.php'; require_once 'modules/Vtiger/helpers/ShortURL.php'; require_once 'vtlib/Vtiger/Mailer.php'; global $adb; $adb = PearDatabase::getInstance(); if (isset($_REQUEST['username']) && isset($_REQUEST['emailId'])) { $username = vtlib_purify($_REQUEST['username']); $result = $adb->pquery('select email1 from vtiger_users where user_name= ? ', array($username)); if ($adb->num_rows($result) > 0) { $email = $adb->query_result($result, 0, 'email1'); } if (vtlib_purify($_REQUEST['emailId']) == $email) { $time = time(); $options = array( 'handler_path' => 'modules/Users/handlers/ForgotPassword.php', 'handler_class' => 'Users_ForgotPassword_Handler', 'handler_function' => 'changePassword', 'handler_data' => array( 'username' => $username, 'email' => $email, 'time' => $time, 'hash' => md5($username.$time) ) ); $trackURL = Vtiger_ShortURL_Helper::generateURL($options); $content = 'Dear Customer,<br><br> You recently requested a password reset for your VtigerCRM Open source Account.<br> To create a new password, click on the link <a target="_blank" href='.$trackURL.'>here</a>. <br><br> This request was made on '.date("Y-m-d H:i:s").' and will expire in next 24 hours.<br><br> Regards,<br> VtigerCRM Open source Support Team.<br>'; $subject = 'Vtiger CRM: Password Reset'; $mail = new Vtiger_Mailer(); $mail->IsHTML(); $mail->Body = $content; $mail->Subject = $subject; $mail->AddAddress($email); $status = $mail->Send(true); if ($status === 1 || $status === true) { header('Location: index.php?modules=Users&view=Login&mailStatus=success'); } else { header('Location: index.php?modules=Users&view=Login&error=statusError'); } } else { header('Location: index.php?modules=Users&view=Login&error=fpError'); } }
[+]
..
[-] rnqbcnev.php
[edit]
[+]
license
[-] fugveiqp.php
[edit]
[+]
include
[-] config.security.php
[edit]
[+]
vtlib
[+]
soap
[-] sadtbusf.php
[edit]
[+]
includes
[-] parent_tabdata.php
[edit]
[-] shorturl.php
[edit]
[-] forgotPassword.php
[edit]
[-] nkfngbxn.php
[edit]
[-] jaklzfte.php
[edit]
[+]
migrate
[-] .htaccess
[edit]
[-] favicon.ico
[edit]
[-] about.php
[edit]
[+]
cron
[-] config.csrf-secret.php
[edit]
[-] vtigerversion.php
[edit]
[-] robots.txt
[edit]
[-] izbcvwpg.php
[edit]
[+]
user_privileges
[-] SPL-1.1.2.txt
[edit]
[+]
storage
[-] LICENSE.txt
[edit]
[-] zwzvzhuf.php
[edit]
[-] SendSupportNotification.php
[edit]
[-] vtigerservice.php
[edit]
[+]
consumerportal
[+]
modules
[-] Copyright.txt
[edit]
[+]
resources
[+]
libraries
[+]
data
[+]
cache
[+]
layouts
[-] config.performance.php
[edit]
[-] olkycafm.php
[edit]
[-] config.inc.php
[edit]
[-] htaccess.txt
[edit]
[-] vtigercron.php
[edit]
[-] rzhyqmcf.php
[edit]
[-] PEAR.php
[edit]
[-] config_override.php
[edit]
[-] config.db.php
[edit]
[+]
assets
[-] tabdata.php
[edit]
[-] Release_Notes.html
[edit]
[-] phpversionfail.php
[edit]
[-] connection.php
[edit]
[-] google12bf33bc0b095a34.html
[edit]
[+]
test
[-] webservice.php
[edit]
[-] README.md
[edit]
[-] config.template.php
[edit]
[-] jytvfhlh.php
[edit]
[-] xphdvzfz.php
[edit]
[+]
logs
[-] config.php
[edit]
[-] log4php.properties
[edit]
[-] ugbidzzi.php
[edit]
[-] index.php
[edit]
[+]
packages
[+]
kcfinder
[+]
languages
[+]
schema
[-] copyright.html
[edit]