$akaURL = $_SERVER['REQUEST_SCHEME']."://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; // akaURL == https://ut.load4.me/Test/ $indexURL = $_SERVER['REQUEST_SCHEME']."://".$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']; // indexURL == https://ut.load4.me/Test/index.php ?> $servername = "localhost"; $username = "linkjmi"; $password = "Drag0n69!"; $dbname = "jackzappz_DriverLicTest"; $conn = new mysqli($servername, $username, $password, $dbname); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } preg_match("/[^\.\/]+\.[^\.\/]+$/", $_SERVER['SERVER_NAME'], $thisDomain); // === load4.me $mySubDomain = explode('.', $_SERVER['HTTP_HOST']); // === st $sql = "SELECT * FROM `domains` WHERE `id` = '".$thisDomain[0]."';"; $result = $conn->query($sql); if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { $main_domain = $row["main_domain"]; $domain_name = $row["domain_name"]; $js_url = $row["js_url"]; $css_url = $row["css_url"]; $img_url = $row["img_url"]; $doc_url = $row["doc_url"]; $domain_id = $row["id"]; //print_r($row); } } if(count($mySubDomain) == 2){ // IT IS A MAIN DOMAIN $domainContent = "main"; $user_state = "State"; $user_state_abb = "ST"; $user_state_posiv = "State's"; $user_state_dl_office = "Driver License Office"; $user_stSeal = "notSet"; $user_dlHandbookImg = "notSet"; $user_cycHandbookImg = "notSet"; $user_cdlHandbookImg = "notSet"; $user_dlHandbookDoc = "notSet"; $user_cycHandbookDoc = "notSet"; $user_cdlHandbookDoc = "notSet"; $user_st_website = "notSet"; } else{ // IT IS A SUB-DOMAIN $domainContent = "sub"; $sql = "SELECT * FROM `state_details` WHERE `state_abb` = '".$mySubDomain[0]."';"; $result = $conn->query($sql); if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { $user_state = $row["state"]; $user_state_abb = $row["state_abb"]; $user_state_posiv = $row["state_posiv"]; $user_state_dl_office = $row["state_dl_office"]; $user_stSeal = $row["stSeal"]; $user_dlHandbookImg = $row["dlHandbookImg"]; $user_cycHandbookImg = $row["cycHandbookImg"]; $user_cdlHandbookImg = $row["cdlHandbookImg"]; $user_dlHandbookDoc = $row["dlHandbookDoc"]; $user_cycHandbookDoc = $row["cycHandbookDoc"]; $user_cdlHandbookDoc = $row["cdlHandbookDoc"]; $user_st_website = $row["st_website"]; if(!isset($_COOKIE["State"]) || $_COOKIE["State"] != $user_state){ $arr_cookie_options = array ( 'expires' => time() + 86400 * 365, 'path' => '/', 'domain' => '.'.$thisDomain[0], // leading dot for compatibility or use subdomain 'secure' => true, // or false 'httponly' => true, // or false 'samesite' => 'None' // None || Lax || Strict ); setcookie('State', $user_state, $arr_cookie_options); setcookie('StateURL', strtolower($user_state_abb).".".$thisDomain[0], $arr_cookie_options); } } } } ?> $servername = "localhost"; $username = "linkjmi"; $password = "Drag0n69!"; $dbname = "jackzappz_DriverLicTest"; $conn = new mysqli($servername, $username, $password, $dbname); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "SELECT * FROM `test_specs` WHERE `test_name` = 'doubles'"; $result = $conn->query($sql); if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { $dbTest = $row["test"]; // Combination_Vehicles $dbTestName = $row["test_name"]; // comb_vehicles $dbName = $row["name"]; // Combination Vehicles Test $dbQuest = $row["qust"]; // 30 $dbRecords = $row["records"]; // 106 $dbInfo = $row["info"]; // The combination endorsement allows you to drive } } $testName = $dbName; $testDB = $dbTestName; $testSize = $dbRecords; $random_number_array = range(1, $testSize); shuffle($random_number_array ); $arr = $random_number_array; $newArray = array_slice($arr, 0, $dbQuest); $myArray = htmlspecialchars(serialize($newArray)); ?>
$title = "Ace Your CDL Doubles & Triples Endorsement Test with These Practice Questions"; $description = "Master the CDL Doubles & Triples Endorsement test with our free practice exam. Start studying now for success."; $keywords = "cdl doubles & triples endorsement practice test, cdl doubles and triples test answers, ca dmv doubles and triples endorsement test, florida cdl doubles and triples test, cdl doubles triples test study book, cdl doubles endorsement test, cdl doubles and triples study guide, nys doubles and triples practice test, cdl doubles and triples test questions and answers pdf, cdl - doubles and triples quizlet, how many questions are on the cdl doubles and triples test, doubles and triples practice test texas, cdl doubles and triples practice test free, cdl doubles and triples test, do all converter dollies have spring brakes, washington state doubles endorsement, cdl practice test, cdl practice test texas, tanker endorsement test, cdl study guide, cdl practice test ny, nc driving test, cdl practice test general knowledge, crist cdl practice test, cdl practice test class a, cdl tanker test, cdl license ny, new york state truck routes, california cdl practice test, cdl practice test app"; $thisPageUrl = $_SERVER['REQUEST_SCHEME']."://".$_SERVER['SERVER_NAME']."/Test/Doubles_Triples/" ?> include $_SERVER['CONTEXT_DOCUMENT_ROOT'] . '/.php_controls/nav-bar.txt'; ?>