Parašė si-acc-nx-metu· 2007 Lie. 21 18:07:54
#2
1.Idek include aplanka [kuri prisekiau] i tavo
ftp.
2.Atidarai :
includes/update_profile_include.php
3.Randi :
if ($username == "" || $_POST['user_email'] == "") {
4.Keiciam i sia eilute :
if ($username == "" || $_POST['user_email'] == "" || $_POST['user_location'] == "") {
5.Randi :
$user_location = isset($_POST['user_location']) ? stripinput(trim($_POST['user_location'])) : "";
6.Keiciam i sia eilute :
$user_location = stripinput(trim($_POST['user_location']));
7.Issaugojam.
8.Atidarai :
locale/English/members-profile.php
9.Randi :
$locale['480'] = "You must specify a user name & email address.";
10.Keiciam i sia eilute :
$locale['480'] = "You must specify a user name, email address & location.";
11.Issaugojam.
12.Atidarai :
locale/English/register.php
13.Randi :
$locale['402'] = "You must specify a user name, password & email address.";
14.Keiciam i sia eilute :
$locale['402'] = "You must specify a user name, password, email address & location.";
15.Randi :
$locale['552'] = "Please specify an email address.";
16.Ir pridedam po ja sia eilute :
$locale['553'] = "Please specify a location.";
17.Issaugojam.
18.Atidarai :
edit_profile.php
19.Randi :
<td class='tbl'>".$locale['u009']."</td>
<td class='tbl'><input type='text' name='user_location' value='".$userdata['user_location']."' maxlength='50' class='textbox' style='width:200px;'></td>
20.Keiciam i sia eilute :
<td class='tbl'>".$locale['u009']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'>
<select name='user_location' class='textbox' style='width:200px;'>
<option value=''></option>\n";
include INCLUDES."countries.php";
sort($countries);
reset($countries);
foreach ($countries as $country) {
echo "<option value='$country'".($userdata['user_location'] == $country ? " selected" : "").">$country</option>";
}
echo "</select></td>
21.Issaugojam.
22.Atidarai :
register.php
Randi :
$result = dbquery("INSERT INTO ".$db_prefix."users VALUES('', '".$user_info['user_name']."', '".md5($user_info['user_password'])."', '".$user_info['user_email']."', '".$user_info['user_hide_email']."', '', '0000-00-00', '', '', '', '', '', 'Default', '0', '', '', '0', '".time()."', '0', '".USER_IP."', '', '', '101', '$activation')");
23.Keiciam i sia eilute :
$result = dbquery("INSERT INTO ".$db_prefix."users VALUES('', '".$user_info['user_name']."', '".md5($user_info['user_password'])."', '".$user_info['user_email']."', '".$user_info['user_hide_email']."', '".$user_info['user_location']."', '0000-00-00', '', '', '', '', '', 'Default', '0', '', '', '0', '".time()."', '0', '".USER_IP."', '', '', '101', '$activation')");
24.Randi :
$password1 = stripinput(trim(eregi_replace(" +", "", $_POST['password1'])));
25.Po ja rasom sia eilute :
$user_location = stripinput(trim($_POST['user_location']));
26.Randi :
if ($username == "" || $password1 == "" || $email == "") $error .= $locale['402']."<br>\n";
27.Keiciam i sia eilute :
if ($username == "" || $password1 == "" || $email == "" || $user_location == "") $error .= $locale['402']."<br>\n";
28.Random sia eilute ir triname :
$user_location = isset($_POST['user_location']) ? stripinput(trim($_POST['user_location'])) : "";
29.Randi :
"user_hide_email" => isNum($_POST['user_hide_email']) ? $_POST['user_hide_email'] : "1"
30.Keiciam i :
"user_hide_email" => isNum($_POST['user_hide_email']) ? $_POST['user_hide_email'] : "1",
"user_location" => $user_location
31.Randi :
</tr>\n";
if ($settings['display_validation'] == "1") {
32.Keiciam i sia eilute :
</tr>
<tr>
<td class='tbl'>".$locale['u009']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'>
<select name='user_location' class='textbox' style='width:200px;'>
<option value=''></option>\n";
include INCLUDES."countries.php";
sort($countries);
reset($countries);
foreach ($countries as $country) {
echo "<option value='$country'>$country</option>";
}
echo "</select></td>
</tr>\n";
if ($settings['display_validation'] == "1") {
33.Randi ir trink raudona koda :
if ($settings['email_verification'] == "0") {
echo "<tr>
<td class='tbl'>".$locale['u009']."</td>
<td class='tbl'><input type='text' name='user_location' maxlength='50' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u010']." <span class='small2'>(mm/dd/yyyy)</span></td>
34.Randi :
if (frm.email.value==\"\") {
alert(\"".$locale['552']."\");
return false;
}
35.Po ja prirasai si koda :
if (frm.user_location.value==\"\") {
alert(\"".$locale['553']."\");
return false;
}