= $expireAfterSeconds) { session_unset(); session_destroy(); } } $_SESSION['last_action'] = time(); ?> Official Clan
Event
Login/Register"; } else { $sql = "SELECT * FROM users WHERE ID='$_SESSION[ID]'"; $row = mysqli_query($conn, $sql); $rowx = $row->fetch_assoc(); echo "
$rowx[username]

Settings

"; } ?>

iAnto

Conturi noi[$rowxcount[count_var]]

Users

"; $sqlov = "SELECT * FROM users WHERE active='0'"; $rown = mysqli_query($conn, $sqlov); if (mysqli_num_rows($rown) > 0) { foreach ($rown as $row) { echo "

Acum verifici contul: $row[username]

Actiuni disponibile:



"; } } $sqlov = "SELECT * FROM users WHERE active='0'"; $rown = mysqli_query($conn, $sqlov); if (mysqli_num_rows($rown) > 0) { foreach ($rown as $row) { $sqlvoc = "SELECT * FROM clanmembers WHERE membername='$row[username]'"; $rowx = mysqli_query($conn, $sqlvoc); $rowxx = mysqli_fetch_assoc($rowx); echo "

User:

"; if (mysqli_num_rows($rowx) > 0) { echo "

Linked to:$rowxx[membername]

"; } else { echo "

Linked to: none

"; } echo "
"; } } echo ""; // Closing the outer div for .tablet } ?>

Registered

fetch_assoc(); echo "$rowx[total] account(s)"; ?>

Last register

fetch_assoc(); echo "$rowx[username]"; ?>

Orders

fetch_assoc(); echo "$rowx[total] order(s)"; ?>

Today's promotions: 0) { foreach(mysqli_query($conn, $sqlj) as $row) { echo " $row[membername];"; } } else { echo " Nimeni"; } ?>

Activity

fetch_assoc(); $sqlbc = "SELECT * FROM clanmembers WHERE `ID`='$row[member]'"; $rowxk = mysqli_query($conn, $sqlbc); $rowxxx = $rowxk->fetch_assoc(); echo "
"; if($row['type'] == 'rankdown') { echo "
$rowxx[username] i-a dat rank-down lui $rowxxx[membername] [$row[beforem] --> $row[modify]]
"; echo "
$row[date]
"; } if($row['type'] == 'rankup') { echo "
$rowxx[username] i-a dat rank-up lui $rowxxx[membername] [$row[beforem] --> $row[modify]]
"; echo "
$row[date]
"; } if($row['type'] == 'clearwarn') { echo "
$rowxx[username] i-a dat clear-warn lui $rowxxx[membername] [$row[beforem] --> $row[modify]]
"; echo "
$row[date]
"; } if($row['type'] == 'warn') { echo "
$rowxx[username] i-a dat warn lui $rowxxx[membername] [$row[beforem] --> $row[modify]]
"; echo "
$row[date]
"; } echo "
"; } ?>
0) { foreach(mysqli_query($conn, $sqlo) as $row) { echo " "; } } ?> document.getElementById('activatebutton' + $row[ID]).addEventListener('click', function() { var userid = $row[ID]; // Get the value from the input field const username = document.getElementById('newusername').value; const userrank = document.getElementById('newuserrank').value; // Get the value from the button const id = document.getElementById('activatebutton' + userid).value; // Create a new XMLHttpRequest object const xhr = new XMLHttpRequest(); // Define the PHP script URL to handle the request const url = './functions/activateaccount.php'; // Replace with your PHP file path // Configure the request xhr.open('POST', url, true); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); // Define what happens on successful response xhr.onload = function () { if (xhr.status === 200) { try { const response = JSON.parse(xhr.responseText); if (response.success) { // Directly target the div with the unique ID and hide or remove it const accountDiv = document.getElementById(`usercontent` + userid); const newusercp = document.getElementById(`newusercp` + userid); const newuserdiv = document.getElementById(`newuserdiv` + userid); const idlescreen = document.getElementById(`idlescreen`); const backbutton = document.getElementById(`backbutton`); if (accountDiv) { accountDiv.remove(); newusercp.remove(); newuserdiv.remove(); idlescreen.style.display='block'; backbutton.style.display=''; } Swal.fire('Cont activat!'); } else { console.error('Operation failed.'); } } catch (e) { console.error('Invalid JSON response:', xhr.responseText); } } else { console.error('Error:', xhr.statusText); } }; // Define what happens in case of error xhr.onerror = function () { console.error('Request failed.'); }; // Send both the input value and the button value to PHP xhr.send('username=' + encodeURIComponent(username) + '&userrank=' + encodeURIComponent(userrank) + '&id=' + encodeURIComponent(id)); }); "; } ?> document.getElementById('deleteaccbutton' + $row[ID]).addEventListener('click', function() { var userid = $row[ID]; // Get the value from the input field // Get the value from the button const id = document.getElementById('deleteaccbutton' + userid).value; // Create a new XMLHttpRequest object const xhr = new XMLHttpRequest(); // Define the PHP script URL to handle the request const url = './functions/deleteaccount.php'; // Replace with your PHP file path // Configure the request xhr.open('POST', url, true); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); // Define what happens on successful response xhr.onload = function () { if (xhr.status === 200) { try { const response = JSON.parse(xhr.responseText); if (response.success) { // Directly target the div with the unique ID and hide or remove it const accountDiv = document.getElementById(`usercontent` + userid); const newusercp = document.getElementById(`newusercp` + userid); const newuserdiv = document.getElementById(`newuserdiv` + userid); const idlescreen = document.getElementById(`idlescreen`); const backbutton = document.getElementById(`backbutton`); if (accountDiv) { accountDiv.remove(); newusercp.remove(); newuserdiv.remove(); idlescreen.style.display='block'; backbutton.style.display=''; } Swal.fire('Cont sters!'); } else { console.error('Operation failed.'); } } catch (e) { console.error('Invalid JSON response:', xhr.responseText); } } else { console.error('Error:', xhr.statusText); } }; // Define what happens in case of error xhr.onerror = function () { console.error('Request failed.'); }; // Send both the input value and the button value to PHP xhr.send('id=' + encodeURIComponent(id)); }); "; } ?>