-
Notifications
You must be signed in to change notification settings - Fork 0
/
e_gold.php
57 lines (44 loc) · 1.73 KB
/
e_gold.php
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
<?php
require_once("../../class2.php");
require_once(e_PLUGIN."ebattles/include/main.php");
$e_gold[] = array("plug_name" => EB_L1, "plug_folder" => "ebattles", "add" => true, "deduct" => true);
if (!function_exists('ebattles_configure_edit')) {
function ebattles_configure_edit() {
global $gold_obj, $pref;
$retval = "
<form method='POST' action='".e_SELF."' id='ebattles' >
<div><input type='hidden' name='gold_plugin' value='ebattles' /></div>
<table class='fborder' style='".ADMIN_WIDTH."'>
<tr>
<td class='fcaption' colspan='2' style='text-align:center; font-size:12pt'><b>".EB_GOLD_L1."</b></td>
</tr>
<tr>
<td class='forumheader3' style='width:386'>".EB_GOLD_L4." <div class='smalltext'>".EB_GOLD_L5."</div></td>
<td class='forumheader3' style='width:451'>
". r_userclass("eb_gold_userclass", $pref['eb_gold_userclass'], 'off', "public, member, admin, classes, nobody")."</td>
</tr>
<tr>
<td class='forumheader3' style='width:386'>".EB_GOLD_L6."</td>
<td class='forumheader3' style='width:451'>
<input type='textbox' class='tbox' name='eb_gold_playmatch' value='".$pref['eb_gold_playmatch']."'></td>
</tr>
<tr>
<td class='forumheader2' colspan='2' style='text-align:center'><input type='submit' class='button' name='gold_save' value='" . EB_GOLD_L2 . "'</td>
</tr>
</table>
</form>";
return $retval;
}
}
if (!function_exists("ebattles_configure_save")) {
function ebattles_configure_save() {
global $gold_obj, $pref, $arcade_obj;
$pref['eb_gold_userclass'] = $_POST['eb_gold_userclass'];
$pref['eb_gold_playmatch'] = $_POST['eb_gold_playmatch'];
save_prefs();
return EB_GOLD_L3;
}
} else {
return "Error";
}
?>