Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[MODE] Members who removes his own accou
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

2012-08-12 04:47:15
Hello!   😊


Fashion is not just me and it was for version 2.06
Thank you very much has ArcticWolf 👍

**************************************************************

Se mode viens pas de moi et il étais pour la version 2.06
Merci beaucoup a ArcticWolf 👍

It allows the member to remove his own account, but it is imposible to saff to delete his account.

**************************************************************

Il permet au membre de supprimer son propre compte, mais il est imposible au saff de supprimer son compte.


Open langues search!
// Account Page

ADD after...
English
$LANG["THE_ACCOUNT"] = "The account ";
$LANG["WERE_DELETED"] = "...were deleted!";
$LANG["UNABLE_TO_DELETE_PASSWORLD_NAME"] = "Bad user name or password. Please verify that all entered information is correct.";
$LANG["UNABLE_TO_DELETE_ACCOUNT"] = "Unable to delete the account.";
$LANG["COULDN_T_DELETE"] = "Couldn't delete account";
$LANG["NO_DELETED_USER"] = "Staff members cannot delete their accounts. Demote yourself or talk to an admin!";
$LANG["DELETE_USER_INFO"] = "<b><font color='red'>WARNING!!</b></font> All user information will be deleted.";
$LANG["THANKS_FOR_USING"] = "Your account ";

French
$LANG["THE_ACCOUNT"] = "Le compte ";
$LANG["WERE_DELETED"] = "...à été supprimer!";
$LANG["UNABLE_TO_DELETE_PASSWORLD_NAME"] = "Nom d'utilisateur ou mot de passe. S'il vous plaît vérifiez que toutes les informations entrées sont correctes.";
$LANG["UNABLE_TO_DELETE_ACCOUNT"] = "Impossible de supprimer le compte";
$LANG["COULDN_T_DELETE"] = "Impossible de supprimer le compte";
$LANG["NO_DELETED_USER"] = "Les membres du personnel ne pouvez pas supprimer leurs comptes. Vous rétrograder ou de parler à un admin!";
$LANG["DELETE_USER_INFO"] = "<b><font color='red'>ATTENTION!!</b></font> Tous les informations de l'utilisateur sera supprimé.";
$LANG["THANKS_FOR_USING"] = "Votre compte ";

Add the root of your site account-delete.php
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
Ajouter à la racine de votre site account-delete.php

[size=18px]NOTE: this link is on the faq[/size]
[size=18px]¿////////////////////[/size]
[size=18px]NOTE: le lien ce trouve deja sur le faq[/size]



Modifier ou corriger moi si besoin!? lol
&&&&&&&&&&&&&&&&&&&&&&&&&&
Modify or correct me need it!? lol [url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5944"]account-delete.php[/url]



Update : 3 Sept. 2023 For TT-v3 MYSQLI
account-delete.php
Download
Capture.PNG
Capture.PNG
account-delete.rar
Download

Last edited by spiritblue on 2023-09-03 15:01:19
Unknown User
2012-08-12 18:36:04
i don't understand this issue would you please elaborate a little bit , thanks
2012-08-12 19:00:46
Sorry my english is rotten!

Made like me and use google translation.  :P  ;)    >>>[url="http://translate.google.com/"]http://translate.google.com/[/url]
2012-08-16 22:26:20
hmm, I tried this with a test account, and after I press the "delete account" button, the screen blinks, but nothing happens

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

hmm, j'ai essayé cela avec un compte de test, et après j'appuie sur le "compte de supprimer" le bouton, le voyant d'écran, mais rien ne se passe
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2012-08-16 22:37:30
Quote:
Il permet au membre de supprimer son propre compte, mais il est imposible au saff de supprimer son compte.

2012-08-16 22:38:35
Sous le id 6 il va supprimer et il est  possible  de  mettre au id de  la class tu veux!

ici je viens de me retesté et ça fonctionne bien! lol
2012-08-17 01:44:35
I understand the user class part, but it still dont do anything on my site. I click the button on a test user with a class of 1, and nothing happens, it dont delete it. Im confused lol
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2012-08-17 01:57:34
"MicroMonkey, post: 84841":
I understand the user class part, but it still dont do anything on my site. I click the button on a test user with a class of 1, and nothing happens, it dont delete it. Im confused lol
I can give you good file, but I can do better for you! sorry ...

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5969"]account-delete.php[/url]
account-delete.php
Download

Unknown User
2012-08-17 11:03:18


$res = SQL_Query_exec("SELECT * FROM users WHERE username=" . sqlesc($username) . " && password=" .

sqlesc($password)) or sqlerr();




should be





$res = SQL_Query_exec("SELECT * FROM users WHERE username=" . sqlesc($username) . " && password=" .

sqlesc($password)."");




$res = mysql_query("DELETE FROM users WHERE id=$id") or die(mysql_error());




should be





$res = SQL_Query_exec("DELETE FROM users WHERE id=$id");


$res = mysql_query("DELETE FROM downloaded WHERE user=$id") or die(mysql_error());



should be





$res = SQL_Query_exec("DELETE FROM downloaded WHERE user=$id");

2012-08-17 22:58:12
has anyone else tried this to see if it works? I have tried it on 2 different machines with class 1 accounts, and it does nothing for me. I wonder what is not executing? Firefox just spins like it is going to do something, then just stays on the same page, nothing happens. Am I missing a .php file for this mod other than the one that was posted by tiloup?
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Unknown User
2012-08-17 23:06:17


<?php



require_once("backend/functions.php");

dbconn();



if (get_user_class() >= 5)

   show_error_msg(T_("ERROR"), T_("NO_DELETED_USER"), 1);



if ($_SERVER["REQUEST_METHOD"] == "POST")

{

$username = trim($_POST["username"]);

$password = trim($_POST["password"]);



if (!$username || !$password)

show_error_msg("Couldn't delete account", "Please fill out the form correctly.",1);



$password = passhash($_POST["password"]);

$res = SQL_Query_exec("SELECT id, status FROM users WHERE username=" . sqlesc($username) . " AND password =" . sqlesc($password));

if (mysql_num_rows($res) != 1)

show_error_msg(T_("COULDN_T_DELETE"), T_("UNABLE_TO_DELETE_PASSWORLD_NAME"), 1);

$arr = mysql_fetch_assoc($res);



// Uncomment this if you don't want to be able to delete confirmed accounts.

/*

if ($arr["status"] == "confirmed")

show_error_msg("Couldn't delete account", "Sorry, you can not delete a confirmed account.",1);

*/



deleteaccount($arr['id']);

show_error_msg(T_("THE_ACCOUNT"), T_("WERE_DELETED"), 1);

}



stdhead("Delete account");

begin_frame("<font color=2fdceb>".T_("DELETE_ACCOUNT")."</font>");

?>

<?php echo T_("THANKS_FOR_USING"); ?> <b><?=$site_config['SITENAME']?></b>. <?php echo T_("DELETE_USER_INFO"); ?><br /><br />

<table border='0' cellspacing='0' cellpadding='5'><form method=post action=account-delete.php>

<tr><td><b><?php echo T_("USERNAME"); ?> :</b></td><td align='left'><input type=text size=40 name=username></td></tr>

<tr><td><b><?php echo T_("PASSWORD"); ?> :</b></td><td align='left'><input type=password size=40 name=password></td></tr>

<tr><td colspan='2' align='center'><input type='submit' value='Delete Account'></td></tr>

</table>

</form>



<?php

end_frame();

stdfoot();

?>

2012-08-17 23:17:25
Thanks MVP, that works fine in my tests.
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2012-08-18 13:34:44
Thanks mvp  ;)  :D
Unknown User
2014-07-20 16:32:28
If I understand the MVP code correctly, a staff member can delete his account while being not logged in. I've added alogin only condition ...
2014-07-20 16:48:32
"MaxWanker, post: 92913":

If I understand the MVP code correctly, a staff member can delete his account while being not logged in. I've added alogin only condition ...

Yes!
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728