HEX
Server: nginx/1.18.0
System: Linux mail.dakarash.co.id 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User: www-data (33)
PHP: 8.1.2-1ubuntu2.23
Disabled: NONE
Upload Files
File: /home/dakarash.co.id/public_html/plugins/presto-player/inc/support.php
<?php

if (!function_exists('presto_player')) :
    function presto_player($id)
    {
        return do_shortcode('[presto_player id=' . $id . ']');
    }
endif;


/**
 * Just in case Ray is not installed 
 * but forgot to remove it.
 */
if(!function_exists('ray')) {
  class Presto_Ray_Dummy_Class {
      function __call($funName, $arguments) {
          return new Presto_Ray_Dummy_Class();
      }

      static function ray(...$args) {
          return new Presto_Ray_Dummy_Class();
      }
      
      function __get($propertyName) {
          return null;
      }

      function __set($property, $value) {
      }
  }

  function ray(...$args) {   
      return Presto_Ray_Dummy_Class::ray(...$args);
  }
}