<instruction type="userProfileMenu">userProfileMenu.xml</instruction>
<instruction type="userMenu">userMenu.xml</instruction>
<instruction type="userNotificationEvent">userNotificationEvent.xml</instruction>
- <instruction type="aclOption">aclOption.xml</instruction>
+ <instruction type="aclOption">aclOption.xml</instruction>
+ <instruction type="script">acp/post_install.php</instruction>
</instructions>
<instructions type="update" fromversion="2.0.0 Alpha 1">
<?php
-namespace wcf\acp;
use wcf\data\language\LanguageEditor;
-use wcf\data\user\UserEditor;
-use wcf\data\user\UserProfileAction;
use wcf\system\cache\CacheHandler;
-use wcf\system\dashboard\DashboardHandler;
use wcf\system\session\SessionHandler;
use wcf\system\template\ACPTemplateEngine;
use wcf\system\WCF;
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array(1));
-// reset all caches
-CacheHandler::getInstance()->flushAll();
-
-// delete language files
-LanguageEditor::deleteLanguageFiles();
-
-// delete all compiled templates
-ACPTemplateEngine::deleteCompiledTemplates(WCF_DIR.'acp/templates/compiled/');
-
// get server timezone
if ($timezone = @date_default_timezone_get()) {
if ($timezone != 'Europe/London' && in_array($timezone, DateUtil::getAvailableTimezones())) {
}
}
-// set dashboard default values
-DashboardHandler::setDefaultValues('com.woltlab.wcf.user.DashboardPage', array(
- // content
- 'com.woltlab.wcf.user.recentActivity' => 1,
- // sidebar
- 'com.woltlab.wcf.user.registerButton' => 1,
- 'com.woltlab.wcf.user.signedInAs' => 2,
- 'com.woltlab.wcf.user.statsSidebar' => 3
-));
-DashboardHandler::setDefaultValues('com.woltlab.wcf.user.MembersListPage', array(
- 'com.woltlab.wcf.user.newestMembers' => 1,
- 'com.woltlab.wcf.user.mostActiveMembers' => 2
-));
-// update administrator user rank and user online marking
-$editor = new UserEditor(WCF::getUser());
-$action = new UserProfileAction(array($editor), 'updateUserRank');
-$action->executeAction();
-$action = new UserProfileAction(array($editor), 'updateUserOnlineMarking');
-$action->executeAction();
--- /dev/null
+<?php
+use wcf\data\user\UserEditor;
+use wcf\data\user\UserProfileAction;
+use wcf\system\dashboard\DashboardHandler;
+use wcf\system\WCF;
+
+// set dashboard default values
+DashboardHandler::setDefaultValues('com.woltlab.wcf.user.DashboardPage', array(
+// content
+'com.woltlab.wcf.user.recentActivity' => 1,
+// sidebar
+'com.woltlab.wcf.user.registerButton' => 1,
+'com.woltlab.wcf.user.signedInAs' => 2,
+'com.woltlab.wcf.user.statsSidebar' => 3
+));
+DashboardHandler::setDefaultValues('com.woltlab.wcf.user.MembersListPage', array(
+'com.woltlab.wcf.user.newestMembers' => 1,
+'com.woltlab.wcf.user.mostActiveMembers' => 2
+));
+
+// update administrator user rank and user online marking
+$editor = new UserEditor(WCF::getUser());
+$action = new UserProfileAction(array($editor), 'updateUserRank');
+$action->executeAction();
+$action = new UserProfileAction(array($editor), 'updateUserOnlineMarking');
+$action->executeAction();