golden hour
/home/phakp/public_html/formtools/install
⬆️ Go Up
Upload
File/Folder
Size
Actions
files
-
Del
OK
index.php
866 B
Del
OK
step2.php
2.54 KB
Del
OK
step3.php
2.9 KB
Del
OK
step4.php
1.76 KB
Del
OK
step5.php
1.93 KB
Del
OK
step6.php
1.15 KB
Del
OK
templates
-
Del
OK
Edit: step6.php
<?php require_once("../global/library.php"); use FormTools\Core; use FormTools\Hooks; use FormTools\Installation; use FormTools\Modules; use FormTools\Sessions; use FormTools\Settings; use FormTools\Themes; Core::setHooksEnabled(false); Core::initNoLogout(); Installation::checkInstallationComplete(); // the home-stretch! populate the hooks table Hooks::updateAvailableHooks(); // add whatever themes and modules are in the modules and themes folders Modules::updateModuleList(); Themes::updateThemeList(); Installation::installCoreFieldTypes(); // now actually install the modules Modules::installModules(); Settings::set(array("installation_complete" => "yes"), "core"); // send "Welcome to Form Tools" email if (!Sessions::exists("install_email_notification_sent")) { $email = Sessions::get("install_email"); $username = Sessions::get("install_username"); Installation::sendWelcomeEmail($email, $username, $password); Sessions::set("install_email_notification_sent", true); } $page = array( "step" => 6, "g_root_url" => Core::getRootUrl() ); Installation::displayPage("templates/step6.tpl", $page);
Save