07.02.2020, 08:29
Hallo gibt es eine möglichkeit das sich benutzer selber löschen können im profil? sowas fehlt im ZE Chat 1.0.hätte da einer eine idee zu und wie baut man sowas ein das wäre gut.
case 'protect':
require_once './inc/protect.inc.php';
break;
case 'deleteAccount':
require_once './inc/ajax/deleteAccount.ajax.php';
break;
<li>
<a href="#" onclick="zePopup('./index.php?inc=bbcode', '800', '600');"><span>BBCode</span></a>
</li>
<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>
function performLogout() {
if (receiveReq.readyState == 4) {
closeSilent = 1;
window.location = 'index.php';
}
}
function deleteAccount(aid) {
if(confirm('Den Account '+aid+' wirklich löschen?')) {
window.location.href='./index.php?inc=deleteAccount&aid='+aid+'&do=delete';
}
}
<!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>
<tr>
<td colspan="2" class="text-center">
<button type="button" class="sebutton" title="change" onclick="openMiniBox('Account löschen<br>Sicher?<br>', '2', 'window.location', 'index.php?inc=delAcc&sid=<?=$ZE_session_id?>&accid=<?=$ZE_ACC->id?>');">Account löschen</button>
</td>
</tr>
<!--tr>
<td colspan="2" class="text-center">
<button type="button" class="sebutton" title="change" onclick="openMiniBox('Account löschen<br>Sicher?<br>', '2', 'window.location', 'index.php?inc=delAcc&sid=<?=$ZE_session_id?>&accid=<?=$ZE_ACC->id?>');">Account löschen</button>
</td>
</tr-->