exec('INSERT INTO boxbrstore(title,imageurl, url, linktype, description, createdon) VALUES(\'' . $_POST['title'] . '\',\'' . $storeimg . '\',\'' . $apkurl . '\',\''.$linktype.'\',\'BoxBR Apks Rebrand\',\'' . $createdon . '\')'); $db->close(); header('Location: store.php'.$msg); } }else{ $imageurl = $_POST['imageurl']; $target_file = $target_dir . basename($imageurl); $file_ext = strtolower(end(explode('.', $imageurl))); $apkurl = $_POST['url']; $target_file2 = $target_dir . basename($apkurl); $file_ext2 = strtolower(end(explode('.', $apkurl))); $extensions = ['gif','WEBP','webp', 'GIF', 'png', 'PNG', 'jpg', 'JPG', 'jpeg', 'JPEG', 'bmp', 'BMP', 'mp4', 'MP4', 'mpeg', 'MPEG', 'avi', 'AVI','apk','APK']; if (in_array($file_ext, $extensions) === false || in_array($file_ext2, $extensions) === false || empty($apkurl) || empty($imageurl)) { //$errors[] = 'extension not allowed, please choose a JPEG or PNG or GIF or MP4 file.'; $msg = '?messageE=Sorry, only Images, Video and APK files are allowed.'; header("Location: {$base_file}".$msg); }else{ $msg = '?messageS=Saved!, Url of saved..'; $createdon = date('Y-m-d H:i:s'); $storeimg = $imageurl; $db->exec('INSERT INTO boxbrstore(title, imageurl, url, linktype, description, createdon) VALUES(\'' . $_POST['title'] . '\',\'' . $storeimg . '\',\'' . $apkurl . '\',\''.$linktype.'\',\'BoxBR Apks Rebrand\',\'' . $createdon . '\')'); $db->close(); header('Location: store.php'.$msg); } } } include ('includes/header.php'); ini_set('display_errors', 0); ini_set('display_startup_errors', 0); error_reporting(E_ALL); echo ' ' . "\n"; echo '
' . "\n"; echo "\n"; if (isset($_GET['message'])) { echo '

'.$_GET['message'].'

'; } if (isset($_GET['messageA'])) { echo '

'.$_GET['messageA'].'

'; } if (isset($_GET['messageE'])) { echo '

'.$_GET['messageE'].'

'; } if (isset($_GET['messageS'])) { echo '

'.$_GET['messageS'].'

'; } echo ' ' . "\n"; echo '
' . "\n"; echo "\n"; echo ' ' . "\n"; echo '
' . "\n"; echo "\n"; echo ' ' . "\n"; echo '
' . "\n"; echo '
' . "\n"; echo '

   Add A APK

' . "\n"; echo '
' . "\n"; ?>

'; echo 'function uploadintro(target) {' . "\n"; echo "\t" . 'document.getElementById("image-intro").innerHTML = target.files[0].name;' . "\n"; echo '}' . "\n"; echo "\n"; echo '$(document).ready(function() {' . "\n"; echo ' if (location.hash) {' . "\n"; echo ' $("a[href=\'" + location.hash + "\']").tab("show");' . "\n"; echo ' }' . "\n"; echo ' $(document.body).on("click", "a[data-toggle=\'tab\']", function(event) {' . "\n"; echo ' location.hash = this.getAttribute("href");' . "\n"; echo ' });' . "\n"; echo '});' . "\n"; echo '$(window).on("popstate", function() {' . "\n"; echo ' var anchor = location.hash || $("a[data-toggle=\'tab\']").first().attr("href");' . "\n"; echo ' $("a[href=\'" + anchor + "\']").tab("show");' . "\n"; echo '});' . "\n"; echo "\n"; echo ''; echo '


'; include 'includes/footer.php'; require 'includes/boxbr.php'; echo ' ' . "\n"; ?>