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.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
| 1. / 2. / ...
<?php
// ClanSphere 2006 - www.clansphere.net
// $Id: login.php 101 2006-07-12 09:36:29Z hajo $
$cs_lang = cs_translate('users');
$data['head']['mod'] = $cs_lang['mod_name'];
$data['head']['action'] = $cs_lang['login'];
global $login;
if(empty($login['mode'])) {
if(empty($_POST['login'])) {
$login_msg = $cs_lang['login_messages'];
}
elseif(!empty($login['error'])) {
$err = $login['error'];
$login_msg = $cs_lang[$err];
}
if(empty($login['nick'])) {
$login['nick'] = '';
}
if(empty($login['password'])) {
$login['password'] = '';
}
if(empty($login['cookie'])) {
$cookie_yes = 0;
$cookie_no = 1;
}
else {
$cookie_yes = 1;
$cookie_no = 0;
}
$data['head']['body_text'] = $login_msg;
$data['lang']['nick'] = $cs_lang['nick'];
$data['lang']['password'] = $cs_lang['pwd'];
$data['lang']['cookie'] = $cs_lang['cookie'];
$data['lang']['yes'] = $cs_lang['yes'];
$data['lang']['no'] = $cs_lang['no'];
$data['lang']['options'] = $cs_lang['options'];
$data['lang']['submit'] = $cs_lang['submit'];
$data['lang']['reset'] = $cs_lang['reset'];
echo cs_html_br(0);
echo cs_subtemplate(__FILE__,$data,'users','head');
echo cs_subtemplate(__FILE__,$data,'users','login');
}
else {
$data['head']['mod'] = $cs_lang['mod_name'];
$data['head']['action'] = $cs_lang['login'];
$login_method = $login['method'];
$data['head']['body_text'] = $cs_lang['method_' . $login_method];
echo cs_subtemplate(__FILE__,$data,'users','head');
echo cs_html_table(1,'forum',1);
echo cs_html_roco(1,'centerb');
if((empty($_POST['uri']))|| (strstr($_POST['uri'], 'logout')))
echo cs_link($cs_lang['continue'],'users','home');
else
echo cs_html_link(str_replace('&','&',$_POST['uri']),$cs_lang['continue'],0);
echo cs_html_table(1,'forum',1);
echo cs_html_roco(1,'centerb');
if((empty($_POST['uri']))|| (strstr($_POST['uri'], 'logout')))
echo cs_link($cs_lang['logout'],'users','logout');
else
echo cs_html_link(str_replace('&','&',$_POST['uri']),$cs_lang['logout'],0);
echo cs_html_table(1,'forum',1);
echo cs_html_roco(1,'centerb');
if((empty($_POST['uri']))|| (strstr($_POST['uri'], 'system')))
echo cs_link($cs_lang['system'],'clansphere','system');
else
echo cs_html_link(str_replace('&','&',$_POST['uri']),$cs_lang['system'],0);
echo cs_html_roco(0);
echo cs_html_table(0);
}
?> |