-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
executable file
·165 lines (141 loc) · 4.3 KB
/
config.php
File metadata and controls
executable file
·165 lines (141 loc) · 4.3 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<?php
/**
* config.php Page de configuration du module allyRanking. Accessible uniquement par les admins
* @package allyRanking
* @author Jibus
*/
/**
* Fichier de fonctions du module allyRanking
*/
require_once("mod/allyranking/ARinclude.php");
if (!defined('IN_SPYOGAME')) die("Hacking attempt");
$adminMessage = "";
if (isset($pub_defaultMenu))
{
SetMenuDefaults();
// refresh, parce que le menu s'affiche avantl'action du module.
redirection("index.php?action=".MODULE_ACTION."&subaction=config");
}
if (isset($pub_showtitleyes))
{
addMenuTitle();
// refresh, parce que le menu s'affiche avantl'action du module.
redirection("index.php?action=".MODULE_ACTION."&subaction=config");
}
if (isset($pub_showtitleno))
{
delMenuTitle();
// refresh, parce que le menu s'affiche avantl'action du module.
redirection("index.php?action=".MODULE_ACTION."&subaction=config");
}
if (isset($pub_showiconyes))
{
addMenuIcon();
// refresh, parce que le menu s'affiche avantl'action du module.
redirection("index.php?action=".MODULE_ACTION."&subaction=config");
}
if (isset($pub_showiconno))
{
delMenuIcon();
// refresh, parce que le menu s'affiche avantl'action du module.
redirection("index.php?action=".MODULE_ACTION."&subaction=config");
}
$res = getMenuStatus();
list($icon,$title) = $res;
if (isset($pub_submitbt) && $pub_submitbt == "Envoyer")
{
$pub_tagRanking = $db->sql_escape_string($pub_tagRanking);
mod_set_option('tagRanking',$pub_tagRanking);
}
$tagRanking = mod_get_option('tagRanking');
//Affichage des boutons de navigation
buttons_bar($pub_subaction);
?>
<br/>
<script>
<!--
function valid()
{
if (document.form1.delMember.value!="")
return confirm("Voulez-vous supprimer définitivement tous les classements alliance de "+document.form1.delMember.value);
else
return true;
}
-->
</script>
<form name="form1" style='margin:0px;padding:0px;' action="" enctype="multipart/form-data" method="POST" onsubmit="return valid();">
<input type="hidden" name="action" value="allyranking"/>
<input type="hidden" name="subaction" value="config"/>
<table width='700' border=0>
<?php
$config48_img = '<img width="48" height="48" SRC="mod/allyranking/images/config48.png" name="config48" align="absmiddle" style="behavior: url(\'mod/allyranking/images/pngbehavior.htc\');">';
echo "<tr><td class='c' width='50'>".$config48_img."</td><td class='c' width='750'>Administration du module</td></tr>\n";
?>
</table>
<table width="700">
<tr>
<td class="c" colspan="2">Gestion des alliances </td>
</tr>
<tr align="center">
<th>Liste des alliances à utiliser (séparées par des virgules)</th>
<th>
<input type="text" name="tagRanking" rows="1" cols="10"
<?php
if (!empty($tagRanking))
echo "value='$tagRanking'";
?>
/>
</th>
</tr>
<tr>
<td colspan="2" class="c" align="center"><input name="submitbt" type="submit" value="Envoyer"/></td>
</tr>
</form>
<form style='margin:0px;padding:0px;' action='' enctype='multipart/form-data' method='POST'>
<input type="hidden" name="action" value="allyranking"/>
<input type="hidden" name="subaction" value="config"/>
<tr>
<td class="c" colspan="2">Menu</td>
</tr>
<tr align="center">
<th>Affichage du texte </th>
<th>
<?php
if ($title==0){
?>
<input name="showtitleyes" type="submit" onclick="this.form.submit();" value="Afficher"/>
<?php
} else if ($icon!=0){
?>
<input name="showtitleno" type="submit" onclick="this.form.submit();" value="Masquer"/>
<?php
} else echo " ";
?>
</th>
</tr>
<tr align="center">
<th>Affichage de l'image </th>
<th>
<?php
if ($icon==0){
?>
<input name="showiconyes" type="submit" onclick="this.form.submit();" value="Afficher"/>
<?php
} else if ($title!=0){
?>
<input name="showiconno" type="submit" onclick="this.form.submit();" value="Masquer"/>
<?php
} else echo " ";
?>
</th>
</tr>
<tr align="center">
<th>Remettre le menu par défaut</th>
<th><input type="submit" name="defaultMenu" value="Lancer" onclick="this.form.submit();"/></th>
</tr>
</form>
</table>
<?php
page_footer();
require_once("views/page_tail.php");
?>