$loadarr = array_merge(explode(' ', $_GET['touch_libs']), $loadarr); } foreach ($loadarr as $load) { JS::load_from_key($load); } } /** * Load all full (and webkit_lib for compat) libraries specified in the URI. */ if (Classification::is_full() && (isset($_GET['full_libs']) || isset($_GET['webkit_libs']))) { $loadarr = isset($_GET['full_libs']) ? explode(' ', $_GET['full_libs']) : array(); if (isset($_GET['webkit_libs'])) { $loadarr = array_merge(explode(' ', $_GET['webkit_libs']), $loadarr); } foreach ($loadarr as $load) { JS::load_from_key($load); } } /** * Load custom JS files (minified) based on user agent. */ if (isset($_GET['basic'])) { foreach (explode(' ', $_GET['basic']) as $file) { if (Path_Validator::is_safe($file, 'js') && ($contents = Path::get_contents($file))) { echo ' ' . JSMin::minify($contents); } } } if (Classification::is_standard() && isset($_GET['standard'])) { foreach (explode(' ', $_GET['standard']) as $file) { if (Path_Validator::is_safe($file, 'js') && ($contents = Path::get_contents($file))) {