define('KUNENA_PATH_LIB', KUNENA_PATH . '/lib'); define('KUNENA_PATH_FUNCS', KUNENA_PATH . '/funcs'); define('KUNENA_PATH_TEMPLATE', KUNENA_PATH . '/template'); define('KUNENA_PATH_TEMPLATE_DEFAULT', KUNENA_PATH_TEMPLATE . '/' . KUNENA_TEMPLATE_DEFAULT); define('KUNENA_PATH_ADMIN', KUNENA_ROOT_PATH_ADMIN . '/' . KUNENA_COMPONENT_RELPATH); define('KUNENA_PATH_ADMIN_LIB', KUNENA_PATH_ADMIN . '/lib'); define('KUNENA_PATH_ADMIN_INSTALL', KUNENA_PATH_ADMIN . '/install'); define('KUNENA_PATH_ADMIN_IMAGES', KUNENA_PATH_ADMIN . '/images'); // Kunena uploaded files directory define('KUNENA_RELPATH_UPLOADED', 'media/kunena/attachments'); define('KUNENA_PATH_UPLOADED', KUNENA_ROOT_PATH . '/' . KUNENA_RELPATH_UPLOADED); // Kunena uploaded avatars directory define('KUNENA_RELPATH_AVATAR_UPLOADED', '/media/kunena/avatars'); define('KUNENA_PATH_AVATAR_UPLOADED', KUNENA_ROOT_PATH . KUNENA_RELPATH_AVATAR_UPLOADED); // Kunena legacy uploaded files directory define('KUNENA_RELPATH_UPLOADED_LEGACY', '/images/fbfiles'); define('KUNENA_PATH_UPLOADED_LEGACY', KUNENA_ROOT_PATH . KUNENA_RELPATH_UPLOADED_LEGACY); // The tunmbnail folder is relative to any image file folder define('KUNENA_FOLDER_THUMBNAIL', 'thumb'); // Files define('KUNENA_FILE_INSTALL', KUNENA_PATH_ADMIN . '/kunena.xml'); // Legacy version information define('KUNENA_VERSION', Kunena::version()); define('KUNENA_VERSION_DATE', Kunena::versionDate()); define('KUNENA_VERSION_NAME', Kunena::versionName()); define('KUNENA_VERSION_BUILD', Kunena::versionBuild()); // Time related define('KUNENA_SECONDS_IN_HOUR', 3600); define('KUNENA_SECONDS_IN_YEAR', 31536000); // Database defines define('KUNENA_DB_MISSING_COLUMN', 1054);
/** * Retrieve installed Kunena version as string. * * @return string "Kunena X.Y.Z | YYYY-MM-DD | BUILDNUMBER [versionname]" */ function getVersionHTML() { return 'Kunena ' . Kunena::version() . ' | ' . Kunena::versionDate() . ' | ' . Kunena::versionBuild() . ' [ ' . Kunena::versionName() . ' ]'; }
protected function insertVersion($state = 'beginInstall') { // Insert data from the new version $this->insertVersionData(Kunena::version(), Kunena::versionDate(), Kunena::versionBuild(), Kunena::versionName(), $state); }