public function printMGenres($category) { global $settings_data; $genres = arraySettings($settings_data["genres"]); foreach ($genres as $genre) { if ($category == $genre) { echo '<option value="' . $genre . '" selected>' . $genre . '</option>'; } else { echo '<option value="' . $genre . '">' . $genre . '</option>'; } } }
<?php include_once 'functions.inc.php'; if (isset($_GET['report'])) { ?> <script src="includes/js/jquery-1.10.2.min.js"></script> <?php } $data_array = arraySettings($settings_data["directories"]); $imdb = new Imdb(); $prefix = '.././'; foreach ($data_array as $directories) { $directories = $prefix . $directories; if ($handle = opendir($directories)) { while (false !== ($entry = readdir($handle))) { if (in_array($entry, $garbage)) { continue; } $contents[] = $directories . '/' . $entry; } } } if (!$contents) { exit('<div class="error_msg">' . $lang_check_cantLocate . '</div>'); } if (ob_get_level() == 0) { ob_start(); } foreach ($contents as $value) { if (in_array($value, $garbage)) { continue;
function checkMobile() { global $settings_data; $mobiles = arraySettings($settings_data["mobile"]); foreach ($mobiles as $mobile) { if (stristr($_SERVER['HTTP_USER_AGENT'], $mobile) == true) { return true; } } }