REDROOM
PHP 8.0.30
Path:
Logout
Edit File
Size: 2.61 KB
Close
/home/certprox/template.certproxywizard.com/wp-content/plugins/hostinger/includes/Settings.php
Text
Base64
<?php namespace Hostinger; defined( 'ABSPATH' ) || exit; class Settings { public const MYSELF = 'myself'; public const FREELANCER = 'freelancer'; public const DEVELOPER = 'developer'; public const OTHER = 'other'; public const BUSINESS_BEGINNER_SEGMENT = 'business_beginner'; public const LEARNER_SEGMENT = 'learner'; public const BUSINESS_OWNER_SEGMENT = 'business_owner'; public const WEBSITE_TYPE_BUSINESS = 'business'; public const WEBSITE_TYPE_PORTFOLIO = 'portfolio'; public const WEBSITE_TYPE_BLOG = 'blog'; public const SITE_TITLE_OPTION = 'blogname'; public function __construct() { if ( ! $this->get_setting( 'user_segment' ) ) { $this->set_user_segment(); } } public function set_user_segment(): void { $created_by = self::get_setting( 'survey.website.created_by' ); $created_for = self::get_setting( 'survey.website.for' ); $need_help = self::get_setting( 'survey.website.need_help' ); $work_at = self::get_setting( 'survey.work_at' ); if ( $this->is_business_beginner( $created_by, $created_for, $need_help ) ) { self::update_setting( 'user_segment', self::BUSINESS_BEGINNER_SEGMENT ); } if ( $this->is_learner( $work_at, $need_help ) ) { self::update_setting( 'user_segment', self::LEARNER_SEGMENT ); } if ( $this->is_bussiness_owner( $created_for, $created_by ) ) { self::update_setting( 'user_segment', self::BUSINESS_OWNER_SEGMENT ); } } private function is_business_beginner( string $created_by, string $created_for, bool $need_help ): bool { return $created_by === self::MYSELF && $created_for === self::MYSELF && $need_help; } private function is_learner( string $work_at, bool $need_help ): bool { return $work_at === self::FREELANCER && $need_help; } private function is_bussiness_owner( string $created_for, string $created_by ): bool { return $created_for === self::MYSELF && ( $created_by === self::DEVELOPER || $created_by === self::OTHER ); } public static function get_setting( string $setting ): string { if ( $setting ) { return get_option( 'hostinger_' . $setting, '' ); } return ''; } public static function update_setting( string $setting, $value, $autoload = null ): void { if ( $setting ) { update_option( 'hostinger_' . $setting, $value, $autoload ); } } } new Settings();
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 6 × Files: 13
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Admin
DIR
-
drwxr-xr-x
2026-06-14 00:11:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Cli
DIR
-
drwxr-xr-x
2026-06-14 00:11:49
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LlmsTxtGenerator
DIR
-
drwxr-xr-x
2026-06-14 00:11:49
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Mcp
DIR
-
drwxr-xr-x
2026-06-14 00:11:49
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Rest
DIR
-
drwxr-xr-x
2026-06-14 00:11:49
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Views
DIR
-
drwxr-xr-x
2026-06-14 00:11:49
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Activator.php
734 B
lrw-r--r--
2026-06-10 16:30:25
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Bootstrap.php
2.62 KB
lrw-r--r--
2026-06-10 16:30:25
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Cli.php
814 B
lrw-r--r--
2026-06-10 16:30:25
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ComingSoon.php
2.65 KB
lrw-r--r--
2026-06-10 16:30:25
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Deactivator.php
136 B
lrw-r--r--
2026-06-10 16:30:25
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
DefaultOptions.php
1.68 KB
lrw-r--r--
2026-06-10 16:30:25
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Errors.php
1.29 KB
lrw-r--r--
2026-06-10 16:30:25
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Helper.php
5.15 KB
lrw-r--r--
2026-06-10 16:30:25
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Hooks.php
5.13 KB
lrw-r--r--
2026-06-10 16:30:25
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Hostinger.php
1.13 KB
lrw-r--r--
2026-06-10 16:30:25
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
I18n.php
389 B
lrw-r--r--
2026-06-10 16:30:25
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Loader.php
2.37 KB
lrw-r--r--
2026-06-10 16:30:25
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Settings.php
2.61 KB
lrw-r--r--
2026-06-10 16:30:25
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).