function resetHighscore() { $db = new SQLite3('pacman.db'); $date = date('Y-m-d h:i:s', time()); $db->exec('DROP TABLE IF EXISTS highscore'); createDataBase($db); }
//--- 3. Create langs.xml file. if (file_exists($sModulesPath . $sWidget . "/xml/langs.xml")) { $aResult = refreshExtraFile($sWidget, "langs"); if ($aResult['status'] == FAILED_VAL) { $sContents = parseXml($aXmlTemplates['result'], $aResult['value'], FAILED_VAL); break; } } //--- 4. Change main.xml file. $aResult = createMainFile($sWidget); if ($aResult['status'] == FAILED_VAL) { $sContents = parseXml($aXmlTemplates['result'], $aResult['value'], FAILED_VAL); break; } //--- 5. Create database. $sResult = createDataBase($sWidget); if (empty($sResult)) { $sContents = parseXml($aXmlTemplates['result'], "", SUCCESS_VAL); } else { $sContents = parseXml($aXmlTemplates['result'], $sResult, FAILED_VAL); } break; /** * Item action which checks the permissions of specified file. * @param sWidget - the name of the widget. * @param sFileName - the name of the file(folder). */ /** * Item action which checks the permissions of specified file. * @param sWidget - the name of the widget. * @param sFileName - the name of the file(folder).