magic_doodle.php
1.18 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
<?php
/**
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: magic_doodle.php 23608 2011-07-27 08:10:07Z cnteacher $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
class magic_doodle {
var $version = '1.0';
var $name = 'doodle_name';
var $description = 'doodle_desc';
var $price = '20';
var $weight = '20';
var $useevent = 0;
var $targetgroupperm = false;
var $copyright = '<a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a>';
var $magic = array();
var $parameters = array();
function getsetting(&$magic) {}
function setsetting(&$magicnew, &$parameters) {}
function usesubmit() {
global $_G;
$config = urlencode(getsiteurl().'home.php?mod=misc&ac=swfupload&op=config&doodle=1');
include template('home/magic_doodle');
}
function show() {
global $_G;
magicshowtips(lang('magic/doodle', 'doodle_info'));
echo <<<SCRIPT
<p>
<input type="hidden" name="showid" value="$_GET[showid]" />
<input type="hidden" name="mtarget" value="$_GET[target]" />
<input type="hidden" name="from" value="$_GET[from]" />
</p>
SCRIPT;
}
}
?>