| Server IP : 69.72.244.102 / Your IP : 216.73.216.164 Web Server : LiteSpeed System : Linux s3434.fra1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64 User : konzalta ( 1271) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/konzalta/public_html/wp-content/plugins/wappointment/app/Installation/ |
Upload File : |
<?php
namespace Wappointment\Installation;
use Wappointment\WP\Helpers as WPHelpers;
use Wappointment\Services\Settings;
use Wappointment\System\Status;
class Process extends \Wappointment\Installation\AbstractProcess
{
protected $key = 'installation_step';
protected $steps = ['Wappointment\\Installation\\Steps\\CreateMigrationTable', 'Wappointment\\Installation\\Steps\\CreateTables', \true];
protected function isUpToDate()
{
if (empty(WPHelpers::getOption('installation_completed'))) {
return \false;
}
return \true;
}
protected function completed()
{
(new \Wappointment\WP\CustomPage())->install();
$this->complete = \true;
$mail_config = Settings::get('mail_config');
$mail_config['wpmail_html'] = \true;
Settings::saveMultiple(['mail_config' => $mail_config, 'show_welcome' => \true, 'activeStaffId' => (int) WPHelpers::userId(), 'email_notifications' => WPHelpers::currentUserEmail()]);
Status::dbVersionUpdateComplete();
Status::setViewedUpdated();
return WPHelpers::setOption('installation_completed', (int) current_time('timestamp'), \true);
}
}