uawdijnntqw1x1x1
IP : 216.73.216.107
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
.
/
craft4-newsite-space
/
plugins
/
craft-content-buddy
/
.
/
src
/
services
/
.
/
Base.php
/
/
<?php /** * Author: Convergine (http://www.convergine.com) * Website: http://www.convergine.com * Support: http://support.convergine.com * Version: chatgpt.repo * * Copyright: (c) 2009 - 2023 Convergine.com * * Date: 8/22/2023 * Time: 1:38 PM */ namespace convergine\contentbuddy\services; use convergine\contentbuddy\BuddyPlugin; use Craft; use craft\enums\LicenseKeyStatus; use ReflectionClass; class Base { public function isGTP4(){ $model = BuddyPlugin::getInstance()->getSettings()->preferredModel; return strpos( $model, 'gpt-4' ) === 0; } public function checkLicenseMsg(){ $status = \Craft::$app->plugins->getPluginLicenseKeyStatus('convergine-contentbuddy'); // Handle different license statuses if (in_array($status,[ LicenseKeyStatus::Trial, LicenseKeyStatus::Invalid, LicenseKeyStatus::Mismatched, LicenseKeyStatus::Astray, LicenseKeyStatus::Unknown ])) { return '<div class="buddy-alert error-license" style="display:block;"> '.Craft::t('convergine-contentbuddy','licenseNotice').' </div>'; } return ''; } public function getSupportedFieldTypes(): array{ return [ 'craft\fields\PlainText', 'craft\redactor\Field', 'craft\ckeditor\Field', 'abmat\tinymce\Field' ]; } public function isSupportedFieldType($field) : bool { return in_array((new ReflectionClass($field))->getName(), $this->getSupportedFieldTypes()); } }
/srv/users/craft4/apps/./craft4-newsite-space/plugins/craft-content-buddy/./src/services/./Base.php