Compare commits
187 Commits
feature/ne
...
feature/75
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6efe0f5dac | ||
|
|
ef720cf0be | ||
|
|
f90d10114d | ||
|
|
da0066dd14 | ||
|
|
3f68e161be | ||
|
|
cc8c3d3bf1 | ||
|
|
f439490bfc | ||
|
|
39011faedd | ||
|
|
46f8f5faeb | ||
|
|
170d24d0ad | ||
|
|
9683b8d96a | ||
|
|
a6171c896b | ||
|
|
89231976f8 | ||
|
|
4e24ac508d | ||
|
|
e1c804139f | ||
|
|
f0a95cbb3d | ||
|
|
265acb4a1e | ||
|
|
30f720b9ad | ||
|
|
1992c7e7c1 | ||
|
|
87dd003a6d | ||
|
|
4dbaaad2b9 | ||
|
|
2fe49fbff4 | ||
|
|
7201bef8db | ||
|
|
af01ff9e62 | ||
|
|
ab1290dfd0 | ||
|
|
68d14c4de6 | ||
|
|
a96e1c286d | ||
|
|
b799be3cb7 | ||
|
|
bcf1bb003c | ||
|
|
d000d93b19 | ||
|
|
83a67dff96 | ||
|
|
79270950ee | ||
|
|
9f25635a64 | ||
|
|
18b91df58d | ||
|
|
6bd34dc73e | ||
|
|
4afe06d370 | ||
|
|
9dc3c56689 | ||
|
|
effd35c3e6 | ||
|
|
587d7fcf72 | ||
|
|
f1735767c3 | ||
|
|
bfdc8a68e6 | ||
|
|
00735f0c54 | ||
|
|
882390e8d6 | ||
|
|
5d0da47f21 | ||
|
|
684eaac278 | ||
|
|
4eadff7f3b | ||
|
|
4ce8f70382 | ||
|
|
f66ce1c956 | ||
|
|
868eea9b43 | ||
|
|
802f9f3e08 | ||
|
|
70a8bdf427 | ||
|
|
38cda442e3 | ||
|
|
20c8b7c0ce | ||
|
|
b58a848cc9 | ||
|
|
5c5d98bb78 | ||
|
|
a08a9b43f3 | ||
|
|
d9433fead5 | ||
|
|
abd85ff4db | ||
|
|
81f328b26e | ||
|
|
9a2c8f10bf | ||
|
|
1a9e4bd5ad | ||
|
|
3cdadf3c6e | ||
|
|
36891e441b | ||
|
|
a6295f1b14 | ||
|
|
ba6b3da238 | ||
|
|
2674e9c47f | ||
|
|
e467ca83cf | ||
|
|
f7b73717b4 | ||
|
|
0d9b34a879 | ||
|
|
7791585387 | ||
|
|
a4a0b3c18c | ||
|
|
3406ca79de | ||
|
|
91ad01055e | ||
|
|
443fa60459 | ||
|
|
804cdffe42 | ||
|
|
63e40fc0a2 | ||
|
|
176bd51afb | ||
|
|
e8a1f8c3b6 | ||
|
|
5f4affc896 | ||
|
|
042fee2360 | ||
|
|
447e7d01d5 | ||
|
|
d4a9d1e831 | ||
|
|
be3726623f | ||
|
|
aae6d324f9 | ||
|
|
398b47d5d1 | ||
|
|
b85f4a5161 | ||
|
|
3c17b1bdea | ||
|
|
7f8ec25977 | ||
|
|
41f8437c23 | ||
|
|
df8b25d4b4 | ||
|
|
9cc80a8946 | ||
|
|
11afd23087 | ||
|
|
511dabe2b0 | ||
|
|
0c517f254c | ||
|
|
347663f8f7 | ||
|
|
c56c7a1f9d | ||
|
|
3d21ff1cd7 | ||
|
|
fb2f0f1447 | ||
|
|
4847bb563a | ||
|
|
8b664ff644 | ||
|
|
902a05cc84 | ||
|
|
b3223eb9b6 | ||
|
|
19d6052460 | ||
|
|
70eaa30e10 | ||
|
|
458a996c29 | ||
|
|
a6de103b4a | ||
|
|
9328f6d916 | ||
|
|
c61b21559c | ||
|
|
0d18572fbe | ||
|
|
9db21ab860 | ||
|
|
ed33238750 | ||
|
|
272678b8cd | ||
|
|
3a435eba7d | ||
|
|
170014e8f0 | ||
|
|
df05a4688e | ||
|
|
006f666089 | ||
|
|
960990d47d | ||
|
|
99d39732a5 | ||
|
|
5e916510fb | ||
|
|
2a16143e53 | ||
|
|
0be4f52b04 | ||
|
|
f7d41d3650 | ||
|
|
eabbe2f00b | ||
|
|
52e303cb37 | ||
|
|
58790bc352 | ||
|
|
0b19333cd7 | ||
|
|
da09c701cc | ||
|
|
7c8670b57c | ||
|
|
1c1f01aed5 | ||
|
|
5d6e2cc9f7 | ||
|
|
28db230697 | ||
|
|
4fe61cbdc7 | ||
|
|
3c5bf8a134 | ||
|
|
e2994b645b | ||
|
|
32ddf1c980 | ||
|
|
0f7540dec8 | ||
|
|
a36a7cc832 | ||
|
|
3dd1c11d3b | ||
|
|
9fca81cc32 | ||
|
|
9792358aea | ||
|
|
7bfa14a874 | ||
|
|
9236449b21 | ||
|
|
b3613b6c4b | ||
|
|
ab8e7bd15e | ||
|
|
307c308eb0 | ||
|
|
61e5536b50 | ||
|
|
104dd1970f | ||
|
|
884d64a42a | ||
|
|
44c0a025a8 | ||
|
|
929b8b9eca | ||
|
|
3b8e079cf1 | ||
|
|
36247ba0ee | ||
|
|
091d99b08f | ||
|
|
3c60a80f9b | ||
|
|
ae633111c0 | ||
|
|
52a1d8d626 | ||
|
|
3a64e3bb9e | ||
|
|
fc967c06ce | ||
|
|
d4821b7edc | ||
|
|
94a36c0066 | ||
|
|
62e09f1224 | ||
|
|
57a0b5691f | ||
|
|
f82389d156 | ||
|
|
9e21976424 | ||
|
|
f558093f5d | ||
|
|
5201a1ed3b | ||
|
|
dad39c3ebe | ||
|
|
29920bfeb7 | ||
|
|
2313ee2bbd | ||
|
|
22b0c431a0 | ||
|
|
499b3bca88 | ||
|
|
aede5ea7b8 | ||
|
|
da6c443a35 | ||
|
|
9c39efd9af | ||
|
|
d5f2303ed2 | ||
|
|
48e584503e | ||
|
|
454a1b26eb | ||
|
|
4853ca444e | ||
|
|
330539abd2 | ||
|
|
5357a0c060 | ||
|
|
fc22cce037 | ||
|
|
34c8a57814 | ||
|
|
b91e6c384a | ||
|
|
2247691e58 | ||
|
|
f014b43761 | ||
|
|
076d49abc2 | ||
|
|
9fd0ffd84e |
9
.doc/developers.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# Developers
|
||||||
|
|
||||||
|
## PHP Code Styles
|
||||||
|
We use `PHP CS Fixer` to ensure code formating consistency across PHP codebase.
|
||||||
|
You can find the configuration and instructions to run it [here](../tests/php-code-style/README.md).
|
||||||
|
|
||||||
|
## PHP Static Analysis
|
||||||
|
We use `PHPStan` to ensure code quality and to detect potential bugs in our PHP codebase.
|
||||||
|
You can find the configuration and instructions to run it [here](../tests/php-static-analysis/README.md).
|
||||||
3
.gitignore
vendored
@@ -58,6 +58,9 @@ tests/*/vendor/*
|
|||||||
/tests/php-unit-tests/phpunit.xml
|
/tests/php-unit-tests/phpunit.xml
|
||||||
/tests/php-unit-tests/postbuild_integration.xml
|
/tests/php-unit-tests/postbuild_integration.xml
|
||||||
|
|
||||||
|
# PHP CS Fixer: Cache file
|
||||||
|
/.php-cs-fixer.cache
|
||||||
|
|
||||||
|
|
||||||
# Jetbrains
|
# Jetbrains
|
||||||
/.idea/**
|
/.idea/**
|
||||||
|
|||||||
@@ -73,6 +73,9 @@ iTop development is sponsored, led, and supported by [Combodo][0].
|
|||||||
|
|
||||||
[0]: https://www.combodo.com
|
[0]: https://www.combodo.com
|
||||||
|
|
||||||
|
## Developers
|
||||||
|
|
||||||
|
You can find information and instructions about our quality tools and how to run them [here](.doc/developers.md).
|
||||||
|
|
||||||
## Contributors
|
## Contributors
|
||||||
|
|
||||||
|
|||||||
@@ -175,6 +175,10 @@ abstract class cmdbAbstractObject extends CMDBObject implements iDisplay
|
|||||||
*/
|
*/
|
||||||
protected $sDisplayMode;
|
protected $sDisplayMode;
|
||||||
protected $aFieldsMap;
|
protected $aFieldsMap;
|
||||||
|
/**
|
||||||
|
* @var array Store posted values in order to be used in GetAttributeFlags
|
||||||
|
*/
|
||||||
|
protected $aPostedValues = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If true, bypass IsActionAllowedOnAttribute when writing this object
|
* If true, bypass IsActionAllowedOnAttribute when writing this object
|
||||||
@@ -819,6 +823,7 @@ HTML
|
|||||||
foreach ($aNotificationClasses as $sNotifClass) {
|
foreach ($aNotificationClasses as $sNotifClass) {
|
||||||
$aNotifSearches[$sNotifClass] = DBObjectSearch::FromOQL("SELECT $sNotifClass AS Ev WHERE Ev.object_id = :id AND Ev.object_class = :class");
|
$aNotifSearches[$sNotifClass] = DBObjectSearch::FromOQL("SELECT $sNotifClass AS Ev WHERE Ev.object_id = :id AND Ev.object_class = :class");
|
||||||
$aNotifSearches[$sNotifClass]->SetInternalParams($aParams);
|
$aNotifSearches[$sNotifClass]->SetInternalParams($aParams);
|
||||||
|
$aNotifSearches[$sNotifClass]->AllowAllData();
|
||||||
$oNotifSet = new DBObjectSet($aNotifSearches[$sNotifClass], []);
|
$oNotifSet = new DBObjectSet($aNotifSearches[$sNotifClass], []);
|
||||||
$iNotifsCount += $oNotifSet->Count();
|
$iNotifsCount += $oNotifSet->Count();
|
||||||
}
|
}
|
||||||
@@ -832,6 +837,7 @@ HTML
|
|||||||
'menu' => false,
|
'menu' => false,
|
||||||
'panel_title' => MetaModel::GetName($sNotifClass),
|
'panel_title' => MetaModel::GetName($sNotifClass),
|
||||||
'panel_icon' => MetaModel::GetClassIcon($sNotifClass, false),
|
'panel_icon' => MetaModel::GetClassIcon($sNotifClass, false),
|
||||||
|
'display_unauthorized_objects' => true,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3792,7 +3798,33 @@ HTML;
|
|||||||
return $aWriteableAttList;
|
return $aWriteableAttList;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* function to test if the posted value or if not exists the existing value matches the expected value
|
||||||
|
* this is used to check the current value in GetAttributeFlags function (useful to manage dynamic readonly attributes)
|
||||||
|
* @param $sAttCode
|
||||||
|
*/
|
||||||
|
public function GetCurrentValueInScreen($sAttCode)
|
||||||
|
{
|
||||||
|
if (array_key_exists($sAttCode, $this->aPostedValues)) {
|
||||||
|
return $this->aPostedValues[$sAttCode];
|
||||||
|
}
|
||||||
|
return $this->Get($sAttCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This function checks if the value of the attribute has been modified in screen
|
||||||
|
* this is used to check if field has been modified in GetAttributeFlags function (useful to manage dynamic readonly attributes)
|
||||||
|
* @param $sAttCode
|
||||||
|
*/
|
||||||
|
public function IsModifiedValueInScreen($sAttCode)
|
||||||
|
{
|
||||||
|
if (array_key_exists($sAttCode, $this->aPostedValues)) {
|
||||||
|
return $this->aPostedValues[$sAttCode] != $this->Get($sAttCode);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
* Compute the attribute flags depending on the object state
|
* Compute the attribute flags depending on the object state
|
||||||
*/
|
*/
|
||||||
public function GetFormAttributeFlags($sAttCode)
|
public function GetFormAttributeFlags($sAttCode)
|
||||||
@@ -3984,6 +4016,7 @@ HTML;
|
|||||||
|
|
||||||
$aErrors = [];
|
$aErrors = [];
|
||||||
$aFinalValues = [];
|
$aFinalValues = [];
|
||||||
|
$this->aPostedValues = $aValues; // Store the values for later use (e.g. in GetAttributeFlags)
|
||||||
foreach ($this->GetWriteableAttList(array_keys($aValues), $aErrors, $aAttFlags) as $sAttCode => $oAttDef) {
|
foreach ($this->GetWriteableAttList(array_keys($aValues), $aErrors, $aAttFlags) as $sAttCode => $oAttDef) {
|
||||||
$aFinalValues[$sAttCode] = $aValues[$sAttCode];
|
$aFinalValues[$sAttCode] = $aValues[$sAttCode];
|
||||||
}
|
}
|
||||||
@@ -5632,7 +5665,7 @@ JS
|
|||||||
* @return void
|
* @return void
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
*/
|
*/
|
||||||
final public function AddAttributeFlags(string $sAttCode, int $iFlags, string $sTargetState = '', string $sReason = null): void
|
final public function AddAttributeFlags(string $sAttCode, int $iFlags, string $sTargetState = '', ?string $sReason = null): void
|
||||||
{
|
{
|
||||||
if (!isset($this->aAttributesFlags[$sTargetState])) {
|
if (!isset($this->aAttributesFlags[$sTargetState])) {
|
||||||
$this->aAttributesFlags[$sTargetState] = [];
|
$this->aAttributesFlags[$sTargetState] = [];
|
||||||
@@ -5655,7 +5688,7 @@ JS
|
|||||||
* @return void
|
* @return void
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
*/
|
*/
|
||||||
final public function ForceAttributeFlags(string $sAttCode, int $iFlags, string $sTargetState = '', string $sReason = null): void
|
final public function ForceAttributeFlags(string $sAttCode, int $iFlags, string $sTargetState = '', ?string $sReason = null): void
|
||||||
{
|
{
|
||||||
if (!isset($this->aAttributesFlags[$sTargetState])) {
|
if (!isset($this->aAttributesFlags[$sTargetState])) {
|
||||||
$this->aAttributesFlags[$sTargetState] = [];
|
$this->aAttributesFlags[$sTargetState] = [];
|
||||||
@@ -5696,7 +5729,7 @@ JS
|
|||||||
* @return void
|
* @return void
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
*/
|
*/
|
||||||
final public function AddInitialAttributeFlags(string $sAttCode, int $iFlags, string $sReason = null)
|
final public function AddInitialAttributeFlags(string $sAttCode, int $iFlags, ?string $sReason = null)
|
||||||
{
|
{
|
||||||
if (!isset($this->aInitialAttributesFlags)) {
|
if (!isset($this->aInitialAttributesFlags)) {
|
||||||
$this->aInitialAttributesFlags = [];
|
$this->aInitialAttributesFlags = [];
|
||||||
@@ -5718,7 +5751,7 @@ JS
|
|||||||
* @return void
|
* @return void
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
*/
|
*/
|
||||||
final public function ForceInitialAttributeFlags(string $sAttCode, int $iFlags, string $sReason = null)
|
final public function ForceInitialAttributeFlags(string $sAttCode, int $iFlags, ?string $sReason = null)
|
||||||
{
|
{
|
||||||
if (!isset($this->aInitialAttributesFlags)) {
|
if (!isset($this->aInitialAttributesFlags)) {
|
||||||
$this->aInitialAttributesFlags = [];
|
$this->aInitialAttributesFlags = [];
|
||||||
|
|||||||
@@ -1029,7 +1029,7 @@ EOF
|
|||||||
var dashboard = $('.ibo-dashboard#$sDivId')
|
var dashboard = $('.ibo-dashboard#$sDivId')
|
||||||
dashboard.block();
|
dashboard.block();
|
||||||
$.post(GetAbsoluteUrlAppRoot()+'pages/ajax.render.php',
|
$.post(GetAbsoluteUrlAppRoot()+'pages/ajax.render.php',
|
||||||
{ operation: 'toggle_dashboard', dashboard_id: '$sId', file: '$sFile', extra_params: $sExtraParams, reload_url: '$sReloadURL' },
|
{ operation: 'toggle_dashboard', dashboard_id: '$sId', file: '$sFile', extra_params: $sExtraParams, reload_url: $sReloadURL },
|
||||||
function(data) {
|
function(data) {
|
||||||
dashboard.html(data);
|
dashboard.html(data);
|
||||||
dashboard.unblock();
|
dashboard.unblock();
|
||||||
|
|||||||
@@ -726,6 +726,10 @@ class DisplayBlock
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!$this->m_oFilter->IsAllDataAllowed() && ($aExtraParams['display_unauthorized_objects'] ?? false) === true) {
|
||||||
|
$this->m_oFilter->AllowAllData();
|
||||||
|
}
|
||||||
|
|
||||||
$aExtraParams['query_params'] = $this->m_oFilter->GetInternalParams();
|
$aExtraParams['query_params'] = $this->m_oFilter->GetInternalParams();
|
||||||
$this->m_oSet = new CMDBObjectSet($this->m_oFilter, $aOrderBy, $aQueryParams);
|
$this->m_oSet = new CMDBObjectSet($this->m_oFilter, $aOrderBy, $aQueryParams);
|
||||||
}
|
}
|
||||||
@@ -1379,7 +1383,10 @@ JS
|
|||||||
|
|
||||||
// Check the classes that can be read (i.e authorized) by this user...
|
// Check the classes that can be read (i.e authorized) by this user...
|
||||||
foreach ($aClasses as $sAlias => $sClassName) {
|
foreach ($aClasses as $sAlias => $sClassName) {
|
||||||
if (UserRights::IsActionAllowed($sClassName, UR_ACTION_READ, $this->m_oSet) != UR_ALLOWED_NO) {
|
if (
|
||||||
|
(UserRights::IsActionAllowed($sClassName, UR_ACTION_READ, $this->m_oSet) !== UR_ALLOWED_NO)
|
||||||
|
|| ($aExtraParams['display_unauthorized_objects'] ?? false) === true
|
||||||
|
) {
|
||||||
$aAuthorizedClasses[$sAlias] = $sClassName;
|
$aAuthorizedClasses[$sAlias] = $sClassName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @copyright Copyright (C) 2010-2026 Combodo SAS
|
||||||
|
* @license http://opensource.org/licenses/AGPL-3.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
class ForgotPasswordApplicationException extends Exception
|
||||||
|
{
|
||||||
|
}
|
||||||
10
application/exceptions/ForgotPasswordUserInputException.php
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @copyright Copyright (C) 2010-2026 Combodo SAS
|
||||||
|
* @license http://opensource.org/licenses/AGPL-3.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
class ForgotPasswordUserInputException extends Exception
|
||||||
|
{
|
||||||
|
}
|
||||||
@@ -75,13 +75,10 @@ class LoginExternal extends AbstractLoginFSMExtension
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return bool
|
* @return bool|mixed
|
||||||
*/
|
*/
|
||||||
private function GetAuthUser()
|
private function GetAuthUser()
|
||||||
{
|
{
|
||||||
$sExtAuthVar = MetaModel::GetConfig()->GetExternalAuthenticationVariable(); // In which variable is the info passed ?
|
return MetaModel::GetConfig()->GetExternalAuthenticationVariable();
|
||||||
eval('$sAuthUser = isset('.$sExtAuthVar.') ? '.$sExtAuthVar.' : false;'); // Retrieve the value
|
|
||||||
/** @var string $sAuthUser */
|
|
||||||
return $sAuthUser; // Retrieve the value
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -221,15 +221,15 @@ class LoginWebPage extends NiceWebPage
|
|||||||
|
|
||||||
if ($oUser != null) {
|
if ($oUser != null) {
|
||||||
if (!MetaModel::IsValidAttCode(get_class($oUser), 'reset_pwd_token')) {
|
if (!MetaModel::IsValidAttCode(get_class($oUser), 'reset_pwd_token')) {
|
||||||
throw new Exception(Dict::S('UI:ResetPwd-Error-NotPossible'));
|
throw new ForgotPasswordUserInputException('External accounts do not allow password reset');
|
||||||
}
|
}
|
||||||
if (!$oUser->CanChangePassword()) {
|
if (!$oUser->CanChangePassword()) {
|
||||||
throw new Exception(Dict::S('UI:ResetPwd-Error-FixedPwd'));
|
throw new ForgotPasswordUserInputException('The account does not allow password reset');
|
||||||
}
|
}
|
||||||
|
|
||||||
$sTo = $oUser->GetResetPasswordEmail(); // throws Exceptions if not allowed
|
$sTo = $oUser->GetResetPasswordEmail(); // throws Exceptions if not allowed
|
||||||
if ($sTo == '') {
|
if ($sTo == '') {
|
||||||
throw new Exception(Dict::S('UI:ResetPwd-Error-NoEmail'));
|
throw new ForgotPasswordUserInputException('Missing email address for this account');
|
||||||
}
|
}
|
||||||
|
|
||||||
// This token allows the user to change the password without knowing the previous one
|
// This token allows the user to change the password without knowing the previous one
|
||||||
@@ -255,17 +255,21 @@ class LoginWebPage extends NiceWebPage
|
|||||||
|
|
||||||
case EMAIL_SEND_ERROR:
|
case EMAIL_SEND_ERROR:
|
||||||
default:
|
default:
|
||||||
IssueLog::Error('Failed to send the email with the NEW password for '.$oUser->Get('friendlyname').': '.implode(', ', $aIssues));
|
throw new ForgotPasswordApplicationException('Failed to send the password reset email for '.$oUser->Get('friendlyname').': '.implode(', ', $aIssues));
|
||||||
throw new Exception(Dict::S('UI:ResetPwd-Error-Send'));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$oTwigContext = new LoginTwigRenderer();
|
} catch (ForgotPasswordApplicationException $e) {
|
||||||
$aVars = $oTwigContext->GetDefaultVars();
|
IssueLog::Error('Failed to process the forgot password request for user "'.$sAuthUser.'" [reason='.get_class($e).']: '.$e->getMessage());
|
||||||
$oTwigContext->Render($this, 'forgotpwdsent.html.twig', $aVars);
|
} catch (ForgotPasswordUserInputException $e) {
|
||||||
} catch (Exception $e) {
|
IssueLog::Info('Failed to process the forgot password request for user "'.$sAuthUser.'" [reason='.get_class($e).']: '.$e->getMessage());
|
||||||
$this->DisplayForgotPwdForm(true, $e->getMessage());
|
} catch (\Throwable $e) {
|
||||||
|
IssueLog::Error('Unexpected error while processing the forgot password request for user "'.$sAuthUser.'": '.$e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$oTwigContext = new LoginTwigRenderer();
|
||||||
|
$aVars = $oTwigContext->GetDefaultVars();
|
||||||
|
$oTwigContext->Render($this, 'forgotpwdsent.html.twig', $aVars);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function DisplayResetPwdForm($sErrorMessage = null)
|
public function DisplayResetPwdForm($sErrorMessage = null)
|
||||||
|
|||||||
@@ -1423,12 +1423,21 @@ class ShortcutMenuNode extends MenuNode
|
|||||||
public function GetHyperlink($aExtraParams)
|
public function GetHyperlink($aExtraParams)
|
||||||
{
|
{
|
||||||
$sContext = $this->oShortcut->Get('context');
|
$sContext = $this->oShortcut->Get('context');
|
||||||
$aContext = unserialize($sContext);
|
try {
|
||||||
if (isset($aContext['menu'])) {
|
$aContext = utils::Unserialize($sContext);
|
||||||
unset($aContext['menu']);
|
if (isset($aContext['menu'])) {
|
||||||
}
|
unset($aContext['menu']);
|
||||||
foreach ($aContext as $sArgName => $sArgValue) {
|
}
|
||||||
$aExtraParams[$sArgName] = $sArgValue;
|
foreach ($aContext as $sArgName => $sArgValue) {
|
||||||
|
$aExtraParams[$sArgName] = $sArgValue;
|
||||||
|
}
|
||||||
|
} catch (Exception $e) {
|
||||||
|
IssueLog::Warning("User shortcut corrupted, delete the shortcut", LogChannels::CONSOLE, [
|
||||||
|
'shortcut_name' => $this->oShortcut->GetName(),
|
||||||
|
'root_cause' => $e->getMessage(),
|
||||||
|
]);
|
||||||
|
// delete the shortcut
|
||||||
|
$this->oShortcut->DBDelete();
|
||||||
}
|
}
|
||||||
return parent::GetHyperlink($aExtraParams);
|
return parent::GetHyperlink($aExtraParams);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ interface iNewsroomProvider
|
|||||||
* @param User $oUser The user for who to check if the provider is applicable.
|
* @param User $oUser The user for who to check if the provider is applicable.
|
||||||
* return bool
|
* return bool
|
||||||
*/
|
*/
|
||||||
public function IsApplicable(User $oUser = null);
|
public function IsApplicable(?User $oUser = null);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The human readable (localized) label for this provider
|
* The human readable (localized) label for this provider
|
||||||
@@ -139,7 +139,7 @@ abstract class NewsroomProviderBase implements iNewsroomProvider
|
|||||||
*/
|
*/
|
||||||
abstract public function GetViewAllURL();
|
abstract public function GetViewAllURL();
|
||||||
|
|
||||||
public function IsApplicable(User $oUser = null)
|
public function IsApplicable(?User $oUser = null)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ abstract class Query extends cmdbAbstractObject
|
|||||||
* @return string|null
|
* @return string|null
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
*/
|
*/
|
||||||
abstract public function GetExportUrl(array $aValues = null): ?string;
|
abstract public function GetExportUrl(?array $aValues = null): ?string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update last export information.
|
* Update last export information.
|
||||||
@@ -227,7 +227,7 @@ class QueryOQL extends Query
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @inheritdoc */
|
/** @inheritdoc */
|
||||||
public function GetExportUrl(array $aValues = null): ?string
|
public function GetExportUrl(?array $aValues = null): ?string
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
// retrieve attributes
|
// retrieve attributes
|
||||||
|
|||||||
@@ -924,11 +924,6 @@ CSS;
|
|||||||
public static function CloneThemeParameterAndIncludeVersion($aThemeParameters, $bSetupCompilationTimestamp, $aImportsPaths)
|
public static function CloneThemeParameterAndIncludeVersion($aThemeParameters, $bSetupCompilationTimestamp, $aImportsPaths)
|
||||||
{
|
{
|
||||||
$aThemeParametersVariable = [];
|
$aThemeParametersVariable = [];
|
||||||
if (array_key_exists('variables', $aThemeParameters)) {
|
|
||||||
if (is_array($aThemeParameters['variables'])) {
|
|
||||||
$aThemeParametersVariable = array_merge([], $aThemeParameters['variables']);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (array_key_exists('variable_imports', $aThemeParameters)) {
|
if (array_key_exists('variable_imports', $aThemeParameters)) {
|
||||||
if (is_array($aThemeParameters['variable_imports'])) {
|
if (is_array($aThemeParameters['variable_imports'])) {
|
||||||
@@ -936,6 +931,14 @@ CSS;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Variables defined in theme XML have the priority over variables defined in XML imports files
|
||||||
|
// They're defined after so they overwrite previous parameters
|
||||||
|
if (array_key_exists('variables', $aThemeParameters)) {
|
||||||
|
if (is_array($aThemeParameters['variables'])) {
|
||||||
|
$aThemeParametersVariable = array_merge($aThemeParametersVariable, $aThemeParameters['variables']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$aThemeParametersVariable['$version'] = $bSetupCompilationTimestamp;
|
$aThemeParametersVariable['$version'] = $bSetupCompilationTimestamp;
|
||||||
return $aThemeParametersVariable;
|
return $aThemeParametersVariable;
|
||||||
}
|
}
|
||||||
@@ -967,7 +970,9 @@ CSS;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
array_map(function ($sVariableValue) { return ltrim($sVariableValue); }, $aVariablesResults);
|
array_map(function ($sVariableValue) {
|
||||||
|
return ltrim($sVariableValue);
|
||||||
|
}, $aVariablesResults);
|
||||||
return $aVariablesResults;
|
return $aVariablesResults;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -228,7 +228,7 @@ JS
|
|||||||
<<<HTML
|
<<<HTML
|
||||||
<form id="ObjectsAddForm_{$this->sInputid}">
|
<form id="ObjectsAddForm_{$this->sInputid}">
|
||||||
<div id="SearchResultsToAdd_{$this->sInputid}">
|
<div id="SearchResultsToAdd_{$this->sInputid}">
|
||||||
<div style="background: #fff; border:0; text-align:center; vertical-align:middle;"><p>{$sEmptyList}</p></div>
|
<div style="border:0; text-align:center; vertical-align:middle;"><p>{$sEmptyList}</p></div>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" id="count_{$this->sInputid}" value="0"/>
|
<input type="hidden" id="count_{$this->sInputid}" value="0"/>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -27,6 +27,9 @@ require_once(APPROOT.'/application/displayblock.class.inc.php');
|
|||||||
|
|
||||||
class UISearchFormForeignKeys
|
class UISearchFormForeignKeys
|
||||||
{
|
{
|
||||||
|
private $m_sRemoteClass;
|
||||||
|
private $m_iInputId;
|
||||||
|
|
||||||
public function __construct($sTargetClass, $iInputId = null)
|
public function __construct($sTargetClass, $iInputId = null)
|
||||||
{
|
{
|
||||||
$this->m_sRemoteClass = $sTargetClass;
|
$this->m_sRemoteClass = $sTargetClass;
|
||||||
@@ -40,7 +43,7 @@ class UISearchFormForeignKeys
|
|||||||
*
|
*
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
public function ShowModalSearchForeignKeys($oPage, $sTitle)
|
public function ShowModalSearchForeignKeys($oPage)
|
||||||
{
|
{
|
||||||
|
|
||||||
$oFilter = new DBObjectSearch($this->m_sRemoteClass);
|
$oFilter = new DBObjectSearch($this->m_sRemoteClass);
|
||||||
@@ -60,52 +63,17 @@ class UISearchFormForeignKeys
|
|||||||
]
|
]
|
||||||
));
|
));
|
||||||
$sEmptyList = Dict::S('UI:Message:EmptyList:UseSearchForm');
|
$sEmptyList = Dict::S('UI:Message:EmptyList:UseSearchForm');
|
||||||
$sCancel = Dict::S('UI:Button:Cancel');
|
|
||||||
$sAdd = Dict::S('UI:Button:Add');
|
|
||||||
|
|
||||||
$oPage->add(
|
$oPage->add(
|
||||||
<<<HTML
|
<<<HTML
|
||||||
<form id="ObjectsAddForm_{$this->m_iInputId}">
|
<form id="ObjectsAddForm_{$this->m_iInputId}">
|
||||||
<div id="SearchResultsToAdd_{$this->m_iInputId}" style="vertical-align:top;height:100%;overflow:auto;padding:0;border:0;">
|
<div id="SearchResultsToAdd_{$this->m_iInputId}" style="vertical-align:top;height:100%;overflow:auto;padding:0;border:0;">
|
||||||
<div style="background: #fff; border:0; text-align:center; vertical-align:middle;"><p>{$sEmptyList}</p></div>
|
<div style="border:0; text-align:center; vertical-align:middle;"><p>{$sEmptyList}</p></div>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" id="count_{$this->m_iInputId}" value="0"/>
|
<input type="hidden" id="count_{$this->m_iInputId}" value="0"/>
|
||||||
</form>
|
</form>
|
||||||
HTML
|
HTML
|
||||||
);
|
);
|
||||||
|
|
||||||
$oPage->add_ready_script(
|
|
||||||
<<<JS
|
|
||||||
$('#dlg_{$this->m_iInputId}').dialog({
|
|
||||||
width: $(window).width()*0.8,
|
|
||||||
height: $(window).height()*0.8,
|
|
||||||
autoOpen: false,
|
|
||||||
modal: true,
|
|
||||||
resizeStop: oForeignKeysWidget{$this->m_iInputId}.UpdateSizes,
|
|
||||||
buttons: [
|
|
||||||
{
|
|
||||||
text: Dict.S('UI:Button:Cancel'),
|
|
||||||
class: "cancel ibo-is-alternative ibo-is-neutral",
|
|
||||||
click: function() {
|
|
||||||
$('#dlg_{$this->m_iInputId}').dialog('close');
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: Dict.S('UI:Button:Add'),
|
|
||||||
id: 'btn_ok_{$this->m_iInputId}',
|
|
||||||
class: "ok ibo-is-regular ibo-is-primary",
|
|
||||||
click: function() {
|
|
||||||
oForeignKeysWidget{$this->m_iInputId}.DoAddObjects(this.id);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
],
|
|
||||||
|
|
||||||
});
|
|
||||||
$('#dlg_{$this->m_iInputId}').dialog('option', {title:'$sTitle'});
|
|
||||||
$('#SearchFormToAdd_{$this->m_iInputId} form').on('submit.uilinksWizard', oForeignKeysWidget{$this->m_iInputId}.SearchObjectsToAdd);
|
|
||||||
$('#SearchFormToAdd_{$this->m_iInputId}').on('resize', oForeignKeysWidget{$this->m_iInputId}.UpdateSizes);
|
|
||||||
JS
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function GetFullListForeignKeysFromSelection($oPage, $oFullSetFilter)
|
public function GetFullListForeignKeysFromSelection($oPage, $oFullSetFilter)
|
||||||
@@ -119,31 +87,4 @@ JS
|
|||||||
IssueLog::Error($e->getMessage()."\nDebug trace:\n".$e->getTraceAsString());
|
IssueLog::Error($e->getMessage()."\nDebug trace:\n".$e->getTraceAsString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Search for objects to be linked to the current object (i.e "remote" objects)
|
|
||||||
*
|
|
||||||
* @param WebPage $oP The page used for the output (usually an AjaxWebPage)
|
|
||||||
* @param string $sRemoteClass Name of the "remote" class to perform the search on, must be a derived class of m_sRemoteClass
|
|
||||||
*
|
|
||||||
* @throws \Exception
|
|
||||||
*/
|
|
||||||
public function ListResultsSearchForeignKeys(WebPage $oP, $sRemoteClass = '')
|
|
||||||
{
|
|
||||||
if ($sRemoteClass != '') {
|
|
||||||
// assert(MetaModel::IsParentClass($this->m_sRemoteClass, $sRemoteClass));
|
|
||||||
$oFilter = new DBObjectSearch($sRemoteClass);
|
|
||||||
} else {
|
|
||||||
// No remote class specified use the one defined in the linkedset
|
|
||||||
$oFilter = new DBObjectSearch($this->m_sRemoteClass);
|
|
||||||
}
|
|
||||||
|
|
||||||
$oBlock = new DisplayBlock($oFilter, 'list', false);
|
|
||||||
$oBlock->Display(
|
|
||||||
$oP,
|
|
||||||
"ResultsToAdd_{$this->m_iInputId}",
|
|
||||||
['menu' => false, 'cssCount' => "#count_{$this->m_iInputId}", 'selection_mode' => true, 'table_id' => "add_{$this->m_iInputId}"]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -122,6 +122,11 @@ class utils
|
|||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
public const ENUM_SANITIZATION_FILTER_VARIABLE_NAME = 'variable_name';
|
public const ENUM_SANITIZATION_FILTER_VARIABLE_NAME = 'variable_name';
|
||||||
|
/**
|
||||||
|
* @var string For module codes (e.g. `itop-portal-base`, `combodo-webhook-integration`, `some-module-code-x.y`, ...)
|
||||||
|
* @since 3.2.3 3.3.0 N°8554
|
||||||
|
*/
|
||||||
|
public const ENUM_SANITIZATION_FILTER_MODULE_CODE = 'module_code';
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
* @since 2.7.10 3.0.0
|
* @since 2.7.10 3.0.0
|
||||||
@@ -181,6 +186,9 @@ class utils
|
|||||||
|
|
||||||
protected static function LoadParamFile($sParamFile)
|
protected static function LoadParamFile($sParamFile)
|
||||||
{
|
{
|
||||||
|
if (utils::RealPath($sParamFile, APPROOT) !== false) {
|
||||||
|
throw new Exception("File '".utils::HtmlEntities($sParamFile)."' should be outside iTop");
|
||||||
|
}
|
||||||
if (!file_exists($sParamFile)) {
|
if (!file_exists($sParamFile)) {
|
||||||
throw new Exception("Could not find the parameter file: '".utils::HtmlEntities($sParamFile)."'");
|
throw new Exception("Could not find the parameter file: '".utils::HtmlEntities($sParamFile)."'");
|
||||||
}
|
}
|
||||||
@@ -390,6 +398,7 @@ class utils
|
|||||||
* @since 2.7.10 N°6606 use the utils::ENUM_SANITIZATION_* const
|
* @since 2.7.10 N°6606 use the utils::ENUM_SANITIZATION_* const
|
||||||
* @since 2.7.10 N°6606 new case for ENUM_SANITIZATION_FILTER_PHP_CLASS
|
* @since 2.7.10 N°6606 new case for ENUM_SANITIZATION_FILTER_PHP_CLASS
|
||||||
* @since 3.2.1-1 N°8242 Allow value to be an array for every filter
|
* @since 3.2.1-1 N°8242 Allow value to be an array for every filter
|
||||||
|
* @since 3.2.3 3.3.0 N°8554 new case for ENUM_SANITIZATION_FILTER_MODULE_CODE
|
||||||
*
|
*
|
||||||
* @link https://www.php.net/manual/en/filter.filters.sanitize.php PHP sanitization filters
|
* @link https://www.php.net/manual/en/filter.filters.sanitize.php PHP sanitization filters
|
||||||
*/
|
*/
|
||||||
@@ -477,7 +486,7 @@ class utils
|
|||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// For XML / HTML node id selector
|
// For XML / HTML node selector
|
||||||
case static::ENUM_SANITIZATION_FILTER_ELEMENT_SELECTOR:
|
case static::ENUM_SANITIZATION_FILTER_ELEMENT_SELECTOR:
|
||||||
$retValue = filter_var(
|
$retValue = filter_var(
|
||||||
$value,
|
$value,
|
||||||
@@ -490,6 +499,15 @@ class utils
|
|||||||
$retValue = preg_replace('/[^a-zA-Z0-9_]/', '', $value);
|
$retValue = preg_replace('/[^a-zA-Z0-9_]/', '', $value);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case static::ENUM_SANITIZATION_FILTER_MODULE_CODE:
|
||||||
|
// Module codes allow all alphabets letters, numbers, dash and dot characters
|
||||||
|
$retValue = filter_var(
|
||||||
|
$value,
|
||||||
|
FILTER_VALIDATE_REGEXP,
|
||||||
|
['options' => ['regexp' => '/^[\p{L}\d.-]+$/u']]
|
||||||
|
);
|
||||||
|
break;
|
||||||
|
|
||||||
// For URL
|
// For URL
|
||||||
case static::ENUM_SANITIZATION_FILTER_URL:
|
case static::ENUM_SANITIZATION_FILTER_URL:
|
||||||
$retValue = filter_var($value, FILTER_SANITIZE_URL);
|
$retValue = filter_var($value, FILTER_SANITIZE_URL);
|
||||||
@@ -1284,7 +1302,7 @@ class utils
|
|||||||
* @throws \CoreException
|
* @throws \CoreException
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
public static function ExecITopScript(string $sScriptName, array $aArguments, string $sAuthUser = null, string $sAuthPwd = null)
|
public static function ExecITopScript(string $sScriptName, array $aArguments, ?string $sAuthUser = null, ?string $sAuthPwd = null)
|
||||||
{
|
{
|
||||||
$aDisabled = explode(', ', ini_get('disable_functions'));
|
$aDisabled = explode(', ', ini_get('disable_functions'));
|
||||||
if (in_array('exec', $aDisabled)) {
|
if (in_array('exec', $aDisabled)) {
|
||||||
@@ -1374,7 +1392,7 @@ class utils
|
|||||||
* @return string A path to a folder into which any module can store cache data
|
* @return string A path to a folder into which any module can store cache data
|
||||||
* The corresponding folder is created or cleaned upon code compilation
|
* The corresponding folder is created or cleaned upon code compilation
|
||||||
*/
|
*/
|
||||||
public static function GetCachePath(string $sEnvironment = null): string
|
public static function GetCachePath(?string $sEnvironment = null): string
|
||||||
{
|
{
|
||||||
if (is_null($sEnvironment)) {
|
if (is_null($sEnvironment)) {
|
||||||
$sEnvironment = MetaModel::GetEnvironment();
|
$sEnvironment = MetaModel::GetEnvironment();
|
||||||
@@ -1437,6 +1455,12 @@ class utils
|
|||||||
|
|
||||||
case iPopupMenuExtension::MENU_OBJLIST_TOOLKIT:
|
case iPopupMenuExtension::MENU_OBJLIST_TOOLKIT:
|
||||||
/** @var \DBObjectSet $param */
|
/** @var \DBObjectSet $param */
|
||||||
|
|
||||||
|
// Check if the user has the right to read the objects of this list, otherwise do not propose any action (eg. configure this list, export, etc.)
|
||||||
|
if (UserRights::IsActionAllowed($param->GetFilter()->GetClass(), UR_ACTION_READ, $param) !== UR_ALLOWED_YES) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
$oAppContext = new ApplicationContext();
|
$oAppContext = new ApplicationContext();
|
||||||
$sContext = $oAppContext->GetForLink(true);
|
$sContext = $oAppContext->GetForLink(true);
|
||||||
$sDataTableId = is_null($sDataTableId) ? '' : $sDataTableId;
|
$sDataTableId = is_null($sDataTableId) ? '' : $sDataTableId;
|
||||||
@@ -2081,7 +2105,9 @@ SQL;
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove any remaining nulls (for positions that weren't referenced)
|
// Remove any remaining nulls (for positions that weren't referenced)
|
||||||
$aReplacements = array_filter($aReplacements, static function ($val) { return $val !== null; });
|
$aReplacements = array_filter($aReplacements, static function ($val) {
|
||||||
|
return $val !== null;
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
// For non-positional, we need to map each position
|
// For non-positional, we need to map each position
|
||||||
$aReplacements = [];
|
$aReplacements = [];
|
||||||
@@ -3120,4 +3146,50 @@ TXT
|
|||||||
|
|
||||||
return $aTrace;
|
return $aTrace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* PHP unserialize encapsulation, allow throwing exception when not allowed object class is detected (for security hardening)
|
||||||
|
*
|
||||||
|
* @param string $data data to unserialize
|
||||||
|
* @param array $aOptions PHP @unserialise options
|
||||||
|
* @param bool $bThrowNotAllowedObjectClassException flag to throw exception
|
||||||
|
*
|
||||||
|
* @return mixed PHP @unserialise return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
public static function Unserialize(string $data, array $aOptions = ['allowed_classes' => false], bool $bThrowNotAllowedObjectClassException = true): mixed
|
||||||
|
{
|
||||||
|
$data = unserialize($data, $aOptions);
|
||||||
|
|
||||||
|
if ($bThrowNotAllowedObjectClassException) {
|
||||||
|
try {
|
||||||
|
self::AssertNoIncompleteClassDetected($data);
|
||||||
|
} catch (Exception $e) {
|
||||||
|
throw new CoreException('Unserialization failed because an incomplete class was detected.', [], '', $e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $data;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Assert that data provided doesn't contain any incomplete class.
|
||||||
|
*
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
public static function AssertNoIncompleteClassDetected(mixed $data): void
|
||||||
|
{
|
||||||
|
if (is_object($data)) {
|
||||||
|
if ($data instanceof __PHP_Incomplete_Class) {
|
||||||
|
throw new Exception('__PHP_Incomplete_Class_Name object detected');
|
||||||
|
}
|
||||||
|
foreach (get_object_vars($data) as $property) {
|
||||||
|
self::AssertNoIncompleteClassDetected($property);
|
||||||
|
}
|
||||||
|
} elseif (is_array($data)) {
|
||||||
|
foreach ($data as $value) {
|
||||||
|
self::AssertNoIncompleteClassDetected($value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"type": "project",
|
"type": "project",
|
||||||
"license": "AGPL-3.0-only",
|
"license": "AGPL-3.0-only",
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=8.1.0 <8.4.0",
|
"php": ">=8.1.0 <8.5.0",
|
||||||
"ext-ctype": "*",
|
"ext-ctype": "*",
|
||||||
"ext-dom": "*",
|
"ext-dom": "*",
|
||||||
"ext-gd": "*",
|
"ext-gd": "*",
|
||||||
@@ -12,38 +12,43 @@
|
|||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"ext-mysqli": "*",
|
"ext-mysqli": "*",
|
||||||
"ext-soap": "*",
|
"ext-soap": "*",
|
||||||
"apereo/phpcas": "~1.6.0",
|
"apereo/phpcas": "dev-master",
|
||||||
"firebase/php-jwt": "^6.4.0",
|
|
||||||
"guzzlehttp/guzzle": "^7.5.1",
|
"guzzlehttp/guzzle": "^7.5.1",
|
||||||
"league/oauth2-google": "^4.0.1",
|
"league/oauth2-google": "^4.0.1",
|
||||||
"nikic/php-parser": "dev-master",
|
"nikic/php-parser": "^4.14.0",
|
||||||
"pear/archive_tar": "~1.4.14",
|
"pear/archive_tar": "~1.4.14",
|
||||||
"pelago/emogrifier": "^7.2.0",
|
"pelago/emogrifier": "^7.2.0",
|
||||||
"psr/log": "^3.0.0",
|
"psr/log": "^3.0.0",
|
||||||
"scssphp/scssphp": "^1.12.1",
|
"scssphp/scssphp": "dev-combodo/1.x",
|
||||||
"soundasleep/html2text": "~2.1",
|
|
||||||
"symfony/console": "~6.4.0",
|
"symfony/console": "~6.4.0",
|
||||||
"symfony/dotenv": "~6.4.0",
|
"symfony/dotenv": "~6.4.0",
|
||||||
"symfony/form": "^6.4",
|
|
||||||
"symfony/framework-bundle": "~6.4.0",
|
"symfony/framework-bundle": "~6.4.0",
|
||||||
"symfony/http-foundation": "~6.4.0",
|
"symfony/http-foundation": "~6.4.0",
|
||||||
"symfony/http-kernel": "~6.4.0",
|
"symfony/http-kernel": "~6.4.0",
|
||||||
"symfony/mailer": "^6.4",
|
"symfony/runtime": "~6.4.0",
|
||||||
"symfony/security-csrf": "^6.4",
|
|
||||||
"symfony/twig-bundle": "~6.4.0",
|
"symfony/twig-bundle": "~6.4.0",
|
||||||
"symfony/validator" : "^6.4",
|
"symfony/var-dumper": "~6.4.0",
|
||||||
"symfony/yaml": "~6.4.0",
|
"symfony/yaml": "~6.4.0",
|
||||||
|
"symfony/mailer": "~6.4.0",
|
||||||
"tecnickcom/tcpdf": "^6.6.0",
|
"tecnickcom/tcpdf": "^6.6.0",
|
||||||
"thenetworg/oauth2-azure": "^2.0"
|
"thenetworg/oauth2-azure": "^2.0",
|
||||||
|
"soundasleep/html2text": "~2.1"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
"symfony/debug-bundle": "~6.4.0",
|
||||||
"symfony/stopwatch": "~6.4.0",
|
"symfony/stopwatch": "~6.4.0",
|
||||||
"symfony/web-profiler-bundle": "~6.4.0"
|
"symfony/web-profiler-bundle": "~6.4.0"
|
||||||
},
|
},
|
||||||
"repositories": [{
|
"repositories": [
|
||||||
"type": "vcs",
|
{
|
||||||
"url": "https://github.com/Combodo/PHP-Parser"
|
"type": "vcs",
|
||||||
}],
|
"url": "https://github.com/EsupPortail/phpCAS"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "vcs",
|
||||||
|
"url": "https://github.com/combodo-itop-libs/scssphp"
|
||||||
|
}
|
||||||
|
],
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"ext-libsodium": "Required to use the AttributeEncryptedString.",
|
"ext-libsodium": "Required to use the AttributeEncryptedString.",
|
||||||
"ext-openssl": "Can be used as a polyfill if libsodium is not installed",
|
"ext-openssl": "Can be used as a polyfill if libsodium is not installed",
|
||||||
@@ -63,7 +68,10 @@
|
|||||||
},
|
},
|
||||||
"sort-packages": true,
|
"sort-packages": true,
|
||||||
"classmap-authoritative": true,
|
"classmap-authoritative": true,
|
||||||
"platform-check": true
|
"platform-check": true,
|
||||||
|
"allow-plugins": {
|
||||||
|
"symfony/runtime": true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"classmap": [
|
"classmap": [
|
||||||
@@ -72,6 +80,7 @@
|
|||||||
"sources"
|
"sources"
|
||||||
],
|
],
|
||||||
"exclude-from-classmap": [
|
"exclude-from-classmap": [
|
||||||
|
"application/twigextension.class.inc.php",
|
||||||
"core/oql/build/PHP/",
|
"core/oql/build/PHP/",
|
||||||
"core/apc-emulation.php",
|
"core/apc-emulation.php",
|
||||||
"application/startup.inc.php",
|
"application/startup.inc.php",
|
||||||
@@ -91,7 +100,7 @@
|
|||||||
"extra": {
|
"extra": {
|
||||||
"symfony": {
|
"symfony": {
|
||||||
"allow-contrib": false,
|
"allow-contrib": false,
|
||||||
"require": "6.4.*"
|
"require": "3.4.*"
|
||||||
},
|
},
|
||||||
"runtime": {
|
"runtime": {
|
||||||
"dotenv_path": "resources/symfony/.env"
|
"dotenv_path": "resources/symfony/.env"
|
||||||
|
|||||||
1282
composer.lock
generated
@@ -234,10 +234,11 @@ abstract class Action extends cmdbAbstractObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
$oActionFilter = DBObjectSearch::FromOQL($sActionQueryOql, $aActionQueryParams);
|
$oActionFilter = DBObjectSearch::FromOQL($sActionQueryOql, $aActionQueryParams);
|
||||||
|
$oActionFilter->AllowAllData();
|
||||||
$oSet = new DBObjectSet($oActionFilter, ['date' => false]);
|
$oSet = new DBObjectSet($oActionFilter, ['date' => false]);
|
||||||
|
|
||||||
$sPanelTitle = Dict::Format('Action:last_executions_tab_panel_title', $sActionQueryLimit);
|
$sPanelTitle = Dict::Format('Action:last_executions_tab_panel_title', $sActionQueryLimit);
|
||||||
$oExecutionsListBlock = DataTableUIBlockFactory::MakeForResult($oPage, 'action_executions_list', $oSet, ['panel_title' => $sPanelTitle]);
|
$oExecutionsListBlock = DataTableUIBlockFactory::MakeForResult($oPage, 'action_executions_list', $oSet, ['panel_title' => $sPanelTitle, 'display_unauthorized_objects' => true]);
|
||||||
|
|
||||||
$oPage->AddUiBlock($oExecutionsListBlock);
|
$oPage->AddUiBlock($oExecutionsListBlock);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ class CellStatus_SearchIssue extends CellStatus_Issue
|
|||||||
* @param null $sAllowedValues : used for additional message that provides allowed values $sAllowedValues for current class
|
* @param null $sAllowedValues : used for additional message that provides allowed values $sAllowedValues for current class
|
||||||
* @param string|null $sAllowedValuesSearch : used to search all allowed values
|
* @param string|null $sAllowedValuesSearch : used to search all allowed values
|
||||||
*/
|
*/
|
||||||
public function __construct($sSerializedSearch, $sReason, $sClass = null, $sAllowedValues = null, string $sAllowedValuesSearch = null)
|
public function __construct($sSerializedSearch, $sReason, $sClass = null, $sAllowedValues = null, ?string $sAllowedValuesSearch = null)
|
||||||
{
|
{
|
||||||
parent::__construct(null, null, $sReason);
|
parent::__construct(null, null, $sReason);
|
||||||
$this->sSerializedSearch = $sSerializedSearch;
|
$this->sSerializedSearch = $sSerializedSearch;
|
||||||
@@ -876,7 +876,7 @@ class BulkChange
|
|||||||
return $aResults;
|
return $aResults;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function CreateObject(&$aResult, $iRow, $aRowData, CMDBChange $oChange = null)
|
protected function CreateObject(&$aResult, $iRow, $aRowData, ?CMDBChange $oChange = null)
|
||||||
{
|
{
|
||||||
$oTargetObj = MetaModel::NewObject($this->m_sClass);
|
$oTargetObj = MetaModel::NewObject($this->m_sClass);
|
||||||
|
|
||||||
@@ -965,7 +965,7 @@ class BulkChange
|
|||||||
* @throws \MySQLException
|
* @throws \MySQLException
|
||||||
* @throws \MySQLHasGoneAwayException
|
* @throws \MySQLHasGoneAwayException
|
||||||
*/
|
*/
|
||||||
protected function UpdateObject(&$aResult, $iRow, $oTargetObj, $aRowData, CMDBChange $oChange = null)
|
protected function UpdateObject(&$aResult, $iRow, $oTargetObj, $aRowData, ?CMDBChange $oChange = null)
|
||||||
{
|
{
|
||||||
$aResult[$iRow] = $this->PrepareObject($oTargetObj, $aRowData, $aErrors);
|
$aResult[$iRow] = $this->PrepareObject($oTargetObj, $aRowData, $aErrors);
|
||||||
|
|
||||||
@@ -1008,7 +1008,7 @@ class BulkChange
|
|||||||
*
|
*
|
||||||
* @throws \BulkChangeException
|
* @throws \BulkChangeException
|
||||||
*/
|
*/
|
||||||
protected function UpdateMissingObject(&$aResult, $iRow, $oTargetObj, CMDBChange $oChange = null)
|
protected function UpdateMissingObject(&$aResult, $iRow, $oTargetObj, ?CMDBChange $oChange = null)
|
||||||
{
|
{
|
||||||
$aResult[$iRow] = $this->PrepareMissingObject($oTargetObj, $aErrors);
|
$aResult[$iRow] = $this->PrepareMissingObject($oTargetObj, $aErrors);
|
||||||
|
|
||||||
@@ -1043,7 +1043,7 @@ class BulkChange
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function Process(CMDBChange $oChange = null)
|
public function Process(?CMDBChange $oChange = null)
|
||||||
{
|
{
|
||||||
if ($oChange) {
|
if ($oChange) {
|
||||||
CMDBObject::SetCurrentChange($oChange);
|
CMDBObject::SetCurrentChange($oChange);
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ define('DEFAULT_EXT_AUTH_VARIABLE', '$_SERVER[\'REMOTE_USER\']');
|
|||||||
define('DEFAULT_ENCRYPTION_KEY', '@iT0pEncr1pti0n!'); // We'll use a random generated key later (if possible)
|
define('DEFAULT_ENCRYPTION_KEY', '@iT0pEncr1pti0n!'); // We'll use a random generated key later (if possible)
|
||||||
define('DEFAULT_ENCRYPTION_LIB', 'Mcrypt'); // We'll define the best encryption available later
|
define('DEFAULT_ENCRYPTION_LIB', 'Mcrypt'); // We'll define the best encryption available later
|
||||||
define('DEFAULT_HASH_ALGO', PASSWORD_DEFAULT);
|
define('DEFAULT_HASH_ALGO', PASSWORD_DEFAULT);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Config
|
* Config
|
||||||
* configuration data (this class cannot not be localized, because it is responsible for loading the dictionaries)
|
* configuration data (this class cannot not be localized, because it is responsible for loading the dictionaries)
|
||||||
@@ -871,6 +872,14 @@ class Config
|
|||||||
'source_of_value' => '',
|
'source_of_value' => '',
|
||||||
'show_in_conf_sample' => false,
|
'show_in_conf_sample' => false,
|
||||||
],
|
],
|
||||||
|
'ext_auth_variable' => [
|
||||||
|
'type' => 'string',
|
||||||
|
'description' => 'External authentication expression (allowed: $_SERVER[\'key\'], $_COOKIE[\'key\'], $_REQUEST[\'key\'], getallheaders()[\'Header-Name\'])',
|
||||||
|
'default' => '$_SERVER[\'REMOTE_USER\']',
|
||||||
|
'value' => '$_SERVER[\'REMOTE_USER\']',
|
||||||
|
'source_of_value' => '',
|
||||||
|
'show_in_conf_sample' => false,
|
||||||
|
],
|
||||||
'login_debug' => [
|
'login_debug' => [
|
||||||
'type' => 'bool',
|
'type' => 'bool',
|
||||||
'description' => 'Activate the login FSM debug',
|
'description' => 'Activate the login FSM debug',
|
||||||
@@ -928,7 +937,7 @@ class Config
|
|||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'description' => 'Actions that are available as direct buttons next to the "Actions" menu',
|
'description' => 'Actions that are available as direct buttons next to the "Actions" menu',
|
||||||
// examples... not used
|
// examples... not used
|
||||||
'default' => 'UI:Menu:Modify,UI:Menu:New',
|
'default' => 'UI:Menu:Modify,UI:Menu:New,UI:Menu:impacts_down,UI:Menu:impacts_up',
|
||||||
'value' => 'UI:Menu:Modify',
|
'value' => 'UI:Menu:Modify',
|
||||||
'source_of_value' => '',
|
'source_of_value' => '',
|
||||||
'show_in_conf_sample' => true,
|
'show_in_conf_sample' => true,
|
||||||
@@ -1613,7 +1622,7 @@ class Config
|
|||||||
'show_in_conf_sample' => false,
|
'show_in_conf_sample' => false,
|
||||||
],
|
],
|
||||||
'search_manual_submit' => [
|
'search_manual_submit' => [
|
||||||
'type' => 'array',
|
'type' => 'bool',
|
||||||
'description' => 'Force manual submit of search all requests',
|
'description' => 'Force manual submit of search all requests',
|
||||||
'default' => false,
|
'default' => false,
|
||||||
'value' => true,
|
'value' => true,
|
||||||
@@ -1740,6 +1749,14 @@ class Config
|
|||||||
'source_of_value' => '',
|
'source_of_value' => '',
|
||||||
'show_in_conf_sample' => false,
|
'show_in_conf_sample' => false,
|
||||||
],
|
],
|
||||||
|
'security.disable_joined_classes_filter' => [
|
||||||
|
'type' => 'bool',
|
||||||
|
'description' => 'If true, scope filters aren\'t applied to joined classes or union classes not directly listed in the SELECT clause.',
|
||||||
|
'default' => true,
|
||||||
|
'value' => true,
|
||||||
|
'source_of_value' => '',
|
||||||
|
'show_in_conf_sample' => false,
|
||||||
|
],
|
||||||
'security.hide_administrators' => [
|
'security.hide_administrators' => [
|
||||||
'type' => 'bool',
|
'type' => 'bool',
|
||||||
'description' => 'If true, non-administrator users will not be able to see the administrator accounts, the Administrator profile and the links between the administrator accounts and their profiles.',
|
'description' => 'If true, non-administrator users will not be able to see the administrator accounts, the Administrator profile and the links between the administrator accounts and their profiles.',
|
||||||
@@ -1748,6 +1765,14 @@ class Config
|
|||||||
'source_of_value' => '',
|
'source_of_value' => '',
|
||||||
'show_in_conf_sample' => false,
|
'show_in_conf_sample' => false,
|
||||||
],
|
],
|
||||||
|
'security.disable_exec_forced_login_for_all_enpoints' => [
|
||||||
|
'type' => 'bool',
|
||||||
|
'description' => 'If true, when no delegated authentication module is defined, no login will be forced on modules exec endpoints',
|
||||||
|
'default' => true,
|
||||||
|
'value' => true,
|
||||||
|
'source_of_value' => '',
|
||||||
|
'show_in_conf_sample' => false,
|
||||||
|
],
|
||||||
'behind_reverse_proxy' => [
|
'behind_reverse_proxy' => [
|
||||||
'type' => 'bool',
|
'type' => 'bool',
|
||||||
'description' => 'If true, then proxies custom header (X-Forwarded-*) are taken into account. Use only if the webserver is not publicly accessible (reachable only by the reverse proxy)',
|
'description' => 'If true, then proxies custom header (X-Forwarded-*) are taken into account. Use only if the webserver is not publicly accessible (reachable only by the reverse proxy)',
|
||||||
@@ -1954,11 +1979,6 @@ class Config
|
|||||||
*/
|
*/
|
||||||
protected $m_sDefaultLanguage;
|
protected $m_sDefaultLanguage;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string Name of the PHP variable in which external authentication information is passed by the web server
|
|
||||||
*/
|
|
||||||
protected $m_sExtAuthVariable;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Encryption key used for all attributes of type "encrypted string". Can be set to a random value
|
* @var string Encryption key used for all attributes of type "encrypted string". Can be set to a random value
|
||||||
* unless you want to import a database from another iTop instance, in which case you must use
|
* unless you want to import a database from another iTop instance, in which case you must use
|
||||||
@@ -2027,7 +2047,6 @@ class Config
|
|||||||
$this->m_iFastReloadInterval = DEFAULT_FAST_RELOAD_INTERVAL;
|
$this->m_iFastReloadInterval = DEFAULT_FAST_RELOAD_INTERVAL;
|
||||||
$this->m_bSecureConnectionRequired = DEFAULT_SECURE_CONNECTION_REQUIRED;
|
$this->m_bSecureConnectionRequired = DEFAULT_SECURE_CONNECTION_REQUIRED;
|
||||||
$this->m_sDefaultLanguage = 'EN US';
|
$this->m_sDefaultLanguage = 'EN US';
|
||||||
$this->m_sExtAuthVariable = DEFAULT_EXT_AUTH_VARIABLE;
|
|
||||||
$this->m_aCharsets = [];
|
$this->m_aCharsets = [];
|
||||||
$this->m_bQueryCacheEnabled = DEFAULT_QUERY_CACHE_ENABLED;
|
$this->m_bQueryCacheEnabled = DEFAULT_QUERY_CACHE_ENABLED;
|
||||||
$this->m_iPasswordHashAlgo = DEFAULT_HASH_ALGO;
|
$this->m_iPasswordHashAlgo = DEFAULT_HASH_ALGO;
|
||||||
@@ -2173,7 +2192,6 @@ class Config
|
|||||||
$this->m_aModuleSettings = isset($MyModuleSettings) ? $MyModuleSettings : [];
|
$this->m_aModuleSettings = isset($MyModuleSettings) ? $MyModuleSettings : [];
|
||||||
|
|
||||||
$this->m_sDefaultLanguage = isset($MySettings['default_language']) ? trim($MySettings['default_language']) : 'EN US';
|
$this->m_sDefaultLanguage = isset($MySettings['default_language']) ? trim($MySettings['default_language']) : 'EN US';
|
||||||
$this->m_sExtAuthVariable = isset($MySettings['ext_auth_variable']) ? trim($MySettings['ext_auth_variable']) : DEFAULT_EXT_AUTH_VARIABLE;
|
|
||||||
$this->m_sEncryptionKey = isset($MySettings['encryption_key']) ? trim($MySettings['encryption_key']) : $this->m_sEncryptionKey;
|
$this->m_sEncryptionKey = isset($MySettings['encryption_key']) ? trim($MySettings['encryption_key']) : $this->m_sEncryptionKey;
|
||||||
$this->m_sEncryptionLibrary = isset($MySettings['encryption_library']) ? trim($MySettings['encryption_library']) : $this->m_sEncryptionLibrary;
|
$this->m_sEncryptionLibrary = isset($MySettings['encryption_library']) ? trim($MySettings['encryption_library']) : $this->m_sEncryptionLibrary;
|
||||||
$this->m_aCharsets = isset($MySettings['csv_import_charsets']) ? $MySettings['csv_import_charsets'] : [];
|
$this->m_aCharsets = isset($MySettings['csv_import_charsets']) ? $MySettings['csv_import_charsets'] : [];
|
||||||
@@ -2335,9 +2353,73 @@ class Config
|
|||||||
return explode('|', $this->m_aSettings['allowed_login_types']['value']);
|
return explode('|', $this->m_aSettings['allowed_login_types']['value']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return bool|mixed
|
||||||
|
* @since 3.2.3 return the parsed value instead of an unsecured variable name
|
||||||
|
*/
|
||||||
public function GetExternalAuthenticationVariable()
|
public function GetExternalAuthenticationVariable()
|
||||||
{
|
{
|
||||||
return $this->m_sExtAuthVariable;
|
$sExpression = $this->Get('ext_auth_variable');
|
||||||
|
$aParsed = $this->ParseExternalAuthVariableExpression($sExpression);
|
||||||
|
if ($aParsed === null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
$sKey = $aParsed['key'];
|
||||||
|
switch ($aParsed['type']) {
|
||||||
|
case 'server':
|
||||||
|
return $_SERVER[$sKey] ?? false;
|
||||||
|
case 'cookie':
|
||||||
|
return $_COOKIE[$sKey] ?? false;
|
||||||
|
case 'request':
|
||||||
|
return $_REQUEST[$sKey] ?? false;
|
||||||
|
case 'header':
|
||||||
|
if (!function_exists('getallheaders')) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
$aHeaders = getallheaders();
|
||||||
|
if (!is_array($aHeaders)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return $aHeaders[$sKey] ?? false;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param $sExpression
|
||||||
|
* @return array|null
|
||||||
|
*/
|
||||||
|
private function ParseExternalAuthVariableExpression($sExpression)
|
||||||
|
{
|
||||||
|
// If it's a configuration parameter it's probably already trimmed, but just in case
|
||||||
|
$sExpression = trim((string) $sExpression);
|
||||||
|
if ($sExpression === '') {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Match $_SERVER/$_COOKIE/$_REQUEST['key'] with optional whitespace and single/double quotes.
|
||||||
|
if (preg_match('/^\$_(SERVER|COOKIE|REQUEST)\s*\[\s*(["\'])\s*([^"\']+)\2\s*\]\s*$/', $sExpression, $aMatches) === 1) {
|
||||||
|
$sContext = strtoupper($aMatches[1]);
|
||||||
|
$sKey = $aMatches[3];
|
||||||
|
return [
|
||||||
|
'type' => strtolower($sContext),
|
||||||
|
'key' => $sKey,
|
||||||
|
'normalized' => '$_'.$sContext.'[\''.$sKey.'\']',
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
// Match getallheaders()['Header-Name'] in a case-insensitive way.
|
||||||
|
if (preg_match('/^getallheaders\(\)\s*\[\s*(["\'])\s*([^"\']+)\1\s*\]\s*$/i', $sExpression, $aMatches) === 1) {
|
||||||
|
$sKey = $aMatches[2];
|
||||||
|
return [
|
||||||
|
'type' => 'header',
|
||||||
|
'key' => $sKey,
|
||||||
|
'normalized' => 'getallheaders()[\''.$sKey.'\']',
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function GetCSVImportCharsets()
|
public function GetCSVImportCharsets()
|
||||||
@@ -2433,7 +2515,7 @@ class Config
|
|||||||
|
|
||||||
public function SetExternalAuthenticationVariable($sExtAuthVariable)
|
public function SetExternalAuthenticationVariable($sExtAuthVariable)
|
||||||
{
|
{
|
||||||
$this->m_sExtAuthVariable = $sExtAuthVariable;
|
$this->Set('ext_auth_variable', $sExtAuthVariable);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function SetEncryptionKey($sKey)
|
public function SetEncryptionKey($sKey)
|
||||||
@@ -2487,7 +2569,6 @@ class Config
|
|||||||
$aSettings['fast_reload_interval'] = $this->m_iFastReloadInterval;
|
$aSettings['fast_reload_interval'] = $this->m_iFastReloadInterval;
|
||||||
$aSettings['secure_connection_required'] = $this->m_bSecureConnectionRequired;
|
$aSettings['secure_connection_required'] = $this->m_bSecureConnectionRequired;
|
||||||
$aSettings['default_language'] = $this->m_sDefaultLanguage;
|
$aSettings['default_language'] = $this->m_sDefaultLanguage;
|
||||||
$aSettings['ext_auth_variable'] = $this->m_sExtAuthVariable;
|
|
||||||
$aSettings['encryption_key'] = $this->m_sEncryptionKey;
|
$aSettings['encryption_key'] = $this->m_sEncryptionKey;
|
||||||
$aSettings['encryption_library'] = $this->m_sEncryptionLibrary;
|
$aSettings['encryption_library'] = $this->m_sEncryptionLibrary;
|
||||||
$aSettings['csv_import_charsets'] = $this->m_aCharsets;
|
$aSettings['csv_import_charsets'] = $this->m_aCharsets;
|
||||||
@@ -2590,7 +2671,6 @@ class Config
|
|||||||
// Old fashioned remaining values
|
// Old fashioned remaining values
|
||||||
$aOtherValues = [
|
$aOtherValues = [
|
||||||
'default_language' => $this->m_sDefaultLanguage,
|
'default_language' => $this->m_sDefaultLanguage,
|
||||||
'ext_auth_variable' => $this->m_sExtAuthVariable,
|
|
||||||
'encryption_key' => $this->m_sEncryptionKey,
|
'encryption_key' => $this->m_sEncryptionKey,
|
||||||
'encryption_library' => $this->m_sEncryptionLibrary,
|
'encryption_library' => $this->m_sEncryptionLibrary,
|
||||||
'csv_import_charsets' => $this->m_aCharsets,
|
'csv_import_charsets' => $this->m_aCharsets,
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
* @license http://opensource.org/licenses/AGPL-3.0
|
* @license http://opensource.org/licenses/AGPL-3.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use Combodo\iTop\Application\Helper\ExportHelper;
|
||||||
use Combodo\iTop\Application\UI\Base\Component\FieldSet\FieldSetUIBlockFactory;
|
use Combodo\iTop\Application\UI\Base\Component\FieldSet\FieldSetUIBlockFactory;
|
||||||
use Combodo\iTop\Application\UI\Base\Component\Html\Html;
|
use Combodo\iTop\Application\UI\Base\Component\Html\Html;
|
||||||
use Combodo\iTop\Application\UI\Base\Component\Input\InputUIBlockFactory;
|
use Combodo\iTop\Application\UI\Base\Component\Input\InputUIBlockFactory;
|
||||||
@@ -13,7 +14,6 @@ use Combodo\iTop\Application\UI\Base\Component\Input\Select\SelectUIBlockFactory
|
|||||||
use Combodo\iTop\Application\UI\Base\Component\Panel\PanelUIBlockFactory;
|
use Combodo\iTop\Application\UI\Base\Component\Panel\PanelUIBlockFactory;
|
||||||
use Combodo\iTop\Application\UI\Base\Layout\MultiColumn\Column\ColumnUIBlockFactory;
|
use Combodo\iTop\Application\UI\Base\Layout\MultiColumn\Column\ColumnUIBlockFactory;
|
||||||
use Combodo\iTop\Application\UI\Base\Layout\MultiColumn\MultiColumnUIBlockFactory;
|
use Combodo\iTop\Application\UI\Base\Layout\MultiColumn\MultiColumnUIBlockFactory;
|
||||||
use Combodo\iTop\Application\Helper\ExportHelper;
|
|
||||||
use Combodo\iTop\Application\WebPage\Page;
|
use Combodo\iTop\Application\WebPage\Page;
|
||||||
use Combodo\iTop\Application\WebPage\WebPage;
|
use Combodo\iTop\Application\WebPage\WebPage;
|
||||||
|
|
||||||
@@ -55,6 +55,8 @@ class CSVBulkExport extends TabularBulkExport
|
|||||||
$this->aStatusInfo['charset'] = strtoupper(utils::ReadParam('charset', 'UTF-8', true, 'raw_data'));
|
$this->aStatusInfo['charset'] = strtoupper(utils::ReadParam('charset', 'UTF-8', true, 'raw_data'));
|
||||||
$this->aStatusInfo['formatted_text'] = (bool)utils::ReadParam('formatted_text', 0, true);
|
$this->aStatusInfo['formatted_text'] = (bool)utils::ReadParam('formatted_text', 0, true);
|
||||||
|
|
||||||
|
$this->aStatusInfo['ignore_excel_sanitization'] = (bool)utils::ReadParam('ignore_excel_sanitization', 0, true, utils::ENUM_SANITIZATION_FILTER_INTEGER);
|
||||||
|
|
||||||
$sDateFormatRadio = utils::ReadParam('csv_date_format_radio', '');
|
$sDateFormatRadio = utils::ReadParam('csv_date_format_radio', '');
|
||||||
switch ($sDateFormatRadio) {
|
switch ($sDateFormatRadio) {
|
||||||
case 'default':
|
case 'default':
|
||||||
@@ -223,6 +225,10 @@ class CSVBulkExport extends TabularBulkExport
|
|||||||
$oRadioCustom->GetInput()->AddCSSClass('ibo-input-checkbox');
|
$oRadioCustom->GetInput()->AddCSSClass('ibo-input-checkbox');
|
||||||
$oFieldSetDate->AddSubBlock($oRadioCustom);
|
$oFieldSetDate->AddSubBlock($oRadioCustom);
|
||||||
|
|
||||||
|
$oFieldSetSecurity = FieldSetUIBlockFactory::MakeStandard(Dict::S('Core:BulkExport:Security'));
|
||||||
|
$oMulticolumn->AddColumn(ColumnUIBlockFactory::MakeForBlock($oFieldSetSecurity));
|
||||||
|
$oFieldSetSecurity->AddSubBlock(ExportHelper::GetInputForSanitizeExcelExport());
|
||||||
|
|
||||||
$oP->add_ready_script(
|
$oP->add_ready_script(
|
||||||
<<<EOF
|
<<<EOF
|
||||||
$('#form_part_csv_options').on('preview_updated', function() { FormatDatesInPreview('csv', 'csv'); });
|
$('#form_part_csv_options').on('preview_updated', function() { FormatDatesInPreview('csv', 'csv'); });
|
||||||
@@ -264,6 +270,13 @@ EOF
|
|||||||
default:
|
default:
|
||||||
$sRet = trim($oObj->GetAsCSV($sAttCode), '"');
|
$sRet = trim($oObj->GetAsCSV($sAttCode), '"');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If the option to ignore Excel sanitization is not set or explicitly set to false, apply sanitization
|
||||||
|
if (!(array_key_exists('ignore_excel_sanitization', $this->aStatusInfo)) || $this->aStatusInfo['ignore_excel_sanitization'] === false) {
|
||||||
|
return ExportHelper::SanitizeField($sRet, $this->aStatusInfo['text_qualifier'] ?? '');
|
||||||
|
}
|
||||||
|
|
||||||
|
// The option to ignore Excel sanitization is explicitly set to true: return the raw value without sanitization
|
||||||
return $sRet;
|
return $sRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -337,6 +350,12 @@ EOF
|
|||||||
$sField = $oObj->GetAsCSV($sAttCode, $this->aStatusInfo['separator'], $this->aStatusInfo['text_qualifier'], $this->bLocalizeOutput, !$this->aStatusInfo['formatted_text']);
|
$sField = $oObj->GetAsCSV($sAttCode, $this->aStatusInfo['separator'], $this->aStatusInfo['text_qualifier'], $this->bLocalizeOutput, !$this->aStatusInfo['formatted_text']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If the option to ignore Excel sanitization is not set or absent, sanitize the field
|
||||||
|
if (!(array_key_exists('ignore_excel_sanitization', $this->aStatusInfo)) || $this->aStatusInfo['ignore_excel_sanitization'] === false) {
|
||||||
|
$sField = ExportHelper::SanitizeField($sField, $this->aStatusInfo['text_qualifier']);
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->aStatusInfo['charset'] != 'UTF-8') {
|
if ($this->aStatusInfo['charset'] != 'UTF-8') {
|
||||||
// Note: due to bugs in the glibc library it's safer to call iconv on the smallest possible string
|
// Note: due to bugs in the glibc library it's safer to call iconv on the smallest possible string
|
||||||
// and thus to convert field by field and not the whole row or file at once (see ticket N°991)
|
// and thus to convert field by field and not the whole row or file at once (see ticket N°991)
|
||||||
|
|||||||
@@ -425,7 +425,7 @@
|
|||||||
</php_parent>
|
</php_parent>
|
||||||
<parent>cmdbAbstractObject</parent>
|
<parent>cmdbAbstractObject</parent>
|
||||||
<properties>
|
<properties>
|
||||||
<category>core/cmdb,view_in_gui</category>
|
<category>core/cmdb,grant_by_profile,silo</category>
|
||||||
<abstract>false</abstract>
|
<abstract>false</abstract>
|
||||||
<key_type>autoincrement</key_type>
|
<key_type>autoincrement</key_type>
|
||||||
<db_table>priv_event_newsroom</db_table>
|
<db_table>priv_event_newsroom</db_table>
|
||||||
@@ -904,7 +904,7 @@
|
|||||||
<!-- Generated by toolkit/export-class-to-meta.php -->
|
<!-- Generated by toolkit/export-class-to-meta.php -->
|
||||||
<parent>Event</parent>
|
<parent>Event</parent>
|
||||||
<properties>
|
<properties>
|
||||||
<category>core/cmdb,view_in_gui</category>
|
<category>core/cmdb,grant_by_profile,silo</category>
|
||||||
</properties>
|
</properties>
|
||||||
<fields>
|
<fields>
|
||||||
<field id="message" xsi:type="AttributeText"/>
|
<field id="message" xsi:type="AttributeText"/>
|
||||||
|
|||||||
@@ -2567,7 +2567,7 @@ abstract class DBObject implements iDisplay
|
|||||||
*
|
*
|
||||||
* @see \RestUtils::FindObjectFromKey for the same check in the REST endpoint
|
* @see \RestUtils::FindObjectFromKey for the same check in the REST endpoint
|
||||||
*/
|
*/
|
||||||
final public function CheckChangedExtKeysValues(callable $oIsObjectLoadableCallback = null)
|
final public function CheckChangedExtKeysValues(?callable $oIsObjectLoadableCallback = null)
|
||||||
{
|
{
|
||||||
if (is_null($oIsObjectLoadableCallback)) {
|
if (is_null($oIsObjectLoadableCallback)) {
|
||||||
$oIsObjectLoadableCallback = function ($sClass, $sId) {
|
$oIsObjectLoadableCallback = function ($sClass, $sId) {
|
||||||
@@ -3727,7 +3727,7 @@ abstract class DBObject implements iDisplay
|
|||||||
* @throws \MySQLException
|
* @throws \MySQLException
|
||||||
* @throws \OQLException
|
* @throws \OQLException
|
||||||
*/
|
*/
|
||||||
private function ActivateOnObjectUpdateTriggers(?DBObject $oObject, array $aAttributes = null): void
|
private function ActivateOnObjectUpdateTriggers(?DBObject $oObject, ?array $aAttributes = null): void
|
||||||
{
|
{
|
||||||
if (is_null($oObject)) {
|
if (is_null($oObject)) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -1932,4 +1932,37 @@ class DBObjectSearch extends DBSearch
|
|||||||
{
|
{
|
||||||
return $this->GetCriteria()->ListParameters();
|
return $this->GetCriteria()->ListParameters();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritDoc
|
||||||
|
* @return DBObjectSearch
|
||||||
|
*/
|
||||||
|
protected function ApplyDataFilters(): DBObjectSearch
|
||||||
|
{
|
||||||
|
if ($this->IsAllDataAllowed() || $this->IsDataFiltered()) {
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
$oSearch = $this;
|
||||||
|
$aClassesToFilter = $this->GetSelectedClasses();
|
||||||
|
|
||||||
|
// Opt-in for joined classes filtering, otherwise only filter the selected class(es)
|
||||||
|
if (MetaModel::GetConfig()->Get('security.disable_joined_classes_filter') === false) {
|
||||||
|
$aClassesToFilter = $this->GetJoinedClasses();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Apply filter (this is similar to the one in DBSearch but the factorization could make it less readable)
|
||||||
|
foreach ($aClassesToFilter as $sClassAlias => $sClass) {
|
||||||
|
$oVisibleObjects = UserRights::GetSelectFilter($sClass, $this->GetModifierProperties('UserRightsGetSelectFilter'));
|
||||||
|
if ($oVisibleObjects === false) {
|
||||||
|
$oVisibleObjects = DBObjectSearch::FromEmptySet($sClass);
|
||||||
|
}
|
||||||
|
if (is_object($oVisibleObjects)) {
|
||||||
|
$oVisibleObjects->AllowAllData();
|
||||||
|
$oSearch = $oSearch->Filter($sClassAlias, $oVisibleObjects);
|
||||||
|
$oSearch->SetDataFiltered();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $oSearch;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -650,7 +650,7 @@ abstract class DBSearch
|
|||||||
*
|
*
|
||||||
* @throws OQLException
|
* @throws OQLException
|
||||||
*/
|
*/
|
||||||
public static function FromOQL($sQuery, $aParams = null, ModelReflection $oMetaModel = null)
|
public static function FromOQL($sQuery, $aParams = null, ?ModelReflection $oMetaModel = null)
|
||||||
{
|
{
|
||||||
if (empty($sQuery)) {
|
if (empty($sQuery)) {
|
||||||
return null;
|
return null;
|
||||||
@@ -1048,21 +1048,7 @@ abstract class DBSearch
|
|||||||
*/
|
*/
|
||||||
protected function GetSQLQuery($aOrderBy, $aArgs, $aAttToLoad, $aExtendedDataSpec, $iLimitCount, $iLimitStart, $bGetCount, $aGroupByExpr = null, $aSelectExpr = null)
|
protected function GetSQLQuery($aOrderBy, $aArgs, $aAttToLoad, $aExtendedDataSpec, $iLimitCount, $iLimitStart, $bGetCount, $aGroupByExpr = null, $aSelectExpr = null)
|
||||||
{
|
{
|
||||||
$oSearch = $this;
|
$oSearch = $this->ApplyDataFilters();
|
||||||
if (!$this->IsAllDataAllowed() && !$this->IsDataFiltered()) {
|
|
||||||
foreach ($this->GetSelectedClasses() as $sClassAlias => $sClass) {
|
|
||||||
$oVisibleObjects = UserRights::GetSelectFilter($sClass, $this->GetModifierProperties('UserRightsGetSelectFilter'));
|
|
||||||
if ($oVisibleObjects === false) {
|
|
||||||
// Make sure this is a valid search object, saying NO for all
|
|
||||||
$oVisibleObjects = DBObjectSearch::FromEmptySet($sClass);
|
|
||||||
}
|
|
||||||
if (is_object($oVisibleObjects)) {
|
|
||||||
$oVisibleObjects->AllowAllData();
|
|
||||||
$oSearch = $oSearch->Filter($sClassAlias, $oVisibleObjects);
|
|
||||||
$oSearch->SetDataFiltered();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (is_array($aGroupByExpr)) {
|
if (is_array($aGroupByExpr)) {
|
||||||
foreach ($aGroupByExpr as $sAlias => $oGroupByExp) {
|
foreach ($aGroupByExpr as $sAlias => $oGroupByExp) {
|
||||||
@@ -1524,4 +1510,33 @@ abstract class DBSearch
|
|||||||
* @return array{\VariableExpression}
|
* @return array{\VariableExpression}
|
||||||
*/
|
*/
|
||||||
abstract public function GetExpectedArguments(): array;
|
abstract public function GetExpectedArguments(): array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Apply data filters to the search, if needed
|
||||||
|
*
|
||||||
|
* @return DBSearch
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
protected function ApplyDataFilters(): DBSearch
|
||||||
|
{
|
||||||
|
if ($this->IsAllDataAllowed() || $this->IsDataFiltered()) {
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
$oSearch = $this;
|
||||||
|
$aClassesToFilter = $this->GetSelectedClasses();
|
||||||
|
|
||||||
|
foreach ($aClassesToFilter as $sClassAlias => $sClass) {
|
||||||
|
$oVisibleObjects = UserRights::GetSelectFilter($sClass, $this->GetModifierProperties('UserRightsGetSelectFilter'));
|
||||||
|
if ($oVisibleObjects === false) {
|
||||||
|
$oVisibleObjects = DBObjectSearch::FromEmptySet($sClass);
|
||||||
|
}
|
||||||
|
if (is_object($oVisibleObjects)) {
|
||||||
|
$oVisibleObjects->AllowAllData();
|
||||||
|
$oSearch = $oSearch->Filter($sClassAlias, $oVisibleObjects);
|
||||||
|
$oSearch->SetDataFiltered();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $oSearch;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ class DBUnionSearch extends DBSearch
|
|||||||
public function AllowAllData($bAllowAllData = true)
|
public function AllowAllData($bAllowAllData = true)
|
||||||
{
|
{
|
||||||
foreach ($this->aSearches as $oSearch) {
|
foreach ($this->aSearches as $oSearch) {
|
||||||
$oSearch->AllowAllData();
|
$oSearch->AllowAllData($bAllowAllData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -673,4 +673,30 @@ class DBUnionSearch extends DBSearch
|
|||||||
|
|
||||||
return $aVariableCriteria;
|
return $aVariableCriteria;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritDoc
|
||||||
|
* @return DBUnionSearch
|
||||||
|
*/
|
||||||
|
protected function ApplyDataFilters(): DBUnionSearch
|
||||||
|
{
|
||||||
|
if ($this->IsAllDataAllowed() || $this->IsDataFiltered()) {
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Opt-in for joined classes filtering, otherwise fallback on DBSearch filtering
|
||||||
|
if (MetaModel::GetConfig()->Get('security.disable_joined_classes_filter') === true) {
|
||||||
|
return parent::ApplyDataFilters();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Apply filters per sub-search
|
||||||
|
$aFilteredSearches = [];
|
||||||
|
foreach ($this->GetSearches() as $oSubSearch) {
|
||||||
|
// Recursively call ApplyDataFilters on sub-searches
|
||||||
|
$aFilteredSearches[] = $oSubSearch->ApplyDataFilters();
|
||||||
|
}
|
||||||
|
|
||||||
|
$oSearch = new DBUnionSearch($aFilteredSearches);
|
||||||
|
return $oSearch;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -453,7 +453,7 @@ class DesignElement extends \DOMElement
|
|||||||
* @throws Exception
|
* @throws Exception
|
||||||
* @since 3.1.2 3.2.0 N°6974
|
* @since 3.1.2 3.2.0 N°6974
|
||||||
*/
|
*/
|
||||||
public static function _FindNode(DOMNode $oParent, DesignElement $oRefNode, string $sSearchId = null): ?DesignElement
|
public static function _FindNode(DOMNode $oParent, DesignElement $oRefNode, ?string $sSearchId = null): ?DesignElement
|
||||||
{
|
{
|
||||||
$oNodes = self::_FindNodes($oParent, $oRefNode, $sSearchId);
|
$oNodes = self::_FindNodes($oParent, $oRefNode, $sSearchId);
|
||||||
if ($oNodes instanceof DOMNodeList) {
|
if ($oNodes instanceof DOMNodeList) {
|
||||||
@@ -477,7 +477,7 @@ class DesignElement extends \DOMElement
|
|||||||
* @return \DOMNodeList|false|mixed
|
* @return \DOMNodeList|false|mixed
|
||||||
* @since 3.1.2 3.2.0 N°6974
|
* @since 3.1.2 3.2.0 N°6974
|
||||||
*/
|
*/
|
||||||
public static function _FindNodes(DOMNode $oParent, DesignElement $oRefNode, string $sSearchId = null)
|
public static function _FindNodes(DOMNode $oParent, DesignElement $oRefNode, ?string $sSearchId = null)
|
||||||
{
|
{
|
||||||
if ($oParent instanceof DOMDocument) {
|
if ($oParent instanceof DOMDocument) {
|
||||||
$oDoc = $oParent->firstChild->ownerDocument;
|
$oDoc = $oParent->firstChild->ownerDocument;
|
||||||
|
|||||||
@@ -632,7 +632,7 @@ class DisplayableGroupNode extends DisplayableNode
|
|||||||
$this->aObjects = [];
|
$this->aObjects = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function AddObject(DBObject $oObj = null)
|
public function AddObject(?DBObject $oObj = null)
|
||||||
{
|
{
|
||||||
if (is_object($oObj)) {
|
if (is_object($oObj)) {
|
||||||
$sPrevClass = $this->GetObjectClass();
|
$sPrevClass = $this->GetObjectClass();
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class Event extends DBObject implements iDisplay
|
|||||||
{
|
{
|
||||||
$aParams =
|
$aParams =
|
||||||
[
|
[
|
||||||
"category" => "core/cmdb,view_in_gui",
|
"category" => "core/cmdb,grant_by_profile,silo",
|
||||||
"key_type" => "autoincrement",
|
"key_type" => "autoincrement",
|
||||||
"name_attcode" => "",
|
"name_attcode" => "",
|
||||||
"state_attcode" => "",
|
"state_attcode" => "",
|
||||||
@@ -120,7 +120,7 @@ class EventNotification extends Event
|
|||||||
{
|
{
|
||||||
$aParams =
|
$aParams =
|
||||||
[
|
[
|
||||||
"category" => "core/cmdb,view_in_gui",
|
"category" => "core/cmdb,grant_by_profile,silo",
|
||||||
"key_type" => "autoincrement",
|
"key_type" => "autoincrement",
|
||||||
"name_attcode" => "",
|
"name_attcode" => "",
|
||||||
"state_attcode" => "",
|
"state_attcode" => "",
|
||||||
@@ -156,7 +156,7 @@ class EventNotificationEmail extends EventNotification
|
|||||||
{
|
{
|
||||||
$aParams =
|
$aParams =
|
||||||
[
|
[
|
||||||
"category" => "core/cmdb,view_in_gui",
|
"category" => "core/cmdb,grant_by_profile,silo",
|
||||||
"key_type" => "autoincrement",
|
"key_type" => "autoincrement",
|
||||||
"name_attcode" => "",
|
"name_attcode" => "",
|
||||||
"state_attcode" => "",
|
"state_attcode" => "",
|
||||||
@@ -192,7 +192,7 @@ class EventIssue extends Event
|
|||||||
{
|
{
|
||||||
$aParams =
|
$aParams =
|
||||||
[
|
[
|
||||||
"category" => "core/cmdb,view_in_gui",
|
"category" => "core/cmdb,grant_by_profile,silo",
|
||||||
"key_type" => "autoincrement",
|
"key_type" => "autoincrement",
|
||||||
"name_attcode" => "",
|
"name_attcode" => "",
|
||||||
"state_attcode" => "",
|
"state_attcode" => "",
|
||||||
@@ -286,7 +286,7 @@ class EventWebService extends Event
|
|||||||
{
|
{
|
||||||
$aParams =
|
$aParams =
|
||||||
[
|
[
|
||||||
"category" => "core/cmdb,view_in_gui",
|
"category" => "core/cmdb,grant_by_profile,silo",
|
||||||
"key_type" => "autoincrement",
|
"key_type" => "autoincrement",
|
||||||
"name_attcode" => "",
|
"name_attcode" => "",
|
||||||
"state_attcode" => "",
|
"state_attcode" => "",
|
||||||
@@ -321,7 +321,7 @@ class EventRestService extends Event
|
|||||||
{
|
{
|
||||||
$aParams =
|
$aParams =
|
||||||
[
|
[
|
||||||
"category" => "core/cmdb,view_in_gui",
|
"category" => "core/cmdb,grant_by_profile,silo",
|
||||||
"key_type" => "autoincrement",
|
"key_type" => "autoincrement",
|
||||||
"name_attcode" => "",
|
"name_attcode" => "",
|
||||||
"state_attcode" => "",
|
"state_attcode" => "",
|
||||||
@@ -356,7 +356,7 @@ class EventLoginUsage extends Event
|
|||||||
{
|
{
|
||||||
$aParams =
|
$aParams =
|
||||||
[
|
[
|
||||||
"category" => "core/cmdb,view_in_gui",
|
"category" => "core/cmdb,grant_by_profile,silo",
|
||||||
"key_type" => "autoincrement",
|
"key_type" => "autoincrement",
|
||||||
"name_attcode" => "",
|
"name_attcode" => "",
|
||||||
"state_attcode" => "",
|
"state_attcode" => "",
|
||||||
@@ -394,7 +394,7 @@ class EventOnObject extends Event
|
|||||||
{
|
{
|
||||||
$aParams =
|
$aParams =
|
||||||
[
|
[
|
||||||
"category" => "core/cmdb,view_in_gui",
|
"category" => "core/cmdb,grant_by_profile,silo",
|
||||||
"key_type" => "autoincrement",
|
"key_type" => "autoincrement",
|
||||||
"name_attcode" => "",
|
"name_attcode" => "",
|
||||||
"state_attcode" => "",
|
"state_attcode" => "",
|
||||||
|
|||||||
@@ -5,13 +5,13 @@
|
|||||||
* @license http://opensource.org/licenses/AGPL-3.0
|
* @license http://opensource.org/licenses/AGPL-3.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use Combodo\iTop\Application\Helper\ExportHelper;
|
||||||
use Combodo\iTop\Application\UI\Base\Component\FieldSet\FieldSetUIBlockFactory;
|
use Combodo\iTop\Application\UI\Base\Component\FieldSet\FieldSetUIBlockFactory;
|
||||||
use Combodo\iTop\Application\UI\Base\Component\Html\Html;
|
use Combodo\iTop\Application\UI\Base\Component\Html\Html;
|
||||||
use Combodo\iTop\Application\UI\Base\Component\Input\InputUIBlockFactory;
|
use Combodo\iTop\Application\UI\Base\Component\Input\InputUIBlockFactory;
|
||||||
use Combodo\iTop\Application\UI\Base\Component\Panel\PanelUIBlockFactory;
|
use Combodo\iTop\Application\UI\Base\Component\Panel\PanelUIBlockFactory;
|
||||||
use Combodo\iTop\Application\UI\Base\Layout\MultiColumn\Column\ColumnUIBlockFactory;
|
use Combodo\iTop\Application\UI\Base\Layout\MultiColumn\Column\ColumnUIBlockFactory;
|
||||||
use Combodo\iTop\Application\UI\Base\Layout\MultiColumn\MultiColumnUIBlockFactory;
|
use Combodo\iTop\Application\UI\Base\Layout\MultiColumn\MultiColumnUIBlockFactory;
|
||||||
use Combodo\iTop\Application\Helper\ExportHelper;
|
|
||||||
use Combodo\iTop\Application\WebPage\Page;
|
use Combodo\iTop\Application\WebPage\Page;
|
||||||
use Combodo\iTop\Application\WebPage\WebPage;
|
use Combodo\iTop\Application\WebPage\WebPage;
|
||||||
|
|
||||||
@@ -63,6 +63,8 @@ class ExcelBulkExport extends TabularBulkExport
|
|||||||
// Export from the command line (or scripted) => default format is SQL, as in previous versions of iTop, unless specified otherwise
|
// Export from the command line (or scripted) => default format is SQL, as in previous versions of iTop, unless specified otherwise
|
||||||
$this->aStatusInfo['date_format'] = utils::ReadParam('date_format', (string)AttributeDateTime::GetSQLFormat(), true, 'raw_data');
|
$this->aStatusInfo['date_format'] = utils::ReadParam('date_format', (string)AttributeDateTime::GetSQLFormat(), true, 'raw_data');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->aStatusInfo['ignore_excel_sanitization'] = (bool)utils::ReadParam('ignore_excel_sanitization', 0, true, utils::ENUM_SANITIZATION_FILTER_INTEGER);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function EnumFormParts()
|
public function EnumFormParts()
|
||||||
@@ -121,6 +123,10 @@ class ExcelBulkExport extends TabularBulkExport
|
|||||||
$oRadioCustom->GetInput()->AddCSSClass('ibo-input-checkbox');
|
$oRadioCustom->GetInput()->AddCSSClass('ibo-input-checkbox');
|
||||||
$oFieldSetDate->AddSubBlock($oRadioCustom);
|
$oFieldSetDate->AddSubBlock($oRadioCustom);
|
||||||
|
|
||||||
|
$oFieldSetSecurity = FieldSetUIBlockFactory::MakeStandard(Dict::S('Core:BulkExport:Security'));
|
||||||
|
$oMulticolumn->AddColumn(ColumnUIBlockFactory::MakeForBlock($oFieldSetSecurity));
|
||||||
|
$oFieldSetSecurity->AddSubBlock(ExportHelper::GetInputForSanitizeExcelExport());
|
||||||
|
|
||||||
$oP->add_ready_script(
|
$oP->add_ready_script(
|
||||||
<<<EOF
|
<<<EOF
|
||||||
$('#form_part_xlsx_options').on('preview_updated', function() { FormatDatesInPreview('excel', 'xlsx'); });
|
$('#form_part_xlsx_options').on('preview_updated', function() { FormatDatesInPreview('excel', 'xlsx'); });
|
||||||
@@ -216,6 +222,12 @@ EOF
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If the option to ignore Excel sanitization is not set or absent, sanitize the field
|
||||||
|
if (!(array_key_exists('ignore_excel_sanitization', $this->aStatusInfo)) || $this->aStatusInfo['ignore_excel_sanitization'] === false) {
|
||||||
|
return ExportHelper::SanitizeField($sRet, '');
|
||||||
|
}
|
||||||
|
|
||||||
return $sRet;
|
return $sRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -298,6 +298,46 @@ N°8681 * @param string|null $sHtml The HTML fragment to process
|
|||||||
return $sHtml;
|
return $sHtml;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Replace <img> tags with a data-img-id attribute by the actual image in base64 representation
|
||||||
|
* so that the image can be displayed even if the download URL is not accessible (e.g. in unauthenticated approval templates)
|
||||||
|
*
|
||||||
|
* @param string $sHtml The HTML fragment to process
|
||||||
|
*
|
||||||
|
* @return String The modified HTML
|
||||||
|
* @since 3.2.3
|
||||||
|
*/
|
||||||
|
public static function ReplaceInlineImagesWithBase64Representation(string $sHtml): String
|
||||||
|
{
|
||||||
|
return preg_replace_callback(
|
||||||
|
'/<img\s+[^>]*'.static::DOM_ATTR_ID.'="(\d+)"[^>]*>/i',
|
||||||
|
function ($matches) {
|
||||||
|
|
||||||
|
// Extract inline image ID from the tag
|
||||||
|
$id = $matches[1];
|
||||||
|
|
||||||
|
try {
|
||||||
|
// Retrieve inline image
|
||||||
|
$oInline = MetaModel::GetObject(InlineImage::class, $id, true, true);
|
||||||
|
$oOrmDocument = $oInline->Get('contents');
|
||||||
|
|
||||||
|
// Replace src image by the base64 representation
|
||||||
|
$sInlineImageAsBase64 = base64_encode($oOrmDocument->GetData());
|
||||||
|
$sDataUri = 'data:'.$oOrmDocument->GetMimeType().';base64,'.$sInlineImageAsBase64;
|
||||||
|
$sImage = preg_replace('/src=["\'][^"\']+["\']/', 'src="'.$sDataUri.'"', $matches[0]);
|
||||||
|
|
||||||
|
// Remove sensitive information (the image ID and secret) from the tag
|
||||||
|
$sImage = preg_replace('/'.static::DOM_ATTR_ID.'="\d+"\s+'.static::DOM_ATTR_SECRET.'="\w+"/', '', $sImage);
|
||||||
|
} catch (Exception $e) {
|
||||||
|
$sImage = '<img src="" alt="'.Dict::S('UI:MissingInlineImage').'">';
|
||||||
|
}
|
||||||
|
|
||||||
|
return $sImage;
|
||||||
|
},
|
||||||
|
$sHtml
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add an extra attribute data-img-id for images which are based on an actual InlineImage
|
* Add an extra attribute data-img-id for images which are based on an actual InlineImage
|
||||||
* so that we can later reconstruct the full "src" URL when needed
|
* so that we can later reconstruct the full "src" URL when needed
|
||||||
|
|||||||
@@ -691,7 +691,7 @@ abstract class LogAPI
|
|||||||
static::$m_oMockMetaModelConfig = $oMetaModelConfig;
|
static::$m_oMockMetaModelConfig = $oMetaModelConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function Exception(string $sMessage, throwable $oException, string $sChannel = null, array $aContext = []): void
|
public static function Exception(string $sMessage, throwable $oException, ?string $sChannel = null, array $aContext = []): void
|
||||||
{
|
{
|
||||||
$aErrorLogs = [];
|
$aErrorLogs = [];
|
||||||
$aErrorLogs[] = static::PrepareErrorLog($sMessage, $oException, $aContext);
|
$aErrorLogs[] = static::PrepareErrorLog($sMessage, $oException, $aContext);
|
||||||
|
|||||||
@@ -1656,7 +1656,7 @@ class PHP_ParserGenerator_Data
|
|||||||
function emit_code($out, PHP_ParserGenerator_Rule $rp, &$lineno)
|
function emit_code($out, PHP_ParserGenerator_Rule $rp, &$lineno)
|
||||||
{
|
{
|
||||||
$linecnt = 0;
|
$linecnt = 0;
|
||||||
|
|
||||||
/* Generate code to do the reduce action */
|
/* Generate code to do the reduce action */
|
||||||
if ($rp->code) {
|
if ($rp->code) {
|
||||||
$this->tplt_linedir($out, $rp->line, $this->filename);
|
$this->tplt_linedir($out, $rp->line, $this->filename);
|
||||||
|
|||||||
@@ -1084,7 +1084,7 @@ static public $yy_action = array(
|
|||||||
function yy_find_shift_action($iLookAhead)
|
function yy_find_shift_action($iLookAhead)
|
||||||
{
|
{
|
||||||
$stateno = $this->yystack[$this->yyidx]->stateno;
|
$stateno = $this->yystack[$this->yyidx]->stateno;
|
||||||
|
|
||||||
/* if ($this->yyidx < 0) return self::YY_NO_ACTION; */
|
/* if ($this->yyidx < 0) return self::YY_NO_ACTION; */
|
||||||
if (!isset(self::$yy_shift_ofst[$stateno])) {
|
if (!isset(self::$yy_shift_ofst[$stateno])) {
|
||||||
// no shift actions
|
// no shift actions
|
||||||
@@ -1767,7 +1767,7 @@ throw new OQLParserParseFailureException($this->m_sSourceQuery, $this->m_iLine,
|
|||||||
function yy_syntax_error($yymajor, $TOKEN)
|
function yy_syntax_error($yymajor, $TOKEN)
|
||||||
{
|
{
|
||||||
#line 25 "..\oql-parser.y"
|
#line 25 "..\oql-parser.y"
|
||||||
|
|
||||||
throw new OQLParserSyntaxErrorException($this->m_sSourceQuery, $this->m_iLine, $this->m_iCol, $this->tokenName($yymajor), $TOKEN);
|
throw new OQLParserSyntaxErrorException($this->m_sSourceQuery, $this->m_iLine, $this->m_iCol, $this->tokenName($yymajor), $TOKEN);
|
||||||
#line 1779 "..\oql-parser.php"
|
#line 1779 "..\oql-parser.php"
|
||||||
}
|
}
|
||||||
@@ -1806,7 +1806,7 @@ throw new OQLParserSyntaxErrorException($this->m_sSourceQuery, $this->m_iLine, $
|
|||||||
// $yyact; /* The parser action. */
|
// $yyact; /* The parser action. */
|
||||||
// $yyendofinput; /* True if we are at the end of input */
|
// $yyendofinput; /* True if we are at the end of input */
|
||||||
$yyerrorhit = 0; /* True if yymajor has invoked an error */
|
$yyerrorhit = 0; /* True if yymajor has invoked an error */
|
||||||
|
|
||||||
/* (re)initialize the parser, if necessary */
|
/* (re)initialize the parser, if necessary */
|
||||||
if ($this->yyidx === null || $this->yyidx < 0) {
|
if ($this->yyidx === null || $this->yyidx < 0) {
|
||||||
/* if ($yymajor == 0) return; // not sure why this was here... */
|
/* if ($yymajor == 0) return; // not sure why this was here... */
|
||||||
@@ -1819,7 +1819,7 @@ throw new OQLParserSyntaxErrorException($this->m_sSourceQuery, $this->m_iLine, $
|
|||||||
array_push($this->yystack, $x);
|
array_push($this->yystack, $x);
|
||||||
}
|
}
|
||||||
$yyendofinput = ($yymajor==0);
|
$yyendofinput = ($yymajor==0);
|
||||||
|
|
||||||
if (self::$yyTraceFILE) {
|
if (self::$yyTraceFILE) {
|
||||||
fprintf(
|
fprintf(
|
||||||
self::$yyTraceFILE,
|
self::$yyTraceFILE,
|
||||||
@@ -1828,7 +1828,7 @@ throw new OQLParserSyntaxErrorException($this->m_sSourceQuery, $this->m_iLine, $
|
|||||||
self::$yyTokenName[$yymajor]
|
self::$yyTokenName[$yymajor]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
do {
|
do {
|
||||||
$yyact = $this->yy_find_shift_action($yymajor);
|
$yyact = $this->yy_find_shift_action($yymajor);
|
||||||
if ($yymajor < self::YYERRORSYMBOL
|
if ($yymajor < self::YYERRORSYMBOL
|
||||||
@@ -2002,7 +2002,7 @@ class OQLParser extends OQLParserRaw
|
|||||||
$this->m_sSourceQuery = $sQuery;
|
$this->m_sSourceQuery = $sQuery;
|
||||||
// no constructor - parent::__construct();
|
// no constructor - parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function doParse($token, $value, $iCurrPosition = 0)
|
public function doParse($token, $value, $iCurrPosition = 0)
|
||||||
{
|
{
|
||||||
$this->m_iColPrev = $this->m_iCol;
|
$this->m_iColPrev = $this->m_iCol;
|
||||||
@@ -2016,7 +2016,7 @@ class OQLParser extends OQLParserRaw
|
|||||||
$this->doParse(0, 0);
|
$this->doParse(0, 0);
|
||||||
return $this->my_result;
|
return $this->my_result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __destruct()
|
public function __destruct()
|
||||||
{
|
{
|
||||||
// Bug in the original destructor, causing an infinite loop !
|
// Bug in the original destructor, causing an infinite loop !
|
||||||
|
|||||||
@@ -370,7 +370,7 @@ class ormCaseLog
|
|||||||
/**
|
/**
|
||||||
* Produces an HTML representation, aimed at being used within the iTop framework
|
* Produces an HTML representation, aimed at being used within the iTop framework
|
||||||
*/
|
*/
|
||||||
public function GetAsHTML(WebPage $oP = null, $bEditMode = false, $aTransfoHandler = null)
|
public function GetAsHTML(?WebPage $oP = null, $bEditMode = false, $aTransfoHandler = null)
|
||||||
{
|
{
|
||||||
$bPrintableVersion = (utils::ReadParam('printable', '0') == '1');
|
$bPrintableVersion = (utils::ReadParam('printable', '0') == '1');
|
||||||
|
|
||||||
|
|||||||
@@ -350,20 +350,22 @@ class ormDocument
|
|||||||
if (!is_object($oObj)) {
|
if (!is_object($oObj)) {
|
||||||
// If access to the document is not granted, check if the access to the host object is allowed
|
// If access to the document is not granted, check if the access to the host object is allowed
|
||||||
$oObj = MetaModel::GetObject($sClass, $id, false, true);
|
$oObj = MetaModel::GetObject($sClass, $id, false, true);
|
||||||
|
$bHasHostRights = false;
|
||||||
if ($oObj instanceof Attachment) {
|
if ($oObj instanceof Attachment) {
|
||||||
$sItemClass = $oObj->Get('item_class');
|
$sItemClass = $oObj->Get('item_class');
|
||||||
$sItemId = $oObj->Get('item_id');
|
$sItemId = $oObj->Get('item_id');
|
||||||
$oHost = MetaModel::GetObject($sItemClass, $sItemId, false, false);
|
$oHost = MetaModel::GetObject($sItemClass, $sItemId, false, false);
|
||||||
if (!is_object($oHost)) {
|
if (is_object($oHost)) {
|
||||||
$oObj = null;
|
$bHasHostRights = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!is_object($oObj)) {
|
|
||||||
|
// We could neither read the object nor get a host object matching our rights
|
||||||
|
if ($bHasHostRights !== true) {
|
||||||
throw new Exception("Invalid id ($id) for class '$sClass' - the object does not exist or you are not allowed to view it");
|
throw new Exception("Invalid id ($id) for class '$sClass' - the object does not exist or you are not allowed to view it");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (($sSecretField != null) && ($oObj->Get($sSecretField) != $sSecretValue)) {
|
if (($sSecretField != null) && !hash_equals($oObj->Get($sSecretField), $sSecretValue)) {
|
||||||
usleep(200);
|
|
||||||
throw new Exception("Invalid secret for class '$sClass' - the object does not exist or you are not allowed to view it");
|
throw new Exception("Invalid secret for class '$sClass' - the object does not exist or you are not allowed to view it");
|
||||||
}
|
}
|
||||||
/** @var \ormDocument $oDocument */
|
/** @var \ormDocument $oDocument */
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ class ormLinkSet implements iDBObjectSetIterator, Iterator, SeekableIterator
|
|||||||
* @param DBObjectSet|null $oOriginalSet
|
* @param DBObjectSet|null $oOriginalSet
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function __construct($sHostClass, $sAttCode, DBObjectSet $oOriginalSet = null)
|
public function __construct($sHostClass, $sAttCode, ?DBObjectSet $oOriginalSet = null)
|
||||||
{
|
{
|
||||||
$this->sHostClass = $sHostClass;
|
$this->sHostClass = $sHostClass;
|
||||||
$this->sAttCode = $sAttCode;
|
$this->sAttCode = $sAttCode;
|
||||||
@@ -470,17 +470,6 @@ class ormLinkSet implements iDBObjectSetIterator, Iterator, SeekableIterator
|
|||||||
|| ($this->oOriginalSet->GetFilter()->ToOQL() == $oFellow->oOriginalSet->GetFilter()->ToOQL())) {
|
|| ($this->oOriginalSet->GetFilter()->ToOQL() == $oFellow->oOriginalSet->GetFilter()->ToOQL())) {
|
||||||
$bUpdateFromDelta = true;
|
$bUpdateFromDelta = true;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
//@since 3.2.2 N°2364 - API : remove old linkedset persistance
|
|
||||||
/* Goo pattern to use:
|
|
||||||
* $oCISet = $oTicket->Get(‘functioncis_list’);
|
|
||||||
* $oCISet->AddItem(MetaModel::NewObject(‘lnkFunctionCIToTicket’, array(‘ci_id’=> 12345));
|
|
||||||
* $oCISet->RemoveItem(123456);
|
|
||||||
* $oTicket->Set(‘functionalcis_list’, $oCISet);
|
|
||||||
*/
|
|
||||||
if (!ContextTag::Check(ContextTag::TAG_SETUP)) {
|
|
||||||
DeprecatedCallsLog::NotifyDeprecatedPhpMethod('old pattern - please get previous value of the linked set, modify it and set it back to the host object');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($bUpdateFromDelta) {
|
if ($bUpdateFromDelta) {
|
||||||
|
|||||||
@@ -1182,7 +1182,7 @@ class UserRights
|
|||||||
return self::$m_oUser->GetKey();
|
return self::$m_oUser->GetKey();
|
||||||
} else {
|
} else {
|
||||||
// find the id out of the login string
|
// find the id out of the login string
|
||||||
$oUser = self::FindUser($sLogin);
|
$oUser = self::FindUser($sLogin, bAllowDisabledUsers: true);
|
||||||
if (is_null($oUser)) {
|
if (is_null($oUser)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -1375,7 +1375,7 @@ class UserRights
|
|||||||
if (empty($sLogin)) {
|
if (empty($sLogin)) {
|
||||||
$oUser = self::$m_oUser;
|
$oUser = self::$m_oUser;
|
||||||
} else {
|
} else {
|
||||||
$oUser = self::FindUser($sLogin);
|
$oUser = self::FindUser($sLogin, bAllowDisabledUsers: true);
|
||||||
}
|
}
|
||||||
if (is_null($oUser)) {
|
if (is_null($oUser)) {
|
||||||
return '';
|
return '';
|
||||||
|
|||||||
@@ -56,6 +56,8 @@ $ibo-shame--slider--is-round--border-radius: 20px !default;
|
|||||||
$ibo-shame--slider--is-round--before--border-radius: 7px !default;
|
$ibo-shame--slider--is-round--before--border-radius: 7px !default;
|
||||||
|
|
||||||
|
|
||||||
|
$ibo-blockquote--color: $ibo-body-text-color !default;
|
||||||
|
|
||||||
// N°2847 - Recolor svg illustrations with iTop's primary color
|
// N°2847 - Recolor svg illustrations with iTop's primary color
|
||||||
.ibo-svg-illustration--container > svg *[fill="#6c63ff"]{
|
.ibo-svg-illustration--container > svg *[fill="#6c63ff"]{
|
||||||
fill: $ibo-svg-illustration--fill;
|
fill: $ibo-svg-illustration--fill;
|
||||||
@@ -126,3 +128,11 @@ input:checked + .slider:before {
|
|||||||
.slider.round:before {
|
.slider.round:before {
|
||||||
border-radius: $ibo-shame--slider--is-round--before--border-radius;
|
border-radius: $ibo-shame--slider--is-round--before--border-radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Bulma sets blockquote background color through a variable, it affects ckeditor and html display.
|
||||||
|
This rule is needed harmonize the blockquote text color in both contexts.
|
||||||
|
*/
|
||||||
|
.ibo-is-html-content blockquote {
|
||||||
|
color: $ibo-blockquote--color;
|
||||||
|
}
|
||||||
@@ -4,3 +4,4 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@import "bulk-modify";
|
@import "bulk-modify";
|
||||||
|
@import "bulk-export";
|
||||||
|
|||||||
10
css/backoffice/application/bulk/_bulk-export.scss
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* @copyright Copyright (C) 2010-2026 Combodo SAS
|
||||||
|
* @license http://opensource.org/licenses/AGPL-3.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
#form_part_csv_options:has(#ibo-sanitize-excel-export--input:checked), #form_part_xlsx_options:has(#ibo-sanitize-excel-export--input:checked){
|
||||||
|
#ibo-sanitize-excel-export--alert {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -72,9 +72,12 @@ $ibo-panel--icon--spacing--as-medallion--is-sticking: $ibo-panel--icon--spacing-
|
|||||||
$ibo-panel--icon--bottom--as-medallion--is-sticking: -12px !default;
|
$ibo-panel--icon--bottom--as-medallion--is-sticking: -12px !default;
|
||||||
$ibo-panel--icon--border--as-medallion--is-sticking: 1px $ibo-panel--base-border-style $ibo-panel--base-border-color !default;
|
$ibo-panel--icon--border--as-medallion--is-sticking: 1px $ibo-panel--base-border-style $ibo-panel--base-border-color !default;
|
||||||
|
|
||||||
$ibo-panel--icon-background--size--must-contain: contain !default;
|
$ibo-panel--icon-background--size--must-contain: contain !default; // deprecated, to be removed in favor of $ibo-panel--icon-img--size--must-contain
|
||||||
$ibo-panel--icon-background--size--must-cover: cover !default;
|
$ibo-panel--icon-background--size--must-cover: cover !default; // deprecated, to be removed in favor of $ibo-panel--icon-img--size--must-cover
|
||||||
$ibo-panel--icon-background--size--must-zoomout: 66.67% !default;
|
$ibo-panel--icon-background--size--must-zoomout: 66.67% !default; // deprecated, to be removed in favor of $ibo-panel--icon-img--size--must-zoomout
|
||||||
|
$ibo-panel--icon-img--size--must-contain: $ibo-panel--icon-background--size--must-contain !default; // TODO remove when dealing with N°9317
|
||||||
|
$ibo-panel--icon-img--size--must-cover: $ibo-panel--icon-background--size--must-cover !default; // TODO remove when dealing with N°9317
|
||||||
|
$ibo-panel--icon-img--size--must-zoomout: $ibo-panel--icon-background--size--must-zoomout !default; // TODO remove when dealing with N°9317
|
||||||
|
|
||||||
$ibo-panel--title--font-size--is-sticking: $ibo-font-size-150 !default;
|
$ibo-panel--title--font-size--is-sticking: $ibo-font-size-150 !default;
|
||||||
$ibo-panel--title--color: $ibo-color-grey-900 !default;
|
$ibo-panel--title--color: $ibo-color-grey-900 !default;
|
||||||
@@ -179,24 +182,29 @@ $ibo-panel--is-selectable--body--after--font-size: $ibo-font-size-700 !default;
|
|||||||
min-height: $ibo-panel--icon--size;
|
min-height: $ibo-panel--icon--size;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ibo-panel--icon-background {
|
.ibo-panel--icon-img, .ibo-panel--icon-background { // second class is deprecated, remove it when dealing with N°9317
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
object-position: center;
|
||||||
|
object-fit: $ibo-panel--icon-img--size--must-contain;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: $ibo-panel--icon-background--size--must-contain;
|
background-size: $ibo-panel--icon-img--size--must-contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ibo-panel--icon-background--must-contain {
|
.ibo-panel--icon-img--must-contain, .ibo-panel--icon-background--must-contain { // second class is deprecated, remove it when dealing with N°9317
|
||||||
background-size: $ibo-panel--icon-background--size--must-contain;
|
object-fit: $ibo-panel--icon-img--size--must-contain;
|
||||||
|
background-size: $ibo-panel--icon-img--size--must-contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ibo-panel--icon-background--must-cover {
|
.ibo-panel--icon-img--must-cover, .ibo-panel--icon-background--must-cover { // second class is deprecated, remove it when dealing with N°9317
|
||||||
background-size: $ibo-panel--icon-background--size--must-cover;
|
object-fit: $ibo-panel--icon-img--size--must-cover;
|
||||||
|
background-size: $ibo-panel--icon-img--size--must-cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ibo-panel--icon-background--must-zoomout {
|
.ibo-panel--icon-img--must-zoomout, .ibo-panel--icon-background--must-zoomout { // second class is deprecated, remove it when dealing with N°9317
|
||||||
background-size: $ibo-panel--icon-background--size--must-zoomout;
|
width: $ibo-panel--icon-img--size--must-zoomout;
|
||||||
|
height: $ibo-panel--icon-img--size--must-zoomout;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ibo-panel--title {
|
.ibo-panel--title {
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ $ibo-search-form-panel--more-criteria--color: $ibo-color-blue-grey-800 !default;
|
|||||||
$ibo-search-form-panel--more-criteria--background-color: $ibo-color-white-100 !default;
|
$ibo-search-form-panel--more-criteria--background-color: $ibo-color-white-100 !default;
|
||||||
$ibo-search-form-panel--more-criteria--icon--color: $ibo-color-primary-600 !default;
|
$ibo-search-form-panel--more-criteria--icon--color: $ibo-color-primary-600 !default;
|
||||||
$ibo-search-form-panel--more-criteria--border-color: $ibo-search-form-panel--criteria--border-color !default;
|
$ibo-search-form-panel--more-criteria--border-color: $ibo-search-form-panel--criteria--border-color !default;
|
||||||
|
// calc is redundant but avoid SCSS min() from being used instead of CSS min()
|
||||||
|
$ibo-search-form-panel--criteria--max-height: calc(min(#{$ibo-size-750}, 50vh)) !default;
|
||||||
|
|
||||||
$ibo-search-form-panel--items--hover--color: $ibo-color-grey-200 !default;
|
$ibo-search-form-panel--items--hover--color: $ibo-color-grey-200 !default;
|
||||||
|
|
||||||
@@ -278,9 +280,10 @@ $ibo-search-results-area--datatable-scrollhead--border--is-sticking: $ibo-search
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sfc_form_group {
|
.sfc_form_group {
|
||||||
display: block;
|
display: flex;
|
||||||
margin-top: -1px;
|
flex-direction: column;
|
||||||
z-index: -1;
|
margin-top: -1px;
|
||||||
|
z-index: -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -346,11 +349,15 @@ $ibo-search-results-area--datatable-scrollhead--border--is-sticking: $ibo-search
|
|||||||
display: none;
|
display: none;
|
||||||
max-width: 450px;
|
max-width: 450px;
|
||||||
width: max-content;
|
width: max-content;
|
||||||
max-height: 520px;
|
max-height: $ibo-search-form-panel--criteria--max-height;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
|
|
||||||
.sfc_fg_operators {
|
.sfc_fg_operators {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
overflow: auto;
|
||||||
|
min-height: 0;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
|
||||||
.sfc_fg_operator {
|
.sfc_fg_operator {
|
||||||
@@ -387,6 +394,9 @@ $ibo-search-results-area--datatable-scrollhead--border--is-sticking: $ibo-search
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sfc_opc_multichoices {
|
.sfc_opc_multichoices {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
height: 100%;
|
||||||
label > input {
|
label > input {
|
||||||
vertical-align: text-top;
|
vertical-align: text-top;
|
||||||
margin-left: $ibo-spacing-0;
|
margin-left: $ibo-spacing-0;
|
||||||
@@ -398,7 +408,6 @@ $ibo-search-results-area--datatable-scrollhead--border--is-sticking: $ibo-search
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sfc_opc_mc_items_wrapper {
|
.sfc_opc_mc_items_wrapper {
|
||||||
max-height: 415px; /* Must be less than .sfc_form_group:max-height - .sfc_opc_mc_toggler:height - .sfc_opc_mc_filter:height */
|
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
margin: $ibo-spacing-0 -8px; /* Compensate .sfc_opc_multichoices side padding so the hover style can take the full with */
|
margin: $ibo-spacing-0 -8px; /* Compensate .sfc_opc_multichoices side padding so the hover style can take the full with */
|
||||||
|
|
||||||
@@ -560,8 +569,14 @@ $ibo-search-results-area--datatable-scrollhead--border--is-sticking: $ibo-search
|
|||||||
&.search_form_criteria_enum {
|
&.search_form_criteria_enum {
|
||||||
.sfc_form_group {
|
.sfc_form_group {
|
||||||
.sfc_fg_operator_in {
|
.sfc_fg_operator_in {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
height: 100%;
|
||||||
|
min-height: 0;
|
||||||
> label {
|
> label {
|
||||||
display: inline-block;
|
display: flex;
|
||||||
|
height: 100%;
|
||||||
|
min-height: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
line-height: initial;
|
line-height: initial;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|||||||
@@ -11,9 +11,12 @@ $ibo-title--icon--size: 90px !default;
|
|||||||
$ibo-title--icon--size-2: 80px !default;
|
$ibo-title--icon--size-2: 80px !default;
|
||||||
$ibo-title--icon--size-3: 70px !default;
|
$ibo-title--icon--size-3: 70px !default;
|
||||||
|
|
||||||
$ibo-title--icon-background--size--must-contain: contain !default;
|
$ibo-title--icon-background--size--must-contain: contain !default; // deprecated, to be removed in favor of $ibo-title--icon-img--size--must-contain
|
||||||
$ibo-title--icon-background--size--must-cover: cover !default;
|
$ibo-title--icon-background--size--must-cover: cover !default; // deprecated, to be removed in favor of $ibo-title--icon-img--size--must-cover
|
||||||
$ibo-title--icon-background--size--must-zoomout: 66.67% !default;
|
$ibo-title--icon-background--size--must-zoomout: 66.67% !default; // deprecated, to be removed in favor of $ibo-title--icon-img--size--must-zoomout
|
||||||
|
$ibo-title--icon-img--size--must-contain: $ibo-title--icon-background--size--must-contain !default; // TODO remove when dealing with N°9317
|
||||||
|
$ibo-title--icon-img--size--must-cover: $ibo-title--icon-background--size--must-cover !default; // TODO remove when dealing with N°9317
|
||||||
|
$ibo-title--icon-img--size--must-zoomout: $ibo-title--icon-background--size--must-zoomout !default; // TODO remove when dealing with N°9317
|
||||||
|
|
||||||
|
|
||||||
.ibo-title {
|
.ibo-title {
|
||||||
@@ -44,24 +47,27 @@ $ibo-title--icon-background--size--must-zoomout: 66.67% !default;
|
|||||||
min-height: $ibo-title--icon--size-3;
|
min-height: $ibo-title--icon--size-3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ibo-title--icon-background {
|
.ibo-title--icon-img, .ibo-title--icon-background { // second class is deprecated, remove it when dealing with N°9317
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-position: center;
|
object-position: center;
|
||||||
background-repeat: no-repeat;
|
object-fit: $ibo-title--icon-img--size--must-contain;
|
||||||
background-size: $ibo-title--icon-background--size--must-contain;
|
background-size: $ibo-title--icon-img--size--must-contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ibo-title--icon-background--must-contain {
|
.ibo-title--icon-img--must-contain, .ibo-title--icon-background--must-contain { // second class is deprecated, remove it when dealing with N°9317
|
||||||
background-size: $ibo-title--icon-background--size--must-contain;
|
object-fit: $ibo-title--icon-img--size--must-contain;
|
||||||
|
background-size: $ibo-title--icon-img--size--must-contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ibo-title--icon-background--must-cover {
|
.ibo-title--icon-img--must-cover, .ibo-title--icon-background--must-cover { // second class is deprecated, remove it when dealing with N°9317
|
||||||
background-size: $ibo-title--icon-background--size--must-cover;
|
object-fit: $ibo-title--icon-img--size--must-cover;
|
||||||
|
background-size: $ibo-title--icon-img--size--must-cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ibo-title--icon-background--must-zoomout {
|
.ibo-title--icon-img--must-zoomout, .ibo-title--icon-background--must-zoomout { // second class is deprecated, remove it when dealing with N°9317
|
||||||
background-size: $ibo-title--icon-background--size--must-zoomout;
|
width: $ibo-title--icon-img--size--must-zoomout;
|
||||||
|
height: $ibo-title--icon-img--size--must-zoomout;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ibo-title--for-object-details {
|
.ibo-title--for-object-details {
|
||||||
|
|||||||
@@ -203,8 +203,9 @@ $ibo-input-select--autocomplete-item-image--border: 1px solid $ibo-color-grey-60
|
|||||||
}
|
}
|
||||||
|
|
||||||
// N°7982 Default selectize stylesheet override
|
// N°7982 Default selectize stylesheet override
|
||||||
|
// N°9468 Dropdown content needs to be a few pixel shorter than the dropdown itself to avoid double scrollbar
|
||||||
.selectize-dropdown-content{
|
.selectize-dropdown-content{
|
||||||
max-height: $ibo-input-select-selectize--dropdown--max-height;
|
max-height: calc(#{$ibo-input-select-selectize--dropdown--max-height} - 4px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.selectize-dropdown.ui-menu .ui-state-active {
|
.selectize-dropdown.ui-menu .ui-state-active {
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ $text-strong: inherit !default;
|
|||||||
* See https://bulma.io/documentation/elements/content/
|
* See https://bulma.io/documentation/elements/content/
|
||||||
*/
|
*/
|
||||||
$content-block-margin-bottom: 0 !default;
|
$content-block-margin-bottom: 0 !default;
|
||||||
|
$content-blockquote-background-color: $ibo-color-grey-200 !default;
|
||||||
|
|
||||||
/* Table: Reset style as much as possible to match rich text editor preview, which is the browser's default stylesheet.
|
/* Table: Reset style as much as possible to match rich text editor preview, which is the browser's default stylesheet.
|
||||||
* As there is no way to avoid bulma rules, we simply make them invalid by setting an invalid variable value, the rules will then be ignored by the browser.
|
* As there is no way to avoid bulma rules, we simply make them invalid by setting an invalid variable value, the rules will then be ignored by the browser.
|
||||||
|
|||||||
2
css/backoffice/vendors/_selectize.scss
vendored
@@ -29,7 +29,7 @@ $ibo-vendors-selectize--element--active--background: $ibo-color-blue-100 !defaul
|
|||||||
$ibo-vendors-selectize--element--active--color: $ibo-color-grey-900 !default;
|
$ibo-vendors-selectize--element--active--color: $ibo-color-grey-900 !default;
|
||||||
|
|
||||||
$ibo-vendors-selectize--dropdown--background-color: $ibo-vendors-selectize-input--background-color !default;
|
$ibo-vendors-selectize--dropdown--background-color: $ibo-vendors-selectize-input--background-color !default;
|
||||||
$ibo-vendors-selectize--dropdown--color: $ibo-vendors-selectize-input--color!default;
|
$ibo-vendors-selectize--dropdown--color: $ibo-vendors-selectize-input--color !default;
|
||||||
|
|
||||||
$ibo-vendors-selectize--header--padding-x: 8px !default;
|
$ibo-vendors-selectize--header--padding-x: 8px !default;
|
||||||
$ibo-vendors-selectize--header--padding-y: 5px !default;
|
$ibo-vendors-selectize--header--padding-y: 5px !default;
|
||||||
|
|||||||
@@ -68,47 +68,47 @@ $ibo-color-information-900: #0f172a !default;
|
|||||||
$ibo-color-information-950: #020617 !default;
|
$ibo-color-information-950: #020617 !default;
|
||||||
|
|
||||||
|
|
||||||
$ibo-lifecycle-new-state-primary-color: $ibo-color-information-600;
|
$ibo-lifecycle-new-state-primary-color: $ibo-color-information-600 !default;
|
||||||
$ibo-lifecycle-new-state-secondary-color: $ibo-color-white-100;
|
$ibo-lifecycle-new-state-secondary-color: $ibo-color-white-100 !default;
|
||||||
$ibo-lifecycle-neutral-state-primary-color: $ibo-color-information-600;
|
$ibo-lifecycle-neutral-state-primary-color: $ibo-color-information-600 !default;
|
||||||
$ibo-lifecycle-neutral-state-secondary-color: $ibo-color-white-100;
|
$ibo-lifecycle-neutral-state-secondary-color: $ibo-color-white-100 !default;
|
||||||
$ibo-lifecycle-waiting-state-primary-color: $ibo-color-yellow-700;
|
$ibo-lifecycle-waiting-state-primary-color: $ibo-color-yellow-700 !default;
|
||||||
$ibo-lifecycle-waiting-state-secondary-color: $ibo-color-white-100;
|
$ibo-lifecycle-waiting-state-secondary-color: $ibo-color-white-100 !default;
|
||||||
$ibo-lifecycle-success-state-primary-color: $ibo-color-blue-700;
|
$ibo-lifecycle-success-state-primary-color: $ibo-color-blue-700 !default;
|
||||||
$ibo-lifecycle-success-state-secondary-color: $ibo-color-white-100;
|
$ibo-lifecycle-success-state-secondary-color: $ibo-color-white-100 !default;
|
||||||
$ibo-lifecycle-failure-state-primary-color: $ibo-color-orange-800;
|
$ibo-lifecycle-failure-state-primary-color: $ibo-color-orange-800 !default;
|
||||||
$ibo-lifecycle-failure-state-secondary-color: $ibo-color-white-100;
|
$ibo-lifecycle-failure-state-secondary-color: $ibo-color-white-100 !default;
|
||||||
$ibo-lifecycle-frozen-state-primary-color: $ibo-color-information-200;
|
$ibo-lifecycle-frozen-state-primary-color: $ibo-color-information-200 !default;
|
||||||
$ibo-lifecycle-frozen-state-secondary-color: $ibo-color-information-700;
|
$ibo-lifecycle-frozen-state-secondary-color: $ibo-color-information-700 !default;
|
||||||
|
|
||||||
$ibo-lifecycle-active-state-primary-color: $ibo-color-blue-700;
|
$ibo-lifecycle-active-state-primary-color: $ibo-color-blue-700 !default;
|
||||||
$ibo-lifecycle-active-state-secondary-color: $ibo-color-white-100;
|
$ibo-lifecycle-active-state-secondary-color: $ibo-color-white-100 !default;
|
||||||
$ibo-lifecycle-inactive-state-primary-color: $ibo-color-yellow-700;
|
$ibo-lifecycle-inactive-state-primary-color: $ibo-color-yellow-700 !default;
|
||||||
$ibo-lifecycle-inactive-state-secondary-color: $ibo-color-white-100;
|
$ibo-lifecycle-inactive-state-secondary-color: $ibo-color-white-100 !default;
|
||||||
|
|
||||||
$ibo-caselog-highlight-color-1: $ibo-color-blue-700;
|
$ibo-caselog-highlight-color-1: $ibo-color-blue-700 !default;
|
||||||
$ibo-caselog-highlight-color-2: $ibo-color-yellow-700;
|
$ibo-caselog-highlight-color-2: $ibo-color-yellow-700 !default;
|
||||||
$ibo-caselog-highlight-color-3: $ibo-color-information-600;
|
$ibo-caselog-highlight-color-3: $ibo-color-information-600 !default;
|
||||||
$ibo-caselog-highlight-color-4: $ibo-color-yellow-500;
|
$ibo-caselog-highlight-color-4: $ibo-color-yellow-500 !default;
|
||||||
$ibo-caselog-highlight-color-5: $ibo-color-blue-500;
|
$ibo-caselog-highlight-color-5: $ibo-color-blue-500 !default;
|
||||||
$ibo-caselog-highlight-color-6: $ibo-color-yellow-300;
|
$ibo-caselog-highlight-color-6: $ibo-color-yellow-300 !default;
|
||||||
$ibo-caselog-highlight-color-7: $ibo-color-blue-300;
|
$ibo-caselog-highlight-color-7: $ibo-color-blue-300 !default;
|
||||||
|
|
||||||
$ibo-input-wrapper--is-error--border-color: $ibo-color-warning-700;
|
$ibo-input-wrapper--is-error--border-color: $ibo-color-warning-700 !default;
|
||||||
$ibo-field-validation: $ibo-color-warning-800;
|
$ibo-field-validation: $ibo-color-warning-800 !default;
|
||||||
|
|
||||||
$ibo-navigation-menu--visual-hint--background-color: $ibo-color-blue-400;
|
$ibo-navigation-menu--visual-hint--background-color: $ibo-color-blue-400 !default;
|
||||||
|
|
||||||
$ibo-wizard-container--background-color: $ibo-color-information-200;
|
$ibo-wizard-container--background-color: $ibo-color-information-200 !default;
|
||||||
$ibo-wizard-container--border-color: $ibo-color-information-600;
|
$ibo-wizard-container--border-color: $ibo-color-information-600 !default;
|
||||||
|
|
||||||
$ibo-navigation-menu--notifications--item--new-message-indicator--background-color: $ibo-color-white-100;
|
$ibo-navigation-menu--notifications--item--new-message-indicator--background-color: $ibo-color-white-100 !default;
|
||||||
$ibo-navigation-menu--notifications--item--new-message-indicator--border: solid 2px $ibo-color-grey-500;
|
$ibo-navigation-menu--notifications--item--new-message-indicator--border: solid 2px $ibo-color-grey-500 !default;
|
||||||
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-1--background-color: $ibo-color-danger-100;
|
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-1--background-color: $ibo-color-danger-100 !default;
|
||||||
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-1--border: solid 2px $ibo-color-danger-500;
|
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-1--border: solid 2px $ibo-color-danger-500 !default;
|
||||||
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-2--background-color: $ibo-color-warning-100;
|
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-2--background-color: $ibo-color-warning-100 !default;
|
||||||
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-2--border: solid 2px $ibo-color-warning-500;
|
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-2--border: solid 2px $ibo-color-warning-500 !default;
|
||||||
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-3--background-color: $ibo-color-success-100;
|
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-3--background-color: $ibo-color-success-100 !default;
|
||||||
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-3--border: solid 2px $ibo-color-success-500;
|
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-3--border: solid 2px $ibo-color-success-500 !default;
|
||||||
|
|
||||||
$ibo-notifications--view-all--item--unread--highlight--background-color: $ibo-color-blue-600;
|
$ibo-notifications--view-all--item--unread--highlight--background-color: $ibo-color-blue-600 !default;
|
||||||
@@ -32,47 +32,47 @@ $ibo-color-information-900: #0f172a !default;
|
|||||||
$ibo-color-information-950: #020617 !default;
|
$ibo-color-information-950: #020617 !default;
|
||||||
|
|
||||||
|
|
||||||
$ibo-lifecycle-new-state-primary-color: $ibo-color-information-600;
|
$ibo-lifecycle-new-state-primary-color: $ibo-color-information-600 !default;
|
||||||
$ibo-lifecycle-new-state-secondary-color: $ibo-color-white-100;
|
$ibo-lifecycle-new-state-secondary-color: $ibo-color-white-100 !default;
|
||||||
$ibo-lifecycle-neutral-state-primary-color: $ibo-color-information-600;
|
$ibo-lifecycle-neutral-state-primary-color: $ibo-color-information-600 !default;
|
||||||
$ibo-lifecycle-neutral-state-secondary-color: $ibo-color-white-100;
|
$ibo-lifecycle-neutral-state-secondary-color: $ibo-color-white-100 !default;
|
||||||
$ibo-lifecycle-waiting-state-primary-color: $ibo-color-red-200;
|
$ibo-lifecycle-waiting-state-primary-color: $ibo-color-red-200 !default;
|
||||||
$ibo-lifecycle-waiting-state-secondary-color: $ibo-color-red-800;
|
$ibo-lifecycle-waiting-state-secondary-color: $ibo-color-red-800 !default;
|
||||||
$ibo-lifecycle-success-state-primary-color: $ibo-color-blue-700;
|
$ibo-lifecycle-success-state-primary-color: $ibo-color-blue-700 !default;
|
||||||
$ibo-lifecycle-success-state-secondary-color: $ibo-color-white-100;
|
$ibo-lifecycle-success-state-secondary-color: $ibo-color-white-100 !default;
|
||||||
$ibo-lifecycle-failure-state-primary-color: $ibo-color-red-800;
|
$ibo-lifecycle-failure-state-primary-color: $ibo-color-red-800 !default;
|
||||||
$ibo-lifecycle-failure-state-secondary-color: $ibo-color-white-100;
|
$ibo-lifecycle-failure-state-secondary-color: $ibo-color-white-100 !default;
|
||||||
$ibo-lifecycle-frozen-state-primary-color: $ibo-color-information-200;
|
$ibo-lifecycle-frozen-state-primary-color: $ibo-color-information-200 !default;
|
||||||
$ibo-lifecycle-frozen-state-secondary-color: $ibo-color-information-700;
|
$ibo-lifecycle-frozen-state-secondary-color: $ibo-color-information-700 !default;
|
||||||
|
|
||||||
$ibo-lifecycle-active-state-primary-color: $ibo-color-blue-700;
|
$ibo-lifecycle-active-state-primary-color: $ibo-color-blue-700 !default;
|
||||||
$ibo-lifecycle-active-state-secondary-color: $ibo-color-white-100;
|
$ibo-lifecycle-active-state-secondary-color: $ibo-color-white-100 !default;
|
||||||
$ibo-lifecycle-inactive-state-primary-color: $ibo-color-red-700;
|
$ibo-lifecycle-inactive-state-primary-color: $ibo-color-red-700 !default;
|
||||||
$ibo-lifecycle-inactive-state-secondary-color: $ibo-color-white-100;
|
$ibo-lifecycle-inactive-state-secondary-color: $ibo-color-white-100 !default;
|
||||||
|
|
||||||
$ibo-caselog-highlight-color-1: $ibo-color-blue-700;
|
$ibo-caselog-highlight-color-1: $ibo-color-blue-700 !default;
|
||||||
$ibo-caselog-highlight-color-2: $ibo-color-red-700;
|
$ibo-caselog-highlight-color-2: $ibo-color-red-700 !default;
|
||||||
$ibo-caselog-highlight-color-3: $ibo-color-information-600;
|
$ibo-caselog-highlight-color-3: $ibo-color-information-600 !default;
|
||||||
$ibo-caselog-highlight-color-4: $ibo-color-red-500;
|
$ibo-caselog-highlight-color-4: $ibo-color-red-500 !default;
|
||||||
$ibo-caselog-highlight-color-5: $ibo-color-blue-500;
|
$ibo-caselog-highlight-color-5: $ibo-color-blue-500 !default;
|
||||||
$ibo-caselog-highlight-color-6: $ibo-color-red-300;
|
$ibo-caselog-highlight-color-6: $ibo-color-red-300 !default;
|
||||||
$ibo-caselog-highlight-color-7: $ibo-color-blue-300;
|
$ibo-caselog-highlight-color-7: $ibo-color-blue-300 !default;
|
||||||
|
|
||||||
$ibo-input-wrapper--is-error--border-color: $ibo-color-pink-700;
|
$ibo-input-wrapper--is-error--border-color: $ibo-color-pink-700 !default;
|
||||||
$ibo-field-validation: $ibo-color-pink-800;
|
$ibo-field-validation: $ibo-color-pink-800 !default;
|
||||||
|
|
||||||
$ibo-navigation-menu--visual-hint--background-color: $ibo-color-pink-600;
|
$ibo-navigation-menu--visual-hint--background-color: $ibo-color-pink-600 !default;
|
||||||
|
|
||||||
$ibo-wizard-container--background-color: $ibo-color-information-200;
|
$ibo-wizard-container--background-color: $ibo-color-information-200 !default;
|
||||||
$ibo-wizard-container--border-color: $ibo-color-information-600;
|
$ibo-wizard-container--border-color: $ibo-color-information-600 !default;
|
||||||
|
|
||||||
$ibo-navigation-menu--notifications--item--new-message-indicator--background-color: $ibo-color-white-100;
|
$ibo-navigation-menu--notifications--item--new-message-indicator--background-color: $ibo-color-white-100 !default;
|
||||||
$ibo-navigation-menu--notifications--item--new-message-indicator--border: solid 2px $ibo-color-grey-500;
|
$ibo-navigation-menu--notifications--item--new-message-indicator--border: solid 2px $ibo-color-grey-500 !default;
|
||||||
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-1--background-color: $ibo-color-pink-100;
|
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-1--background-color: $ibo-color-pink-100 !default;
|
||||||
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-1--border: solid 2px $ibo-color-pink-600;
|
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-1--border: solid 2px $ibo-color-pink-600 !default;
|
||||||
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-2--background-color: $ibo-color-warning-100;
|
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-2--background-color: $ibo-color-warning-100 !default;
|
||||||
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-2--border: solid 2px $ibo-color-warning-400;
|
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-2--border: solid 2px $ibo-color-warning-400 !default;
|
||||||
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-3--background-color: $ibo-color-success-100;
|
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-3--background-color: $ibo-color-success-100 !default;
|
||||||
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-3--border: solid 2px $ibo-color-success-500;
|
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-3--border: solid 2px $ibo-color-success-500 !default;
|
||||||
|
|
||||||
$ibo-notifications--view-all--item--unread--highlight--background-color: $ibo-color-pink-500;
|
$ibo-notifications--view-all--item--unread--highlight--background-color: $ibo-color-pink-500 !default;
|
||||||
@@ -10,22 +10,87 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use Combodo\iTop\Core\MetaModel\HierarchicalKey;
|
use Combodo\iTop\Core\MetaModel\HierarchicalKey;
|
||||||
|
use Combodo\iTop\DBTools\Enum\BinExitCode;
|
||||||
|
use Combodo\iTop\DBTools\Exception\AuthenticationException;
|
||||||
|
|
||||||
require_once('../../../approot.inc.php');
|
// env-xxx folders
|
||||||
|
if (file_exists(__DIR__.'/../../../approot.inc.php')) {
|
||||||
|
require_once __DIR__.'/../../../approot.inc.php';
|
||||||
|
}
|
||||||
|
// datamodel/2.x and data/xxx-modules folders
|
||||||
|
elseif (file_exists(__DIR__.'/../../../../approot.inc.php')) {
|
||||||
|
require_once __DIR__.'/../../../../approot.inc.php';
|
||||||
|
}
|
||||||
require_once APPROOT.'application/startup.inc.php';
|
require_once APPROOT.'application/startup.inc.php';
|
||||||
|
|
||||||
foreach (MetaModel::GetClasses() as $sClass) {
|
// Prepare output page
|
||||||
if (!MetaModel::HasTable($sClass)) {
|
$sPageTitle = "Database maintenance tools - Report";
|
||||||
continue;
|
$bIsModeCLI = utils::IsModeCLI();
|
||||||
}
|
if ($bIsModeCLI) {
|
||||||
|
$oP = new CLIPage($sPageTitle);
|
||||||
|
|
||||||
foreach (MetaModel::ListAttributeDefs($sClass) as $sAttCode => $oAttDef) {
|
SetupUtils::CheckPhpAndExtensionsForCli($oP, BinExitCode::FATAL->value);
|
||||||
// Check (once) all the attributes that are hierarchical keys
|
} else {
|
||||||
if ((MetaModel::GetAttributeOrigin($sClass, $sAttCode) == $sClass) && $oAttDef->IsHierarchicalKey()) {
|
$oP = new WebPage($sPageTitle);
|
||||||
echo "Rebuild hierarchical key $sAttCode from $sClass.\n";
|
|
||||||
HierarchicalKey::Rebuild($sClass, $sAttCode, $oAttDef);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "Done\n";
|
// Authentication logic
|
||||||
|
try {
|
||||||
|
utils::UseParamFile();
|
||||||
|
|
||||||
|
if ($bIsModeCLI) {
|
||||||
|
$sAuthUser = utils::ReadParam('auth_user', null, true, utils::ENUM_SANITIZATION_FILTER_RAW_DATA);
|
||||||
|
$sAuthPwd = utils::ReadParam('auth_pwd', null, true, utils::ENUM_SANITIZATION_FILTER_RAW_DATA);
|
||||||
|
if (utils::IsNullOrEmptyString($sAuthUser) || utils::IsNullOrEmptyString($sAuthPwd)) {
|
||||||
|
throw new AuthenticationException("Access credentials not provided, usage: php rebuildhk.php --auth_user=<login> --auth_pwd=<password> [--param_file=<file_path>]");
|
||||||
|
}
|
||||||
|
if (UserRights::CheckCredentials($sAuthUser, $sAuthPwd)) {
|
||||||
|
UserRights::Login($sAuthUser);
|
||||||
|
} else {
|
||||||
|
throw new AuthenticationException("Access wrong credentials ('$sAuthUser')");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// Check user rights and prompt if needed
|
||||||
|
LoginWebPage::DoLoginEx(null, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!UserRights::IsAdministrator()) {
|
||||||
|
throw new AuthenticationException("Access restricted to administrators");
|
||||||
|
}
|
||||||
|
} catch (AuthenticationException $oException) {
|
||||||
|
$oP->p($oException->getMessage());
|
||||||
|
$oP->output();
|
||||||
|
exit(BinExitCode::ERROR->value);
|
||||||
|
} catch (Exception $oException) {
|
||||||
|
$oP->p("Error: ".$oException->GetMessage());
|
||||||
|
$oP->output();
|
||||||
|
exit(BinExitCode::FATAL->value);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Business logic
|
||||||
|
try {
|
||||||
|
foreach (MetaModel::GetClasses() as $sClass) {
|
||||||
|
if (!MetaModel::HasTable($sClass)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (MetaModel::ListAttributeDefs($sClass) as $sAttCode => $oAttDef) {
|
||||||
|
// Check (once) all the attributes that are hierarchical keys
|
||||||
|
if ((MetaModel::GetAttributeOrigin($sClass, $sAttCode) == $sClass) && $oAttDef->IsHierarchicalKey()) {
|
||||||
|
$oP->p("Rebuild hierarchical key $sAttCode from $sClass.");
|
||||||
|
HierarchicalKey::Rebuild($sClass, $sAttCode, $oAttDef);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$oP->p("Done");
|
||||||
|
$oP->output();
|
||||||
|
} catch (AuthenticationException $oException) {
|
||||||
|
$oP->p($oException->getMessage());
|
||||||
|
$oP->output();
|
||||||
|
exit(BinExitCode::ERROR->value);
|
||||||
|
} catch (Exception $oException) {
|
||||||
|
$oP->p("Error: ".$oException->GetMessage());
|
||||||
|
$oP->output();
|
||||||
|
exit(BinExitCode::FATAL->value);
|
||||||
|
}
|
||||||
|
|||||||
@@ -5,22 +5,93 @@
|
|||||||
* @license http://opensource.org/licenses/AGPL-3.0
|
* @license http://opensource.org/licenses/AGPL-3.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use Combodo\iTop\DBTools\Enum\BinExitCode;
|
||||||
|
use Combodo\iTop\DBTools\Exception\AuthenticationException;
|
||||||
use Combodo\iTop\DBTools\Service\DBAnalyzerUtils;
|
use Combodo\iTop\DBTools\Service\DBAnalyzerUtils;
|
||||||
|
|
||||||
require_once('../../../approot.inc.php');
|
// env-xxx folders
|
||||||
require_once(APPROOT.'application/startup.inc.php');
|
if (file_exists(__DIR__.'/../../../approot.inc.php')) {
|
||||||
|
require_once __DIR__.'/../../../approot.inc.php';
|
||||||
require_once('../db_analyzer.class.inc.php');
|
}
|
||||||
require_once('../src/Service/DBAnalyzerUtils.php');
|
// datamodel/2.x and data/xxx-modules folders
|
||||||
|
elseif (file_exists(__DIR__.'/../../../../approot.inc.php')) {
|
||||||
$oDBAnalyzer = new DatabaseAnalyzer(0);
|
require_once __DIR__.'/../../../../approot.inc.php';
|
||||||
$aResults = $oDBAnalyzer->CheckIntegrity([]);
|
|
||||||
|
|
||||||
if (empty($aResults)) {
|
|
||||||
echo "Database OK\n";
|
|
||||||
exit(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$sReportFile = DBAnalyzerUtils::GenerateReport($aResults);
|
require_once APPROOT.'application/startup.inc.php';
|
||||||
|
require_once APPROOT.'application/loginwebpage.class.inc.php';
|
||||||
|
|
||||||
echo "Report generated: {$sReportFile}.log\n";
|
require_once __DIR__.'/../db_analyzer.class.inc.php';
|
||||||
|
|
||||||
|
// Prepare output page
|
||||||
|
$sPageTitle = "Database maintenance tools - Report";
|
||||||
|
$bIsModeCLI = utils::IsModeCLI();
|
||||||
|
if ($bIsModeCLI) {
|
||||||
|
$oP = new CLIPage($sPageTitle);
|
||||||
|
|
||||||
|
SetupUtils::CheckPhpAndExtensionsForCli($oP, BinExitCode::FATAL->value);
|
||||||
|
} else {
|
||||||
|
$oP = new WebPage($sPageTitle);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Authentication logic
|
||||||
|
try {
|
||||||
|
utils::UseParamFile();
|
||||||
|
|
||||||
|
if ($bIsModeCLI) {
|
||||||
|
$sAuthUser = utils::ReadParam('auth_user', null, true, utils::ENUM_SANITIZATION_FILTER_RAW_DATA);
|
||||||
|
$sAuthPwd = utils::ReadParam('auth_pwd', null, true, utils::ENUM_SANITIZATION_FILTER_RAW_DATA);
|
||||||
|
if (utils::IsNullOrEmptyString($sAuthUser) || utils::IsNullOrEmptyString($sAuthPwd)) {
|
||||||
|
throw new AuthenticationException("Access credentials not provided, usage: php report.php --auth_user=<login> --auth_pwd=<password> [--param_file=<file_path>]");
|
||||||
|
}
|
||||||
|
if (UserRights::CheckCredentials($sAuthUser, $sAuthPwd)) {
|
||||||
|
UserRights::Login($sAuthUser);
|
||||||
|
} else {
|
||||||
|
throw new AuthenticationException("Access wrong credentials ('$sAuthUser')");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// Check user rights and prompt if needed
|
||||||
|
LoginWebPage::DoLoginEx(null, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!UserRights::IsAdministrator()) {
|
||||||
|
throw new AuthenticationException("Access restricted to administrators");
|
||||||
|
}
|
||||||
|
} catch (AuthenticationException $oException) {
|
||||||
|
$sExceptionMessage = $oP instanceof WebPage ? utils::EscapeHtml($oException->getMessage()) : $oException->getMessage();
|
||||||
|
$oP->p($sExceptionMessage);
|
||||||
|
$oP->output();
|
||||||
|
exit(BinExitCode::ERROR->value);
|
||||||
|
} catch (Exception $oException) {
|
||||||
|
$sExceptionMessage = $oP instanceof WebPage ? utils::EscapeHtml($oException->getMessage()) : $oException->getMessage();
|
||||||
|
$oP->p("Error: ".$sExceptionMessage);
|
||||||
|
$oP->output();
|
||||||
|
exit(BinExitCode::FATAL->value);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Business logic
|
||||||
|
try {
|
||||||
|
$oDBAnalyzer = new DatabaseAnalyzer(0);
|
||||||
|
$aResults = $oDBAnalyzer->CheckIntegrity([]);
|
||||||
|
|
||||||
|
if (empty($aResults)) {
|
||||||
|
$oP->p("Database OK");
|
||||||
|
$oP->output();
|
||||||
|
exit(BinExitCode::SUCCESS->value);
|
||||||
|
}
|
||||||
|
|
||||||
|
$sReportFile = DBAnalyzerUtils::GenerateReport($aResults);
|
||||||
|
|
||||||
|
$oP->p("Report generated: {$sReportFile}.log");
|
||||||
|
$oP->output();
|
||||||
|
} catch (AuthenticationException $oException) {
|
||||||
|
$sExceptionMessage = $oP instanceof WebPage ? utils::EscapeHtml($oException->getMessage()) : $oException->getMessage();
|
||||||
|
$oP->p($sExceptionMessage);
|
||||||
|
$oP->output();
|
||||||
|
exit(BinExitCode::ERROR->value);
|
||||||
|
} catch (Exception $oException) {
|
||||||
|
$sExceptionMessage = $oP instanceof WebPage ? utils::EscapeHtml($oException->getMessage()) : $oException->getMessage();
|
||||||
|
$oP->p("Error: ".$sExceptionMessage);
|
||||||
|
$oP->output();
|
||||||
|
exit(BinExitCode::FATAL->value);
|
||||||
|
}
|
||||||
|
|||||||
9
datamodels/2.x/combodo-db-tools/composer.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"name": "combodo/combodo-db-tools",
|
||||||
|
"license": "AGPL-3.0-only",
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Combodo\\iTop\\DBTools\\": "src/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
18
datamodels/2.x/combodo-db-tools/composer.lock
generated
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"_readme": [
|
||||||
|
"This file locks the dependencies of your project to a known state",
|
||||||
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
|
"This file is @generated automatically"
|
||||||
|
],
|
||||||
|
"content-hash": "38292b9b3a56c6c8776285a17c58034e",
|
||||||
|
"packages": [],
|
||||||
|
"packages-dev": [],
|
||||||
|
"aliases": [],
|
||||||
|
"minimum-stability": "stable",
|
||||||
|
"stability-flags": {},
|
||||||
|
"prefer-stable": false,
|
||||||
|
"prefer-lowest": false,
|
||||||
|
"platform": {},
|
||||||
|
"platform-dev": {},
|
||||||
|
"plugin-api-version": "2.6.0"
|
||||||
|
}
|
||||||
@@ -43,6 +43,7 @@ SetupWebPage::AddModule(
|
|||||||
// Components
|
// Components
|
||||||
//
|
//
|
||||||
'datamodel' => [
|
'datamodel' => [
|
||||||
|
'vendor/autoload.php',
|
||||||
'src/Service/DBToolsUtils.php',
|
'src/Service/DBToolsUtils.php',
|
||||||
'src/Service/DBAnalyzerUtils.php',
|
'src/Service/DBAnalyzerUtils.php',
|
||||||
],
|
],
|
||||||
|
|||||||
18
datamodels/2.x/combodo-db-tools/src/Enum/BinExitCode.php
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @copyright Copyright (C) 2010-2026 Combodo SAS
|
||||||
|
* @license http://opensource.org/licenses/AGPL-3.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Combodo\iTop\DBTools\Enum;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enum for the exit codes of the bin scripts
|
||||||
|
*/
|
||||||
|
enum BinExitCode: int
|
||||||
|
{
|
||||||
|
case SUCCESS = 0;
|
||||||
|
case ERROR = -1;
|
||||||
|
case FATAL = -2;
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @copyright Copyright (C) 2010-2026 Combodo SAS
|
||||||
|
* @license http://opensource.org/licenses/AGPL-3.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Combodo\iTop\DBTools\Exception;
|
||||||
|
|
||||||
|
class AuthenticationException extends \Exception
|
||||||
|
{
|
||||||
|
}
|
||||||
22
datamodels/2.x/combodo-db-tools/vendor/autoload.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// autoload.php @generated by Composer
|
||||||
|
|
||||||
|
if (PHP_VERSION_ID < 50600) {
|
||||||
|
if (!headers_sent()) {
|
||||||
|
header('HTTP/1.1 500 Internal Server Error');
|
||||||
|
}
|
||||||
|
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
|
||||||
|
if (!ini_get('display_errors')) {
|
||||||
|
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
|
||||||
|
fwrite(STDERR, $err);
|
||||||
|
} elseif (!headers_sent()) {
|
||||||
|
echo $err;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new RuntimeException($err);
|
||||||
|
}
|
||||||
|
|
||||||
|
require_once __DIR__ . '/composer/autoload_real.php';
|
||||||
|
|
||||||
|
return ComposerAutoloaderInit38292b9b3a56c6c8776285a17c58034e::getLoader();
|
||||||
579
datamodels/2.x/combodo-db-tools/vendor/composer/ClassLoader.php
vendored
Normal file
@@ -0,0 +1,579 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is part of Composer.
|
||||||
|
*
|
||||||
|
* (c) Nils Adermann <naderman@naderman.de>
|
||||||
|
* Jordi Boggiano <j.boggiano@seld.be>
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Composer\Autoload;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
|
||||||
|
*
|
||||||
|
* $loader = new \Composer\Autoload\ClassLoader();
|
||||||
|
*
|
||||||
|
* // register classes with namespaces
|
||||||
|
* $loader->add('Symfony\Component', __DIR__.'/component');
|
||||||
|
* $loader->add('Symfony', __DIR__.'/framework');
|
||||||
|
*
|
||||||
|
* // activate the autoloader
|
||||||
|
* $loader->register();
|
||||||
|
*
|
||||||
|
* // to enable searching the include path (eg. for PEAR packages)
|
||||||
|
* $loader->setUseIncludePath(true);
|
||||||
|
*
|
||||||
|
* In this example, if you try to use a class in the Symfony\Component
|
||||||
|
* namespace or one of its children (Symfony\Component\Console for instance),
|
||||||
|
* the autoloader will first look for the class under the component/
|
||||||
|
* directory, and it will then fallback to the framework/ directory if not
|
||||||
|
* found before giving up.
|
||||||
|
*
|
||||||
|
* This class is loosely based on the Symfony UniversalClassLoader.
|
||||||
|
*
|
||||||
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
|
* @author Jordi Boggiano <j.boggiano@seld.be>
|
||||||
|
* @see https://www.php-fig.org/psr/psr-0/
|
||||||
|
* @see https://www.php-fig.org/psr/psr-4/
|
||||||
|
*/
|
||||||
|
class ClassLoader
|
||||||
|
{
|
||||||
|
/** @var \Closure(string):void */
|
||||||
|
private static $includeFile;
|
||||||
|
|
||||||
|
/** @var string|null */
|
||||||
|
private $vendorDir;
|
||||||
|
|
||||||
|
// PSR-4
|
||||||
|
/**
|
||||||
|
* @var array<string, array<string, int>>
|
||||||
|
*/
|
||||||
|
private $prefixLengthsPsr4 = array();
|
||||||
|
/**
|
||||||
|
* @var array<string, list<string>>
|
||||||
|
*/
|
||||||
|
private $prefixDirsPsr4 = array();
|
||||||
|
/**
|
||||||
|
* @var list<string>
|
||||||
|
*/
|
||||||
|
private $fallbackDirsPsr4 = array();
|
||||||
|
|
||||||
|
// PSR-0
|
||||||
|
/**
|
||||||
|
* List of PSR-0 prefixes
|
||||||
|
*
|
||||||
|
* Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2')))
|
||||||
|
*
|
||||||
|
* @var array<string, array<string, list<string>>>
|
||||||
|
*/
|
||||||
|
private $prefixesPsr0 = array();
|
||||||
|
/**
|
||||||
|
* @var list<string>
|
||||||
|
*/
|
||||||
|
private $fallbackDirsPsr0 = array();
|
||||||
|
|
||||||
|
/** @var bool */
|
||||||
|
private $useIncludePath = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array<string, string>
|
||||||
|
*/
|
||||||
|
private $classMap = array();
|
||||||
|
|
||||||
|
/** @var bool */
|
||||||
|
private $classMapAuthoritative = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array<string, bool>
|
||||||
|
*/
|
||||||
|
private $missingClasses = array();
|
||||||
|
|
||||||
|
/** @var string|null */
|
||||||
|
private $apcuPrefix;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array<string, self>
|
||||||
|
*/
|
||||||
|
private static $registeredLoaders = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string|null $vendorDir
|
||||||
|
*/
|
||||||
|
public function __construct($vendorDir = null)
|
||||||
|
{
|
||||||
|
$this->vendorDir = $vendorDir;
|
||||||
|
self::initializeIncludeClosure();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array<string, list<string>>
|
||||||
|
*/
|
||||||
|
public function getPrefixes()
|
||||||
|
{
|
||||||
|
if (!empty($this->prefixesPsr0)) {
|
||||||
|
return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
|
||||||
|
}
|
||||||
|
|
||||||
|
return array();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array<string, list<string>>
|
||||||
|
*/
|
||||||
|
public function getPrefixesPsr4()
|
||||||
|
{
|
||||||
|
return $this->prefixDirsPsr4;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return list<string>
|
||||||
|
*/
|
||||||
|
public function getFallbackDirs()
|
||||||
|
{
|
||||||
|
return $this->fallbackDirsPsr0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return list<string>
|
||||||
|
*/
|
||||||
|
public function getFallbackDirsPsr4()
|
||||||
|
{
|
||||||
|
return $this->fallbackDirsPsr4;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array<string, string> Array of classname => path
|
||||||
|
*/
|
||||||
|
public function getClassMap()
|
||||||
|
{
|
||||||
|
return $this->classMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array<string, string> $classMap Class to filename map
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function addClassMap(array $classMap)
|
||||||
|
{
|
||||||
|
if ($this->classMap) {
|
||||||
|
$this->classMap = array_merge($this->classMap, $classMap);
|
||||||
|
} else {
|
||||||
|
$this->classMap = $classMap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Registers a set of PSR-0 directories for a given prefix, either
|
||||||
|
* appending or prepending to the ones previously set for this prefix.
|
||||||
|
*
|
||||||
|
* @param string $prefix The prefix
|
||||||
|
* @param list<string>|string $paths The PSR-0 root directories
|
||||||
|
* @param bool $prepend Whether to prepend the directories
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function add($prefix, $paths, $prepend = false)
|
||||||
|
{
|
||||||
|
$paths = (array) $paths;
|
||||||
|
if (!$prefix) {
|
||||||
|
if ($prepend) {
|
||||||
|
$this->fallbackDirsPsr0 = array_merge(
|
||||||
|
$paths,
|
||||||
|
$this->fallbackDirsPsr0
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
$this->fallbackDirsPsr0 = array_merge(
|
||||||
|
$this->fallbackDirsPsr0,
|
||||||
|
$paths
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$first = $prefix[0];
|
||||||
|
if (!isset($this->prefixesPsr0[$first][$prefix])) {
|
||||||
|
$this->prefixesPsr0[$first][$prefix] = $paths;
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if ($prepend) {
|
||||||
|
$this->prefixesPsr0[$first][$prefix] = array_merge(
|
||||||
|
$paths,
|
||||||
|
$this->prefixesPsr0[$first][$prefix]
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
$this->prefixesPsr0[$first][$prefix] = array_merge(
|
||||||
|
$this->prefixesPsr0[$first][$prefix],
|
||||||
|
$paths
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Registers a set of PSR-4 directories for a given namespace, either
|
||||||
|
* appending or prepending to the ones previously set for this namespace.
|
||||||
|
*
|
||||||
|
* @param string $prefix The prefix/namespace, with trailing '\\'
|
||||||
|
* @param list<string>|string $paths The PSR-4 base directories
|
||||||
|
* @param bool $prepend Whether to prepend the directories
|
||||||
|
*
|
||||||
|
* @throws \InvalidArgumentException
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function addPsr4($prefix, $paths, $prepend = false)
|
||||||
|
{
|
||||||
|
$paths = (array) $paths;
|
||||||
|
if (!$prefix) {
|
||||||
|
// Register directories for the root namespace.
|
||||||
|
if ($prepend) {
|
||||||
|
$this->fallbackDirsPsr4 = array_merge(
|
||||||
|
$paths,
|
||||||
|
$this->fallbackDirsPsr4
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
$this->fallbackDirsPsr4 = array_merge(
|
||||||
|
$this->fallbackDirsPsr4,
|
||||||
|
$paths
|
||||||
|
);
|
||||||
|
}
|
||||||
|
} elseif (!isset($this->prefixDirsPsr4[$prefix])) {
|
||||||
|
// Register directories for a new namespace.
|
||||||
|
$length = strlen($prefix);
|
||||||
|
if ('\\' !== $prefix[$length - 1]) {
|
||||||
|
throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
|
||||||
|
}
|
||||||
|
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
|
||||||
|
$this->prefixDirsPsr4[$prefix] = $paths;
|
||||||
|
} elseif ($prepend) {
|
||||||
|
// Prepend directories for an already registered namespace.
|
||||||
|
$this->prefixDirsPsr4[$prefix] = array_merge(
|
||||||
|
$paths,
|
||||||
|
$this->prefixDirsPsr4[$prefix]
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
// Append directories for an already registered namespace.
|
||||||
|
$this->prefixDirsPsr4[$prefix] = array_merge(
|
||||||
|
$this->prefixDirsPsr4[$prefix],
|
||||||
|
$paths
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Registers a set of PSR-0 directories for a given prefix,
|
||||||
|
* replacing any others previously set for this prefix.
|
||||||
|
*
|
||||||
|
* @param string $prefix The prefix
|
||||||
|
* @param list<string>|string $paths The PSR-0 base directories
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function set($prefix, $paths)
|
||||||
|
{
|
||||||
|
if (!$prefix) {
|
||||||
|
$this->fallbackDirsPsr0 = (array) $paths;
|
||||||
|
} else {
|
||||||
|
$this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Registers a set of PSR-4 directories for a given namespace,
|
||||||
|
* replacing any others previously set for this namespace.
|
||||||
|
*
|
||||||
|
* @param string $prefix The prefix/namespace, with trailing '\\'
|
||||||
|
* @param list<string>|string $paths The PSR-4 base directories
|
||||||
|
*
|
||||||
|
* @throws \InvalidArgumentException
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function setPsr4($prefix, $paths)
|
||||||
|
{
|
||||||
|
if (!$prefix) {
|
||||||
|
$this->fallbackDirsPsr4 = (array) $paths;
|
||||||
|
} else {
|
||||||
|
$length = strlen($prefix);
|
||||||
|
if ('\\' !== $prefix[$length - 1]) {
|
||||||
|
throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
|
||||||
|
}
|
||||||
|
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
|
||||||
|
$this->prefixDirsPsr4[$prefix] = (array) $paths;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Turns on searching the include path for class files.
|
||||||
|
*
|
||||||
|
* @param bool $useIncludePath
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function setUseIncludePath($useIncludePath)
|
||||||
|
{
|
||||||
|
$this->useIncludePath = $useIncludePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Can be used to check if the autoloader uses the include path to check
|
||||||
|
* for classes.
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function getUseIncludePath()
|
||||||
|
{
|
||||||
|
return $this->useIncludePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Turns off searching the prefix and fallback directories for classes
|
||||||
|
* that have not been registered with the class map.
|
||||||
|
*
|
||||||
|
* @param bool $classMapAuthoritative
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function setClassMapAuthoritative($classMapAuthoritative)
|
||||||
|
{
|
||||||
|
$this->classMapAuthoritative = $classMapAuthoritative;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Should class lookup fail if not found in the current class map?
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function isClassMapAuthoritative()
|
||||||
|
{
|
||||||
|
return $this->classMapAuthoritative;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
|
||||||
|
*
|
||||||
|
* @param string|null $apcuPrefix
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function setApcuPrefix($apcuPrefix)
|
||||||
|
{
|
||||||
|
$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The APCu prefix in use, or null if APCu caching is not enabled.
|
||||||
|
*
|
||||||
|
* @return string|null
|
||||||
|
*/
|
||||||
|
public function getApcuPrefix()
|
||||||
|
{
|
||||||
|
return $this->apcuPrefix;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Registers this instance as an autoloader.
|
||||||
|
*
|
||||||
|
* @param bool $prepend Whether to prepend the autoloader or not
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function register($prepend = false)
|
||||||
|
{
|
||||||
|
spl_autoload_register(array($this, 'loadClass'), true, $prepend);
|
||||||
|
|
||||||
|
if (null === $this->vendorDir) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($prepend) {
|
||||||
|
self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
|
||||||
|
} else {
|
||||||
|
unset(self::$registeredLoaders[$this->vendorDir]);
|
||||||
|
self::$registeredLoaders[$this->vendorDir] = $this;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unregisters this instance as an autoloader.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function unregister()
|
||||||
|
{
|
||||||
|
spl_autoload_unregister(array($this, 'loadClass'));
|
||||||
|
|
||||||
|
if (null !== $this->vendorDir) {
|
||||||
|
unset(self::$registeredLoaders[$this->vendorDir]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Loads the given class or interface.
|
||||||
|
*
|
||||||
|
* @param string $class The name of the class
|
||||||
|
* @return true|null True if loaded, null otherwise
|
||||||
|
*/
|
||||||
|
public function loadClass($class)
|
||||||
|
{
|
||||||
|
if ($file = $this->findFile($class)) {
|
||||||
|
$includeFile = self::$includeFile;
|
||||||
|
$includeFile($file);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Finds the path to the file where the class is defined.
|
||||||
|
*
|
||||||
|
* @param string $class The name of the class
|
||||||
|
*
|
||||||
|
* @return string|false The path if found, false otherwise
|
||||||
|
*/
|
||||||
|
public function findFile($class)
|
||||||
|
{
|
||||||
|
// class map lookup
|
||||||
|
if (isset($this->classMap[$class])) {
|
||||||
|
return $this->classMap[$class];
|
||||||
|
}
|
||||||
|
if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (null !== $this->apcuPrefix) {
|
||||||
|
$file = apcu_fetch($this->apcuPrefix.$class, $hit);
|
||||||
|
if ($hit) {
|
||||||
|
return $file;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$file = $this->findFileWithExtension($class, '.php');
|
||||||
|
|
||||||
|
// Search for Hack files if we are running on HHVM
|
||||||
|
if (false === $file && defined('HHVM_VERSION')) {
|
||||||
|
$file = $this->findFileWithExtension($class, '.hh');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (null !== $this->apcuPrefix) {
|
||||||
|
apcu_add($this->apcuPrefix.$class, $file);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (false === $file) {
|
||||||
|
// Remember that this class does not exist.
|
||||||
|
$this->missingClasses[$class] = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $file;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the currently registered loaders keyed by their corresponding vendor directories.
|
||||||
|
*
|
||||||
|
* @return array<string, self>
|
||||||
|
*/
|
||||||
|
public static function getRegisteredLoaders()
|
||||||
|
{
|
||||||
|
return self::$registeredLoaders;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $class
|
||||||
|
* @param string $ext
|
||||||
|
* @return string|false
|
||||||
|
*/
|
||||||
|
private function findFileWithExtension($class, $ext)
|
||||||
|
{
|
||||||
|
// PSR-4 lookup
|
||||||
|
$logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
|
||||||
|
|
||||||
|
$first = $class[0];
|
||||||
|
if (isset($this->prefixLengthsPsr4[$first])) {
|
||||||
|
$subPath = $class;
|
||||||
|
while (false !== $lastPos = strrpos($subPath, '\\')) {
|
||||||
|
$subPath = substr($subPath, 0, $lastPos);
|
||||||
|
$search = $subPath . '\\';
|
||||||
|
if (isset($this->prefixDirsPsr4[$search])) {
|
||||||
|
$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
|
||||||
|
foreach ($this->prefixDirsPsr4[$search] as $dir) {
|
||||||
|
if (file_exists($file = $dir . $pathEnd)) {
|
||||||
|
return $file;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// PSR-4 fallback dirs
|
||||||
|
foreach ($this->fallbackDirsPsr4 as $dir) {
|
||||||
|
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
|
||||||
|
return $file;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// PSR-0 lookup
|
||||||
|
if (false !== $pos = strrpos($class, '\\')) {
|
||||||
|
// namespaced class name
|
||||||
|
$logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
|
||||||
|
. strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
|
||||||
|
} else {
|
||||||
|
// PEAR-like class name
|
||||||
|
$logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isset($this->prefixesPsr0[$first])) {
|
||||||
|
foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
|
||||||
|
if (0 === strpos($class, $prefix)) {
|
||||||
|
foreach ($dirs as $dir) {
|
||||||
|
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
|
||||||
|
return $file;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// PSR-0 fallback dirs
|
||||||
|
foreach ($this->fallbackDirsPsr0 as $dir) {
|
||||||
|
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
|
||||||
|
return $file;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// PSR-0 include paths.
|
||||||
|
if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
|
||||||
|
return $file;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
private static function initializeIncludeClosure()
|
||||||
|
{
|
||||||
|
if (self::$includeFile !== null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Scope isolated include.
|
||||||
|
*
|
||||||
|
* Prevents access to $this/self from included files.
|
||||||
|
*
|
||||||
|
* @param string $file
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
self::$includeFile = \Closure::bind(static function($file) {
|
||||||
|
include $file;
|
||||||
|
}, null, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
378
datamodels/2.x/combodo-db-tools/vendor/composer/InstalledVersions.php
vendored
Normal file
@@ -0,0 +1,378 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is part of Composer.
|
||||||
|
*
|
||||||
|
* (c) Nils Adermann <naderman@naderman.de>
|
||||||
|
* Jordi Boggiano <j.boggiano@seld.be>
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Composer;
|
||||||
|
|
||||||
|
use Composer\Autoload\ClassLoader;
|
||||||
|
use Composer\Semver\VersionParser;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is copied in every Composer installed project and available to all
|
||||||
|
*
|
||||||
|
* See also https://getcomposer.org/doc/07-runtime.md#installed-versions
|
||||||
|
*
|
||||||
|
* To require its presence, you can require `composer-runtime-api ^2.0`
|
||||||
|
*
|
||||||
|
* @final
|
||||||
|
*/
|
||||||
|
class InstalledVersions
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var mixed[]|null
|
||||||
|
* @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
|
||||||
|
*/
|
||||||
|
private static $installed;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var bool
|
||||||
|
*/
|
||||||
|
private static $installedIsLocalDir;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var bool|null
|
||||||
|
*/
|
||||||
|
private static $canGetVendors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array[]
|
||||||
|
* @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
|
||||||
|
*/
|
||||||
|
private static $installedByVendor = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a list of all package names which are present, either by being installed, replaced or provided
|
||||||
|
*
|
||||||
|
* @return string[]
|
||||||
|
* @psalm-return list<string>
|
||||||
|
*/
|
||||||
|
public static function getInstalledPackages()
|
||||||
|
{
|
||||||
|
$packages = array();
|
||||||
|
foreach (self::getInstalled() as $installed) {
|
||||||
|
$packages[] = array_keys($installed['versions']);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (1 === \count($packages)) {
|
||||||
|
return $packages[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
return array_keys(array_flip(\call_user_func_array('array_merge', $packages)));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a list of all package names with a specific type e.g. 'library'
|
||||||
|
*
|
||||||
|
* @param string $type
|
||||||
|
* @return string[]
|
||||||
|
* @psalm-return list<string>
|
||||||
|
*/
|
||||||
|
public static function getInstalledPackagesByType($type)
|
||||||
|
{
|
||||||
|
$packagesByType = array();
|
||||||
|
|
||||||
|
foreach (self::getInstalled() as $installed) {
|
||||||
|
foreach ($installed['versions'] as $name => $package) {
|
||||||
|
if (isset($package['type']) && $package['type'] === $type) {
|
||||||
|
$packagesByType[] = $name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $packagesByType;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks whether the given package is installed
|
||||||
|
*
|
||||||
|
* This also returns true if the package name is provided or replaced by another package
|
||||||
|
*
|
||||||
|
* @param string $packageName
|
||||||
|
* @param bool $includeDevRequirements
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public static function isInstalled($packageName, $includeDevRequirements = true)
|
||||||
|
{
|
||||||
|
foreach (self::getInstalled() as $installed) {
|
||||||
|
if (isset($installed['versions'][$packageName])) {
|
||||||
|
return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks whether the given package satisfies a version constraint
|
||||||
|
*
|
||||||
|
* e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call:
|
||||||
|
*
|
||||||
|
* Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3')
|
||||||
|
*
|
||||||
|
* @param VersionParser $parser Install composer/semver to have access to this class and functionality
|
||||||
|
* @param string $packageName
|
||||||
|
* @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public static function satisfies(VersionParser $parser, $packageName, $constraint)
|
||||||
|
{
|
||||||
|
$constraint = $parser->parseConstraints((string) $constraint);
|
||||||
|
$provided = $parser->parseConstraints(self::getVersionRanges($packageName));
|
||||||
|
|
||||||
|
return $provided->matches($constraint);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a version constraint representing all the range(s) which are installed for a given package
|
||||||
|
*
|
||||||
|
* It is easier to use this via isInstalled() with the $constraint argument if you need to check
|
||||||
|
* whether a given version of a package is installed, and not just whether it exists
|
||||||
|
*
|
||||||
|
* @param string $packageName
|
||||||
|
* @return string Version constraint usable with composer/semver
|
||||||
|
*/
|
||||||
|
public static function getVersionRanges($packageName)
|
||||||
|
{
|
||||||
|
foreach (self::getInstalled() as $installed) {
|
||||||
|
if (!isset($installed['versions'][$packageName])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$ranges = array();
|
||||||
|
if (isset($installed['versions'][$packageName]['pretty_version'])) {
|
||||||
|
$ranges[] = $installed['versions'][$packageName]['pretty_version'];
|
||||||
|
}
|
||||||
|
if (array_key_exists('aliases', $installed['versions'][$packageName])) {
|
||||||
|
$ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']);
|
||||||
|
}
|
||||||
|
if (array_key_exists('replaced', $installed['versions'][$packageName])) {
|
||||||
|
$ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']);
|
||||||
|
}
|
||||||
|
if (array_key_exists('provided', $installed['versions'][$packageName])) {
|
||||||
|
$ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']);
|
||||||
|
}
|
||||||
|
|
||||||
|
return implode(' || ', $ranges);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $packageName
|
||||||
|
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
|
||||||
|
*/
|
||||||
|
public static function getVersion($packageName)
|
||||||
|
{
|
||||||
|
foreach (self::getInstalled() as $installed) {
|
||||||
|
if (!isset($installed['versions'][$packageName])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset($installed['versions'][$packageName]['version'])) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $installed['versions'][$packageName]['version'];
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $packageName
|
||||||
|
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
|
||||||
|
*/
|
||||||
|
public static function getPrettyVersion($packageName)
|
||||||
|
{
|
||||||
|
foreach (self::getInstalled() as $installed) {
|
||||||
|
if (!isset($installed['versions'][$packageName])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset($installed['versions'][$packageName]['pretty_version'])) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $installed['versions'][$packageName]['pretty_version'];
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $packageName
|
||||||
|
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference
|
||||||
|
*/
|
||||||
|
public static function getReference($packageName)
|
||||||
|
{
|
||||||
|
foreach (self::getInstalled() as $installed) {
|
||||||
|
if (!isset($installed['versions'][$packageName])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset($installed['versions'][$packageName]['reference'])) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $installed['versions'][$packageName]['reference'];
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $packageName
|
||||||
|
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path.
|
||||||
|
*/
|
||||||
|
public static function getInstallPath($packageName)
|
||||||
|
{
|
||||||
|
foreach (self::getInstalled() as $installed) {
|
||||||
|
if (!isset($installed['versions'][$packageName])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array
|
||||||
|
* @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}
|
||||||
|
*/
|
||||||
|
public static function getRootPackage()
|
||||||
|
{
|
||||||
|
$installed = self::getInstalled();
|
||||||
|
|
||||||
|
return $installed[0]['root'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the raw installed.php data for custom implementations
|
||||||
|
*
|
||||||
|
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
|
||||||
|
* @return array[]
|
||||||
|
* @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}
|
||||||
|
*/
|
||||||
|
public static function getRawData()
|
||||||
|
{
|
||||||
|
@trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
|
if (null === self::$installed) {
|
||||||
|
// only require the installed.php file if this file is loaded from its dumped location,
|
||||||
|
// and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
|
||||||
|
if (substr(__DIR__, -8, 1) !== 'C') {
|
||||||
|
self::$installed = include __DIR__ . '/installed.php';
|
||||||
|
} else {
|
||||||
|
self::$installed = array();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return self::$installed;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the raw data of all installed.php which are currently loaded for custom implementations
|
||||||
|
*
|
||||||
|
* @return array[]
|
||||||
|
* @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
|
||||||
|
*/
|
||||||
|
public static function getAllRawData()
|
||||||
|
{
|
||||||
|
return self::getInstalled();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Lets you reload the static array from another file
|
||||||
|
*
|
||||||
|
* This is only useful for complex integrations in which a project needs to use
|
||||||
|
* this class but then also needs to execute another project's autoloader in process,
|
||||||
|
* and wants to ensure both projects have access to their version of installed.php.
|
||||||
|
*
|
||||||
|
* A typical case would be PHPUnit, where it would need to make sure it reads all
|
||||||
|
* the data it needs from this class, then call reload() with
|
||||||
|
* `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure
|
||||||
|
* the project in which it runs can then also use this class safely, without
|
||||||
|
* interference between PHPUnit's dependencies and the project's dependencies.
|
||||||
|
*
|
||||||
|
* @param array[] $data A vendor/composer/installed.php data set
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data
|
||||||
|
*/
|
||||||
|
public static function reload($data)
|
||||||
|
{
|
||||||
|
self::$installed = $data;
|
||||||
|
self::$installedByVendor = array();
|
||||||
|
|
||||||
|
// when using reload, we disable the duplicate protection to ensure that self::$installed data is
|
||||||
|
// always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
|
||||||
|
// so we have to assume it does not, and that may result in duplicate data being returned when listing
|
||||||
|
// all installed packages for example
|
||||||
|
self::$installedIsLocalDir = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array[]
|
||||||
|
* @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
|
||||||
|
*/
|
||||||
|
private static function getInstalled()
|
||||||
|
{
|
||||||
|
if (null === self::$canGetVendors) {
|
||||||
|
self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders');
|
||||||
|
}
|
||||||
|
|
||||||
|
$installed = array();
|
||||||
|
$copiedLocalDir = false;
|
||||||
|
|
||||||
|
if (self::$canGetVendors) {
|
||||||
|
$selfDir = strtr(__DIR__, '\\', '/');
|
||||||
|
foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
|
||||||
|
$vendorDir = strtr($vendorDir, '\\', '/');
|
||||||
|
if (isset(self::$installedByVendor[$vendorDir])) {
|
||||||
|
$installed[] = self::$installedByVendor[$vendorDir];
|
||||||
|
} elseif (is_file($vendorDir.'/composer/installed.php')) {
|
||||||
|
/** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
|
||||||
|
$required = require $vendorDir.'/composer/installed.php';
|
||||||
|
self::$installedByVendor[$vendorDir] = $required;
|
||||||
|
$installed[] = $required;
|
||||||
|
if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
|
||||||
|
self::$installed = $required;
|
||||||
|
self::$installedIsLocalDir = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
|
||||||
|
$copiedLocalDir = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (null === self::$installed) {
|
||||||
|
// only require the installed.php file if this file is loaded from its dumped location,
|
||||||
|
// and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
|
||||||
|
if (substr(__DIR__, -8, 1) !== 'C') {
|
||||||
|
/** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
|
||||||
|
$required = require __DIR__ . '/installed.php';
|
||||||
|
self::$installed = $required;
|
||||||
|
} else {
|
||||||
|
self::$installed = array();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (self::$installed !== array() && !$copiedLocalDir) {
|
||||||
|
$installed[] = self::$installed;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $installed;
|
||||||
|
}
|
||||||
|
}
|
||||||
21
datamodels/2.x/combodo-db-tools/vendor/composer/LICENSE
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
|
||||||
|
Copyright (c) Nils Adermann, Jordi Boggiano
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is furnished
|
||||||
|
to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
|
||||||
15
datamodels/2.x/combodo-db-tools/vendor/composer/autoload_classmap.php
vendored
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// autoload_classmap.php @generated by Composer
|
||||||
|
|
||||||
|
$vendorDir = dirname(__DIR__);
|
||||||
|
$baseDir = dirname($vendorDir);
|
||||||
|
|
||||||
|
return array(
|
||||||
|
'Combodo\\iTop\\DBTools\\Enum\\BinExitCode' => $baseDir . '/src/Enum/BinExitCode.php',
|
||||||
|
'Combodo\\iTop\\DBTools\\Exception\\AuthenticationException' => $baseDir . '/src/Exception/AuthenticationException.php',
|
||||||
|
'Combodo\\iTop\\DBTools\\Service\\BinUtils' => $baseDir . '/src/Service/BinUtils.php',
|
||||||
|
'Combodo\\iTop\\DBTools\\Service\\DBAnalyzerUtils' => $baseDir . '/src/Service/DBAnalyzerUtils.php',
|
||||||
|
'Combodo\\iTop\\DBTools\\Service\\DBToolsUtils' => $baseDir . '/src/Service/DBToolsUtils.php',
|
||||||
|
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
|
||||||
|
);
|
||||||
9
datamodels/2.x/combodo-db-tools/vendor/composer/autoload_namespaces.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// autoload_namespaces.php @generated by Composer
|
||||||
|
|
||||||
|
$vendorDir = dirname(__DIR__);
|
||||||
|
$baseDir = dirname($vendorDir);
|
||||||
|
|
||||||
|
return array(
|
||||||
|
);
|
||||||
10
datamodels/2.x/combodo-db-tools/vendor/composer/autoload_psr4.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// autoload_psr4.php @generated by Composer
|
||||||
|
|
||||||
|
$vendorDir = dirname(__DIR__);
|
||||||
|
$baseDir = dirname($vendorDir);
|
||||||
|
|
||||||
|
return array(
|
||||||
|
'Combodo\\iTop\\DBTools\\' => array($baseDir . '/src'),
|
||||||
|
);
|
||||||
37
datamodels/2.x/combodo-db-tools/vendor/composer/autoload_real.php
vendored
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// autoload_real.php @generated by Composer
|
||||||
|
|
||||||
|
class ComposerAutoloaderInit38292b9b3a56c6c8776285a17c58034e
|
||||||
|
{
|
||||||
|
private static $loader;
|
||||||
|
|
||||||
|
public static function loadClassLoader($class)
|
||||||
|
{
|
||||||
|
if ('Composer\Autoload\ClassLoader' === $class) {
|
||||||
|
require __DIR__ . '/ClassLoader.php';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return \Composer\Autoload\ClassLoader
|
||||||
|
*/
|
||||||
|
public static function getLoader()
|
||||||
|
{
|
||||||
|
if (null !== self::$loader) {
|
||||||
|
return self::$loader;
|
||||||
|
}
|
||||||
|
|
||||||
|
spl_autoload_register(array('ComposerAutoloaderInit38292b9b3a56c6c8776285a17c58034e', 'loadClassLoader'), true, true);
|
||||||
|
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||||
|
spl_autoload_unregister(array('ComposerAutoloaderInit38292b9b3a56c6c8776285a17c58034e', 'loadClassLoader'));
|
||||||
|
|
||||||
|
require __DIR__ . '/autoload_static.php';
|
||||||
|
call_user_func(\Composer\Autoload\ComposerStaticInit38292b9b3a56c6c8776285a17c58034e::getInitializer($loader));
|
||||||
|
|
||||||
|
$loader->setClassMapAuthoritative(true);
|
||||||
|
$loader->register(true);
|
||||||
|
|
||||||
|
return $loader;
|
||||||
|
}
|
||||||
|
}
|
||||||
41
datamodels/2.x/combodo-db-tools/vendor/composer/autoload_static.php
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// autoload_static.php @generated by Composer
|
||||||
|
|
||||||
|
namespace Composer\Autoload;
|
||||||
|
|
||||||
|
class ComposerStaticInit38292b9b3a56c6c8776285a17c58034e
|
||||||
|
{
|
||||||
|
public static $prefixLengthsPsr4 = array (
|
||||||
|
'C' =>
|
||||||
|
array (
|
||||||
|
'Combodo\\iTop\\DBTools\\' => 21,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
public static $prefixDirsPsr4 = array (
|
||||||
|
'Combodo\\iTop\\DBTools\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/../..' . '/src',
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
public static $classMap = array (
|
||||||
|
'Combodo\\iTop\\DBTools\\Enum\\BinExitCode' => __DIR__ . '/../..' . '/src/Enum/BinExitCode.php',
|
||||||
|
'Combodo\\iTop\\DBTools\\Exception\\AuthenticationException' => __DIR__ . '/../..' . '/src/Exception/AuthenticationException.php',
|
||||||
|
'Combodo\\iTop\\DBTools\\Service\\BinUtils' => __DIR__ . '/../..' . '/src/Service/BinUtils.php',
|
||||||
|
'Combodo\\iTop\\DBTools\\Service\\DBAnalyzerUtils' => __DIR__ . '/../..' . '/src/Service/DBAnalyzerUtils.php',
|
||||||
|
'Combodo\\iTop\\DBTools\\Service\\DBToolsUtils' => __DIR__ . '/../..' . '/src/Service/DBToolsUtils.php',
|
||||||
|
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
|
||||||
|
);
|
||||||
|
|
||||||
|
public static function getInitializer(ClassLoader $loader)
|
||||||
|
{
|
||||||
|
return \Closure::bind(function () use ($loader) {
|
||||||
|
$loader->prefixLengthsPsr4 = ComposerStaticInit38292b9b3a56c6c8776285a17c58034e::$prefixLengthsPsr4;
|
||||||
|
$loader->prefixDirsPsr4 = ComposerStaticInit38292b9b3a56c6c8776285a17c58034e::$prefixDirsPsr4;
|
||||||
|
$loader->classMap = ComposerStaticInit38292b9b3a56c6c8776285a17c58034e::$classMap;
|
||||||
|
|
||||||
|
}, null, ClassLoader::class);
|
||||||
|
}
|
||||||
|
}
|
||||||
5
datamodels/2.x/combodo-db-tools/vendor/composer/installed.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"packages": [],
|
||||||
|
"dev": true,
|
||||||
|
"dev-package-names": []
|
||||||
|
}
|
||||||
23
datamodels/2.x/combodo-db-tools/vendor/composer/installed.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<?php return array(
|
||||||
|
'root' => array(
|
||||||
|
'name' => 'combodo/combodo-db-tools',
|
||||||
|
'pretty_version' => '1.0.0+no-version-set',
|
||||||
|
'version' => '1.0.0.0',
|
||||||
|
'reference' => null,
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../../',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev' => true,
|
||||||
|
),
|
||||||
|
'versions' => array(
|
||||||
|
'combodo/combodo-db-tools' => array(
|
||||||
|
'pretty_version' => '1.0.0+no-version-set',
|
||||||
|
'version' => '1.0.0.0',
|
||||||
|
'reference' => null,
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../../',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
@@ -47,7 +47,7 @@ or ask your '.ITOP_APPLICATION_SHORT.' administrator if the '.ITOP_APPLICATION_S
|
|||||||
|
|
||||||
Dict::Add('EN US', 'English', 'English', [
|
Dict::Add('EN US', 'English', 'English', [
|
||||||
'Class:Attachment' => 'Attachment',
|
'Class:Attachment' => 'Attachment',
|
||||||
'Class:Attachment+' => '',
|
'Class:Attachment+' => 'File: text or image, linked to a single object. It can\'t be modified, only deleted. Attachment can\'t be created outside of its object edition.',
|
||||||
'Class:Attachment/Attribute:expire' => 'Expire',
|
'Class:Attachment/Attribute:expire' => 'Expire',
|
||||||
'Class:Attachment/Attribute:expire+' => '',
|
'Class:Attachment/Attribute:expire+' => '',
|
||||||
'Class:Attachment/Attribute:temp_id' => 'Temporary id',
|
'Class:Attachment/Attribute:temp_id' => 'Temporary id',
|
||||||
|
|||||||
@@ -38,8 +38,8 @@ Soit demandez à votre administrateur système s\'il reste de la place disque di
|
|||||||
//
|
//
|
||||||
|
|
||||||
Dict::Add('FR FR', 'French', 'Français', [
|
Dict::Add('FR FR', 'French', 'Français', [
|
||||||
'Class:Attachment' => 'Attachement',
|
'Class:Attachment' => 'Pièce jointe',
|
||||||
'Class:Attachment+' => '',
|
'Class:Attachment+' => 'Fichier : texte ou image, associé à un et un seul object, supprimable mais non modifiable, non créable en dehors d\'un objet',
|
||||||
'Class:Attachment/Attribute:expire' => 'Expire',
|
'Class:Attachment/Attribute:expire' => 'Expire',
|
||||||
'Class:Attachment/Attribute:expire+' => '',
|
'Class:Attachment/Attribute:expire+' => '',
|
||||||
'Class:Attachment/Attribute:temp_id' => 'Id Temporaire',
|
'Class:Attachment/Attribute:temp_id' => 'Id Temporaire',
|
||||||
@@ -82,12 +82,12 @@ Dict::Add('FR FR', 'French', 'Français', [
|
|||||||
|
|
||||||
Dict::Add('FR FR', 'French', 'Français', [
|
Dict::Add('FR FR', 'French', 'Français', [
|
||||||
'Class:TriggerOnAttachmentDownload' => 'Déclencheur sur le téléchargement d\'une pièce jointe d\'un objet',
|
'Class:TriggerOnAttachmentDownload' => 'Déclencheur sur le téléchargement d\'une pièce jointe d\'un objet',
|
||||||
'Class:TriggerOnAttachmentDownload+' => '',
|
'Class:TriggerOnAttachmentDownload+' => 'Déclencheur sur le téléchargement d\'une pièce jointe depuis un objet de la classe donnée ou d\'une classe enfant.',
|
||||||
'Class:TriggerOnAttachmentCreate' => 'Déclencheur sur la création d\'une pièce jointe',
|
'Class:TriggerOnAttachmentCreate' => 'Déclencheur sur la création d\'une pièce jointe',
|
||||||
'Class:TriggerOnAttachmentCreate+' => '',
|
'Class:TriggerOnAttachmentCreate+' => 'Déclencheur sur la création d\'une pièce jointe d\'un objet',
|
||||||
'Class:TriggerOnAttachmentCreate/Attribute:file_in_email' => 'Ajoute le fichier dans l\'email',
|
'Class:TriggerOnAttachmentCreate/Attribute:file_in_email' => 'Ajoute le fichier dans l\'email',
|
||||||
'Class:TriggerOnAttachmentCreate/Attribute:file_in_email+' => 'Si coché, le fichier sera automatiquement attaché à l\'email quand l\'action email est lancée',
|
'Class:TriggerOnAttachmentCreate/Attribute:file_in_email+' => 'Si coché, le fichier sera automatiquement attaché à l\'email quand l\'action email est lancée',
|
||||||
'Class:TriggerOnAttachmentDelete' => 'Déclencheur sur la suppression d\'une pièce jointe',
|
'Class:TriggerOnAttachmentDelete' => 'Déclencheur sur la suppression d\'une pièce jointe',
|
||||||
'Class:TriggerOnAttachmentDelete+' => '',
|
'Class:TriggerOnAttachmentDelete+' => 'Déclencheur sur la suppression d\'une pièce jointe d\'un objet',
|
||||||
'Class:TriggerOnObject:TriggerClassAttachment/ReadOnlyMessage' => 'Les Triggers sur les objets ne sont pas autorisés sur la classe Attachement. Veuillez utiliser les triggers spécifiques pour cette classe',
|
'Class:TriggerOnObject:TriggerClassAttachment/ReadOnlyMessage' => 'Les Triggers sur les objets ne sont pas autorisés sur la classe Attachement. Veuillez utiliser les triggers spécifiques pour cette classe',
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -199,15 +199,15 @@ function RaiseAlarm($sMessage)
|
|||||||
//////////
|
//////////
|
||||||
// Main
|
// Main
|
||||||
|
|
||||||
try {
|
|
||||||
utils::UseParamFile();
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo "Error: ".$e->GetMessage()."\n";
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (utils::IsModeCLI()) {
|
if (utils::IsModeCLI()) {
|
||||||
SetupUtils::CheckPhpAndExtensionsForCli(new CLIPage('Check backup utility'));
|
try {
|
||||||
|
utils::UseParamFile();
|
||||||
|
} catch (Exception $e) {
|
||||||
|
echo 'Error: '.$e->GetMessage()."\n";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
$oP = new CLIPage('Check backup utility');
|
||||||
|
SetupUtils::CheckPhpAndExtensionsForCli($oP);
|
||||||
|
|
||||||
echo date('Y-m-d H:i:s')." - running check-backup utility\n";
|
echo date('Y-m-d H:i:s')." - running check-backup utility\n";
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -88,16 +88,15 @@ if (utils::IsModeCLI()) {
|
|||||||
$oP = new CLIPage(GetOperationName());
|
$oP = new CLIPage(GetOperationName());
|
||||||
|
|
||||||
SetupUtils::CheckPhpAndExtensionsForCli($oP);
|
SetupUtils::CheckPhpAndExtensionsForCli($oP);
|
||||||
|
try {
|
||||||
|
utils::UseParamFile();
|
||||||
|
} catch (Exception $e) {
|
||||||
|
ExitError($oP, $e->GetMessage());
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$oP = new WebPage(GetOperationName());
|
$oP = new WebPage(GetOperationName());
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
|
||||||
utils::UseParamFile();
|
|
||||||
} catch (Exception $e) {
|
|
||||||
ExitError($oP, $e->GetMessage());
|
|
||||||
}
|
|
||||||
|
|
||||||
ExecuteMainOperation($oP);
|
ExecuteMainOperation($oP);
|
||||||
|
|
||||||
$oP->output();
|
$oP->output();
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class DBRestore extends DBBackup
|
|||||||
/** @var string */
|
/** @var string */
|
||||||
private $sDBUser;
|
private $sDBUser;
|
||||||
|
|
||||||
public function __construct(\Config $oConfig = null)
|
public function __construct(?\Config $oConfig = null)
|
||||||
{
|
{
|
||||||
parent::__construct($oConfig);
|
parent::__construct($oConfig);
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,11 @@ SetupWebPage::AddModule(
|
|||||||
'doc.manual_setup' => '',
|
'doc.manual_setup' => '',
|
||||||
'doc.more_information' => '',
|
'doc.more_information' => '',
|
||||||
|
|
||||||
|
// Security
|
||||||
|
'delegated_authentication_endpoints' => [
|
||||||
|
'ajax.backup.php',
|
||||||
|
],
|
||||||
|
|
||||||
// Default settings
|
// Default settings
|
||||||
//
|
//
|
||||||
'settings' => [
|
'settings' => [
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
Dict::Add('EN US', 'English', 'English', [
|
Dict::Add('EN US', 'English', 'English', [
|
||||||
'Class:lnkFunctionalCIToProviderContract' => 'Link FunctionalCI / ProviderContract',
|
'Class:lnkFunctionalCIToProviderContract' => 'Link FunctionalCI / ProviderContract',
|
||||||
'Class:lnkFunctionalCIToProviderContract+' => '',
|
'Class:lnkFunctionalCIToProviderContract+' => 'This link models the functional CIs that are supported by an external company through a provider contract.',
|
||||||
'Class:lnkFunctionalCIToProviderContract/Name' => '%1$s / %2$s',
|
'Class:lnkFunctionalCIToProviderContract/Name' => '%1$s / %2$s',
|
||||||
'Class:lnkFunctionalCIToProviderContract/Attribute:providercontract_id' => 'Provider contract',
|
'Class:lnkFunctionalCIToProviderContract/Attribute:providercontract_id' => 'Provider contract',
|
||||||
'Class:lnkFunctionalCIToProviderContract/Attribute:providercontract_id+' => '',
|
'Class:lnkFunctionalCIToProviderContract/Attribute:providercontract_id+' => '',
|
||||||
@@ -53,7 +53,7 @@ Dict::Add('EN US', 'English', 'English', [
|
|||||||
|
|
||||||
Dict::Add('EN US', 'English', 'English', [
|
Dict::Add('EN US', 'English', 'English', [
|
||||||
'Class:lnkFunctionalCIToService' => 'Link FunctionalCI / Service',
|
'Class:lnkFunctionalCIToService' => 'Link FunctionalCI / Service',
|
||||||
'Class:lnkFunctionalCIToService+' => '',
|
'Class:lnkFunctionalCIToService+' => 'This link models the functional CIs that are required to deliver a Service and whose malfunction would affect the quality of the Service.',
|
||||||
'Class:lnkFunctionalCIToService/Name' => '%1$s / %2$s',
|
'Class:lnkFunctionalCIToService/Name' => '%1$s / %2$s',
|
||||||
'Class:lnkFunctionalCIToService/Attribute:service_id' => 'Service',
|
'Class:lnkFunctionalCIToService/Attribute:service_id' => 'Service',
|
||||||
'Class:lnkFunctionalCIToService/Attribute:service_id+' => '',
|
'Class:lnkFunctionalCIToService/Attribute:service_id+' => '',
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
Dict::Add('FR FR', 'French', 'Français', [
|
Dict::Add('FR FR', 'French', 'Français', [
|
||||||
'Class:lnkFunctionalCIToProviderContract' => 'Lien CI / Contrat fournisseur',
|
'Class:lnkFunctionalCIToProviderContract' => 'Lien CI fonctionnel / Contrat fournisseur',
|
||||||
'Class:lnkFunctionalCIToProviderContract+' => '',
|
'Class:lnkFunctionalCIToProviderContract+' => 'Ce lien modélise les équipments (CI fonctionnel) qui sont supportés par une société externe à travers un Contrat fournisseur.',
|
||||||
'Class:lnkFunctionalCIToProviderContract/Name' => '%1$s / %2$s',
|
'Class:lnkFunctionalCIToProviderContract/Name' => '%1$s / %2$s',
|
||||||
'Class:lnkFunctionalCIToProviderContract/Attribute:providercontract_id' => 'Contrat fournisseur',
|
'Class:lnkFunctionalCIToProviderContract/Attribute:providercontract_id' => 'Contrat fournisseur',
|
||||||
'Class:lnkFunctionalCIToProviderContract/Attribute:providercontract_id+' => '',
|
'Class:lnkFunctionalCIToProviderContract/Attribute:providercontract_id+' => '',
|
||||||
@@ -30,8 +30,8 @@ Dict::Add('FR FR', 'French', 'Français', [
|
|||||||
//
|
//
|
||||||
|
|
||||||
Dict::Add('FR FR', 'French', 'Français', [
|
Dict::Add('FR FR', 'French', 'Français', [
|
||||||
'Class:lnkFunctionalCIToService' => 'Lien CI / Service',
|
'Class:lnkFunctionalCIToService' => 'Lien CI fonctionnel / Service',
|
||||||
'Class:lnkFunctionalCIToService+' => '',
|
'Class:lnkFunctionalCIToService+' => 'Ce lien modélise les équipments (CI fonctionnel) qui sont nécessaires pour délivrer un Service et dont le dysfonctionnement affecterait la qualité du Service en question.',
|
||||||
'Class:lnkFunctionalCIToService/Name' => '%1$s / %2$s',
|
'Class:lnkFunctionalCIToService/Name' => '%1$s / %2$s',
|
||||||
'Class:lnkFunctionalCIToService/Attribute:service_id' => 'Service',
|
'Class:lnkFunctionalCIToService/Attribute:service_id' => 'Service',
|
||||||
'Class:lnkFunctionalCIToService/Attribute:service_id+' => '',
|
'Class:lnkFunctionalCIToService/Attribute:service_id+' => '',
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
Dict::Add('EN US', 'English', 'English', [
|
Dict::Add('EN US', 'English', 'English', [
|
||||||
'Class:lnkFunctionalCIToTicket' => 'Link FunctionalCI / Ticket',
|
'Class:lnkFunctionalCIToTicket' => 'Link FunctionalCI / Ticket',
|
||||||
'Class:lnkFunctionalCIToTicket+' => '',
|
'Class:lnkFunctionalCIToTicket+' => 'This link models the functional CIs that are concerned by a Ticket (such as a User Request, an Incident, a Change, ...)',
|
||||||
'Class:lnkFunctionalCIToTicket/Name' => '%1$s / %2$s',
|
'Class:lnkFunctionalCIToTicket/Name' => '%1$s / %2$s',
|
||||||
'Class:lnkFunctionalCIToTicket/Attribute:ticket_id' => 'Ticket',
|
'Class:lnkFunctionalCIToTicket/Attribute:ticket_id' => 'Ticket',
|
||||||
'Class:lnkFunctionalCIToTicket/Attribute:ticket_id+' => '',
|
'Class:lnkFunctionalCIToTicket/Attribute:ticket_id+' => '',
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
Dict::Add('FR FR', 'French', 'Français', [
|
Dict::Add('FR FR', 'French', 'Français', [
|
||||||
'Class:lnkFunctionalCIToTicket' => 'Lien CI / Ticket',
|
'Class:lnkFunctionalCIToTicket' => 'Lien CI fonctionnel / Ticket',
|
||||||
'Class:lnkFunctionalCIToTicket+' => '',
|
'Class:lnkFunctionalCIToTicket+' => 'Ce lien modélise les équipments (CI fonctionnel) qui sont concernés par un Ticket (comme une Demande utilisateur, un Incident, un Changement,...)',
|
||||||
'Class:lnkFunctionalCIToTicket/Name' => '%1$s / %2$s',
|
'Class:lnkFunctionalCIToTicket/Name' => '%1$s / %2$s',
|
||||||
'Class:lnkFunctionalCIToTicket/Attribute:ticket_id' => 'Ticket',
|
'Class:lnkFunctionalCIToTicket/Attribute:ticket_id' => 'Ticket',
|
||||||
'Class:lnkFunctionalCIToTicket/Attribute:ticket_id+' => '',
|
'Class:lnkFunctionalCIToTicket/Attribute:ticket_id+' => '',
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ Dict::Add('EN US', 'English', 'English', [
|
|||||||
|
|
||||||
Dict::Add('EN US', 'English', 'English', [
|
Dict::Add('EN US', 'English', 'English', [
|
||||||
'Class:Change' => 'Change',
|
'Class:Change' => 'Change',
|
||||||
'Class:Change+' => '',
|
'Class:Change+' => 'Abstract class. A type of Ticket to handle Change which has an effect on delivered Services.',
|
||||||
'Class:Change/Attribute:status' => 'Status',
|
'Class:Change/Attribute:status' => 'Status',
|
||||||
'Class:Change/Attribute:status+' => '',
|
'Class:Change/Attribute:status+' => '',
|
||||||
'Class:Change/Attribute:status/Value:new' => 'New',
|
'Class:Change/Attribute:status/Value:new' => 'New',
|
||||||
@@ -167,7 +167,7 @@ Dict::Add('EN US', 'English', 'English', [
|
|||||||
|
|
||||||
Dict::Add('EN US', 'English', 'English', [
|
Dict::Add('EN US', 'English', 'English', [
|
||||||
'Class:RoutineChange' => 'Routine Change',
|
'Class:RoutineChange' => 'Routine Change',
|
||||||
'Class:RoutineChange+' => '',
|
'Class:RoutineChange+' => 'Standard change with low risk, without the need for additional authorization, and for which a validated procedure exists and must be applied.',
|
||||||
'Class:RoutineChange/Stimulus:ev_validate' => 'Validate',
|
'Class:RoutineChange/Stimulus:ev_validate' => 'Validate',
|
||||||
'Class:RoutineChange/Stimulus:ev_validate+' => '',
|
'Class:RoutineChange/Stimulus:ev_validate+' => '',
|
||||||
'Class:RoutineChange/Stimulus:ev_reject' => 'Reject',
|
'Class:RoutineChange/Stimulus:ev_reject' => 'Reject',
|
||||||
@@ -197,8 +197,8 @@ Dict::Add('EN US', 'English', 'English', [
|
|||||||
//
|
//
|
||||||
|
|
||||||
Dict::Add('EN US', 'English', 'English', [
|
Dict::Add('EN US', 'English', 'English', [
|
||||||
'Class:ApprovedChange' => 'Approved Changes',
|
'Class:ApprovedChange' => 'Change To Approve',
|
||||||
'Class:ApprovedChange+' => '',
|
'Class:ApprovedChange+' => 'Abstract class. Normal Change and Emergency Change which requires an approval.',
|
||||||
'Class:ApprovedChange/Attribute:approval_date' => 'Approval Date',
|
'Class:ApprovedChange/Attribute:approval_date' => 'Approval Date',
|
||||||
'Class:ApprovedChange/Attribute:approval_date+' => '',
|
'Class:ApprovedChange/Attribute:approval_date+' => '',
|
||||||
'Class:ApprovedChange/Attribute:approval_comment' => 'Approval comment',
|
'Class:ApprovedChange/Attribute:approval_comment' => 'Approval comment',
|
||||||
@@ -233,7 +233,7 @@ Dict::Add('EN US', 'English', 'English', [
|
|||||||
|
|
||||||
Dict::Add('EN US', 'English', 'English', [
|
Dict::Add('EN US', 'English', 'English', [
|
||||||
'Class:NormalChange' => 'Normal Change',
|
'Class:NormalChange' => 'Normal Change',
|
||||||
'Class:NormalChange+' => '',
|
'Class:NormalChange+' => 'Type of Change',
|
||||||
'Class:NormalChange/Attribute:acceptance_date' => 'Acceptance date',
|
'Class:NormalChange/Attribute:acceptance_date' => 'Acceptance date',
|
||||||
'Class:NormalChange/Attribute:acceptance_date+' => '',
|
'Class:NormalChange/Attribute:acceptance_date+' => '',
|
||||||
'Class:NormalChange/Attribute:acceptance_comment' => 'Acceptance comment',
|
'Class:NormalChange/Attribute:acceptance_comment' => 'Acceptance comment',
|
||||||
@@ -268,7 +268,7 @@ Dict::Add('EN US', 'English', 'English', [
|
|||||||
|
|
||||||
Dict::Add('EN US', 'English', 'English', [
|
Dict::Add('EN US', 'English', 'English', [
|
||||||
'Class:EmergencyChange' => 'Emergency Change',
|
'Class:EmergencyChange' => 'Emergency Change',
|
||||||
'Class:EmergencyChange+' => '',
|
'Class:EmergencyChange+' => 'Change Ticket to manage emergency situations (malfunctions, security). The approval process is accelerated. The Emergency Change is implemented as soon as possible.',
|
||||||
'Class:EmergencyChange/Stimulus:ev_validate' => 'Validate',
|
'Class:EmergencyChange/Stimulus:ev_validate' => 'Validate',
|
||||||
'Class:EmergencyChange/Stimulus:ev_validate+' => '',
|
'Class:EmergencyChange/Stimulus:ev_validate+' => '',
|
||||||
'Class:EmergencyChange/Stimulus:ev_reject' => 'Reject',
|
'Class:EmergencyChange/Stimulus:ev_reject' => 'Reject',
|
||||||
|
|||||||
@@ -51,8 +51,8 @@ Dict::Add('FR FR', 'French', 'Français', [
|
|||||||
//
|
//
|
||||||
|
|
||||||
Dict::Add('FR FR', 'French', 'Français', [
|
Dict::Add('FR FR', 'French', 'Français', [
|
||||||
'Class:Change' => 'Ticket de Changement',
|
'Class:Change' => 'Ticket de changement',
|
||||||
'Class:Change+' => '',
|
'Class:Change+' => 'Classe abstraite. Une catégorie de Ticket pour gérer les Changements qui peuvent avoir un effet sur les Services délivrés.',
|
||||||
'Class:Change/Attribute:status' => 'Etat',
|
'Class:Change/Attribute:status' => 'Etat',
|
||||||
'Class:Change/Attribute:status+' => '',
|
'Class:Change/Attribute:status+' => '',
|
||||||
'Class:Change/Attribute:status/Value:new' => 'Nouveau',
|
'Class:Change/Attribute:status/Value:new' => 'Nouveau',
|
||||||
@@ -178,8 +178,8 @@ Dict::Add('FR FR', 'French', 'Français', [
|
|||||||
//
|
//
|
||||||
|
|
||||||
Dict::Add('FR FR', 'French', 'Français', [
|
Dict::Add('FR FR', 'French', 'Français', [
|
||||||
'Class:RoutineChange' => 'Changement de Routine',
|
'Class:RoutineChange' => 'Changement de routine',
|
||||||
'Class:RoutineChange+' => '',
|
'Class:RoutineChange+' => 'Changement standard à faible risque, sans nécessité d\'autorisation supplémentaire, et pour lequel une procédure validée existe et doit être appliquée.',
|
||||||
'Class:RoutineChange/Stimulus:ev_validate' => 'Valider',
|
'Class:RoutineChange/Stimulus:ev_validate' => 'Valider',
|
||||||
'Class:RoutineChange/Stimulus:ev_validate+' => '',
|
'Class:RoutineChange/Stimulus:ev_validate+' => '',
|
||||||
'Class:RoutineChange/Stimulus:ev_reject' => 'Refuser',
|
'Class:RoutineChange/Stimulus:ev_reject' => 'Refuser',
|
||||||
@@ -209,8 +209,8 @@ Dict::Add('FR FR', 'French', 'Français', [
|
|||||||
//
|
//
|
||||||
|
|
||||||
Dict::Add('FR FR', 'French', 'Français', [
|
Dict::Add('FR FR', 'French', 'Français', [
|
||||||
'Class:ApprovedChange' => 'Changement pré-approuvé',
|
'Class:ApprovedChange' => 'Changement à approuver',
|
||||||
'Class:ApprovedChange+' => '',
|
'Class:ApprovedChange+' => 'Classe abstraite. Changement normal ou Changement urgent qui nécessite une approbation.',
|
||||||
'Class:ApprovedChange/Attribute:approval_date' => 'Date d\'approbation',
|
'Class:ApprovedChange/Attribute:approval_date' => 'Date d\'approbation',
|
||||||
'Class:ApprovedChange/Attribute:approval_date+' => '',
|
'Class:ApprovedChange/Attribute:approval_date+' => '',
|
||||||
'Class:ApprovedChange/Attribute:approval_comment' => 'Commentaire sur l\'approbation',
|
'Class:ApprovedChange/Attribute:approval_comment' => 'Commentaire sur l\'approbation',
|
||||||
@@ -244,8 +244,8 @@ Dict::Add('FR FR', 'French', 'Français', [
|
|||||||
//
|
//
|
||||||
|
|
||||||
Dict::Add('FR FR', 'French', 'Français', [
|
Dict::Add('FR FR', 'French', 'Français', [
|
||||||
'Class:NormalChange' => 'Changement Normal',
|
'Class:NormalChange' => 'Changement normal',
|
||||||
'Class:NormalChange+' => '',
|
'Class:NormalChange+' => 'Type de Changement. A planifier, à évaluer et à autoriser avant son déploiement. Utilisé pour les changements à risque moyen ou fort, non standardisé et non urgent',
|
||||||
'Class:NormalChange/Attribute:acceptance_date' => 'Date d\'acceptation',
|
'Class:NormalChange/Attribute:acceptance_date' => 'Date d\'acceptation',
|
||||||
'Class:NormalChange/Attribute:acceptance_date+' => '',
|
'Class:NormalChange/Attribute:acceptance_date+' => '',
|
||||||
'Class:NormalChange/Attribute:acceptance_comment' => 'Commentaire sur l\'acceptation',
|
'Class:NormalChange/Attribute:acceptance_comment' => 'Commentaire sur l\'acceptation',
|
||||||
@@ -280,7 +280,7 @@ Dict::Add('FR FR', 'French', 'Français', [
|
|||||||
|
|
||||||
Dict::Add('FR FR', 'French', 'Français', [
|
Dict::Add('FR FR', 'French', 'Français', [
|
||||||
'Class:EmergencyChange' => 'Changement urgent',
|
'Class:EmergencyChange' => 'Changement urgent',
|
||||||
'Class:EmergencyChange+' => '',
|
'Class:EmergencyChange+' => 'Ticket de Changement pour gérer les cas d\'urgence (dysfonctionnement, sécurité). Le processus d\'approbation est accéléré. Le Changement urgent est effectué dès que possible.',
|
||||||
'Class:EmergencyChange/Stimulus:ev_validate' => 'Valider',
|
'Class:EmergencyChange/Stimulus:ev_validate' => 'Valider',
|
||||||
'Class:EmergencyChange/Stimulus:ev_validate+' => '',
|
'Class:EmergencyChange/Stimulus:ev_validate+' => '',
|
||||||
'Class:EmergencyChange/Stimulus:ev_reject' => 'Rejeter',
|
'Class:EmergencyChange/Stimulus:ev_reject' => 'Rejeter',
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ Dict::Add('SK SK', 'Slovak', 'Slovenčina', [
|
|||||||
//
|
//
|
||||||
|
|
||||||
Dict::Add('SK SK', 'Slovak', 'Slovenčina', [
|
Dict::Add('SK SK', 'Slovak', 'Slovenčina', [
|
||||||
'Class:ApprovedChange' => 'Approved Changes~~',
|
'Class:ApprovedChange' => 'Change To Approve~~',
|
||||||
'Class:ApprovedChange+' => '~~',
|
'Class:ApprovedChange+' => '~~',
|
||||||
'Class:ApprovedChange/Attribute:approval_date' => 'Approval Date~~',
|
'Class:ApprovedChange/Attribute:approval_date' => 'Approval Date~~',
|
||||||
'Class:ApprovedChange/Attribute:approval_date+' => '~~',
|
'Class:ApprovedChange/Attribute:approval_date+' => '~~',
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ Dict::Add('EN US', 'English', 'English', [
|
|||||||
|
|
||||||
Dict::Add('EN US', 'English', 'English', [
|
Dict::Add('EN US', 'English', 'English', [
|
||||||
'Class:Change' => 'Change',
|
'Class:Change' => 'Change',
|
||||||
'Class:Change+' => '',
|
'Class:Change+' => 'A type of Ticket to handle Change which has an effect on delivered Services.',
|
||||||
'Class:Change/Attribute:status' => 'Status',
|
'Class:Change/Attribute:status' => 'Status',
|
||||||
'Class:Change/Attribute:status+' => '',
|
'Class:Change/Attribute:status+' => '',
|
||||||
'Class:Change/Attribute:status/Value:new' => 'New',
|
'Class:Change/Attribute:status/Value:new' => 'New',
|
||||||
|
|||||||
@@ -51,8 +51,8 @@ Dict::Add('FR FR', 'French', 'Français', [
|
|||||||
//
|
//
|
||||||
|
|
||||||
Dict::Add('FR FR', 'French', 'Français', [
|
Dict::Add('FR FR', 'French', 'Français', [
|
||||||
'Class:Change' => 'Ticket de Changement',
|
'Class:Change' => 'Ticket de changement',
|
||||||
'Class:Change+' => '',
|
'Class:Change+' => 'Une catégorie de Ticket pour gérer les Changements qui peuvent avoir un effet sur les Services délivrés.',
|
||||||
'Class:Change/Attribute:status' => 'Etat',
|
'Class:Change/Attribute:status' => 'Etat',
|
||||||
'Class:Change/Attribute:status+' => '',
|
'Class:Change/Attribute:status+' => '',
|
||||||
'Class:Change/Attribute:status/Value:new' => 'Nouveau',
|
'Class:Change/Attribute:status/Value:new' => 'Nouveau',
|
||||||
|
|||||||
43
datamodels/2.x/itop-config-mgmt/assets/img/icon-acer.svg
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
version="1.1"
|
||||||
|
id="acer"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
width="83"
|
||||||
|
height="83"
|
||||||
|
viewBox="0 0 83 83"
|
||||||
|
xml:space="preserve"
|
||||||
|
sodipodi:docname="icon-acer.svg"
|
||||||
|
inkscape:version="1.4.3 (0d15f75042, 2025-12-25)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"><svg:defs
|
||||||
|
id="defs1" /><sodipodi:namedview
|
||||||
|
id="namedview1"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#000000"
|
||||||
|
borderopacity="0.25"
|
||||||
|
inkscape:showpageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
showguides="true"
|
||||||
|
inkscape:zoom="10.483071"
|
||||||
|
inkscape:cx="75.78886"
|
||||||
|
inkscape:cy="35.676568"
|
||||||
|
inkscape:window-width="2560"
|
||||||
|
inkscape:window-height="1360"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="acer"><sodipodi:guide
|
||||||
|
position="40.307919,41.220214"
|
||||||
|
orientation="0,-1"
|
||||||
|
id="guide1"
|
||||||
|
inkscape:locked="false" /></sodipodi:namedview>
|
||||||
|
<svg:path
|
||||||
|
id="acer-logo"
|
||||||
|
style="fill:#80c343"
|
||||||
|
d="m 82.85,32.760893 c -0.29,-0.42 -0.62,-0.7 -2.04,-0.81 -0.37,-0.03 -1.6,-0.07 -3.66,-0.07 -5.42,0 -9.1,1.65 -10.98,4.91 0.52,-3.28 -2.67,-4.92 -9.55,-4.92 -8.09,0 -13.14,3.27 -15.15,9.81 -0.74,1.91 -0.82,4.02 -0.23,5.98 l -1.91,0.13 c -1.49,0.11 -3.46,0.22 -4.66,0.22 -2.96,0 -4.8,-0.5 -5.51,-1.5 -0.64,-0.9 -0.57,-2.56 0.17,-4.98 1.23,-4.02 4.29,-5.82 9.18,-5.82 2.53,0 5,0.27 5,0.27 0.3,-0.05 0.51,-0.33 0.46,-0.64 0,-0.01 0,-0.02 -0.01,-0.03 l -0.05,-0.38 -0.17,-1.35 c -0.11,-0.89 -0.77,-1.41 -1.97,-1.57 -1.1,-0.07 -1.91,-0.13 -3.12,-0.13 h -0.07 c -6.39,0.01 -10.84,2.12 -13.36,6.32 0.92,-4.21 -2.04,-6.32 -8.87,-6.32 -2.73,-0.05 -5.46,0.06 -8.18,0.33 -1.03,-0.03 -1.96,0.61 -2.33,1.57 l -0.54,1.73 c -0.1,0.32 0.05,0.48 0.46,0.48 h 0.01 c 0.3,-0.04 1.46,-0.15 3.44,-0.31 2.62,-0.21 4.55,-0.32 5.83,-0.32 3.77,0 5.35,0.95 4.76,2.84 -0.11,0.4 -0.44,0.71 -0.85,0.78 -3.56,0.59 -6.39,1.02 -8.48,1.28 -5.89,0.75 -9.29,2.59 -10.2,5.52 -1.25,4.03 1.89,6.04 9.44,6.04 3.17,0.04 6.34,-0.18 9.48,-0.65 1.47,-0.25 2.22,-0.63 2.51,-1.58 l 1.41,-4.49 c -0.15,4.49 2.99,6.75 9.41,6.75 2.23,0.04 4.45,-0.06 6.66,-0.31 1.32,-0.23 1.95,-0.52 2.24,-1.51 l 0.28,-1.41 c 1.37,2.14 4.37,3.21 9.01,3.21 4.89,0 7.74,-0.14 8.55,-0.41 0.57,-0.12 1.04,-0.52 1.25,-1.06 0.03,-0.09 0.05,-0.19 0.06,-0.28 l 0.59,-1.91 c 0.1,-0.33 -0.05,-0.49 -0.45,-0.48 l -3.13,0.15 c -2.09,0.12 -3.72,0.18 -4.9,0.17 -1.54,0.08 -3.08,-0.07 -4.58,-0.46 -1.2,-0.41 -1.94,-1.61 -1.77,-2.86 l 9.91,-1.27 c 4.44,-0.57 7.42,-1.94 8.92,-4.12 l -3.37,11.73 c -0.07,0.18 -0.04,0.38 0.07,0.53 0.18,0.17 0.41,0.25 0.65,0.22 h 4.1 c 0.47,0.07 0.93,-0.22 1.06,-0.68 l 3.62,-12.67 c 0.48,-1.67 2,-2.48 4.67,-2.48 2.41,0 4.22,0.02 5.38,0.07 0.03,0 0.06,0 0.09,0 0.39,0 0.74,-0.26 0.84,-0.63 l 0.63,-1.74 c 0.15,-0.3 0.12,-0.63 -0.05,-0.89 m -66.12,15.24 c -1.83,0.23 -3.68,0.33 -5.52,0.3 -4.17,0 -5.99,-0.84 -5.46,-2.53 0.38,-1.21 1.47,-1.94 3.28,-2.19 l 9.48,-1.28 z m 43.83,-10.27 c -0.4,1.3 -2.25,2.19 -5.56,2.67 l -7.9,1.13 0.2,-0.65 c 0.39,-1.74 1.37,-3.28 2.79,-4.37 1.2,-0.77 3.15,-1.16 5.86,-1.16 3.56,0 5.1,0.8 4.61,2.38" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 3.2 KiB |
124
datamodels/2.x/itop-config-mgmt/assets/img/icon-cisco.svg
Normal file
@@ -0,0 +1,124 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
width="108"
|
||||||
|
height="108"
|
||||||
|
viewBox="0 0 108 108"
|
||||||
|
role="img"
|
||||||
|
version="1.1"
|
||||||
|
id="svg11"
|
||||||
|
sodipodi:docname="icon-cisco.svg"
|
||||||
|
inkscape:version="1.4.3 (0d15f75042, 2025-12-25)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview11"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#000000"
|
||||||
|
borderopacity="0.25"
|
||||||
|
inkscape:showpageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
showguides="true"
|
||||||
|
inkscape:zoom="6.8229602"
|
||||||
|
inkscape:cx="48.879078"
|
||||||
|
inkscape:cy="51.737075"
|
||||||
|
inkscape:window-width="2560"
|
||||||
|
inkscape:window-height="1360"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg11">
|
||||||
|
<sodipodi:guide
|
||||||
|
position="16.939587,53.376303"
|
||||||
|
orientation="0,-1"
|
||||||
|
id="guide11"
|
||||||
|
inkscape:locked="false" />
|
||||||
|
</sodipodi:namedview>
|
||||||
|
<title
|
||||||
|
id="fw-c-header__logo-title">Cisco.com France</title>
|
||||||
|
<defs
|
||||||
|
id="defs1">
|
||||||
|
<path
|
||||||
|
d="m 0,22.769 a 2.348,2.348 0 0 0 3.935,1.545 c 0.434,-0.403 0.7,-0.955 0.744,-1.545 v -5.2 a 2.34,2.34 0 0 0 -4.679,0 v 5.2"
|
||||||
|
id="bar_short"
|
||||||
|
class="bar" />
|
||||||
|
<path
|
||||||
|
d="m 12.95,22.769 a 2.349,2.349 0 0 0 2.34,2.171 2.346,2.346 0 0 0 2.339,-2.171 V 11.112 a 2.341,2.341 0 0 0 -4.679,0 V 22.77"
|
||||||
|
id="bar_tall"
|
||||||
|
class="bar" />
|
||||||
|
<path
|
||||||
|
d="m 25.832,27.464 a 2.345,2.345 0 0 0 4.678,0 V 2.249 a 2.342,2.342 0 0 0 -4.678,0 v 25.215"
|
||||||
|
id="bar_grande"
|
||||||
|
class="bar" />
|
||||||
|
<path
|
||||||
|
d="m 24.026,56.277 v -5.002 l -0.098,0.043 a 9.253,9.253 0 0 1 -3.605,0.915 5.303,5.303 0 0 1 -3.63,-1.07 4.644,4.644 0 0 1 -1.58,-2.244 5.395,5.395 0 0 1 -0.106,-3 4.6,4.6 0 0 1 1.609,-2.566 4.823,4.823 0 0 1 2.528,-1.09 8.332,8.332 0 0 1 4.774,0.895 l 0.108,0.056 v -5.03 l -0.228,-0.061 a 12.78,12.78 0 0 0 -4.552,-0.596 10.534,10.534 0 0 0 -4.065,0.93 9.29,9.29 0 0 0 -3.329,2.572 10.014,10.014 0 0 0 -0.182,12.18 9.546,9.546 0 0 0 5.292,3.403 c 2.211,0.538 4.528,0.456 6.697,-0.234 l 0.367,-0.101"
|
||||||
|
id="cisco_c" />
|
||||||
|
</defs>
|
||||||
|
<g
|
||||||
|
fill="#02c8ff"
|
||||||
|
fill-rule="evenodd"
|
||||||
|
id="g11"
|
||||||
|
transform="translate(-0.09466859,26.234946)">
|
||||||
|
<use
|
||||||
|
href="#cisco_c"
|
||||||
|
id="use1" />
|
||||||
|
<use
|
||||||
|
href="#cisco_c"
|
||||||
|
x="49.5"
|
||||||
|
id="use2" />
|
||||||
|
<path
|
||||||
|
d="m 41.69,52.125 -0.019,4.308 0.315,0.054 c 0.989,0.185 1.987,0.313 2.99,0.385 a 18.1,18.1 0 0 0 2.642,0.051 c 0.842,-0.06 1.675,-0.218 2.48,-0.468 a 6.862,6.862 0 0 0 2.573,-1.371 5.19,5.19 0 0 0 1.498,-2.148 5.912,5.912 0 0 0 -0.03,-4.324 4.852,4.852 0 0 0 -1.343,-1.862 5.568,5.568 0 0 0 -1.97,-1.147 l -3.25,-1.206 a 1.742,1.742 0 0 1 -0.887,-0.845 1.107,1.107 0 0 1 0.036,-0.986 1.29,1.29 0 0 1 0.217,-0.291 1.75,1.75 0 0 1 0.48,-0.347 c 0.363,-0.18 0.755,-0.293 1.158,-0.337 a 6.76,6.76 0 0 1 2.072,0.022 c 0.81,0.088 1.613,0.231 2.402,0.43 l 0.168,0.037 v -3.974 l -0.31,-0.067 a 21.14,21.14 0 0 0 -2.444,-0.435 12.545,12.545 0 0 0 -3.213,-0.014 6.945,6.945 0 0 0 -3.699,1.488 4.908,4.908 0 0 0 -1.58,2.178 5.984,5.984 0 0 0 -0.003,4.05 c 0.242,0.65 0.63,1.237 1.136,1.714 0.437,0.422 0.932,0.78 1.47,1.065 0.708,0.38 1.458,0.675 2.235,0.878 0.257,0.077 0.512,0.158 0.766,0.243 l 0.385,0.141 0.11,0.045 c 0.38,0.136 0.726,0.35 1.018,0.628 0.202,0.19 0.358,0.423 0.455,0.683 0.06,0.237 0.061,0.485 0.003,0.723 a 1.536,1.536 0 0 1 -0.744,0.892 3.691,3.691 0 0 1 -1.239,0.387 9,9 0 0 1 -1.92,0.097 21.973,21.973 0 0 1 -2.507,-0.334 c -0.433,-0.09 -0.864,-0.19 -1.291,-0.303 z m -11.144,4.482 h 4.73 V 37.846 h -4.73 z M 85.305,43.386 a 4.934,4.934 0 1 1 6.157,7.711 4.934,4.934 0 0 1 -6.157,-7.71 m -6.867,3.848 a 9.87,9.87 0 0 0 12.002,9.485 9.629,9.629 0 0 0 3.157,-17.729 9.934,9.934 0 0 0 -15.16,8.244"
|
||||||
|
id="path2" />
|
||||||
|
<use
|
||||||
|
href="#bar_short"
|
||||||
|
x="0"
|
||||||
|
id="use3" />
|
||||||
|
<use
|
||||||
|
href="#bar_tall"
|
||||||
|
x="0"
|
||||||
|
id="use4" />
|
||||||
|
<use
|
||||||
|
href="#bar_grande"
|
||||||
|
x="0"
|
||||||
|
id="use5" />
|
||||||
|
<use
|
||||||
|
href="#bar_tall"
|
||||||
|
x="25.875"
|
||||||
|
id="use6" />
|
||||||
|
<use
|
||||||
|
href="#bar_short"
|
||||||
|
x="51.75"
|
||||||
|
id="use7" />
|
||||||
|
<use
|
||||||
|
href="#bar_tall"
|
||||||
|
x="51.75"
|
||||||
|
id="use8" />
|
||||||
|
<use
|
||||||
|
href="#bar_grande"
|
||||||
|
x="51.75"
|
||||||
|
id="use9" />
|
||||||
|
<use
|
||||||
|
href="#bar_tall"
|
||||||
|
x="77.625"
|
||||||
|
id="use10" />
|
||||||
|
<use
|
||||||
|
href="#bar_short"
|
||||||
|
x="103.375"
|
||||||
|
id="use11" />
|
||||||
|
</g>
|
||||||
|
<metadata
|
||||||
|
id="metadata11">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:title>Cisco.com France</dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 4.9 KiB |
56
datamodels/2.x/itop-config-mgmt/assets/img/icon-hpe.svg
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 29.5.1, SVG Export Plug-In . SVG Version: 9.03 Build 0) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
version="1.0"
|
||||||
|
id="katman_1"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
viewBox="0 0 630 630"
|
||||||
|
xml:space="preserve"
|
||||||
|
sodipodi:docname="icon-hpe.svg"
|
||||||
|
width="630"
|
||||||
|
height="630"
|
||||||
|
inkscape:version="1.4.3 (0d15f75042, 2025-12-25)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||||
|
id="defs2" /><sodipodi:namedview
|
||||||
|
id="namedview2"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#000000"
|
||||||
|
borderopacity="0.25"
|
||||||
|
inkscape:showpageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
showguides="true"
|
||||||
|
inkscape:zoom="0.6905515"
|
||||||
|
inkscape:cx="-217.94175"
|
||||||
|
inkscape:cy="275.1424"
|
||||||
|
inkscape:window-width="2560"
|
||||||
|
inkscape:window-height="1360"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="katman_1"><sodipodi:guide
|
||||||
|
position="197.66244,314.48848"
|
||||||
|
orientation="0,-1"
|
||||||
|
id="guide2"
|
||||||
|
inkscape:locked="false" /></sodipodi:namedview>
|
||||||
|
<style
|
||||||
|
type="text/css"
|
||||||
|
id="style1">
|
||||||
|
.st0{fill:none;stroke:#000000;stroke-width:36;}
|
||||||
|
.st1{fill:none;stroke:#03A883;stroke-width:36;}
|
||||||
|
</style>
|
||||||
|
<path
|
||||||
|
class="st0"
|
||||||
|
d="m 18.511987,405.93012 v -180 m 154.000003,180 v -180 m -154.000003,89 H 155.51199 m 95,91 v -180 m 0,18 h 102 c 27.6,0 50,22.4 50,50 0,27.6 -22.4,50 -50,50 h -102 m 222,-67 v -33 h 158"
|
||||||
|
id="path1" />
|
||||||
|
<path
|
||||||
|
class="st1"
|
||||||
|
d="m 630.51199,387.93012 h -158 v -76 h 158"
|
||||||
|
id="path2" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,56 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
viewBox="0 0 231 231"
|
||||||
|
preserveAspectRatio="xMinYMid"
|
||||||
|
version="1.1"
|
||||||
|
id="svg4"
|
||||||
|
xml:space="preserve"
|
||||||
|
width="231"
|
||||||
|
height="231"
|
||||||
|
sodipodi:docname="icon-oracle-linux.svg"
|
||||||
|
inkscape:version="1.4.3 (0d15f75042, 2025-12-25)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
|
||||||
|
id="namedview1"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#000000"
|
||||||
|
borderopacity="0.25"
|
||||||
|
inkscape:showpageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
showguides="true"
|
||||||
|
inkscape:zoom="7.5332891"
|
||||||
|
inkscape:cx="107.05815"
|
||||||
|
inkscape:cy="90.796993"
|
||||||
|
inkscape:window-width="2560"
|
||||||
|
inkscape:window-height="1360"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg4"><sodipodi:guide
|
||||||
|
position="41.763589,115.468"
|
||||||
|
orientation="0,-1"
|
||||||
|
id="guide1"
|
||||||
|
inkscape:locked="false" /></sodipodi:namedview><defs
|
||||||
|
id="defs8"><rect
|
||||||
|
x="-138.24641"
|
||||||
|
y="81.567238"
|
||||||
|
width="382.3674"
|
||||||
|
height="240.21156"
|
||||||
|
id="rect495" /><rect
|
||||||
|
x="-17.612623"
|
||||||
|
y="104.35898"
|
||||||
|
width="171.05238"
|
||||||
|
height="197.31444"
|
||||||
|
id="rect291" /></defs><g
|
||||||
|
id="g1407"
|
||||||
|
transform="translate(0.61321542,76.835533)"><path
|
||||||
|
d="m 99.59,19.52 h 15.24 L 106.78,6.52 91.98,30 h -6.73 l 18,-28.17 a 4.29,4.29 0 0 1 7,-0.05 L 128.3,30 h -6.73 l -3.17,-5.25 h -15.42 l -3.36,-5.23 m 69.93,5.23 V 0.28 h -5.72 v 26.88 a 2.76,2.76 0 0 0 0.85,2 2.89,2.89 0 0 0 2.08,0.87 h 26 l 3.39,-5.25 h -26.63 m -94.54,-4.4 a 10.05,10.05 0 0 0 0,-20.1 h -25 V 30 h 5.71 V 5.54 h 18.94 a 4.81,4.81 0 0 1 0,9.62 H 58.52 L 75.58,30 h 8.29 L 72.41,20.38 h 2.57 M 14.86,30 h 17.27 a 14.86,14.86 0 0 0 0,-29.71 H 14.86 a 14.86,14.86 0 1 0 0,29.71 m 16.88,-5.23 h -16.5 a 9.62,9.62 0 0 1 0,-19.23 h 16.5 a 9.62,9.62 0 1 1 0,19.23 M 140.23,30 h 17.63 l 3.34,-5.23 h -20.58 a 9.62,9.62 0 1 1 0,-19.23 h 16.75 l 3.38,-5.25 h -20.52 a 14.86,14.86 0 1 0 0,29.71 m 69.87,-5.23 a 9.62,9.62 0 0 1 -9.26,-7 h 24.42 l 3.36,-5.24 h -27.78 a 9.61,9.61 0 0 1 9.26,-7 h 16.76 l 3.35,-5.25 h -20.5 a 14.86,14.86 0 0 0 0,29.71 h 17.63 l 3.35,-5.23 h -20.6"
|
||||||
|
style="fill:#c74634"
|
||||||
|
id="path2" /><path
|
||||||
|
id="rect749"
|
||||||
|
style="fill:#c74634;fill-opacity:1;stroke-width:5.2519;stroke-linecap:square;paint-order:stroke fill markers"
|
||||||
|
d="m 25.391517,47.930871 h 4.980863 v 3.830025 h -4.980863 z m 61.5008,18.557061 -7.24,-10.240002 h 4.96 l 4.64,7.080002 h 0.24 l 4.76,-7.080002 h 4.72 l -7.28,10.160002 7.64,10.88 h -4.96 l -5.08,-7.72 h -0.24 l -5.12,7.72 h -4.72 z m -21.599998,11.28 q -6.68,0 -6.68,-7.24 V 56.24793 h 4.12 v 13.760002 q 0,2.36 1.04,3.32 1.08,0.92 3.12,0.92 1.4,0 2.6,-0.68 1.2,-0.72 1.88,-2 0.72,-1.28 0.72,-2.96 V 56.24793 h 4.12 v 21.040002 h -3.32 l -0.4,-2.8 h -0.28 q -1.16,1.6 -2.92,2.44 -1.76,0.84 -4,0.84 z M 35.81232,56.24793 h 3.320001 l 0.4,2.800002 h 0.28 q 1.12,-1.600002 2.88,-2.440002 1.8,-0.84 4.04,-0.84 6.68,0 6.68,7.240002 v 14.28 h -4.12 v -13.76 q 0,-2.36 -1.08,-3.28 -1.04,-0.96 -3.08,-0.96 -1.4,0 -2.6,0.72 -1.2,0.68 -1.92,1.96 -0.68,1.28 -0.68,2.96 v 12.36 H 35.81232 Z M 3.61239,47.930871 h 4.44 v 25.517061 h 14.28 v 3.84 h -18.72 z M 26.256768,59.46395 V 77.287932 H 30.37238 V 56.275464 h -6.387612 v 1.825681 z" /></g></svg>
|
||||||
|
After Width: | Height: | Size: 3.5 KiB |
52
datamodels/2.x/itop-config-mgmt/assets/img/icon-sony.svg
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
viewBox="0 0 1280 1280"
|
||||||
|
version="1.1"
|
||||||
|
id="svg1"
|
||||||
|
sodipodi:docname="icon-sony.svg"
|
||||||
|
inkscape:version="1.4.3 (0d15f75042, 2025-12-25)"
|
||||||
|
width="1280"
|
||||||
|
height="1280"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview1"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#000000"
|
||||||
|
borderopacity="0.25"
|
||||||
|
inkscape:showpageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
inkscape:zoom="0.63418639"
|
||||||
|
inkscape:cx="-462.79769"
|
||||||
|
inkscape:cy="225.48576"
|
||||||
|
inkscape:window-width="2560"
|
||||||
|
inkscape:window-height="1360"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="g4"
|
||||||
|
showguides="true">
|
||||||
|
<sodipodi:guide
|
||||||
|
position="173.37108,641.89024"
|
||||||
|
orientation="0,-1"
|
||||||
|
id="guide1"
|
||||||
|
inkscape:locked="false" />
|
||||||
|
</sodipodi:namedview>
|
||||||
|
<svg:defs
|
||||||
|
id="defs1" />
|
||||||
|
<svg:g
|
||||||
|
id="Layer_2">
|
||||||
|
<svg:g
|
||||||
|
id="g4"
|
||||||
|
inkscape:label="logo">
|
||||||
|
<svg:path
|
||||||
|
d="m 456.0129,751.74687 c -46.41279,0 -89.42079,-13.82399 -118.09279,-39.60319 a 96.895989,96.895989 0 0 1 -32.12799,-73.19039 98.329588,98.329588 0 0 1 32.12799,-72.9344 c 26.624,-24.19199 73.728,-39.55199 118.09279,-39.55199 49.07519,0 88.37119,12.3648 118.39999,39.60319 a 97.407989,97.407989 0 0 1 31.69279,72.8832 101.52959,101.52959 0 0 1 -31.69279,73.19039 c -27.9808,25.9328 -71.9104,39.60319 -118.39999,39.60319 v -29.64479 c 24.6016,0 47.43679,-8.4992 63.38559,-24.3712 15.9488,-15.872 23.1936,-35.1232 23.1936,-58.87999 0,-22.6816 -7.9616,-43.8784 -23.1936,-58.88 -15.744,-15.48799 -39.11679,-24.21759 -63.38559,-24.21759 -24.2688,0 -47.74399,8.6528 -63.48799,24.21759 -15.1808,15.0272 -23.04,36.3008 -23.04,58.88 a 82.35519,82.35519 0 0 0 23.04,58.87999 c 15.744,15.6928 39.06559,24.3712 63.48799,24.3712 z M 117.12014,526.4669 c -24.806392,0 -52.991989,4.6592 -76.799986,15.36 C 18.099355,551.7597 1.575e-4,567.70849 1.575e-4,594.15329 a 54.220794,54.220794 0 0 0 14.7199985,37.2736 c 6.425599,5.9392 16.793599,16.0256 43.878396,21.9648 12.108798,2.55999 37.990395,6.68159 63.769588,9.39519 25.7792,2.7136 50.7648,5.12 61.0048,7.8592 8.1408,2.0736 21.83679,4.8896 21.83679,20.2496 0,15.36 -14.41279,19.968 -16.92159,20.9664 -2.5088,0.9984 -19.8144,8.9344 -50.8928,8.9344 a 216.42237,216.42237 0 0 1 -60.59519,-10.4192 c -11.596799,-4.1472 -23.756797,-9.6 -35.097596,-23.4496 a 40.268795,40.268795 0 0 1 -7.295999,-22.2208 H 6.2465567 v 78.84799 H 37.529754 v -10.67519 a 4.4543995,4.4543995 0 0 1 6.7584,-3.84 246.42557,246.42557 0 0 0 45.772794,14.79679 c 16.435202,3.4304 27.059192,5.9136 47.487992,5.9136 a 202.62398,202.62398 0 0 0 63.6416,-8.9856 111.07839,111.07839 0 0 0 37.81119,-18.66239 51.814394,51.814394 0 0 0 20.24959,-41.4976 58.060793,58.060793 0 0 0 -16.35839,-40.80639 72.012792,72.012792 0 0 0 -20.1728,-13.7984 148.60798,148.60798 0 0 0 -24.88319,-8.6784 c -16.2304,-3.968 -52.6848,-8.9344 -70.1184,-10.6752 -18.27839,-1.8944 -49.99679,-4.5312 -62.668789,-8.448 -3.839999,-1.2032 -11.673599,-4.9152 -11.673599,-14.0032 0,-6.4768 3.584,-11.9552 10.649599,-16.384 C 75.26415,560.7709 97.945747,556.3933 121.60014,556.3933 a 166.98878,166.98878 0 0 1 66.7136,13.03039 72.857591,72.857591 0 0 1 15.87199,9.472 47.718394,47.718394 0 0 1 15.6416,26.1632 h 25.2672 V 536.4253 h -28.16 v 7.9616 c 0,2.56 -2.56,5.9392 -7.68,3.1488 -12.69759,-6.6048 -48.38399,-20.8896 -92.13439,-21.0688 z m 618.21433,12.5952 137.62558,124.18558 -1.408,-83.60959 c -0.1536,-10.9824 -2.1504,-15.56479 -14.0288,-15.56479 h -25.85599 v -25.0112 h 117.75998 v 25.0112 h -25.26719 c -12.0832,0 -12.8,3.89119 -13.0048,15.56479 l 2.1248,159.76959 h -40.32 L 714.41927,597.94209 v 100.37759 c 0.128,10.9312 0.64,16.0768 11.8784,16.0768 h 28.16 v 25.0112 H 639.02728 v -25.0112 h 27.0336 c 10.08639,0 9.67679,-9.6256 9.67679,-16.64 V 580.58529 c 0,-7.68 -1.0752,-16.48639 -16.89599,-16.48639 h -21.9136 V 539.0621 Z M 1083.776,714.34528 a 55.859193,55.859193 0 0 0 6.9632,-0.4352 8.627199,8.627199 0 0 0 5.4272,-4.8128 28.006397,28.006397 0 0 0 0.5376,-5.4016 v -39.552 c 0,-1.3312 0,-1.3568 -1.6896,-3.456 -1.6896,-2.0992 -72.0896,-81.91999 -75.2896,-85.50399 -3.9936,-4.352 -11.008,-11.08479 -21.6832,-11.08479 h -24.44796 v -25.0368 h 137.98396 v 24.9856 h -16.64 c -3.84,0 -6.4,3.66079 -3.1232,7.67999 0,0 46.4384,55.552 46.8736,56.1408 0.4352,0.5888 0.8192,0.7168 1.408,0.1792 0.5888,-0.5376 47.5904,-55.808 47.9488,-56.32 a 4.7871994,4.7871994 0 0 0 -4.096,-7.67999 h -17.0752 V 539.0621 H 1280 v 25.0368 h -25.2672 c -9.1648,0 -12.8,1.68959 -19.7888,9.47199 l -76.16,86.88639 a 5.3759994,5.3759994 0 0 0 -0.9216,3.6864 v 39.5264 a 28.159997,28.159997 0 0 0 0.5632,5.4016 8.524799,8.524799 0 0 0 5.4016,4.8128 50.611194,50.611194 0 0 0 6.912,0.4352 h 25.8304 v 25.0368 h -137.2672 v -25.0368 z"
|
||||||
|
id="path1"
|
||||||
|
fill="#000000"
|
||||||
|
style="stroke-width:2.56" />
|
||||||
|
</svg:g>
|
||||||
|
</svg:g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 5.1 KiB |
@@ -0,0 +1,281 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
viewBox="0 0 96 96"
|
||||||
|
width="96"
|
||||||
|
height="96"
|
||||||
|
version="1.1"
|
||||||
|
id="svg25"
|
||||||
|
sodipodi:docname="icons8-acess-point-3.svg"
|
||||||
|
inkscape:version="1.4.3 (0d15f75042, 2025-12-25)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<defs
|
||||||
|
id="defs25" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview25"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#000000"
|
||||||
|
borderopacity="0.25"
|
||||||
|
inkscape:showpageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
showguides="true"
|
||||||
|
inkscape:zoom="2.0255663"
|
||||||
|
inkscape:cx="-53.071578"
|
||||||
|
inkscape:cy="-106.14316"
|
||||||
|
inkscape:window-width="2560"
|
||||||
|
inkscape:window-height="1360"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg25">
|
||||||
|
<sodipodi:guide
|
||||||
|
position="-127.86548,48.359002"
|
||||||
|
orientation="0,-1"
|
||||||
|
id="guide25"
|
||||||
|
inkscape:locked="false" />
|
||||||
|
<sodipodi:guide
|
||||||
|
position="47.76442,140.92571"
|
||||||
|
orientation="1,0"
|
||||||
|
id="guide26"
|
||||||
|
inkscape:locked="false" />
|
||||||
|
<sodipodi:guide
|
||||||
|
position="44.611364,71.852727"
|
||||||
|
orientation="1,0"
|
||||||
|
id="guide27"
|
||||||
|
inkscape:locked="false" />
|
||||||
|
</sodipodi:namedview>
|
||||||
|
<linearGradient
|
||||||
|
id="sQy7OvPXH0t2mKfqk7XuXa"
|
||||||
|
x1="34.117001"
|
||||||
|
x2="33.909"
|
||||||
|
y1="30.451"
|
||||||
|
y2="11.826"
|
||||||
|
gradientTransform="matrix(2.2111455,0,0,-2.2111455,-5.0805451,101.8257)"
|
||||||
|
gradientUnits="userSpaceOnUse">
|
||||||
|
<stop
|
||||||
|
offset="0"
|
||||||
|
stop-color="#737b80"
|
||||||
|
id="stop1" />
|
||||||
|
<stop
|
||||||
|
offset=".714"
|
||||||
|
stop-color="#737b80"
|
||||||
|
id="stop2" />
|
||||||
|
<stop
|
||||||
|
offset=".756"
|
||||||
|
stop-color="#737b80"
|
||||||
|
id="stop3" />
|
||||||
|
<stop
|
||||||
|
offset=".863"
|
||||||
|
stop-color="#656c71"
|
||||||
|
id="stop4" />
|
||||||
|
<stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#575c61"
|
||||||
|
id="stop5" />
|
||||||
|
</linearGradient>
|
||||||
|
<path
|
||||||
|
fill="url(#sQy7OvPXH0t2mKfqk7XuXa)"
|
||||||
|
d="m 63.464964,82.168622 c -0.210059,0 -0.42454,-0.03096 -0.636811,-0.09287 -1.169694,-0.351572 -1.83525,-1.58318 -1.483677,-2.752875 L 74.611348,35.09997 c 0.351573,-1.169696 1.585392,-1.835252 2.752877,-1.483679 1.169696,0.351571 1.83525,1.583179 1.483677,2.752876 L 65.581031,80.592076 c -0.285238,0.959638 -1.163063,1.576547 -2.116067,1.576546 z"
|
||||||
|
id="path5"
|
||||||
|
style="fill:url(#sQy7OvPXH0t2mKfqk7XuXa);stroke-width:2.21115" />
|
||||||
|
<linearGradient
|
||||||
|
id="sQy7OvPXH0t2mKfqk7XuXb"
|
||||||
|
x1="14.121"
|
||||||
|
x2="13.913"
|
||||||
|
y1="30.719"
|
||||||
|
y2="12.094"
|
||||||
|
gradientTransform="matrix(2.2111455,0,0,-2.2111455,-5.0805451,101.8257)"
|
||||||
|
gradientUnits="userSpaceOnUse">
|
||||||
|
<stop
|
||||||
|
offset="0"
|
||||||
|
stop-color="#737b80"
|
||||||
|
id="stop6" />
|
||||||
|
<stop
|
||||||
|
offset=".773"
|
||||||
|
stop-color="#737b80"
|
||||||
|
id="stop7" />
|
||||||
|
<stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#575c61"
|
||||||
|
id="stop8" />
|
||||||
|
</linearGradient>
|
||||||
|
<path
|
||||||
|
fill="url(#sQy7OvPXH0t2mKfqk7XuXb)"
|
||||||
|
d="m 32.508927,82.168622 c -0.950793,0 -1.828617,-0.619122 -2.118278,-1.576548 L 17.123777,36.369165 c -0.351573,-1.169696 0.313983,-2.401304 1.483679,-2.752876 1.167483,-0.344938 2.401305,0.313984 2.752875,1.483679 l 13.266874,44.22291 c 0.351572,1.169696 -0.313982,2.401304 -1.483679,2.752875 -0.21227,0.06191 -0.42454,0.09287 -0.634599,0.09287 z"
|
||||||
|
id="path8"
|
||||||
|
style="fill:url(#sQy7OvPXH0t2mKfqk7XuXb);stroke-width:2.21115" />
|
||||||
|
<linearGradient
|
||||||
|
id="sQy7OvPXH0t2mKfqk7XuXc"
|
||||||
|
x1="24"
|
||||||
|
x2="24"
|
||||||
|
y1="14.614"
|
||||||
|
y2="-2.0710001"
|
||||||
|
gradientTransform="matrix(2.2111455,0,0,-2.2111455,-5.0805451,101.8257)"
|
||||||
|
gradientUnits="userSpaceOnUse">
|
||||||
|
<stop
|
||||||
|
offset="0"
|
||||||
|
stop-color="#899198"
|
||||||
|
id="stop9" />
|
||||||
|
<stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#787e85"
|
||||||
|
id="stop10" />
|
||||||
|
</linearGradient>
|
||||||
|
<path
|
||||||
|
fill="url(#sQy7OvPXH0t2mKfqk7XuXc)"
|
||||||
|
d="M 85.576419,88.802058 H 10.397473 c -2.4433136,0 -4.4222888,-1.978974 -4.4222888,-4.42229 V 68.901749 c 0,-2.443315 1.9789752,-4.422291 4.4222888,-4.422291 h 75.178946 c 2.443316,0 4.422291,1.978976 4.422291,4.422291 v 15.478019 c 0,2.443316 -1.978975,4.42229 -4.422291,4.42229 z"
|
||||||
|
id="path10"
|
||||||
|
style="fill:url(#sQy7OvPXH0t2mKfqk7XuXc);stroke-width:2.21115" />
|
||||||
|
<rect
|
||||||
|
width="75.178947"
|
||||||
|
height="15.478019"
|
||||||
|
x="10.397472"
|
||||||
|
y="68.901749"
|
||||||
|
fill="#737b80"
|
||||||
|
id="rect10"
|
||||||
|
style="stroke-width:2.21115" />
|
||||||
|
<radialGradient
|
||||||
|
id="sQy7OvPXH0t2mKfqk7XuXd"
|
||||||
|
cx="36.5"
|
||||||
|
cy="11.39"
|
||||||
|
r="2.5"
|
||||||
|
gradientTransform="matrix(2.2111455,0,0,-2.2111455,-5.0805451,101.8257)"
|
||||||
|
gradientUnits="userSpaceOnUse">
|
||||||
|
<stop
|
||||||
|
offset=".582"
|
||||||
|
stop-opacity=".2"
|
||||||
|
id="stop11" />
|
||||||
|
<stop
|
||||||
|
offset="1"
|
||||||
|
stop-opacity="0"
|
||||||
|
id="stop12" />
|
||||||
|
</radialGradient>
|
||||||
|
<circle
|
||||||
|
cx="75.626282"
|
||||||
|
cy="76.640755"
|
||||||
|
r="5.5278635"
|
||||||
|
fill="url(#sQy7OvPXH0t2mKfqk7XuXd)"
|
||||||
|
id="circle12"
|
||||||
|
style="fill:url(#sQy7OvPXH0t2mKfqk7XuXd);stroke-width:2.21115" />
|
||||||
|
<radialGradient
|
||||||
|
id="sQy7OvPXH0t2mKfqk7XuXe"
|
||||||
|
cx="30.5"
|
||||||
|
cy="11.39"
|
||||||
|
r="2.5"
|
||||||
|
gradientTransform="matrix(2.2111455,0,0,-2.2111455,-5.0805451,101.8257)"
|
||||||
|
gradientUnits="userSpaceOnUse">
|
||||||
|
<stop
|
||||||
|
offset=".582"
|
||||||
|
stop-opacity=".2"
|
||||||
|
id="stop13" />
|
||||||
|
<stop
|
||||||
|
offset="1"
|
||||||
|
stop-opacity="0"
|
||||||
|
id="stop14" />
|
||||||
|
</radialGradient>
|
||||||
|
<circle
|
||||||
|
cx="62.359394"
|
||||||
|
cy="76.640755"
|
||||||
|
r="5.5278635"
|
||||||
|
fill="url(#sQy7OvPXH0t2mKfqk7XuXe)"
|
||||||
|
id="circle14"
|
||||||
|
style="fill:url(#sQy7OvPXH0t2mKfqk7XuXe);stroke-width:2.21115" />
|
||||||
|
<radialGradient
|
||||||
|
id="sQy7OvPXH0t2mKfqk7XuXf"
|
||||||
|
cx="24.5"
|
||||||
|
cy="11.39"
|
||||||
|
r="2.5"
|
||||||
|
gradientTransform="matrix(2.2111455,0,0,-2.2111455,-5.0805451,101.8257)"
|
||||||
|
gradientUnits="userSpaceOnUse">
|
||||||
|
<stop
|
||||||
|
offset=".582"
|
||||||
|
stop-opacity=".2"
|
||||||
|
id="stop15" />
|
||||||
|
<stop
|
||||||
|
offset="1"
|
||||||
|
stop-opacity="0"
|
||||||
|
id="stop16" />
|
||||||
|
</radialGradient>
|
||||||
|
<circle
|
||||||
|
cx="49.092525"
|
||||||
|
cy="76.640755"
|
||||||
|
r="5.5278635"
|
||||||
|
fill="url(#sQy7OvPXH0t2mKfqk7XuXf)"
|
||||||
|
id="circle16"
|
||||||
|
style="fill:url(#sQy7OvPXH0t2mKfqk7XuXf);stroke-width:2.21115" />
|
||||||
|
<radialGradient
|
||||||
|
id="sQy7OvPXH0t2mKfqk7XuXg"
|
||||||
|
cx="11.5"
|
||||||
|
cy="11.39"
|
||||||
|
r="2.5"
|
||||||
|
gradientTransform="matrix(2.2111455,0,0,-2.2111455,-5.0805451,101.8257)"
|
||||||
|
gradientUnits="userSpaceOnUse">
|
||||||
|
<stop
|
||||||
|
offset=".582"
|
||||||
|
stop-opacity=".2"
|
||||||
|
id="stop17" />
|
||||||
|
<stop
|
||||||
|
offset="1"
|
||||||
|
stop-opacity="0"
|
||||||
|
id="stop18" />
|
||||||
|
</radialGradient>
|
||||||
|
<circle
|
||||||
|
cx="20.347635"
|
||||||
|
cy="76.640755"
|
||||||
|
r="5.5278635"
|
||||||
|
fill="url(#sQy7OvPXH0t2mKfqk7XuXg)"
|
||||||
|
id="circle18"
|
||||||
|
style="fill:url(#sQy7OvPXH0t2mKfqk7XuXg);stroke-width:2.21115" />
|
||||||
|
<circle
|
||||||
|
cx="75.626282"
|
||||||
|
cy="76.640755"
|
||||||
|
r="3.3167181"
|
||||||
|
fill="#50e6ff"
|
||||||
|
id="circle19"
|
||||||
|
style="stroke-width:2.21115" />
|
||||||
|
<circle
|
||||||
|
cx="62.359394"
|
||||||
|
cy="76.640755"
|
||||||
|
r="3.3167181"
|
||||||
|
fill="#50e6ff"
|
||||||
|
id="circle20"
|
||||||
|
style="stroke-width:2.21115" />
|
||||||
|
<circle
|
||||||
|
cx="49.092525"
|
||||||
|
cy="76.640755"
|
||||||
|
r="3.3167181"
|
||||||
|
fill="#50e6ff"
|
||||||
|
id="circle21"
|
||||||
|
style="stroke-width:2.21115" />
|
||||||
|
<circle
|
||||||
|
cx="20.347635"
|
||||||
|
cy="76.640755"
|
||||||
|
r="3.3167181"
|
||||||
|
fill="#50e6ff"
|
||||||
|
id="circle22"
|
||||||
|
style="stroke-width:2.21115" />
|
||||||
|
<path
|
||||||
|
fill="#0078d4"
|
||||||
|
d="M 76.06186,21.738016 71.411821,26.423432 47.942723,17.974646 24.495735,26.403533 19.894342,21.766761 C 19.049684,20.913259 19.012095,19.504758 19.863382,18.65789 27.279564,11.290354 37.453044,6.9542994 47.942718,6.9476659 c 10.421129,-0.011054 20.76929,4.3272091 28.154515,11.6881131 0.849081,0.844657 0.809281,2.250946 -0.03538,3.102237 z"
|
||||||
|
id="path22"
|
||||||
|
style="stroke-width:2.21115" />
|
||||||
|
<path
|
||||||
|
fill="#199be2"
|
||||||
|
d="m 71.414032,26.425643 -0.455497,0.442231 -5.757821,5.757823 -17.253569,-5.819736 -17.233669,5.797623 -5.757823,-5.73571 -0.455494,-0.464341 c 5.779935,-6.507401 14.146909,-10.6334 23.446986,-10.6334 9.319978,0 17.684742,4.123788 23.466887,10.65551 z"
|
||||||
|
id="path23"
|
||||||
|
style="stroke-width:2.21115" />
|
||||||
|
<path
|
||||||
|
fill="#35c1f1"
|
||||||
|
d="m 65.198502,32.623485 -0.999438,0.992804 -5.216091,5.207248 -11.04025,-3.192894 -11.018139,3.192894 -5.216092,-5.207248 -0.999437,-1.014916 c 4.194543,-4.897687 10.36585,-8.008769 17.233668,-8.008769 6.889929,0.0023 13.061235,3.111082 17.255779,8.030881 z"
|
||||||
|
id="path24"
|
||||||
|
style="stroke-width:2.21115" />
|
||||||
|
<path
|
||||||
|
fill="#50e6ff"
|
||||||
|
d="m 58.982973,38.823537 -1.629615,1.631826 -7.862833,7.907056 c -0.844658,0.85129 -2.208935,0.85129 -3.055803,0.0045 l -7.902635,-7.911521 -1.607503,-1.631824 c 2.587041,-3.287976 6.56268,-5.40404 11.018139,-5.40404 4.477569,-0.0023 8.453208,2.116064 11.04025,5.40404 z"
|
||||||
|
id="path25"
|
||||||
|
style="stroke-width:2.21115" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 8.8 KiB |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0,0,256,256" width="48px" height="48px" fill-rule="nonzero"><g fill="#0088cc" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><g transform="scale(5.33333,5.33333)"><path d="M28.465,38.611c0.419,-1.105 0.664,-2.365 0.664,-3.714c0,-4.133 -2.211,-7.494 -4.929,-7.494c-2.741,0 -4.951,3.361 -4.951,7.494c0,1.326 0.221,2.586 0.641,3.669c-9.041,0.951 -15.407,4.731 -17.993,6.432c4.355,-6.278 8.909,-13.638 13.262,-22.105c1.083,-2.101 2.101,-4.178 3.05,-6.211c0.375,0.243 0.751,0.509 1.171,0.775c1.945,1.215 3.759,1.879 5.084,2.233c-0.973,-0.73 -2.033,-1.613 -3.116,-2.697c-0.817,-0.817 -1.547,-1.637 -2.167,-2.433c1.835,-4.022 3.427,-7.891 4.819,-11.56c2.32,6.144 5.217,12.842 8.841,19.893c2.343,4.531 4.731,8.754 7.117,12.644c-0.685,-0.375 -1.437,-0.73 -2.233,-1.039c-1.371,-0.53 -2.652,-0.862 -3.759,-1.06c1.503,0.751 3.25,1.747 5.084,3.073c1.194,0.885 2.254,1.769 3.161,2.631c0.021,0.021 0.021,0.021 0.045,0.045c1.26,2.056 2.565,3.957 3.846,5.813c-2.541,-1.681 -8.796,-5.395 -17.637,-6.389z"></path></g></g></svg>
|
||||||
|
After Width: | Height: | Size: 1.3 KiB |
123
datamodels/2.x/itop-config-mgmt/assets/img/icons8-asus.svg
Normal file
@@ -0,0 +1,123 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
viewBox="0,0,256,256"
|
||||||
|
width="64px"
|
||||||
|
height="64px"
|
||||||
|
fill-rule="nonzero"
|
||||||
|
version="1.1"
|
||||||
|
id="svg13"
|
||||||
|
sodipodi:docname="icons8-asus (1).svg"
|
||||||
|
inkscape:version="1.4.3 (0d15f75042, 2025-12-25)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview13"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#000000"
|
||||||
|
borderopacity="0.25"
|
||||||
|
inkscape:showpageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
inkscape:zoom="17.1875"
|
||||||
|
inkscape:cx="31.970909"
|
||||||
|
inkscape:cy="32"
|
||||||
|
inkscape:window-width="2560"
|
||||||
|
inkscape:window-height="1360"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="g13" />
|
||||||
|
<defs
|
||||||
|
id="defs10">
|
||||||
|
<radialGradient
|
||||||
|
cx="34.625"
|
||||||
|
cy="31.875"
|
||||||
|
r="23.206"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
id="color-1">
|
||||||
|
<stop
|
||||||
|
offset="0"
|
||||||
|
stop-color="#f4e9c3"
|
||||||
|
id="stop1" />
|
||||||
|
<stop
|
||||||
|
offset="0.219"
|
||||||
|
stop-color="#f8eecd"
|
||||||
|
id="stop2" />
|
||||||
|
<stop
|
||||||
|
offset="0.644"
|
||||||
|
stop-color="#fdf4dc"
|
||||||
|
id="stop3" />
|
||||||
|
<stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#fff6e1"
|
||||||
|
id="stop4" />
|
||||||
|
</radialGradient>
|
||||||
|
<linearGradient
|
||||||
|
x1="0.365"
|
||||||
|
y1="32.5"
|
||||||
|
x2="64"
|
||||||
|
y2="32.5"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
id="color-2">
|
||||||
|
<stop
|
||||||
|
offset="0.053"
|
||||||
|
stop-color="#000000"
|
||||||
|
id="stop5" />
|
||||||
|
<stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#000000"
|
||||||
|
id="stop6" />
|
||||||
|
</linearGradient>
|
||||||
|
<radialGradient
|
||||||
|
cx="34.625"
|
||||||
|
cy="31.875"
|
||||||
|
r="23.206"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
id="color-3">
|
||||||
|
<stop
|
||||||
|
offset="0"
|
||||||
|
stop-color="#f4e9c3"
|
||||||
|
id="stop7" />
|
||||||
|
<stop
|
||||||
|
offset="0.219"
|
||||||
|
stop-color="#f8eecd"
|
||||||
|
id="stop8" />
|
||||||
|
<stop
|
||||||
|
offset="0.644"
|
||||||
|
stop-color="#fdf4dc"
|
||||||
|
id="stop9" />
|
||||||
|
<stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#fff6e1"
|
||||||
|
id="stop10" />
|
||||||
|
</radialGradient>
|
||||||
|
</defs>
|
||||||
|
<g
|
||||||
|
fill="none"
|
||||||
|
fill-rule="nonzero"
|
||||||
|
stroke="none"
|
||||||
|
stroke-width="1"
|
||||||
|
stroke-linecap="butt"
|
||||||
|
stroke-linejoin="miter"
|
||||||
|
stroke-miterlimit="10"
|
||||||
|
stroke-dasharray=""
|
||||||
|
stroke-dashoffset="0"
|
||||||
|
font-family="none"
|
||||||
|
font-weight="none"
|
||||||
|
font-size="none"
|
||||||
|
text-anchor="none"
|
||||||
|
style="mix-blend-mode: normal"
|
||||||
|
id="g13">
|
||||||
|
<g
|
||||||
|
transform="scale(4,4)"
|
||||||
|
id="g12">
|
||||||
|
<path
|
||||||
|
d="M6.156,29.243l-5.723,9.919c-0.192,0.333 0.048,0.75 0.433,0.75h2.764c0.356,0 0.686,-0.19 0.865,-0.498l5.629,-9.701zM6.299,29.005c0,0 0.815,-1.486 1.625,-2.92c0.354,-0.628 1.019,-1.014 1.74,-1.014c1.408,0.001 3.757,0.003 5.086,0.004c0.552,0 0.995,0.448 0.995,1.001v2.61c0,0 0.323,-1.386 0.891,-2.043c0.534,-0.619 1.246,-1.478 2.872,-1.592h10.963c0.552,0 1,0.448 1,1v1.955c0,0.552 -0.448,1 -1,1zM64,28.008v-1.958c0,-0.552 -0.448,-1 -1,-1h-11.8c-1.622,0.114 -2.337,0.972 -2.872,1.592c-0.569,0.657 -0.89,2.043 -0.89,2.043v0.318l15.562,0.005c0.552,0 1,-0.448 1,-1zM33.095,25.07h1.578c0.552,0 1,0.448 1,1v2.935h-3.578v-2.935c0,-0.552 0.448,-1 1,-1zM44.839,25.07h1.574c0.552,0 1,0.448 1,1v2.935h-3.574v-2.935c0,-0.552 0.447,-1 1,-1zM47.413,30.425l-3.514,-0.233v4.566c0,0 -0.01,1.314 -1.158,1.314c-1.138,0 -6.039,0 -6.039,0c0,0 -1.023,-0.093 -1.023,-1.303c0,-1.207 0,-5.196 0,-5.196l-3.549,-0.285v7.001c0.574,3.359 3.311,3.617 3.311,3.617c0,0 0.278,0.022 0.324,0.026h8.156c0,0 3.491,-0.311 3.491,-4.023c0.001,-3.713 0.001,-5.484 0.001,-5.484zM13.111,39.914h15.73c2.914,-0.647 3.218,-3.577 3.218,-3.577c0.136,-0.871 0.057,-1.574 0.057,-1.574c-0.088,-0.588 -1.094,-3.178 -3.281,-3.405c-1.304,-0.134 -12.91,-1.155 -12.91,-1.155c0.225,1.288 0.748,1.938 1.094,2.311c0.805,0.857 2.087,1.099 2.087,1.099c0.309,0.033 8.945,0.824 8.945,0.824c0.274,0.017 0.797,0.093 0.79,0.849c0,0.091 -0.075,0.757 -0.738,0.757h-12.014c-0.276,0 -0.5,-0.224 -0.5,-0.5v-5.373l-3.478,-0.281v9.027c0,0.55 0.448,0.998 1,0.998zM47.444,37.017c0.001,-0.552 0.448,-0.998 1,-0.998h11.429c0.286,0 0.595,-0.187 0.595,-0.187c0.13,-0.129 0.235,-0.364 0.235,-0.591c0,-0.753 -0.561,-0.786 -0.843,-0.803c0,0 -8.732,-0.808 -9.036,-0.834c0,0 -1.211,-0.207 -2.017,-1.068c-0.351,-0.369 -0.815,-0.771 -1.161,-2.099c0,0 11.671,0.763 12.968,0.897c2.189,0.232 3.215,2.632 3.308,3.43c0,0 0.093,0.722 -0.02,1.607c0,0 -0.454,3.374 -3.664,3.579h-11.797c-0.553,0 -1.001,-0.449 -1,-1.002z"
|
||||||
|
fill="url(#color-2)"
|
||||||
|
id="path11" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 4.7 KiB |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="48px" height="48px"><path fill="#E91E63" d="M26.763,24.548c-0.614,0.01,0.117,0.317,0.918,0.44c0.22-0.172,0.419-0.348,0.6-0.515C27.781,24.592,27.274,24.594,26.763,24.548 M30.054,23.727c0.364-0.5,0.631-1.055,0.723-1.624c-0.082,0.405-0.303,0.755-0.51,1.128c-1.146,0.721-0.108-0.43,0-0.865C29.035,23.913,30.098,23.293,30.054,23.727 M31.269,20.568c0.073-1.105-0.219-0.756-0.317-0.336C31.068,20.294,31.156,21.013,31.269,20.568 M24.439,5.478c0.327,0.058,0.706,0.104,0.653,0.183C25.449,5.582,25.531,5.51,24.439,5.478 M25.093,5.66l-0.232,0.047l0.215-0.017L25.093,5.66 M35.294,20.986c0.038,0.991-0.29,1.472-0.585,2.322l-0.529,0.266c-0.435,0.841,0.041,0.535-0.268,1.202c-0.679,0.603-2.055,1.883-2.496,2.004c-0.321-0.009,0.218-0.382,0.289-0.526c-0.906,0.62-0.728,0.934-2.113,1.313l-0.041-0.09c-3.419,1.607-8.166-1.576-8.103-5.928c-0.037,0.275-0.104,0.209-0.18,0.32c-0.175-2.237,1.033-4.486,3.073-5.403c1.995-0.987,4.335-0.58,5.763,0.75c-0.785-1.028-2.348-2.119-4.199-2.017c-1.814,0.029-3.51,1.182-4.077,2.434c-0.929,0.585-1.038,2.256-1.441,2.563c-0.545,4.003,1.024,5.733,3.68,7.768c0.417,0.282,0.118,0.326,0.175,0.541c-0.883-0.412-1.69-1.037-2.354-1.801c0.353,0.517,0.733,1.017,1.223,1.41c-0.831-0.279-1.942-2.013-2.267-2.084c1.435,2.567,5.818,4.502,8.113,3.541c-1.062,0.04-2.412,0.021-3.604-0.42c-0.501-0.257-1.183-0.791-1.062-0.893c3.133,1.171,6.369,0.887,9.078-1.286c0.689-0.537,1.443-1.449,1.662-1.464c-0.327,0.493,0.057,0.239-0.197,0.674c0.688-1.109-0.299-0.449,0.711-1.913l0.373,0.512c-0.139-0.917,1.143-2.033,1.012-3.489c0.291-0.445,0.326,0.478,0.015,1.502c0.434-1.136,0.113-1.317,0.224-2.254c0.121,0.315,0.279,0.648,0.359,0.981c-0.281-1.097,0.289-1.848,0.433-2.485c-0.142-0.063-0.435,0.485-0.503-0.812c0.01-0.562,0.156-0.295,0.214-0.435c-0.111-0.064-0.4-0.496-0.577-1.323c0.127-0.193,0.342,0.506,0.516,0.533c-0.112-0.655-0.304-1.159-0.313-1.665c-0.51-1.061-0.181,0.143-0.592-0.458c-0.543-1.687,0.449-0.39,0.514-1.156c0.82,1.188,1.289,3.029,1.504,3.792c-0.164-0.93-0.428-1.832-0.752-2.704c0.249,0.108-0.401-1.911,0.324-0.575c-0.772-2.848-3.314-5.511-5.65-6.76c0.286,0.262,0.646,0.591,0.517,0.642c-1.163-0.69-0.959-0.745-1.124-1.041c-0.946-0.383-1.01,0.034-1.636,0c-1.786-0.943-2.129-0.845-3.772-1.437l0.078,0.349c-1.184-0.394-1.379,0.146-2.657,0.002c-0.078-0.062,0.41-0.219,0.811-0.278c-1.143,0.15-1.09-0.228-2.208,0.042c0.277-0.197,0.566-0.322,0.861-0.486c-0.932,0.059-2.226,0.542-1.825,0.103c-1.521,0.676-4.22,1.63-5.735,3.051l-0.047-0.322c-0.694,0.835-3.028,2.492-3.215,3.57l-0.185,0.043c-0.361,0.613-0.595,1.305-0.881,1.935c-0.474,0.806-0.692,0.311-0.626,0.436c-0.929,1.883-1.39,3.467-1.79,4.768c0.284,0.424,0.007,2.558,0.113,4.264c-0.467,8.429,5.916,16.609,12.891,18.5c1.023,0.365,2.542,0.354,3.836,0.39c-1.525-0.438-1.722-0.232-3.209-0.749c-1.074-0.506-1.308-1.082-2.066-1.74l0.3,0.53c-1.49-0.526-0.867-0.652-2.078-1.034l0.321-0.424c-0.482-0.032-1.279-0.811-1.497-1.241l-0.528,0.021c-0.634-0.783-0.972-1.348-0.948-1.785l-0.17,0.305c-0.194-0.332-2.335-2.937-1.224-2.33c-0.207-0.188-0.481-0.307-0.779-0.85l0.227-0.258c-0.535-0.686-0.983-1.568-0.949-1.86c0.284,0.384,0.482,0.454,0.679,0.522c-1.351-3.349-1.426-0.187-2.448-3.409l0.216-0.019c-0.166-0.246-0.265-0.521-0.399-0.785l0.094-0.938c-0.972-1.125-0.272-4.781-0.132-6.783c0.097-0.816,0.811-1.684,1.354-3.045l-0.332-0.055c0.632-1.104,3.612-4.433,4.99-4.26c0.669-0.841-0.132-0.002-0.263-0.215c1.469-1.52,1.93-1.073,2.92-1.349c1.068-0.633-0.917,0.251-0.41-0.239c1.848-0.473,1.31-1.073,3.718-1.311c0.254,0.145-0.59,0.223-0.8,0.41c1.538-0.753,4.87-0.584,7.034,0.417c2.511,1.173,5.33,4.642,5.443,7.904l0.126,0.035c-0.063,1.298,0.198,2.798-0.257,4.175L35.294,20.986 M20.072,25.389l-0.086,0.431c0.403,0.547,0.724,1.142,1.237,1.567C20.853,26.664,20.577,26.364,20.072,25.389 M21.023,25.353c-0.213-0.237-0.34-0.518-0.48-0.802c0.135,0.495,0.411,0.922,0.669,1.357L21.023,25.353 M37.877,21.688l-0.088,0.226c-0.166,1.174-0.523,2.332-1.068,3.412C37.324,24.189,37.714,22.947,37.877,21.688 M24.56,5.185C24.974,5.031,25.579,5.101,26.019,5c-0.573,0.048-1.144,0.079-1.706,0.151L24.56,5.185 M10.007,12.923c0.095,0.882-0.667,1.229,0.167,0.644C10.623,12.562,10,13.286,10.007,12.923 M9.028,17.016c0.191-0.592,0.226-0.943,0.3-1.285C8.797,16.41,9.084,16.553,9.028,17.016"/></svg>
|
||||||
|
After Width: | Height: | Size: 4.2 KiB |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="48px" height="48px"><path fill="#0288d1" d="M24,4C12.956,4,4,12.956,4,24s8.956,20,20,20s20-8.956,20-20S35.044,4,24,4z M24,41c-9.391,0-17-7.609-17-17S14.609,7,24,7s17,7.609,17,17S33.391,41,24,41z"/><path fill="#0288d1" d="M35.641,25.563l2.84,0.004l-0.004,2.395l-5.691-0.012l0.012-8.172l2.855,0.004L35.641,25.563z M26.34,25.102l-4.699,3.684l-4.285-3.379c-0.621,1.484-2.109,2.52-3.836,2.516l-3.664-0.004l0.008-8.172l3.668,0.004c1.926,0.004,3.309,1.223,3.828,2.531l4.297-3.367l1.586,1.25l-3.934,3.086l0.754,0.594l3.934-3.086l1.59,1.254l-3.934,3.082l0.75,0.594l3.941-3.082l0.004-2.836l2.852,0.004l-0.008,5.781l2.84,0.004l-0.004,2.391l-5.691-0.008L26.34,25.102z M15.012,23.84c0-1.113-0.73-1.742-1.77-1.742h-0.637l-0.004,3.477h0.621C14.184,25.574,15.012,25.051,15.012,23.84"/></svg>
|
||||||
|
After Width: | Height: | Size: 843 B |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="48px" height="48px"><linearGradient id="TGbgz7YIIasADw2jo2LPPa" x1="24" x2="24" y1="44.346" y2="13.335" gradientTransform="matrix(1 0 0 -1 0 48)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#f44f5a"/><stop offset=".443" stop-color="#ee3d4a"/><stop offset=".651" stop-color="#ed3b48"/><stop offset=".726" stop-color="#eb3442"/><stop offset=".779" stop-color="#e82938"/><stop offset=".804" stop-color="#e52030"/></linearGradient><path fill="url(#TGbgz7YIIasADw2jo2LPPa)" d="M21.62,6.991c-0.013-0.046-0.02-0.126-0.02-0.186C21.6,6.36,21.958,6,22.4,6 c0.188,0,0.319,0.071,0.371,0.091c0.978,0.384,7.697,3.572,6.143,12.787C31.17,17.51,30.211,15,31.116,15 c0.277,0,0.39,0.104,0.56,0.348C34.144,18.892,36,22.973,36,26.927C36,33.595,30.628,39,24,39c-7.288,0-12-6.176-12-12.073 C12,17.118,23.49,15.307,21.62,6.991z"/><linearGradient id="TGbgz7YIIasADw2jo2LPPb" x1="23.5" x2="23.5" y1="30.346" y2="17.849" gradientTransform="matrix(1 0 0 -1 0 48)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fed100"/><stop offset=".353" stop-color="#fdcf00"/><stop offset=".523" stop-color="#fcc700"/><stop offset=".655" stop-color="#f9ba00"/><stop offset=".766" stop-color="#f4a800"/><stop offset=".865" stop-color="#ee9001"/><stop offset=".954" stop-color="#e77201"/><stop offset="1" stop-color="#e36001"/></linearGradient><path fill="url(#TGbgz7YIIasADw2jo2LPPb)" d="M23.225,18.152c0,0-0.182-0.152-0.446-0.152c-0.398,0-0.722,0.317-0.722,0.708 c0.722,4.25-4.329,5.667-4.329,10.625c0,3.13,2.584,5.667,5.772,5.667s5.772-2.537,5.772-5.667 C29.272,25.295,25.65,19.906,23.225,18.152z"/><path fill="#64717c" d="M30,42h-4l-5.5-1L15,42h-4l-5-5v-4l11.667-5H22l5,1l6-1h4l5,5v4L30,42z"/><linearGradient id="TGbgz7YIIasADw2jo2LPPc" x1="19.087" x2="29.046" y1="22.239" y2="3.511" gradientTransform="matrix(1 0 0 -1 0 48)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#bec5c8"/><stop offset=".968" stop-color="#b9c1c4"/></linearGradient><path fill="url(#TGbgz7YIIasADw2jo2LPPc)" d="M27,41c0,0.552-0.448,1-1,1H15c-0.552,0-1-0.448-1-1v-4c0-0.552,0.448-1,1-1h11 c0.552,0,1,0.448,1,1V41z M42,41c0,0.552-0.448,1-1,1H30c-0.552,0-1-0.448-1-1v-4c0-0.552,0.448-1,1-1h11c0.552,0,1,0.448,1,1V41z M33,33c0,0.552-0.448,1-1,1H21c-0.552,0-1-0.448-1-1v-4c0-0.552,0.448-1,1-1h11c0.552,0,1,0.448,1,1V33z M6,33c0,0.552,0.448,1,1,1 h10c0.552,0,1-0.448,1-1v-4c0-0.552-0.448-1-1-1H7c-0.552,0-1,0.448-1,1V33z M41,28h-5c-0.552,0-1,0.448-1,1v4c0,0.552,0.448,1,1,1 h6v-5C42,28.448,41.552,28,41,28z M11,36H6v5c0,0.552,0.448,1,1,1h4c0.552,0,1-0.448,1-1v-4C12,36.448,11.552,36,11,36z"/></svg>
|
||||||
|
After Width: | Height: | Size: 2.6 KiB |
1
datamodels/2.x/itop-config-mgmt/assets/img/icons8-hp.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="48px" height="48px"><path fill="#fff" d="M24 4A20 20 0 1 0 24 44A20 20 0 1 0 24 4Z"/><path fill="#1976d2" d="M24,43.997c-0.199,0-0.652,0.006-0.85,0l4-10.999h5.625c0.987,0,2.071-0.759,2.409-1.686l4.748-12.687c0.725-1.995-0.417-3.626-2.539-3.626h-7.804l-6.518,18.257h-0.002l-3.712,10.198C10.55,41.361,4,33.445,4,23.999c0-9.174,6.178-16.905,14.6-19.261l-3.83,10.526h-0.001L8.15,32.998h4.239l5.576-14.999h3.185l-5.576,14.999l3.919,0.001l5.438-14.374c0.726-1.995-0.416-3.626-2.536-3.626H19.15l3.951-10.978C23.399,4.008,23.699,4,24,4c11.046,0,20,8.953,20,19.999S35.046,43.997,24,43.997z M36.15,17.999h-3.185l-4.509,11.999h3.185L36.15,17.999z"/></svg>
|
||||||
|
After Width: | Height: | Size: 712 B |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="48px" height="48px"><path fill="#3f51b5" d="M48 16L48 14 40.469 14 39.809 16zM33 31L33 29 29 29 27 29 27 31zM39.766 28L40.51 26 34.51 26 35.266 28zM29 26H33V28H29zM29 23H33V25H29zM42 29L42 31 48 31 48 29 46 29zM36.181 19L35.521 17 27 17 27 19 29 19zM37.17 22L36.51 20 29 20 29 22zM33.378 23L34.133 25 40.883 25 41.628 23zM42 23H46V25H42zM27 32H33V34H27zM35.191 16L34.531 14 27 14 27 16zM36.776 32L37.531 34 38.276 32zM42 32H48V34H42zM39.479 17L38.819 19 46 19 48 19 48 17zM39.393 29L35.643 29 36.398 31 38.648 31zM42 26H46V28H42zM38.49 20L37.83 22 46 22 46 20zM0 14H8V16H0zM0 17H8V19H0zM2 20H6V22H2zM2 23H6V25H2zM2 26H6V28H2zM0 29H8V31H0zM0 32H8V34H0zM10 17H18V19H10zM24.977 16c-.913-1.208-2.347-2-3.977-2H10v2h7.023H24.977z"/><path fill="#3f51b5" d="M25.578 17h-9.131C16.171 17.613 16 18.283 16 19h10C26 18.288 25.846 17.613 25.578 17zM23.975 23H12v2h11.973c-.833-.62-1.854-1-2.973-1C22.119 24 23.142 23.621 23.975 23zM17.023 32H10v2h11c1.63 0 3.065-.792 3.977-2H17.023zM18 29h-2-6v2h6.447H18h7.578C25.846 30.387 26 29.712 26 29H18zM21 20c0 0 0 .083 0 1s-1 1-1 1h4.979c.441-.584.77-1.257.921-2H21zM12 20H17V22H12z"/><g><path fill="#3f51b5" d="M21 28h4.885c-.156-.738-.467-1.418-.907-2H20c0 0 1 .167 1 1S21 28 21 28zM12 26H17V28H12z"/></g></svg>
|
||||||
|
After Width: | Height: | Size: 1.3 KiB |