/** * @todo if thumbname size has changed, advise user to regenerate thumbs */ function saveConfig() { global $rsgConfig; $rsgConfig = new rsgConfig(); if ($rsgConfig->saveConfig($_REQUEST)) { HTML_RSGALLERY::printAdminMsg(JText::_('Configuration Saved')); // save successful, try creating some image directories if we were asked to if (rsgInstance::getVar('createImgDirs')) { HTML_RSGALLERY::printAdminMsg(JText::_('Creating Image directories not Implemented yet.'), true); } } else { HTML_RSGALLERY::printAdminMsg(JText::_('Error Saving Configuration')); } }
/** * runs a sql query, displays admin message on success or error on error * @param String sql query * @param String message to display on success * @return boolean value indicating success */ function processAdminSqlQueryVerbosely($query, $successMsg) { $database =& JFactory::getDBO(); $database->setQuery($query); $database->query(); if ($database->getErrorMsg()) { HTML_RSGALLERY::printAdminMsg($database->getErrorMsg(), true); return false; } else { HTML_RSGALLERY::printAdminMsg($successMsg); return true; } }