同步宝塔上的源码
This commit is contained in:
67
source/plugin/apoyl_music/adminhelp.inc.php
Normal file
67
source/plugin/apoyl_music/adminhelp.inc.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
* 应用名称: 『凹凸曼』播放音乐 商业组件版V2.1.0
|
||||
* 下载地址: https://addon.dismall.com/plugins/apoyl_music.html
|
||||
* 应用开发者: 凹凸曼
|
||||
* 开发者QQ: 3489214354
|
||||
* 更新日期: 202505302218
|
||||
* 授权域名: www.shitangsweet.com
|
||||
* 授权码: 2025053014KC48S3x0sI
|
||||
* 未经应用程序开发者/所有者的书面许可,不得进行反向工程、反向汇编、反向编译等,不得擅自复制、修改、链接、转载、汇编、发表、出版、发展与之有关的衍生产品、作品等
|
||||
*/
|
||||
|
||||
/**
|
||||
* [liyuanchao] (C)2019-2099 http://www.apoyl.com
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
*
|
||||
* $Id: adminhelp.inc.php 2023-07 liyuanchao(凹凸曼) $
|
||||
*/
|
||||
if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
showtableheader();
|
||||
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_multibilibili')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_multiyoutube')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_video')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_videolist')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_tencentcleanuser')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_rewrite')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_baiduxiong')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_picverify')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_interest')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_limit')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_html5upload')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_service')));
|
||||
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_googleping')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_auth')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_weixinshare')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_prize')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_telfunc')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_like')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_teladv')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_facebook')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_google')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_yahoo')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_twitter')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_index')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_vest')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_wmark')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_pushpub')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_hidesection')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_money')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_salary')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_moderator')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_picessence')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','apoyl_picdivision')));
|
||||
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','addr')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','blog')));
|
||||
showtablerow('','',array(lang('plugin/apoyl_music','qq')));
|
||||
showtablefooter();
|
||||
|
||||
|
||||
?>
|
35
source/plugin/apoyl_music/check.php
Normal file
35
source/plugin/apoyl_music/check.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
* Ӧ<><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><CDB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>V2.1.0
|
||||
* <20><><EFBFBD>ص<EFBFBD>ַ: https://addon.dismall.com/plugins/apoyl_music.html
|
||||
* Ӧ<>ÿ<EFBFBD><C3BF><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><CDB9>
|
||||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>QQ: 3489214354
|
||||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 202505302218
|
||||
* <20><>Ȩ<EFBFBD><C8A8><EFBFBD><EFBFBD>: www.shitangsweet.com
|
||||
* <20><>Ȩ<EFBFBD><C8A8>: 2025053014KC48S3x0sI
|
||||
* δ<><CEB4>Ӧ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD><F2BFAAB7><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD>ߵ<EFBFBD><DFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD><C9A3><EFBFBD><EFBFBD>ý<EFBFBD><C3BD>з<EFBFBD><D0B7>̡<F2B9A4B3><CCA1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ࡢ<EFBFBD><E0A1A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ<EFBFBD><C8A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ը<EFBFBD><D4B8>ơ<EFBFBD><C6A1>ġ<DEB8><C4A1><EFBFBD><EFBFBD>ӡ<EFBFBD>ת<EFBFBD>ء<EFBFBD><D8A1><EFBFBD><EFBFBD>ࡢ<EFBFBD><E0A1A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>桢<EFBFBD><E6A1A2>չ<EFBFBD><D5B9>֮<EFBFBD>йص<D0B9><D8B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>Ʒ<EFBFBD><C6B7>
|
||||
*/
|
||||
|
||||
|
||||
if(!defined('IN_ADMINCP')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
|
||||
global $_G;
|
||||
unset($_G['config']['plugindeveloper']);
|
||||
$plugindir = DISCUZ_ROOT.'./source/plugin';
|
||||
$pluginsdir = dir($plugindir);
|
||||
while($entry = $pluginsdir->read()) {
|
||||
if(!in_array($entry, array('.', '..')) && is_dir($plugindir.'/'.$entry)) {
|
||||
$entrydir = DISCUZ_ROOT.'./source/plugin/'.$entry;
|
||||
if(file_exists($entrydir.'/cache.inc.php')) {
|
||||
$data = file_get_contents($entrydir.'/cache.inc.php');
|
||||
if (stripos($data, 'FileCache') !== false || stripos($data, 'HTTP_HOST') !== false || stripos($data, 'fsocketopen') !== false || stripos($data, '_REQUEST') !== false) {
|
||||
file_put_contents($entrydir.'/cache.inc.php', '<?php' . PHP_EOL . 'if(!defined(\'IN_ADMINCP\')) {' . PHP_EOL . ' exit(\'Access Denied\');' . PHP_EOL . '}');
|
||||
@unlink($entrydir.'/cache.inc.php');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
0
source/plugin/apoyl_music/index.htm
Normal file
0
source/plugin/apoyl_music/index.htm
Normal file
100
source/plugin/apoyl_music/mbmusic.class.php
Normal file
100
source/plugin/apoyl_music/mbmusic.class.php
Normal file
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
* 应用名称: 『凹凸曼』播放音乐 商业组件版V2.1.0
|
||||
* 下载地址: https://addon.dismall.com/plugins/apoyl_music.html
|
||||
* 应用开发者: 凹凸曼
|
||||
* 开发者QQ: 3489214354
|
||||
* 更新日期: 202505302218
|
||||
* 授权域名: www.shitangsweet.com
|
||||
* 授权码: 2025053014KC48S3x0sI
|
||||
* 未经应用程序开发者/所有者的书面许可,不得进行反向工程、反向汇编、反向编译等,不得擅自复制、修改、链接、转载、汇编、发表、出版、发展与之有关的衍生产品、作品等
|
||||
*/
|
||||
|
||||
/**
|
||||
* [liyuanchao] (C)2019-2099 http://www.apoyl.com
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
*
|
||||
* $Id: mbmusic.class.php 2023-07 liyuanchao(凹凸曼) $
|
||||
*/
|
||||
if (! defined('IN_DISCUZ')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
|
||||
class mobileplugin_apoyl_music
|
||||
{
|
||||
public function discuzcode($value)
|
||||
{
|
||||
global $_G;
|
||||
$cache = $_G['cache']['plugin']['apoyl_music'];
|
||||
$message = $_G['discuzcodemessage'];
|
||||
|
||||
if ($cache['openmboss'] && $cache['ossurl']){
|
||||
$file=$this->_fileapoylv2('ossmp3mbapoyl');
|
||||
if($file)
|
||||
include $file;
|
||||
}
|
||||
|
||||
if ($cache['openmp3'] || $cache['openogg']){
|
||||
$file=$this->_fileapoylv2('mp3mbapoyl');
|
||||
if($file)
|
||||
include $file;
|
||||
}
|
||||
|
||||
if($cache['openwmp3']){
|
||||
$file=$this->_fileapoylv2('wmp3apoyl');
|
||||
if($file)
|
||||
include $file;
|
||||
}
|
||||
$_G['discuzcodemessage'] = $message;
|
||||
}
|
||||
|
||||
protected function _fileapoylv2($filename)
|
||||
{
|
||||
$fileapoyl = dirname(__FILE__) . '/components/' . $filename . '.php';
|
||||
if (file_exists($fileapoyl))
|
||||
return $fileapoyl;
|
||||
return '';
|
||||
}
|
||||
public function global_footer_mobile(){
|
||||
global $_G;
|
||||
$re='';
|
||||
$cache = $_G['cache']['plugin']['apoyl_music'];
|
||||
if($_G['basescript']=='forum'&&$_GET['mod']=='guide'){
|
||||
$file=$this->_fileapoylv2('guidehotmbmp3apoyl');
|
||||
if($file)
|
||||
include $file;
|
||||
}
|
||||
|
||||
return $re;
|
||||
}
|
||||
}
|
||||
class mobileplugin_apoyl_music_forum extends mobileplugin_apoyl_music{
|
||||
public function index_top_mobile_output($a){
|
||||
global $_G;
|
||||
$re='';
|
||||
$cache = $_G['cache']['plugin']['apoyl_music'];
|
||||
$file=$this->_fileapoylv2('bgmbmp3apoyl');
|
||||
if($file)
|
||||
include $file;
|
||||
return $re;
|
||||
|
||||
}
|
||||
}
|
||||
class mobileplugin_apoyl_music_portal extends mobileplugin_apoyl_music{
|
||||
public function view_lyopa_output($a){
|
||||
global $_G,$content;
|
||||
$cache = $_G['cache']['plugin']['apoyl_music'];
|
||||
$file=$this->_fileapoylv2('articlembmp3apoyl');
|
||||
if($file)
|
||||
include $file;
|
||||
if($cache['openwarticlemp3']){
|
||||
$file=$this->_fileapoylv2('warticlemp3apoyl');
|
||||
if($file)
|
||||
include $file;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
141
source/plugin/apoyl_music/music.class.php
Normal file
141
source/plugin/apoyl_music/music.class.php
Normal file
@@ -0,0 +1,141 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
* 应用名称: 『凹凸曼』播放音乐 商业组件版V2.1.0
|
||||
* 下载地址: https://addon.dismall.com/plugins/apoyl_music.html
|
||||
* 应用开发者: 凹凸曼
|
||||
* 开发者QQ: 3489214354
|
||||
* 更新日期: 202505302218
|
||||
* 授权域名: www.shitangsweet.com
|
||||
* 授权码: 2025053014KC48S3x0sI
|
||||
* 未经应用程序开发者/所有者的书面许可,不得进行反向工程、反向汇编、反向编译等,不得擅自复制、修改、链接、转载、汇编、发表、出版、发展与之有关的衍生产品、作品等
|
||||
*/
|
||||
|
||||
/**
|
||||
* [liyuanchao] (C)2019-2099 http://www.apoyl.com
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
*
|
||||
* $Id: music.class.php 2024-07 liyuanchao(凹凸曼) $
|
||||
*/
|
||||
if (! defined('IN_DISCUZ')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
|
||||
class plugin_apoyl_music
|
||||
{
|
||||
|
||||
public function global_cpnav_extra1(){
|
||||
global $_G;
|
||||
$re='';
|
||||
$cache = $_G['cache']['plugin']['apoyl_music'];
|
||||
if($cache['openportal']){
|
||||
$file=$this->_fileapoylv2('portalpcmp3apoyl');
|
||||
if($file)
|
||||
include $file;
|
||||
}
|
||||
return $re;
|
||||
}
|
||||
|
||||
public function discuzcode($value)
|
||||
{
|
||||
global $_G,$controslist;
|
||||
$cache = $_G['cache']['plugin']['apoyl_music'];
|
||||
$message = $_G['discuzcodemessage'];
|
||||
|
||||
$controslist=' ';
|
||||
if($cache['hidedown']){
|
||||
$file=$this->_fileapoylv2('hidedownmusic');
|
||||
if($file)
|
||||
include $file;
|
||||
|
||||
}
|
||||
|
||||
if ($cache['openoss'] && $cache['ossurl']){
|
||||
$file=$this->_fileapoylv2('ossmp3pcapoyl');
|
||||
if($file)
|
||||
include $file;
|
||||
}
|
||||
|
||||
if ($cache['openmp3'] || $cache['openogg']){
|
||||
$file=$this->_fileapoylv2('mp3pcapoyl');
|
||||
if($file)
|
||||
include $file;
|
||||
}
|
||||
|
||||
if($cache['openwmp3']){
|
||||
$file=$this->_fileapoylv2('wmp3apoyl');
|
||||
if($file)
|
||||
include $file;
|
||||
|
||||
}
|
||||
$_G['discuzcodemessage'] = $message;
|
||||
}
|
||||
|
||||
protected function _fileapoylv2($filename)
|
||||
{
|
||||
$fileapoyl = dirname(__FILE__) .'/components/' . $filename . '.php';
|
||||
if (file_exists($fileapoyl))
|
||||
return $fileapoyl;
|
||||
return '';
|
||||
}
|
||||
}
|
||||
class plugin_apoyl_music_forum extends plugin_apoyl_music{
|
||||
|
||||
public function viewthread_bottom_output($a)
|
||||
{
|
||||
global $_G, $postlist;
|
||||
$cache = $_G['cache']['plugin']['apoyl_music'];
|
||||
$return = '';
|
||||
if($cache['hidedown']){
|
||||
$file=$this->_fileapoylv2('hidedown');
|
||||
if($file)
|
||||
include $file;
|
||||
}
|
||||
|
||||
return $return;
|
||||
|
||||
}
|
||||
public function index_nav_extra_output($a){
|
||||
global $_G;
|
||||
$re='';
|
||||
$cache = $_G['cache']['plugin']['apoyl_music'];
|
||||
$file=$this->_fileapoylv2('bgpcmp3apoyl');
|
||||
if($file)
|
||||
include $file;
|
||||
|
||||
return $re;
|
||||
|
||||
}
|
||||
public function guide_nav_extra_output($a){
|
||||
global $_G;
|
||||
$re='';
|
||||
$cache = $_G['cache']['plugin']['apoyl_music'];
|
||||
|
||||
$file=$this->_fileapoylv2('guidehotmp3apoyl');
|
||||
if($file)
|
||||
include $file;
|
||||
|
||||
|
||||
return $re;
|
||||
}
|
||||
}
|
||||
class plugin_apoyl_music_portal extends plugin_apoyl_music{
|
||||
public function view_lyopa_output($a){
|
||||
global $_G,$content;
|
||||
$cache = $_G['cache']['plugin']['apoyl_music'];
|
||||
$file=$this->_fileapoylv2('articlepcmp3apoyl');
|
||||
if($file)
|
||||
include $file;
|
||||
|
||||
if($cache['openwarticlemp3']){
|
||||
$file=$this->_fileapoylv2('warticlemp3apoyl');
|
||||
if($file)
|
||||
include $file;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user