addImportPath($path); $scss->setFormatter("scss_formatter"); $compiled_css = $scss->compile('@import "'.$filename.'.scss"'); return $compiled_css; } function compress($css){ $css = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $css); $css = str_replace(': ', ':', $css); $css = str_replace(array("\r\n", "\r", "\n", "\t", ' ', ' ', ' '), '', $css); return $css; } function rglob($pattern, $flags = 0) { $files = glob($pattern, $flags); foreach (glob(dirname($pattern).'/*', GLOB_ONLYDIR|GLOB_NOSORT) as $dir) { $files = array_merge($files, rglob($dir.'/'.basename($pattern), $flags)); } return $files; } function directoryTime($pattern){ $files = rglob($pattern); $latest = 0; foreach ($files as $file) { if (filemtime($file) > $latest){ $latest = filemtime($file); } } return $latest; } function compile_gateway($scssp, $cssp, $scssfs, $type){ $scss_mod = directoryTime($scssp."*"); $css_mod = directoryTime($cssp."*"); if ($scss_mod > $css_mod){ foreach ($scssfs as $filename){ $scss_file = $scssp.$filename.".scss"; $css_file = $cssp.$filename.".css"; if (file_exists($scss_file)) { $compiled_css = compile($scssp, $type, $filename); if ($type == "compressed"){ $compiled_css = compress($compiled_css); } file_put_contents($css_file, $compiled_css); } } } } if ($scss_compile != "off"){ compile_gateway($scss_path, $css_path, $scss_files, $scss_compile); } ?>
Fatal error: Uncaught Error: Call to undefined function mb_strtolower() in /home/sandudd/public_html/index.php:23 Stack trace: #0 {main} thrown in /home/sandudd/public_html/index.php on line 23