-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpass_lost.php
43 lines (39 loc) · 1.8 KB
/
pass_lost.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/******************************************************************************
Etano
===============================================================================
File: pass_lost.php
$Revision$
Software by: DateMill (http://www.datemill.com)
Copyright by: DateMill (http://www.datemill.com)
Support at: http://www.datemill.com/forum
*******************************************************************************
* See the "docs/licenses/etano.txt" file for license. *
******************************************************************************/
require 'includes/common.inc.php';
require _BASEPATH_.'/includes/user_functions.inc.php';
require _BASEPATH_.'/includes/classes/sco_captcha.class.php';
require _BASEPATH_.'/skins_site/'.get_my_skin().'/lang/pass_change.inc.php';
$tpl=new phemplate(_BASEPATH_.'/skins_site/'.get_my_skin().'/','remove_nonjs');
$output=array();
if (isset($_SESSION['topass']['input'])) {
$output=$_SESSION['topass']['input'];
unset($_SESSION['topass']['input']);
}
if (get_site_option('use_captcha','core')) {
$c=new sco_captcha(_BASEPATH_.'/includes/fonts',4);
$_SESSION['captcha_word']=$c->gen_rnd_string(4);
$output['rand']=make_seed();
$output['use_captcha']=true;
}
$output['lang_258']=sanitize_and_format($GLOBALS['_lang'][258],TYPE_STRING,$__field2format[TEXT_DB2DISPLAY]);
$output['lang_259']=sanitize_and_format($GLOBALS['_lang'][259],TYPE_STRING,$__field2format[TEXT_DB2DISPLAY]);
$tpl->set_file('content','pass_lost.html');
$tpl->set_var('output',$output);
$tpl->process('content','content',TPL_OPTIONAL);
$tplvars['title']=$GLOBALS['_lang'][244];
$tplvars['page_title']=$GLOBALS['_lang'][244];
$tplvars['page']='pass_lost';
$tplvars['css']='pass_lost.css';
$no_timeout=true;
include 'frame.php';