. */ $creation = file_put_contents('manifest.json', ''); if (!$creation) { $manifest = '{ "dir" : "ltr", "lang" : "'.((empty($lang) || $lang == '|lang|') ? 'it-IT' : str_replace('_','-',$lang)).'", "name" : "'.tr('OpenSTAManager').'", "scope" : "'.((empty(base_path()) || base_path()=='/') ? '' : '.').'", "display" : "fullscreen", "start_url" : "'.((empty(base_path()) || base_path()=='/') ? '/' : './').'", "short_name" : "OSM", "theme_color" : "transparent", "description" : "'.tr('OpenSTAManager').'", "orientation" : "any", "background_color" : "transparent", "generated" : "true", "icons" : [ { "src": "'.App::getPaths()['img'].'/logo_completo.png", "type": "image/png", "sizes": "489x91" } ] }'; file_put_contents('manifest.json', $manifest); }else{ echo '
'.tr('Sembra che non ci siano i permessi di scrittura sul file _FILE_', [ '_FILE_' => 'manifest.json', ]).'