static function cms_templates()
 {
     $files = sys_scandir("templates/cms/", array(".", "..", "rss.tpl", "sitemap.tpl"));
     return array_combine($files, $files);
 }
 static function select_types()
 {
     $types = array("text", "textarea", "checkbox", "files", "date", "time", "datetime", "select", "dateselect", "int", "float", "password", "id", "folder", "pid", "multitext");
     $customs = sys_scandir("core/types/", array(".", "..", "default.php"));
     foreach ($customs as $custom) {
         $types[] = str_replace(".php", "", $custom);
     }
     return array_combine($types, $types);
 }