Hızlı Arama
![]() |
|
|
#1 (permalink) |
![]() Status: Üye
Üyelik tarihi: Sep 2008
Mesajlar: 78
Tecrübe Puanı: 4
![]() |
![]() YEDEK ALMADAN KURMAYINIZ MANUEL ANLATIM / TÜRKÇE DESTEĞİ İLE BİRLİKTE ( HER TEMAYA UYAR) ./Themes/default/languages/Modifications.english.php bunu bul Kod:
?> Kod:
$txt['del_reason'] = 'Reason for leaving:'; $txt['send_pm_error'] = 'Please enter a reason for deleting your account. A minimum of 10 characters are required.'; $txt['del_rea_subj'] = 'Reason for wanting my account deleted.'; Bul Kod:
?> Kod:
$txt['del_reason'] = 'Ayrılma İçin Sebebiniz:'; $txt['send_pm_error'] = 'Lütfen Hesabınızın Silinmesi İçin Bir Sebep Yazınız. Sebebiniz En Az 10 Karakterden Oluşmalıdır.'; $txt['del_rea_subj'] = 'Hesabımın Silinmesi İçin Beklemedeki Sebep.'; Bul Kod:
// If the user is deleting their own account warn them first - and require a password!
if ($context['user']['is_owner'])
{
echo '
<span style="color: red;">', $txt['own_profile_confirm'], '</span><br /><br />
</td>
</tr><tr>
<td class="windowbg2" align="', !$context['right_to_left'] ? 'right' : 'left', '">
<b', (isset($context['modify_error']['bad_password']) || isset($context['modify_error']['no_password']) ? ' style="color: red;"' : ''), '>', $txt['smf241'], ': </b>
</td>
<td class="windowbg2" align="', !$context['right_to_left'] ? 'left' : 'right', '">
<input type="password" name="oldpasswrd" size="20" />
<input type="submit" value="', $txt[163], '" />
<input type="hidden" name="sc" value="', $context['session_id'], '" />
<input type="hidden" name="userID" value="', $context['member']['id'], '" />
<input type="hidden" name="sa" value="', $context['menu_item_selected'], '" />
</td>';
}
Kod:
// If the user is deleting their own account warn them first - and require a password!
if ($context['user']['is_owner'])
{
echo '
<span style="color: red;">', $txt['own_profile_confirm'], '</span><br /><br />
</td>
</tr><tr>
<td class="windowbg2" align="', !$context['right_to_left'] ? 'right' : 'left', '">
<b>',$txt['del_reason'],'</b><br />
</td>
<td class="windowbg2" align="', !$context['right_to_left'] ? 'left' : 'right', '">
<input type="text" name="delreason" size="20" />
<br />
</td>
</tr><tr>
<td class="windowbg2" align="', !$context['right_to_left'] ? 'right' : 'left', '">
<b', (isset($context['modify_error']['bad_password']) || isset($context['modify_error']['no_password']) ? ' style="color: red;"' : ''), '>', $txt['smf241'], ': </b>
</td>
<td class="windowbg2" align="', !$context['right_to_left'] ? 'left' : 'right', '">
<input type="password" name="oldpasswrd" size="20" />
<input type="submit" value="', $txt[163], '" />
<input type="hidden" name="sc" value="', $context['session_id'], '" />
<input type="hidden" name="userID" value="', $context['member']['id'], '" />
<input type="hidden" name="sa" value="', $context['menu_item_selected'], '" />
</td>';
}
Bul Kod:
// Change the IP address in the database. if ($context['user']['is_owner']) $profile_vars['memberIP'] = "'$user_info[ip]'"; Kod:
// Change the IP address in the database.
if ($context['user']['is_owner'])
$profile_vars['memberIP'] = "'$user_info[ip]'";
// Force Deletion
if (isset($_POST['delreason']) && isset($_POST['sa']) && $_POST['sa'] == 'deleteAccount' && empty($post_errors)) {
if(strlen(trim($_POST['delreason'])) < 10)
fatal_lang_error('send_pm_error', false);
$request = db_query("
SELECT ID_MEMBER, realName
FROM {$db_prefix}members
WHERE ID_GROUP = 1 OR FIND_IN_SET(1, additionalGroups)
ORDER BY realName", __FILE__, __LINE__);
$context['admins'] = array();
while ($row = mysql_fetch_assoc($request))
$context['admins'][$row['ID_MEMBER']] = $row['realName'];
mysql_free_result($request);
// How many admins in total?
$context['admin_count'] = count($context['admins']);
include_once($sourcedir . '/Subs-Post.php');
$recipients = array(
'to' => $context['admins'],
'bcc' => array()
);
$subject = $txt['del_rea_subj'];
$message = $_POST['delreason'];
$outbox_store = false;
sendpm($recipients, $subject, $message, $outbox_store);
}
|
|
|
|
![]() |
| Etiketler |
| ama, ben, bir, box, database, deletion, error, force, free, hesabınızı, içi, için, konuları, manuel, mysql, oldu, reason, sebebi, sebebiniz, silerken, size, smf, style, template, text, themes, turkish, türkçe, yazı, İçin, İle |
| Seçenekler | |
| Stil | |
|
|