HEX
Server: Apache
System: Linux webd011.cluster130.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User: ezpgggd (105871)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/ezpgggd/www/wp-content/plugins/flow-flow/includes/FlowFlowUpdater.php
<?php namespace flow;
use la\core\LARemoteUpdater;

if ( ! defined( 'WPINC' ) ) die;
/**
 * FlowFlow.
 *
 * @package   FlowFlow
 * @author    Looks Awesome <email@looks-awesome.com>
 *
 * @link      http://looks-awesome.com
 * @copyright Looks Awesome
 */
class FlowFlowUpdater extends LARemoteUpdater{

    protected function getUrlToPluginMetafileJson(){
        return 'http://flow.looks-awesome.com/service/update/flow-flow.json';
    }

    protected function getPluginWithNewVersion($info){
        $plugin = [];
        $plugin['url'] = $info->plugin["url"];
        $plugin['slug'] = 'flow-flow';
        $plugin['new_version'] = $info->plugin['version'];
        $plugin['plugin'] = 'flow-flow/flow-flow.php';
        if (isset($info->plugin['download_url'])) $plugin['package'] = $info->plugin['download_url'];
        return (object) $plugin;
    }
}