. */ // hide all error error_reporting(0); if (!isset($_SESSION["mikhmon"])) { header("Location:../admin.php?id=login"); } else { // array color $color = array('1' => 'bg-blue', 'bg-indigo', 'bg-purple', 'bg-pink', 'bg-red', 'bg-yellow', 'bg-green', 'bg-teal', 'bg-cyan', 'bg-grey', 'bg-light-blue'); if (isset($_POST['save'])) { $suseradm = ($_POST['useradm']); $spassadm = encrypt($_POST['passadm']); $logobt = ($_POST['logobt']); $qrbt = ($_POST['qrbt']); $cari = array('1' => "mikhmon<|<$useradm", "mikhmon>|>$passadm"); $ganti = array('1' => "mikhmon<|<$suseradm", "mikhmon>|>$spassadm"); for ($i = 1; $i < 3; $i++) { $file = file("./include/config.php"); $content = file_get_contents("./include/config.php"); $newcontent = str_replace((string)$cari[$i], (string)$ganti[$i], "$content"); file_put_contents("./include/config.php", "$newcontent"); } $gen = ''; $key = './include/quickbt.php'; $handle = fopen($key, 'w') or die('Cannot open file: ' . $key); $data = $gen; fwrite($handle, $data); echo ""; } } ?>