mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 10:49:37 +02:00
23 lines
No EOL
393 B
PHP
23 lines
No EOL
393 B
PHP
<?php
|
|
if(!defined('IN_GMAPI')) { die('...'); }
|
|
|
|
class GM_Protocol {
|
|
|
|
public static function getSJProtocol($service_name) {
|
|
$name = "SJ_".$service_name;
|
|
if(!class_exists($name))
|
|
return false;
|
|
|
|
return new $name();
|
|
}
|
|
|
|
public static function getWCProtocol($service_name) {
|
|
$name = "WC_".$service_name;
|
|
if(!class_exists($name))
|
|
return false;
|
|
|
|
return new $name();
|
|
}
|
|
}
|
|
|
|
?>
|