public function __construct($imagepath) { if (!Path_Validator::is_safe($imagepath)) { $imagepath = false; } $this->_image_path = $imagepath; $this->_image_file_root = md5($imagepath); }
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))) { echo ' ' . JSMin::minify($contents); } } } if (Classification::is_full() && isset($_GET['full'])) { foreach (explode(' ', $_GET['full']) as $file) { if (Path_Validator::is_safe($file, 'js') && ($contents = Path::get_contents($file))) { echo ' ' . JSMin::minify($contents); } } }