GRAYBYTE WORDPRESS FILE MANAGER4843

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/backwpup/parts/sidebar/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/backwpup/parts/sidebar//storage-MSAZURE.php
<?php
use BackWPup\Utils\BackWPupHelpers;
use Inpsyde\BackWPup\MsAzureDestinationConfiguration;
$job_id = $job_id ?? null;
$msazure = BackWPup::get_destination("msazure");
$msazure->edit_inline_js();
BackWPupHelpers::component("closable-heading", [
  'title' => __("Microsoft Azure Settings", 'backwpup'),
  'type' => 'sidebar'
]);
if (null === $job_id || empty($job_id) ) {
	$is_in_form    = true;  $msazuredir = trailingslashit(sanitize_title_with_dashes(get_bloginfo('name')));
    $msazuremaxbackups = 15;
} else {
  $msazuredir = esc_attr(BackWPup_Option::get(
    $job_id,
    "msazuredir",
    trailingslashit(sanitize_title_with_dashes(get_bloginfo('name')))));
  $msazuremaxbackups = esc_attr(BackWPup_Option::get(
    $job_id,
    "msazuremaxbackups",
    3));
}
?>

<?php if (isset($is_in_form) && ( false === $is_in_form || 'false' === $is_in_form )) : ?>
  <p>
    <?php
    BackWPupHelpers::component("form/button", [
      "type" => "link",
      "label" => __("Back to Storages", 'backwpup'),
      "icon_name" => "arrow-left",
      "icon_position" => "before",
      "trigger" => "load-and-open-sidebar",
      "display" => "storages",
      "data"		=> ['job-id' => $job_id, 'block-type' => 'children', 'block-name' => 'sidebar/storages',  ]
    ]);
    ?>
  </p>
<?php endif; ?>

<?php BackWPupHelpers::component("containers/scrollable-start"); ?>

<div class="rounded-lg p-4 bg-grey-100">
  <?php
  BackWPupHelpers::component("heading", [
    "level" => 2,
    "font" => "small",
    "title" => __("MS Azure Access Keys", 'backwpup'),
    "class" => "mb-4",
  ]);
  ?>

  <div class="flex flex-col gap-2">
    <?php
    BackWPupHelpers::component("form/text", [
      "name" => "msazureaccname",
      "identifier" => "msazureaccname",
      "label" => __("Account name", 'backwpup'),
      "value" => esc_attr(BackWPup_Option::get($job_id, MsAzureDestinationConfiguration::MSAZURE_ACCNAME)),
      "required" => true,
    ]);
    ?>

    <?php
    BackWPupHelpers::component("form/text", [
      "name" => "msazurekey",
      "identifier" => "msazurekey",
      "label" => __("Access key", 'backwpup'),
      "value" => esc_attr(BackWPup_Encryption::decrypt(BackWPup_Option::get($job_id, MsAzureDestinationConfiguration::MSAZURE_KEY))),
      "required" => true,
    ]);
    ?>
  </div>
</div>

<div class="rounded-lg p-4 bg-grey-100">
  <?php
  BackWPupHelpers::component("heading", [
    "level" => 2,
    "title" => __("Blob Container", 'backwpup'),
    "font" => "small",
    "class" => "mb-4",
  ]);
  ?>
  <div id="msazureBucketContainer">
    <?php if (BackWPup_Option::get($job_id, MsAzureDestinationConfiguration::MSAZURE_ACCNAME) && BackWPup_Option::get($job_id, MsAzureDestinationConfiguration::MSAZURE_KEY)) : ?>
      <?php
        $msazure->edit_ajax([
          MsAzureDestinationConfiguration::MSAZURE_ACCNAME => BackWPup_Option::get($job_id, MsAzureDestinationConfiguration::MSAZURE_ACCNAME),
          MsAzureDestinationConfiguration::MSAZURE_KEY => BackWPup_Encryption::decrypt(BackWPup_Option::get($job_id, MsAzureDestinationConfiguration::MSAZURE_KEY)),
          'msazureselected' => BackWPup_Option::get($job_id, MsAzureDestinationConfiguration::MSAZURE_CONTAINER),
        ]);
      ?>
    <?php else : ?>
      <?php
      BackWPupHelpers::component("alerts/info", [
        "type" => "alert",
        "font" => "xs",
        "content" => __("Please enter your Azure Access Keys", 'backwpup'),
      ]);
      ?>
    <?php endif; ?>
  </div>
  <p class="my-2 text-center text-sm"><?php _e("OR", 'backwpup'); ?></p>

  <?php
  BackWPupHelpers::component("form/text", [
    "name" => "newmsazurecontainer",
    "identifier" => "newmsazurecontainer",
    "label" => __("Create a new container", 'backwpup'),
    "value" => "",
	  "tooltip" => __('The container name must be alphanumeric characters only and in lowercase.', 'backwpup'),
    "required" => false,
  ]);
  ?>

</div>

<div class="rounded-lg p-4 bg-grey-100">
  <?php
  BackWPupHelpers::component("heading", [
    "level" => 2,
    "title" => __("Backup Settings", 'backwpup'),
    "font" => "small",
    "class" => "mb-4",
  ]);
  ?>

  <div class="flex flex-col gap-2">
    <?php
    BackWPupHelpers::component("form/text", [
      "name" => "msazuredir",
      "identifier" => "msazuredir",
      "label" => __("Folder to store files in", 'backwpup'),
      "value" => $msazuredir,
      "required" => true,
    ]);
    ?>

    <?php
    BackWPupHelpers::component("form/text", [
      "name" => "msazuremaxbackups",
      "identifier" => "msazuremaxbackups",
      "type" => "number",
      "min" => 1,
      "label" => __("Max backups to retain", 'backwpup'),
      "value" => $msazuremaxbackups,
      "required" => true,
    ]);
    ?>

    <?php
    BackWPupHelpers::component("alerts/info", [
      "type" => "alert",
      "font" => "xs",
      "content" => __("When this limit is exceeded, the oldest backup will be deleted.", 'backwpup'),
    ]);
    ?>
  </div>
</div>

<?php BackWPupHelpers::component("containers/scrollable-end"); ?>

<?php
BackWPupHelpers::component("form/button", [
  "type" => "primary",
  "label" => __("Save & Test connection", 'backwpup'),
  "full_width" => true,
  "trigger" => "test-MSAZURE-storage",
  "data" => [
    "storage" => "microsoft-azure",
    "job-id" => $job_id,
  ],
]);
?>

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
dropbox-parts
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
parts
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
sugar-sync-parts
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:37
giriqfky / giriqfky
0644
advanced-settings.php
2.051 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
edit-title.php
1.173 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
frequency.php
4.867 KB
April 29 2025 17:34:12
giriqfky / giriqfky
0644
select-files-free.php
1.038 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
select-files.php
1.602 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
select-tables.php
2.505 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
settings-jobs.php
3.994 KB
April 23 2025 14:14:02
giriqfky / giriqfky
0644
settings-logs.php
3.402 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
settings-network.php
2.636 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
storage-DROPBOX.php
3.406 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
storage-FOLDER.php
2.6 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
storage-FTP.php
5.507 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
storage-MSAZURE.php
5.207 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
storage-RSC.php
5.088 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
storage-S3.php
9.357 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
storage-SUGARSYNC.php
3.08 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
storages.php
1.381 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF