Joovili v.2 - потребителите сами избират паролата си
Ето как потребителите да избират сами паролата си при регистрация!

================================

-----| Отваряте members_signup.php |-------------
-----| И замествате целия код с този тук |----------

================================

<?php


include("include/settings.inc.php");



if ( $session_logged == 'true' ) {
header ('Location: members_area.php');
}


$verification_code = rand(100000,999999);


if (isset($_POST['signup_continue'])){

/* ... checking if username already exists */
$username_exists = mysql_query("SELECT * FROM joovili_users
WHERE username='".$_POST['username']."'");

/* ... checking if email address is already in use */
$email_exists = mysql_query("SELECT * FROM joovili_users
WHERE email='".$_POST['email']."'");

/* ... checking if email address has been banned */
$banned_exists = mysql_query("SELECT * FROM joovili_banned
WHERE banned_email='".$_POST['email']."'");

/* username is empty */
if (empty($_POST['username'])){

$signup_error = '<table width="100%" border="0" cellpadding="4" cellspacing="0" class="error_table">
<tr>
<td width="10%" align="center"><img src="themes/' .$site_theme . '/images/icons/017.gif" /></td>
<td width="90%">' . $lang['signup_error'] . '</td>
</tr>
</table>
<br />';

}

else if (mysql_num_rows($username_exists)==1){

$signup_error = '<table width="100%" border="0" cellpadding="4" cellspacing="0" class="error_table">
<tr>
<td width="10%" align="center"><img src="themes/' .$site_theme . '/images/icons/017.gif" /></td>
<td width="90%">' . $lang['signup_error_usernameX'] . '</td>
</tr>
</table>
<br />';

}


else if (!preg_match("/^[a-zA-Z\d\-_]+$/i", $_POST["username"])){

$signup_error = '<table width="100%" border="0" cellpadding="4" cellspacing="0" class="error_table">
<tr>
<td width="10%" align="center"><img src="themes/' .$site_theme . '/images/icons/017.gif" /></td>
<td width="90%">' . $lang['signup_error_invalid'] . '</td>
</tr>
</table>
<br />';

}

else if (empty($_POST['password'])){

$signup_error = '<table width="100%" border="0" cellpadding="4" cellspacing="0" class="error_table">
<tr>
<td width="10%" align="center"><img src="themes/' .$site_theme . '/images/icons/017.gif" /></td>
<td width="90%">' . $lang['signup_error'] . '</td>
</tr>
</table>
<br />';

}


else if ($_POST['password']!==$_POST['password_confirm']){

$signup_error = '<table width="100%" border="0" cellpadding="4" cellspacing="0" class="error_table">
<tr>
<td width="10%" align="center"><img src="themes/' .$site_theme . '/images/icons/017.gif" /></td>
<td width="90%">Passwords do not match.</td>
</tr>
</table>
<br />';

}


else if (empty($_POST['email'])){

$signup_error = '<table width="100%" border="0" cellpadding="4" cellspacing="0" class="error_table">
<tr>
<td width="10%" align="center"><img src="themes/' .$site_theme . '/images/icons/017.gif" /></td>
<td width="90%">' . $lang['signup_error'] . '</td>
</tr>
</table>
<br />';

}


else if ($_POST['email']!==$_POST['email_confirm']){

$signup_error = '<table width="100%" border="0" cellpadding="4" cellspacing="0" class="error_table">
<tr>
<td width="10%" align="center"><img src="themes/' .$site_theme . '/images/icons/017.gif" /></td>
<td width="90%">' . $lang['signup_error_email'] . '</td>
</tr>
</table>
<br />';

}


else if (mysql_num_rows($email_exists)==1){

$signup_error = '<table width="100%" border="0" cellpadding="4" cellspacing="0" class="error_table">
<tr>
<td width="10%" align="center"><img src="themes/' .$site_theme . '/images/icons/017.gif" /></td>
<td width="90%">' . $lang['signup_error_emailX'] . '</td>
</tr>
</table>
<br />';

}


else if (mysql_num_rows($banned_exists)==1){

$signup_error = '<table width="100%" border="0" cellpadding="4" cellspacing="0" class="error_table">
<tr>
<td width="10%" align="center"><img src="themes/' .$site_theme . '/images/icons/017.gif" /></td>
<td width="90%">' . $lang['signup_error_emailB'] . '</td>
</tr>
</table>
<br />';

}


else if (empty($_POST['basic_name'])){

$signup_error = '<table width="100%" border="0" cellpadding="4" cellspacing="0" class="error_table">
<tr>
<td width="10%" align="center"><img src="themes/' .$site_theme . '/images/icons/017.gif" /></td>
<td width="90%">' . $lang['signup_error'] . '</td>
</tr>
</table>
<br />';

}


else if (empty($_POST['basic_city'])){

$signup_error = '<table width="100%" border="0" cellpadding="4" cellspacing="0" class="error_table">
<tr>
<td width="10%" align="center"><img src="themes/' .$site_theme . '/images/icons/017.gif" /></td>
<td width="90%">' . $lang['signup_error'] . '</td>
</tr>
</table>
<br />';

}


else if ($_POST['verification_code_hidden']!==$_POST['verification_code']){

$signup_error = '<table width="100%" border="0" cellpadding="4" cellspacing="0" class="error_table">
<tr>
<td width="10%" align="center"><img src="themes/' .$site_theme . '/images/icons/017.gif" /></td>
<td width="90%">' . $lang['signup_error_verify'] . '</td>
</tr>
</table>
<br />';

}


else if ($_POST['signup_accept']!=="on"){

$signup_error = '<table width="100%" border="0" cellpadding="4" cellspacing="0" class="error_table">
<tr>
<td width="10%" align="center"><img src="themes/' .$site_theme . '/images/icons/017.gif" /></td>
<td width="90%">' . $lang['signup_error_accept'] . '</td>
</tr>
</table>
<br />';

} else {


$random_password = rand(10000,99999);

/* inserting information into database */
mysql_query("INSERT INTO joovili_users
(username, password, email, basic_name, birth_day, birth_month, birth_year,
basic_gender, basic_sexuality, basic_marital, basic_ethnic, basic_city,
basic_country, account_created, last_login) VALUES (
'".$_POST['username']."',
'".md5($_POST['password'])."',
'".$_POST['email']."',
'".$_POST['basic_name']."',
'".$_POST['birth_day']."',
'".$_POST['birth_month']."',
'".$_POST['birth_year']."',
'".$_POST['basic_gender']."',
'".$_POST['basic_sexuality']."',
'".$_POST['basic_marital']."',
'".$_POST['basic_ethnic']."',
'".$_POST['basic_city']."',
'".$_POST['basic_country']."',
'".date_time(normal)."', 'Never')");


include("include/emails.inc.php");
mail($_POST['email'], $email_signup_subject, $email_signup, $headers);

/* send to signup complete page */
header ('Location: members_signup.php?action=signup_complete');

}
}

/***************************************************************************
* INCLUDE HEADER
***************************************************************************/
include("themes/".$site_theme."/joovili_header.php");

?>

<table width="100%" border="0">
<tr>
<td>
<?php

if ($_GET['action'] == 'signup_complete') {
?>
<table width="100%" border="0">
<tr>
<td class="page_titles"><?php echo $lang['signup_complete'];?></td>
</tr>
<tr>
<td height="20"><img src="themes/<?php echo $site_theme;?>/images/014.gif" width="100%" height="1" /></td>
</tr>
</table>
<br />
<table width="100%" border="0" cellpadding="4" cellspacing="1" class="table">
<tr>
<td class="text"><?php echo $lang['signup_complete_message'];?></td>
</tr>
<tr>
<td><a href="members_login.php" class="bold_text">
<?php echo $lang['signup_complete_login']?></a></td>
</tr>
<tr>
<td class="text"><?php echo $lang['signup_complete_note'];?></td>
</tr>
</table>
<?php
}
/*********************************************
* SIGN UP PAGE -->
*********************************************/
if (!$_GET['action']) {
?>
<table width="100%" border="0">
<tr>
<td class="page_titles"><?php echo $lang['signup'];?></td>
</tr>
<tr>
<td height="20">
<img src="themes/<?php echo $site_theme;?>/images/014.gif" width="100%" height="1" /></td>
</tr>
</table>
<?php

if ($site_settings['joovili_signup'] == 'No'){
?>
<table width="100%" border="0" cellpadding="4" cellspacing="1" class="table">
<tr>
<td class="bold_text"><?php echo $lang['signup_disabled'];?></td>
</tr>
</table>
<?php


} else {


echo $signup_error;

?>
<table width="100%" border="0" cellpadding="4" cellspacing="1" class="table">
<form method="post" action="members_signup.php">
<tr>
<td colspan="2" class="titles"> </td>
</tr>
<tr>
<td width="25%" valign="top" class="columns">
<?php echo $lang['signup_username'];?></td>
<td width="75%" class="bold_text"><input name="username" type="text" class="form_text_field" value="<?php echo $_POST['username'];?>" />
<input name="username_check" type="submit" class="form_button" value="Провери!" /><?php check_username(); ?></td>
</tr>
<tr>
<td class="columns"><?php echo $lang['login_password'];?></td>
<td><input name="password" type="password" class="form_text_field" value="" /></td>
</tr>
<tr>
<td class="columns"><?php echo 'Confirm '.$lang['login_password'];?></td>
<td><input name="password_confirm" type="password" class="form_text_field" value="" /></td>
</tr>
<tr>
<td class="columns"><?php echo $lang['signup_email'];?></td>
<td>
<input name="email" type="text" class="form_text_field" value="<?php echo $_POST['email'];?>" /></td>
</tr>
<tr>
<td class="columns"><?php echo $lang['signup_email_confirm'];?></td>
<td><input name="email_confirm" type="text" class="form_text_field" value="<?php echo $_POST['email_confirm'];?>" /></td>
</tr>
<tr>
<td colspan="2" class="titles"> </td>
</tr>
<tr>
<td class="columns"><?php echo $lang['profile_name_title'];?></td>
<td><input name="basic_name" type="text" class="form_text_field" value="<?php echo $_POST['basic_name'];?>" /></td>
</tr>
<tr>
<td class="columns"><?php echo $lang['signup_dob'];?></td>
<td><select name="birth_day" class="form_text_field" style="width: 16%;">
<option value="01" <?php if ($_POST['birth_day'] == '1'){ echo ' selected=selected'; } ?>>1</option>
<option value="02" <?php if ($_POST['birth_day'] == '2'){ echo ' selected=selected'; } ?>>2</option>
<option value="03" <?php if ($_POST['birth_day'] == '3'){ echo ' selected=selected'; } ?>>3</option>
<option value="04" <?php if ($_POST['birth_day'] == '4'){ echo ' selected=selected'; } ?>>4</option>
<option value="05" <?php if ($_POST['birth_day'] == '5'){ echo ' selected=selected'; } ?>>5</option>
<option value="06" <?php if ($_POST['birth_day'] == '6'){ echo ' selected=selected'; } ?>>6</option>
<option value="07" <?php if ($_POST['birth_day'] == '7'){ echo ' selected=selected'; } ?>>7</option>
<option value="08" <?php if ($_POST['birth_day'] == '8'){ echo ' selected=selected'; } ?>>8</option>
<option value="09" <?php if ($_POST['birth_day'] == '9'){ echo ' selected=selected'; } ?>>9</option>
<option value="10" <?php if ($_POST['birth_day'] == '10'){ echo ' selected=selected'; } ?>>10</option>
<option value="11" <?php if ($_POST['birth_day'] == '11'){ echo ' selected=selected'; } ?>>11</option>
<option value="12" <?php if ($_POST['birth_day'] == '12'){ echo ' selected=selected'; } ?>>12</option>
<option value="13" <?php if ($_POST['birth_day'] == '13'){ echo ' selected=selected'; } ?>>13</option>
<option value="14" <?php if ($_POST['birth_day'] == '14'){ echo ' selected=selected'; } ?>>14</option>
<option value="15" <?php if ($_POST['birth_day'] == '15'){ echo ' selected=selected'; } ?>>15</option>
<option value="16" <?php if ($_POST['birth_day'] == '16'){ echo ' selected=selected'; } ?>>16</option>
<option value="17" <?php if ($_POST['birth_day'] == '17'){ echo ' selected=selected'; } ?>>17</option>
<option value="18" <?php if ($_POST['birth_day'] == '18'){ echo ' selected=selected'; } ?>>18</option>
<option value="19" <?php if ($_POST['birth_day'] == '19'){ echo ' selected=selected'; } ?>>19</option>
<option value="20" <?php if ($_POST['birth_day'] == '20'){ echo ' selected=selected'; } ?>>20</option>
<option value="21" <?php if ($_POST['birth_day'] == '21'){ echo ' selected=selected'; } ?>>21</option>
<option value="22" <?php if ($_POST['birth_day'] == '22'){ echo ' selected=selected'; } ?>>22</option>
<option value="23" <?php if ($_POST['birth_day'] == '23'){ echo ' selected=selected'; } ?>>23</option>
<option value="24" <?php if ($_POST['birth_day'] == '24'){ echo ' selected=selected'; } ?>>24</option>
<option value="25" <?php if ($_POST['birth_day'] == '25'){ echo ' selected=selected'; } ?>>25</option>
<option value="26" <?php if ($_POST['birth_day'] == '26'){ echo ' selected=selected'; } ?>>26</option>
<option value="27" <?php if ($_POST['birth_day'] == '27'){ echo ' selected=selected'; } ?>>27</option>
<option value="28" <?php if ($_POST['birth_day'] == '28'){ echo ' selected=selected'; } ?>>28</option>
<option value="29" <?php if ($_POST['birth_day'] == '29'){ echo ' selected=selected'; } ?>>29</option>
<option value="30" <?php if ($_POST['birth_day'] == '30'){ echo ' selected=selected'; } ?>>30</option>
<option value="31" <?php if ($_POST['birth_day'] == '31'){ echo ' selected=selected'; } ?>>31</option>
</select>
<select name="birth_month" class="form_text_field" style="width: 17%;">
<option value="01" <?php if ($_POST['birth_month'] == '01'){ echo ' selected=selected'; } ?>>Jan</option>
<option value="02" <?php if ($_POST['birth_month'] == '02'){ echo ' selected=selected'; } ?>>Feb</option>
<option value="03" <?php if ($_POST['birth_month'] == '03'){ echo ' selected=selected'; } ?>>Mar</option>
<option value="04" <?php if ($_POST['birth_month'] == '04'){ echo ' selected=selected'; } ?>>Apr</option>
<option value="05" <?php if ($_POST['birth_month'] == '05'){ echo ' selected=selected'; } ?>>May</option>
<option value="06" <?php if ($_POST['birth_month'] == '06'){ echo ' selected=selected'; } ?>>Jun</option>
<option value="07" <?php if ($_POST['birth_month'] == '07'){ echo ' selected=selected'; } ?>>Jul</option>
<option value="08" <?php if ($_POST['birth_month'] == '08'){ echo ' selected=selected'; } ?>>Aug</option>
<option value="09" <?php if ($_POST['birth_month'] == '09'){ echo ' selected=selected'; } ?>>Sep</option>
<option value="10" <?php if ($_POST['birth_month'] == '10'){ echo ' selected=selected'; } ?>>Oct</option>
<option value="11" <?php if ($_POST['birth_month'] == '11'){ echo ' selected=selected'; } ?>>Nov</option>
<option value="12" <?php if ($_POST['birth_month'] == '12'){ echo ' selected=selected'; } ?>>Dec</option>
</select>
<select name="birth_year" class="form_text_field" style="width: 16%;">
<option value="1993" <?php if ($_POST['birth_year'] == '1993'){ echo ' selected=selected'; } ?>>1993</option>
<option value="1992" <?php if ($_POST['birth_year'] == '1992'){ echo ' selected=selected'; } ?>>1992</option>
<option value="1991" <?php if ($_POST['birth_year'] == '1991'){ echo ' selected=selected'; } ?>>1991</option>
<option value="1990" <?php if ($_POST['birth_year'] == '1990'){ echo ' selected=selected'; } ?>>1990</option>
<option value="1989" <?php if ($_POST['birth_year'] == '1989'){ echo ' selected=selected'; } ?>>1989</option>
<option value="1988" <?php if ($_POST['birth_year'] == '1988'){ echo ' selected=selected'; } ?>>1988</option>
<option value="1987" <?php if ($_POST['birth_year'] == '1987'){ echo ' selected=selected'; } ?>>1987</option>
<option value="1986" <?php if ($_POST['birth_year'] == '1986'){ echo ' selected=selected'; } ?>>1986</option>
<option value="1985" <?php if ($_POST['birth_year'] == '1985'){ echo ' selected=selected'; } ?>>1985</option>
<option value="1984" <?php if ($_POST['birth_year'] == '1984'){ echo ' selected=selected'; } ?>>1984</option>
<option value="1983" <?php if ($_POST['birth_year'] == '1983'){ echo ' selected=selected'; } ?>>1983</option>
<option value="1982" <?php if ($_POST['birth_year'] == '1982'){ echo ' selected=selected'; } ?>>1982</option>
<option value="1981" <?php if ($_POST['birth_year'] == '1981'){ echo ' selected=selected'; } ?>>1981</option>
<option value="1980" <?php if ($_POST['birth_year'] == '1980'){ echo ' selected=selected'; } ?>>1980</option>
<option value="1979" <?php if ($_POST['birth_year'] == '1979'){ echo ' selected=selected'; } ?>>1979</option>
<option value="1978" <?php if ($_POST['birth_year'] == '1978'){ echo ' selected=selected'; } ?>>1978</option>
<option value="1977" <?php if ($_POST['birth_year'] == '1977'){ echo ' selected=selected'; } ?>>1977</option>
<option value="1976" <?php if ($_POST['birth_year'] == '1976'){ echo ' selected=selected'; } ?>>1976</option>
<option value="1975" <?php if ($_POST['birth_year'] == '1975'){ echo ' selected=selected'; } ?>>1975</option>
<option value="1974" <?php if ($_POST['birth_year'] == '1974'){ echo ' selected=selected'; } ?>>1974</option>
<option value="1973" <?php if ($_POST['birth_year'] == '1973'){ echo ' selected=selected'; } ?>>1973</option>
<option value="1972" <?php if ($_POST['birth_year'] == '1972'){ echo ' selected=selected'; } ?>>1972</option>
<option value="1971" <?php if ($_POST['birth_year'] == '1971'){ echo ' selected=selected'; } ?>>1971</option>
<option value="1970" <?php if ($_POST['birth_year'] == '1970'){ echo ' selected=selected'; } ?>>1970</option>
<option value="1969" <?php if ($_POST['birth_year'] == '1969'){ echo ' selected=selected'; } ?>>1969</option>
<option value="1968" <?php if ($_POST['birth_year'] == '1968'){ echo ' selected=selected'; } ?>>1968</option>
<option value="1967" <?php if ($_POST['birth_year'] == '1967'){ echo ' selected=selected'; } ?>>1967</option>
<option value="1966" <?php if ($_POST['birth_year'] == '1966'){ echo ' selected=selected'; } ?>>1966</option>
<option value="1965" <?php if ($_POST['birth_year'] == '1965'){ echo ' selected=selected'; } ?>>1965</option>
<option value="1964" <?php if ($_POST['birth_year'] == '1964'){ echo ' selected=selected'; } ?>>1964</option>
<option value="1963" <?php if ($_POST['birth_year'] == '1963'){ echo ' selected=selected'; } ?>>1963</option>
<option value="1962" <?php if ($_POST['birth_year'] == '1962'){ echo ' selected=selected'; } ?>>1962</option>
<option value="1961" <?php if ($_POST['birth_year'] == '1961'){ echo ' selected=selected'; } ?>>1961</option>
<option value="1960" <?php if ($_POST['birth_year'] == '1960'){ echo ' selected=selected'; } ?>>1960</option>
<option value="1959" <?php if ($_POST['birth_year'] == '1959'){ echo ' selected=selected'; } ?>>1959</option>
<option value="1958" <?php if ($_POST['birth_year'] == '1958'){ echo ' selected=selected'; } ?>>1958</option>
<option value="1957" <?php if ($_POST['birth_year'] == '1957'){ echo ' selected=selected'; } ?>>1957</option>
<option value="1956" <?php if ($_POST['birth_year'] == '1956'){ echo ' selected=selected'; } ?>>1956</option>
<option value="1955" <?php if ($_POST['birth_year'] == '1955'){ echo ' selected=selected'; } ?>>1955</option>
<option value="1954" <?php if ($_POST['birth_year'] == '1954'){ echo ' selected=selected'; } ?>>1954</option>
<option value="1953" <?php if ($_POST['birth_year'] == '1953'){ echo ' selected=selected'; } ?>>1953</option>
<option value="1952" <?php if ($_POST['birth_year'] == '1952'){ echo ' selected=selected'; } ?>>1952</option>
<option value="1951" <?php if ($_POST['birth_year'] == '1951'){ echo ' selected=selected'; } ?>>1951</option>
<option value="1950" <?php if ($_POST['birth_year'] == '1950'){ echo ' selected=selected'; } ?>>1950</option>
</select></td>
</tr>
<tr>
<td class="columns"><?php echo $lang['profile_gender_title'];?></td>
<td><select name="basic_gender" class="form_select_field">
<option value="<?php echo $lang['gender_01'];?>" <?php if ($_POST['basic_gender'] == $lang['gender_01']){ echo 'selected=selected'; } ?>> <?php echo $lang['gender_01'];?></option>
<option value="<?php echo $lang['gender_02'];?>" <?php if ($_POST['basic_gender'] == $lang['gender_02']){ echo ' selected=selected'; } ?>> <?php echo $lang['gender_02'];?></option>
</select></td>
</tr>
<tr>
<td class="columns"><?php echo $lang['profile_sexuality_title'];?></td>
<td><select name="basic_sexuality" class="form_select_field">
<option value="<?php echo $lang['sexuality_01'];?>" <?php if ($_POST['basic_sexuality'] == $lang['sexuality_01']){ echo ' selected=selected'; } ?>> <?php echo $lang['sexuality_01'];?></option>
<option value="<?php echo $lang['sexuality_02'];?>" <?php if ($_POST['basic_sexuality'] == $lang['sexuality_02']){ echo ' selected=selected'; } ?>> <?php echo $lang['sexuality_02'];?></option>
<option value="<?php echo $lang['sexuality_03'];?>" <?php if ($_POST['basic_sexuality'] == $lang['sexuality_03']){ echo ' selected=selected'; } ?>> <?php echo $lang['sexuality_03'];?></option>
</select></td>
</tr>
<tr>
<td class="columns"><?php echo $lang['profile_marital_title'];?></td>
<td><select name="basic_marital" class="form_select_field">
<option value="<?php echo $lang['marital_01'];?>" <?php if ($_POST['basic_marital'] == $lang['marital_01']){ echo ' selected=selected'; } ?>><?php echo $lang['marital_01'];?></option>
<option value="<?php echo $lang['marital_02'];?>" <?php if ($_POST['basic_marital'] == $lang['marital_02']){ echo ' selected=selected'; } ?>><?php echo $lang['marital_02'];?></option>
<option value="<?php echo $lang['marital_03'];?>" <?php if ($_POST['basic_marital'] == $lang['marital_03']){ echo ' selected=selected'; } ?>><?php echo $lang['marital_03'];?></option>
<option value="<?php echo $lang['marital_04'];?>" <?php if ($_POST['basic_marital'] == $lang['marital_04']){ echo ' selected=selected'; } ?>><?php echo $lang['marital_04'];?></option>
</select></td>
</tr>
<tr>
<td class="columns"><?php echo $lang['profile_ethnic_title'];?></td>
<td><select name="basic_ethnic" class="form_select_field">
<option value="<?php echo $lang['ethnic_01'];?>" <?php if ($_POST['basic_ethnic'] == $lang['ethnic_01']){ echo ' selected=selected'; } ?>><?php echo $lang['ethnic_01'];?></option>
<option value="<?php echo $lang['ethnic_02'];?>" <?php if ($_POST['basic_ethnic'] == $lang['ethnic_02']){ echo ' selected=selected'; } ?>><?php echo $lang['ethnic_02'];?></option>
<option value="<?php echo $lang['ethnic_03'];?>" <?php if ($_POST['basic_ethnic'] == $lang['ethnic_03']){ echo ' selected=selected'; } ?>><?php echo $lang['ethnic_03'];?></option>
<option value="<?php echo $lang['ethnic_04'];?>" <?php if ($_POST['basic_ethnic'] == $lang['ethnic_04']){ echo ' selected=selected'; } ?>><?php echo $lang['ethnic_04'];?></option>
<option value="<?php echo $lang['ethnic_05'];?>" <?php if ($_POST['basic_ethnic'] == $lang['ethnic_05']){ echo ' selected=selected'; } ?>><?php echo $lang['ethnic_05'];?></option>
<option value="<?php echo $lang['ethnic_06'];?>" <?php if ($_POST['basic_ethnic'] == $lang['ethnic_06']){ echo ' selected=selected'; } ?>><?php echo $lang['ethnic_06'];?></option>
<option value="<?php echo $lang['ethnic_07'];?>" <?php if ($_POST['basic_ethnic'] == $lang['ethnic_07']){ echo ' selected=selected'; } ?>><?php echo $lang['ethnic_07'];?></option>
<option value="<?php echo $lang['ethnic_08'];?>" <?php if ($_POST['basic_ethnic'] == $lang['ethnic_08']){ echo ' selected=selected'; } ?>><?php echo $lang['ethnic_08'];?></option>
</select></td>
</tr>
<tr>
<td class="columns"><?php echo $lang['profile_city_title'];?></td>
<td><input name="basic_city" type="text" class="form_select_field" value="<?php echo $_POST['basic_city'];?>" /></td>
</tr>
<tr>
<td class="columns"><?php echo $lang['profile_country_title'];?></td>
<td><select name="basic_country" class="form_select_field">
<?php

$get_countries = mysql_query("SELECT * FROM joovili_countries");
while ($got_countries = mysql_fetch_array($get_countries)) {
?>
<option value="<?php echo $got_countries['country_name'];?>" <?php if ($_POST['basic_country'] == $got_countries['country_name']) { echo 'selected="selected"'; } ?>><?php echo $got_countries['country_name'];?></option>
<?php } ?>
</select></td>
</tr>

<tr>
<td class="columns"><?php echo $lang['signup_verification'];?></td>
<td><table width="50%" border="0" class="security_code">
<tr>
<td align="center"><?php echo $verification_code;?></td>
</tr>
</table></td>
</tr>
<tr>
<td class="columns"> </td>
<td>
<input type="hidden" name="verification_code_hidden" value="<?php echo $verification_code;?>" />
<input name="verification_code" type="text" class="form_text_field" /></td>
</tr>

<tr>
<td class="columns"><?php echo $lang['signup_agree'];?></td>
<td class="text"><input name="signup_accept" type="checkbox" checked="checked" />
<a href="members_terms.php" class="text"><?php echo $lang['signup_agree_message'];?></a></td>
</tr>
<tr>
<td class="columns"> </td>
<td><input name="signup_continue" type="submit" class="form_button" value="Регистрирай" /></td>
</tr>
</form>
</table>
<?php
}
}
?> </td>
</tr>
</table>
<?php include("themes/".$site_theme."/joovili_footer.php");?>


================================

-----| Отваряте include/emails.inc.php |------------
-----| И замествате целия код с този тук |----------

================================

<?php

$headers = 'от: ' . $site_email . "\n";

$headers .= 'Content-Type: text/HTML; charset=windows-1251' ."\n";

$headers .= 'Content-Transfer-Encoding: 8bit'. "\n\n";


$email_signup_subject = $site_name . ' - Нова регистрация';

$email_signup = ' Hey '.$_POST['username'].', <br><br>

Добре дошъл в '.$site_name.'. <br><br>

Моля използвайте информацията по-доло за вход: <br><br>

Потребител: '.$_POST['username'].' <br>
Парола: '.$_POST['password'].' <br><br>

Приятно изкарване! <br><br>

'.$site_name.' <br>
'.$site_url;



$email_ticket_subject = $site_name . ' - Ново отговор - потдръжка';

$email_ticket = ' Хей '.$check_ticket_starter['username'].', <br><br>

Вие получихте нов отговор на въпроса по поддръжка, който вие ни изпратихте '.$site_name.' <br><br>
от '.$_POST['support_name'].'.

'.$site_name.' <br>
'.$site_url;



$email_notification_subject = $site_name . ' - Ново известие';

$email_notification = 'Хей '.$_POST['notification_to'].', <br><br>

Вие получихте ново известие в '.$site_name.' от '.$_POST['from'].'. <br><br>

'.$site_name.' <br>
'.$site_url;



$email_message_subject = $site_name . ' - Ново Съобщение';

$email_message = ' Хей '.$_POST['message_to'].', <br><br>

Получихте ново съобщение в '.$site_name.' от '.$user_info['username'].'. <br><br>

'.$site_name.' <br>
'.$site_url;


$email_rating_subject = $site_name . ' - Нов Рейтинг';

$email_rating = 'Хей '.$_GET['username'].', <br><br>

Вие получихте нов рейтинг в '.$site_name.'. <br><br>

'.$site_name.' <br>
'.$site_url;


$email_guestbook_subject = $site_name . ' - Нов потребител в Книгата за Гости';

$email_guestbook = 'Хей '.$_GET['username'].', <br><br>

'.$user_info['username'].' точно влезе във вашата книга за гости '.$site_name.'. <br><br>

Това мнение в книгата за гости няма да се вижда докато не го одобрите. <br><br>

'.$site_name.' <br>
'.$site_url;



$email_invite_subject = 'Включи се и ти в '.$site_name;

$email_invite = 'Хей! <br><br>

'.$user_info['username'].' ви кани да се присъедините към него/нея в '.$site_name.'. <br><br>

'.$site_name.' <br>
'.$site_url;



$email_recovery_subject = $site_name . ' - Вход информация';

$email_recovery = ' Hey '.$checked_email_exists['username'].', <BR><BR>

Вие изисквахте нова парола. <BR><BR>

Моля, вижте информацията по-долу за вашите нови детайли за вход: <BR><BR>

Потребителско име: '.$checked_email_exists['username'].' <BR>
Вашата нова парола: '.$random_password.' <BR><BR>

'.$site_name.' <BR>
'.$site_url;



$email_contact_subject = $site_name . ' - Поддръжка';

$email_contact = '
--------------------------------------------------------------------------- <BR>
Вие получихте нов email от потребител разглеждал <BR>
вашия сайт '.$site_name.' <BR>
--------------------------------------------------------------------------- <BR>

<strong>'.$lang['contact_name'].'</strong> '.$_POST['contact_name'].' <BR>
<strong>'.$lang['contact_email'].'</strong> '.$_POST['contact_email'].' <BR>
<strong>'.$lang['contact_message'].'</strong> '.$_POST['contact_message'].' <BR>';


?>




/ Трябва да сте регистриран за да напишете коментар /