improved clan-item page

main
hecht 7 years ago
parent ee50a9989a
commit bbeb4c8630

@ -98,7 +98,7 @@ if(!$charm)
<th align="center">Kaufen</th>
</tr>
<?php
$item_name = db_query('SELECT * FROM clan_item order by preis');
$item_name = db_query('SELECT * FROM clan_item order by req_level');
$clan_items_query = db_query('SELECT * FROM clan_ware where clan = '.$user_ida['clan']);
while($row = mysqli_fetch_assoc($clan_items_query)){
$c_item[$row['item_id']] = 1;
@ -126,7 +126,7 @@ if(!$charm)
if($c_item[$row['id']] >= 1){
echo '<td align="center"><a href="javascript:if(confirm(\''.$row['name'].' Wirklich abreissen?\')==true) window.location.href=\'index.php?as=clan/c_markt&charm=5&item_id='.$row['id'].'\'"><img border=0 src="design/bilder/buttons/abreissen.gif" width="42" height="19"></a></td>';
} else if($clan['level'] < $row['req_level']){
echo '<td align="center"><img border=0 src="design/bilder/buttons/lvlup.png" width="42" height="19"></td>';
echo '<td align="center"><img border=0 src="design/bilder/buttons/lvlup.png" width="42" height="19" title="Level '.$row['req_level'].' required"></td>';
} else {
echo '<td align="center"><a href="javascript:if(confirm(\''.$row['name'].' Wirklich kaufen?\')==true) window.location.href=\'index.php?as=clan/c_markt&charm=3&item_id='.$row['id'].'\'"><img border=0 src="design/bilder/buttons/kaufen.gif" width="42" height="19"></a></td>';
}

@ -1,50 +0,0 @@
<?php
// This file should not be read in a usual way!!
echo 'do not open this file or the process will die';
die();
?>
#########################################
# Database api #
#########################################
# connections = "conn1, conn2, conn3" #
#########################################
[ Database ]
connections = "default"
#########################################
# Database for connection default #
#########################################
# class = "\my\namespace\ClassName" #
# ... the rest is specific #
#########################################
[ Database.default ]
class = "\io\db\MySQLDatabase"
host = "localhost"
user = "animegame"
password = "salut65++"
schema = "test_ag"
prefix = ""
#########################################
# Logging api #
#########################################
# connections = "appender1, appender2 #
#########################################
[ Logging ]
appenders = "appender1, appender2"
[ Logging.appender1 ]
class = "\io\log\FileAppender"
level = "INFO"
file.output = "/var/log/logging.log"
file.size = "5M"
[ Logging.appender1 ]
class = "\io\log\DatabaseAppender"
level = "INFO"
db.table = "logging"
db.connection = "default"
# there may be more to come
Loading…
Cancel
Save