Entschuldigt die lange Wartezeit. Hier jetzt die Umsetzung:
1. Öffnet die index.php im Stammverzeichniss und suche nach:
Darunter fügt ihr ein:
2. Nun öffnen wir die ./html/editProfile.html.php und setzen unter:
folgendes ein:
3. Jetzt geht es an die ./js/global.js und in der suchen wir nach:
und setzen darunter
ein. Zum Schluss legen wir im Ordner ./inc/ajax eine Datei mit dem Namen deleteAccount.ajax.php mit folgendem Inhalt an:
Alles hochladen und fertig. Jetzt kann jeder User seinen Account selbstständig über Profil berabeiten löschen.
1. Öffnet die index.php im Stammverzeichniss und suche nach:
Code:
case 'protect':
require_once './inc/protect.inc.php';
break;
Darunter fügt ihr ein:
Code:
case 'deleteAccount':
require_once './inc/ajax/deleteAccount.ajax.php';
break;
2. Nun öffnen wir die ./html/editProfile.html.php und setzen unter:
Code:
<li>
<a href="#" onclick="zePopup('./index.php?inc=bbcode', '800', '600');"><span>BBCode</span></a>
</li>
Code:
<li>
<?php if($ZE_user_lvl < 99):?>
<a href="javascript:null(0);" id="deleteAccount" onclick="deleteAccount('<?php echo $tmp_sess_acc; ?>')">Account löschen</a>
<?php endif;?>
</li>
3. Jetzt geht es an die ./js/global.js und in der suchen wir nach:
Code:
function performLogout() {
if (receiveReq.readyState == 4) {
closeSilent = 1;
window.location = 'index.php';
}
}
Code:
function deleteAccount(aid) {
if(confirm('Den Account '+aid+' wirklich löschen?')) {
window.location.href='./index.php?inc=deleteAccount&aid='+aid+'&do=delete';
}
}
Code:
<!DOCTYPE html>
<html style="height: calc(100% - 10px)">
<head>
<!--
This file is part of "ZE Chat v1.0".
"ZE Chat v1.0" is free softwore. Feel free to use and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
"ZE Chat v1.0" is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/.
Developed by Alexander Pakusch aka Zion, 2010-2015
You are not allowed to sell this software or remove the Copyrights.
http://www.zevolutions.de/
admin@zevolutions.de
-->
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title><?=$ZE_SETT->chat_name?></title>
<!--
<link rel="stylesheet" type="text/css" href="./styles/<?=$ZE_SESS->getInfo('sess_id', $ZE_session_id, 'sess_design_switch')?>/css/stylesheet.css" />
-->
<link rel="stylesheet" type="text/css" href="./styles/evo/css/stylesheet.css?r=3" />
<script type="text/javascript" src="./js/jquery.js"></script>
<script type="text/javascript" src="./js/jquery-ui.js"></script>
<script type="text/javascript" src="./js/jscolor.js"></script>
<script type="text/javascript" src="./js/minibox.js"></script>
<script type="text/javascript" src="./js/jspars.js"></script>
<script type="text/javascript" src="./js/global.js"></script>
</head>
<body style="height: 100%">
<div id="blacker_div"></div>
<!-- Page GO -->
<div id="colwrapper">
<div id="imageholder_large">
<img id="main_avatar_large" src="" />
<span id="main_avatar_desc"><?=$user_avatar_desc?></span>
</div>
<!-- Header | Logo GO -->
<header class="pgheader">
<!--h1>Profil bearbeiten</h1-->
</header>
<!-- Header | Logo END -->
<?php
if(isset($_GET["do"])) {
$do = htmlspecialchars($_GET["do"]);
} elseif(isset($_POST["do"])) {
$do = htmlspecialchars($_POST["do"]);
} else {
$do = '';
}
if($do = 'delete') {
$aid = $_GET['aid'];
$ZE_ACC->deleteAcc($aid);
}
?>
<!-- Start Content -->
<header class="ctheader">
<div id="head">
Der Account wurde gelöscht!<br /><br />
<button type="button" onclick="window.close();">Fenster schliessen</button><br /><br />
</div>
</header>
<!-- End Content -->
</body>
</html>
Kein Support ohne URL und aussagekräftige Fehlerbeschreibung oder ohne ausreichende Angaben zur Serverkonfiguration. Und erst recht nicht per PN.