-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmbdeepseekaipost.class.php
More file actions
82 lines (67 loc) · 2.56 KB
/
mbdeepseekaipost.class.php
File metadata and controls
82 lines (67 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
if (! defined('IN_DISCUZ')) {
exit('Access Denied');
}
class mobileplugin_discuzdeepseekai
{
}
class mobileplugin_discuzdeepseekai_forum extends mobileplugin_discuzdeepseekai
{
public function viewthread_bottom_mobile_output($a)
{
global $_G;
$cache = $_G['cache']['plugin']['discuzdeepseekai'];
$return='';
if ($cache['openai'] && $_G['thread']['displayorder'] >= 0) {
if($cache['openattach']&&$_G['thread']['attachment']>0) return $return;
if (in_array($_G['groupid'], unserialize($cache['groups']))&&in_array($_G['fid'], unserialize($cache['forums']))) {
$tid = intval($_GET['tid']);
$discuzdeepseekai_url = 'plugin.php?id=discuzdeepseekai&tid=' . $tid . '&formhash=' . FORMHASH;
$openonload=$cache['openonload'];
include template('discuzdeepseekai:auto');
}
}
return $return;
}
}
class mobileplugin_discuzdeepseekai_group extends mobileplugin_discuzdeepseekai
{
public function viewthread_bottom_mobile_output($a)
{
global $_G;
$cache = $_G['cache']['plugin']['discuzdeepseekai'];
$return='';
if($cache['opengroup']&&$cache['openai']){
if ($cache['apikey'] && $_G['thread']['displayorder'] >= 0 && ! ($cache['openattach'] && $_G['thread']['attachment'] > 0)) {
if (in_array($_G['groupid'], unserialize($cache['groups']))) {
$tid = intval($_GET['tid']);
$discuzdeepseekai_url = 'plugin.php?id=discuzdeepseekai&come=group&tid=' . $tid . '&formhash=' . FORMHASH;
$openonload=$cache['openonload'];
include template('discuzdeepseekai:auto');
}
}
}
return $return;
}
}
class mobileplugin_discuzdeepseekai_portal extends mobileplugin_discuzdeepseekai
{
public function view_article_content_mobile_output($a)
{
global $_G;
$cache = $_G['cache']['plugin']['discuzdeepseekai'];
$return='';
if($cache['openarticle']&&$cache['openai']){
$aid = intval($_GET['aid']);
if ($aid) {
if (in_array($_G['groupid'], unserialize($cache['groups']))) {
$discuzdeepseekai_url = 'plugin.php?id=discuzdeepseekai:article&articleid=' . $aid . '&formhash=' . FORMHASH;
$openonload=$cache['openonload'];
include template('discuzdeepseekai:auto');
}
}
}
return $return;
}
}
?>