Demo
Probiere ClanSphere aus und teste daran herum.
Demo
Spenden
ClanSphere ist freie OpenSource Software.
Bitte unterstützt uns.
Spenden
Codepaste - Details |
Weitere Infos zum Codepaste |
Name |
Squads-Name bei Events |
Autor |
Fr33z3m4n
|
CMS-Version |
ClanSphere 2008 |
Datei |
events/timer.php
|
Datum |
03.05.2008 um 09:10 Uhr |
Beschreibung |
Anstatt "clanwar gegen clan" steht "Squad gegen Clan" |
Alter Code |
Alter Code
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
| 1. / 2. / ...
if (!empty($op_events['show_wars'])) {
$select = 'war.wars_date AS events_time, war.wars_id AS wars_id, cl.clans_name AS clans_name';
$tables = 'wars war INNER JOIN {pre}_clans cl ON war.clans_id = cl.clans_id';
$where = 'war.wars_date >= \'' . $unix . '\' AND war.wars_date <= \'' . $max . '\'';
$cs_events2 = cs_sql_select(__FILE__,$tables,$select,$where,'wars_date ASC',0,0);
$count_events2 = count($cs_events2);
for ($run = 0; $run < $count_events2; $run++) {
$cs_events2[$run]['events_name'] = $cs_lang['war_against'] . $cs_events2[$run]['clans_name'];
}
$cs_events = !is_array($cs_events) ? array() : $cs_events;
$cs_events2 = !is_array($cs_events2) ? array() : $cs_events2;
$cs_events = array_merge($cs_events, $cs_events2);
} |
|
Neuer Code |
Neuer Code
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
| 1. / 2. / ...
if (!empty($op_events['show_wars'])) {
$tables = 'wars war INNER JOIN {pre}_clans cl ON war.clans_id = cl.clans_id';
$tables .= ' INNER JOIN {pre}_squads sqd ON war.squads_id = sqd.squads_id';
$select = 'war.wars_date AS events_time, war.wars_id AS wars_id, cl.clans_name AS clans_name, sqd.squads_name AS squads_name';
$where = 'war.wars_date >= \'' . $unix . '\' AND war.wars_date <= \'' . $max . '\'';
$cs_events2 = cs_sql_select(__FILE__,$tables,$select,$where,'wars_date ASC',0,0);
$count_events2 = count($cs_events2);
for ($run = 0; $run < $count_events2; $run++) {
$cs_events2[$run]['events_name'] = $cs_events2[$run]['squads_name'] . ' gegen ' . $cs_events2[$run]['clans_name'];
}
$cs_events = !is_array($cs_events) ? array() : $cs_events;
$cs_events2 = !is_array($cs_events2) ? array() : $cs_events2;
$cs_events = array_merge($cs_events, $cs_events2);
} |
|
Zurück -
Übersicht
|
Bitte Login benutzen, um Kommentare zu schreiben. |