Convert UINT(481371) Back to Bits
Anderes Flag testen? dann füge es an die URL an beispiel: https://bitdevil2k16.net/cool/3458579/animation
Bit: 1 ist Repeat
Bit: 2 ist Stop On Last Frame
Bit: 8 ist UNK04
Bit: 16 ist Upperbody Only
Bit: 64 ist UNK07
Bit: 2048 ist UNK12
Bit: 4096 ist UNK13
Bit: 16384 ist UNK15
Bit: 65536 ist UNK17
Bit: 131072 ist UNK18
Bit: 262144 ist UNK19

XOR Test:
    $xor = new XOR2();
$stringtoenc = "https://bitdevil2k16.net/index";
$encode = $xor->encode($stringtoenc,time());
echo "String: ".$stringtoenc."
"; echo "Salt: ".time()."
"; echo "Encoded String: ".$encode."
"; echo "Decoded String: ".$xor->decode($encode,time()); echo "
";
String: https://bitdevil2k16.net/index
Salt: 1711648331
Encoded String: ZXl5fX43IiJvZHlpaHtkYT9mPDsjY2h5ImRjaWh1
Decoded String: https://bitdevil2k16.net/index
Zahlenspielerei HEX HEX
    echo "String to Hex: tes -> " . Joaat("tes")."
\n"; echo "String to Uint: tes -> " . Joaat("tes", true)."
\n"; echo "Uint as Hex: 2519455989 -> ".UintToHex(2519455989)."
\n"; echo "Hex as Uint: 0x962BD8F5 -> ".HexToUint("0x962BD8F5")."
\n"; echo "Uint to Int: 2519455989 -> ".UintToInt(2519455989)."
\n"; echo "Int to Uint: -1775511307 -> ".IntToUint(-1775511307)."
\n";
String to Hex: tes -> 0x962BD8F5
String to Uint: tes -> 2519455989
Uint as Hex: 2519455989 -> 0x962BD8F5
Hex as Uint: 0x962BD8F5 -> 2519455989
Uint to Int: 2519455989 -> -1775511307
Int to Uint: -1775511307 -> 2519455989
Database Test
Für diesen test haben wir eine Datenbank angelgt und eine Tabelle erstellt:
CREATE TABLE `Accounts` (
	`Id` INT(11) NOT NULL AUTO_INCREMENT,
	`Username` VARCHAR(50) NOT NULL DEFAULT '0' COLLATE 'latin1_swedish_ci',
	`Password` VARCHAR(50) NOT NULL DEFAULT '0' COLLATE 'latin1_swedish_ci',
	`Salt` VARCHAR(50) NOT NULL DEFAULT '0' COLLATE 'latin1_swedish_ci',
	`CreateAt` DATETIME NOT NULL,
	`UpdateAt` DATETIME NOT NULL,
	`LastLogin` DATETIME NOT NULL,
	`LoginToken` VARCHAR(250) NOT NULL DEFAULT '' COLLATE 'latin1_swedish_ci',
	PRIMARY KEY (`Id`) USING BTREE
)
COLLATE='latin1_swedish_ci'
ENGINE=InnoDB;
Ebenfals haben wir ein TestUser angelegt:
INSERT INTO `Accounts` (`Id`, `Username`, `Password`, `Salt`, `CreateAt`, `UpdateAt`, `LastLogin`, `LoginToken`) 
VALUES 
(1, 'DerTester', 'BohNeEyWirklich', 'DasIstNice', '2021-09-20 09:45:44', '2021-09-20 09:45:45', '2021-09-20 09:45:46', 'HaHaHaLULCheckCookie? Nope');
Und nun folgen die Ausgaben:


    $credentials = array(1);
$account = $this->db->query('SELECT * FROM Accounts WHERE Id = ?',$credentials)->fetchArray();
if ($account){
    echo "User Account Found: 
";
    print_r($account);
    echo "

"; }
User Account Found:
Array
(
    [Id] => 1
    [Username] => DerTester
    [Password] => BohNeEyWirklich
    [Salt] => DasIstNice
    [CreateAt] => 2021-09-20 09:45:44
    [UpdateAt] => 2021-09-20 09:45:45
    [LastLogin] => 2021-09-20 09:45:46
    [LoginToken] => HaHaHaLULCheckCookie? Nope
)


    $this->db->query('SELECT * FROM Accounts')->fetchAll(function($account) {
    echo "User gefunden Name: ". $account['Username']. "
"; });
User gefunden Name: DerTester

    $accounts = $this->db->query('SELECT * FROM Accounts');
echo "Accounts in Database: ".$accounts->numRows();

Accounts in Database: 1
    echo "Gesamt anzahl der DB Querys : ".$this->db->query_count;
$lastinsert = $this->db->lastInsertID();
echo "<br />Letze insert ID: " . ($lastinsert == 0 ? "Kein INSERT ausgeführt daher 0" : "Letze Insert ID: ".$lastinsert);
echo "<br /><hr />Quellcode dieser Seite <a href='https://github.com/BitDEVil2K16/PHP_Class_Framework/blob/main/pages/cool/home.php#L1' target='_blank' rel='noreferrer'>direklink zum Git</a>";

Gesamt anzahl der DB Querys : 3
Letze insert ID: Kein INSERT ausgeführt daher 0

Quellcode dieser Seite direklink zum Git