Mag, Kann oder will keiner helfen ?
Hier mal die Fight US.php
<?php
# Copyright by: Manuel
# Support: www.ilch.de
defined ('main') or die ( 'no direct access' );
$title = $allgAr['title'].' :: Fightus';
$hmenu = 'Fightus';
$design = new design ( $title , $hmenu );
$design->header();
if ( 0 == db_count_query("SELECT COUNT(*) FROM prefix_groups WHERE show_fightus = 1") ) {
echo $lang['noteamthere'];
$design->footer();
exit ();
}
$far = array (
'clanname',
'clanpage',
'clantag',
'clancountry',
'kname',
'mailaddy',
'squad',
'meetingplace',
'message',
'xonx',
'matchtype',
'meetingtime',
'rules'
);
$x = 0;
foreach ($far as $v) {
if (!empty($_POST[$v])) {
$$v = escape($_POST[$v], 'string');
$x++;
} else {
$$v = '';
}
}
if (count($far) == $x AND chk_antispam('fightus')) {
$squad = escape($squad, 'integer');
$abf = "SELECT `mod1`,`mod2`, `mod3`,name FROM prefix_groups WHERE id = ".$squad;
$erg = db_query($abf);
$row = db_fetch_assoc($erg);
$txt = $lang['fightusrequest'];
list ($datum, $zeit) = explode (' - ', $meetingtime);
$datum = get_datum ($datum);
$datum = $datum." ".$zeit;
$clanpage = get_homepage ($clanpage);
# als upcoming war vormerken (kategorie 1)
db_query("INSERT INTO prefix_fightus (oname, otag, ologo1, opage, oland, okontaktperson, oemail, oicq, server, datum, tid, xonx, spiel, matchtyp, nachricht) VALUES ('".$clanname."','".$clantag."','".$Clanlogo."','".$clanpage."','".$clancountry."','".$kname."','".$mailaddy."','".$icqnumber."','".$meetingplace."','".$datum."','".$squad."','".$xonx."','".$game."','".$matchtype."','".$message."')");
# pm an den leader
sendpm($_SESSION['authid'], $row['mod1'],'Fightus Anfrage', $txt, -1);
# Wenn Co Leader != Leader
if($row['mod1'] != $row['mod2']){
sendpm($_SESSION['authid'], $row['mod2'],'Fightus Anfrage', $txt, -1);
}
if($row['mod3'] != $row['mod2'] AND $row['mod1'] != $row['mod3']){
sendpm($_SESSION['authid'], $row['mod3'],'Fightus Anfrage', $txt, -1);
}
# informieren
echo sprintf($lang['leaderofxalert'], $row['name']);
} else {
$clancountry = arlistee ($clancountry, get_nationality_array() );
$squad = '<option value="0">choose</option>';
$squad .= dblistee ($squad, "SELECT id,name FROM prefix_groups WHERE show_fightus = 1 ORDER BY pos");
if (empty($meetingtime)) {
$meetingtime = date ('d.m.Y - H:i:s');
}
$tpl = new tpl ( 'fightus.htm' );
foreach($far as $v) {
if ($x > 0 AND empty($_POST[$v])) {
echo 'missing: '.$lang[$v].'<br />';
}
$tpl->set ($v, $$v);
}
{
$tpl->out(0);
}
if ($allgAr['joinus_rules'] != 1) {
$tpl->out(1);
} else {
$rules = '<h2>'.$lang['warrules'].'</h2>';
$rerg = db_query('SELECT zahl,titel,text FROM `prefix_warrules` ORDER BY zahl');
while ($rrow = db_fetch_row($rerg)) {
$rules .= '<table width="100%" border="0" cellpadding="5" cellspacing="1" class="border">';
$rules .= '<tr class="Cmite"><td><b>§'.$rrow[0].'. '.$rrow[1].'</b></td></tr>';
$rules .= '<tr class="Cnorm"><td>'.bbcode($rrow[2]).'</td></tr>';
$rules .= '</table><br />';
}
$rules .= '<input type="checkbox" name="warrules" value="'.$lang['yes'].'" />'.str_replace(array('<a target="_blank" href="index.php?rulesw">','</a>'),'',$lang['rulzreaded']).'<br />';
$tpl->set_out('WARRULES',$rules,2);
}
$tpl->set ('ANTISPAM', get_antispam ('fightus', 120));{
$tpl->out(3);
}
}
$design->footer();
?>
und hier die Fight US.htm
<head>
<style type="text/css">
.style1 {
font-size: 11pt;
}
.style2 {
fon-size: 9pt;
}
</style>
</head>
<form action="index.php?fightus" method="POST">
<fieldset>
<legend>{_lang_basicinfo}</legend>
<p>
<label style="float:left; width:120px;">{_lang_joininfo}</label>
{_lang_plsfilloutallfields}<br />
<label style="float:left; width:120px;">{_lang_clanname}</label>
<input type="text" name="clanname" value="{clanname}"><br />
<label style="float:left; width:120px;">{_lang_clantag}</label>
<input type="text" name="clantag" value="{clantag}"><br />
<label style="float:left; width:120px;">{_lang_clanpage}</label>
<input type="text" name="clanpage" value="{clanpage}"><br />
<label style="float:left; width:120px;">{_lang_clancountry}</label>
<select name="clancountry">
{clancountry}
</select>
<br />
<label style="float:left; width:120px;">Kontaktperson</label>
<input type="text" name="kname" value="{kname}" /><br />
<label style="float:left; width:120px;">{_lang_mailaddy}</label>
<input type="text" name="mailaddy" value="{mailaddy}"><br />
<br />
{_lang_matchinfo}
<br />
<label style="float:left; width:120px;">{_lang_meetingplace}</label>
<input type="text" name="meetingplace" value="{meetingplace}"><br />
<label style="float:left; width:120px;">{_lang_meetingtime}</label>
<input type="text" name="meetingtime" value="{meetingtime}"><br />
<label style="float:left; width:120px;">{_lang_squad}</label>
<select name="squad">
{squad}
</select>
<br />
<label style="float:left; width:120px;">{_lang_xonx}</label>
<input type="text" name="xonx" value="{xonx}"><br />
<label style="float:left; width:120px;">{_lang_matchtype}</label>
<input type="text" name="matchtype" value="{matchtype}"><br />
<br />
{_lang_otherinfo}
<br />
<label style="float:left; width:120px;">{_lang_message}</label>
<textarea cols="40" rows="5" name="message">{message}</textarea>
<br />
{EXPLODE}<label style="float:left; width:100px; ">{_lang_warrules}</label><input type="checkbox" name="warrules" value="{_lang_yes}" />{_lang_rulzreaded}<br />
{EXPLODE}{WARRULES}{EXPLODE}<br />
<br />{ANTISPAM}
<label style="float:left; width:120px;"> </label>
<input type="submit" value="{_lang_send2}"><br />
</p>
<p> </p>
</fieldset>
</form>
zwar werden die Regeln angezeigt aber nun wird das Fight US Formular nicht abgeschickt da über dem Formular die Meldung kommt
Zitat
"missing Regeln"
Zuletzt modifiziert von Panicsheep am 14.05.2010 - 19:39:59
Zwei Dinge sind unendlich das Universum und die menschliche Dummheit, aber beim Universum bin ich mir nicht ganz sicher (Albert Einstein 1879 bis 1955)