xandeadx

GPT 5.5 (paid)

Jun 26th, 2026 (edited)
48
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.79 KB | None | 0 0
  1. <?php
  2.  
  3. declare(strict_types=1);
  4.  
  5. namespace Drupal\current_date_block\Plugin\Block;
  6.  
  7. use Drupal\Core\Block\Attribute\Block;
  8. use Drupal\Core\Block\BlockBase;
  9. use Drupal\Core\Block\BlockPluginInterface;
  10. use Drupal\Core\Form\FormStateInterface;
  11. use Drupal\Core\StringTranslation\TranslatableMarkup;
  12.  
  13. /**
  14.  * Provides a current date block.
  15.  */
  16. #[Block(
  17.  id: 'current_date_block',
  18.   admin_label: new TranslatableMarkup('Current date'),
  19. )]
  20. final class CurrentDateBlock extends BlockBase {
  21.  
  22.   /**
  23.    * {@inheritdoc}
  24.    */
  25.   public function defaultConfiguration(): array {
  26.     return [
  27.       'label_display' => BlockPluginInterface::BLOCK_LABEL_VISIBLE,
  28.       'date_format' => 'Y-m-d',
  29.     ] + parent::defaultConfiguration();
  30.   }
  31.  
  32.   /**
  33.    * {@inheritdoc}
  34.    */
  35.   public function build(): array {
  36.     $format = $this->configuration['date_format'] ?? 'Y-m-d';
  37.  
  38.     return [
  39.       '#plain_text' => date($format),
  40.     ];
  41.   }
  42.  
  43.   /**
  44.    * {@inheritdoc}
  45.    */
  46.   public function blockForm($form, FormStateInterface $form_state): array {
  47.     $form = parent::blockForm($form, $form_state);
  48.  
  49.     $form['date_format'] = [
  50.       '#type' => 'textfield',
  51.       '#title' => $this->t('Date format'),
  52.       '#description' => $this->t('PHP date format string, for example: Y-m-d or d.m.Y H:i'),
  53.       '#default_value' => $this->configuration['date_format'] ?? 'Y-m-d',
  54.       '#required' => TRUE,
  55.       '#maxlength' => 128,
  56.     ];
  57.  
  58.     return $form;
  59.   }
  60.  
  61.   /**
  62.    * {@inheritdoc}
  63.    */
  64.   public function blockSubmit($form, FormStateInterface $form_state): void {
  65.     parent::blockSubmit($form, $form_state);
  66.     $this->configuration['date_format'] = $form_state->getValue('date_format');
  67.   }
  68.  
  69.   /**
  70.    * {@inheritdoc}
  71.    */
  72.   public function getCacheMaxAge(): int {
  73.     return 0;
  74.   }
  75.  
  76. }
  77.  
Advertisement
Comments
  • User was banned
  • David6199
    2 days
    # CSS 0.82 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://drive.google.com/file/d/1cvQPOZ7JecI0L6lqdIzIHJbHQBiDRT4U/view
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
Add Comment
Please, Sign In to add comment