403Webshell
Server IP : 192.158.238.246  /  Your IP : 18.191.136.109
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/7779/cwd/plugins/give/src/Donations/Migrations/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/7779/cwd/plugins/give/src/Donations/Migrations/UnserializeTitlePrefix.php
<?php

namespace Give\Donations\Migrations;

use Give\Framework\Database\DB;
use Give\Framework\Migrations\Contracts\Migration;
use Give\Helpers\Utils;

/**
 * @since 3.17.2
 */
class UnserializeTitlePrefix extends Migration
{
    /**
     * @since 3.17.2
     */
    public function run()
    {
        $items = DB::table('give_donationmeta')->where('meta_key', '_give_donor_billing_title_prefix')->getAll();

        foreach ($items as $item) {
            if (Utils::isSerialized($item->meta_value)) {
                $unserializedTitlePrefix = Utils::safeUnserialize($item->meta_value);

                DB::table('give_donationmeta')
                    ->where('donation_id', $item->donation_id)
                    ->where('meta_key', '_give_donor_billing_title_prefix')
                    ->update([
                        'meta_value' => $unserializedTitlePrefix,
                    ]);
            }
        }
    }


    /**
     * @since 3.17.2
     */
    public static function id()
    {
        return 'donation-meta-unserialize-title-prefix';
    }

    /**
     * @since 3.17.2
     */
    public static function title()
    {
        return 'Unserialize data in the _give_donor_billing_title_prefix meta value';
    }

    /**
     * @since 3.17.2
     */
    public static function timestamp()
    {
        return strtotime('2024-23-10');
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit