18 require_once SQ_INCLUDE_PATH.
'/asset_edit/asset_edit_fns.inc';
41 parent::__construct();
58 $current_path = $asset->attr(
'encryption_lib_path');
60 if ($asset->writeAccess(
'attributes')) {
61 text_box($prefix.
'_encryption_lib_path', $current_path, 80);
63 if (trim($current_path) ==
'') {
64 echo
'<b>[Empty]</b>';
66 echo
'<b>'.$current_path.
'</b>';
70 if (!is_file($current_path)) {
71 ?><br /><span
class=
"sq-backend-warning"><?php echo translate(
'path_to_not_valid',
'Paypal Encryption Library'); ?></span><?php
73 include_once $current_path;
74 if (!class_exists(
'PPCrypto')) {
75 ?><br /><span
class=
"sq-backend-warning"><?php echo translate(
'paypal_configuration_encryption_lib_no_required_class'); ?></span><?php
77 if (!method_exists(
'PPCrypto',
'signAndEncrypt')) {
78 ?><br /><span
class=
"sq-backend-warning"><?php echo translate(
'paypal_configuration_encryption_lib_no_required_method'); ?></span><?php
100 if (!$asset->writeAccess(
'attributes'))
return FALSE;
101 if (!isset($_POST[$prefix.
'_encryption_lib_path']))
return FALSE;
103 return $asset->setAttrValue(
'encryption_lib_path', trim($_POST[$prefix.
'_encryption_lib_path']));