Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
<?php function ausweiskontrolle($part1, $part2, $part3, $part4) { $pruef1=(substr($part1, 0, 1)*7+substr($part1, 1, 1)*3+substr($part1, 2, 1)+substr($part1, 3, 1)*7+substr($part1, 4, 1)*3+substr($part1, 5, 1)+substr($part1, 6, 1)*7+substr($part1, 7, 1)*3+substr($part1, 8, 1))%10; $pruef2=(substr($part2, 0, 1)*7+substr($part2, 1, 1)*3+substr($part2, 2, 1)+substr($part2, 3, 1)*7+substr($part2, 4, 1)*3+substr($part2, 5, 1))%10; $pruef3=(substr($part3, 0, 1)*7+substr($part3, 1, 1)*3+substr($part3, 2, 1)+substr($part3, 3, 1)*7+substr($part3, 4, 1)*3+substr($part3, 5, 1))%10; $pruef4=(substr($part1, 0, 1)*7+substr($part1, 1, 1)*3+substr($part1, 2, 1)+substr($part1, 3, 1)*7+substr($part1, 4, 1)*3+substr($part1, 5, 1)+substr($part1, 6, 1)*7+substr($part1, 7, 1)*3+substr($part1, 8, 1)+substr($part1, 9, 1)*7+substr($part2, 0, 1)*3+substr($part2, 1, 1)+substr($part2, 2, 1)*7+substr($part2, 3, 1)*3+substr($part2, 4, 1)+substr($part2, 5, 1)*7+substr($part2, 6, 1)*3+substr($part3, 0, 1)+substr($part3, 1, 1)*7+substr($part3, 2, 1)*3+substr($part3, 3, 1)+substr($part3, 4, 1)*7+substr($part3, 5, 1)*3+substr($part3, 6, 1))%10; if($pruef1==substr($part1, 9, 1) && $pruef2==substr($part2, 6, 1) && $pruef3==substr($part3, 6, 1) && $pruef4==$part4) return TRUE; else return FALSE; } //---------Geburtsdatum---------- //TAG $geburtstag = substr($part2,4,1).substr($part2,5,1); //Montat $geburtsmonat = substr($part2,2,1).substr($part2,3,1); //Jahr $geburtsjahr = substr($part2,0,1).substr($part2,1,1); $Geburtsdatum = $geburtstag.'.'.$geburtsmonat.'.'.$geburtsjahr; //---------Gütltigkeit----------- //TAG $gültigtag = substr($part3,4,1).substr($part3,5,1); //MONAT $gültigmonat = substr($part3,2,1).substr($part3,3,1); //JAHR $gültigjahr = substr($part3,0,1).substr($part3,1,1); $Gültigkeit = $gültigtag.'.'.$gültigmonat.'.'.$gültigjahr; //---------Gütltigkeit----------- $PersoID = substr($part1,0,10); //--------------------------------------------------------------- if($_POST['ausweiskontrolle']){ if(ausweiskontrolle($_POST['part1'], $_POST['part2'], $_POST['part3'], $_POST['part4']) & $_POST['part1']!='' ) { echo '<font color="green" size="10pt"><b>Gültige Nummer</b></font>'; } else echo '<font color="red" size="10pt"><b>Ungültige Nummer</b></font>'; //Ausgabe Geburtsdatum echo '<br><br><b>Geburtstag:</b> '.$Geburtsdatum; //Ausgabe Gültigkeit echo '<br><br><b>Gültigkeit:</b> '.$Gültigkeit; //Ausgabe Personalausweis ID echo '<br><br><b>Personalausweis ID:</b> '.$PersoID; } else { ?> <p>Geben Sie Ihre Personalausweisnummer ein:<br> Ihre Daten werden <b>NICHT</b> gespeichert !!! <br> </p> <table border="0" cellspacing="0" cellpadding="0"> <form action="perso.php" method="post"> <tr><td>Nummer: </td> <td><input type="text" name="part1" size="11" maxlength="11"> <input type="text" name="part2" size="7" maxlength="7"> <input type="text" name="part3" size="7" maxlength="7"> <input type="text" name="part4" size="1" maxlength="1"></td></tr> <tr><td colspan="2" class="textinhalt"> <br><input type="submit" name="ausweiskontrolle" value="Prüfen"> <input name="reset" type="reset" value="Reset" /> </td></tr> </form> </table> <?php } ?>
- > Lade den Inhalt des Ordners UPLOAD in seiner Ordnerstruktur hoch - > Öffne die include/contents/alterscheck.php und passe die 2 Einstellungen (Zeile 9+10) an - > Füge in die vorläuftig zu sperrende Seite folgenden Code ein, direkt nach <?php in einer neuen Zeile if (!isset($_SESSION['alterscheck'] or $_SESSION['alterscheck'] == 0)) { wd('index.php?alterscheck', 'Prüfung des Alters erforderlich', 3); $design->footer(); } fertig.
Parse error: syntax error, unexpected T_LOGICAL_OR, expecting ',' or ')' in /var/www/*****/html/include/contents/joinus.php on line 3
<?php # Copyright by: Manuel Staechele # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); //-----------------------------------------------------------| $title = $allgAr['title'].' :: Joinus'; $hmenu = 'Joinus'; $design = new design ( $title , $hmenu ); $design->header();
<?php # Copyright by: Manuel Staechele # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); //-----------------------------------------------------------| $title = $allgAr['title'].' :: Joinus'; $hmenu = 'Joinus'; $design = new design ( $title , $hmenu ); $design->header(); if ( 0 == db_count_query("SELECT COUNT(*) FROM prefix_groups WHERE show_joinus = 1") ) { echo $lang['noteamthere']; $design->footer(); exit (); } $skill_ar = array ( 1 => $lang['verybad'], 2 => $lang['bad'], 3 => $lang['middle'], 4 => $lang['good'], 5 => $lang['verygood'], ); $far = array ( 'name', 'online', 'icqnumber', 'mail', 'age', 'hometown', 'squad', 'ground', 'rules', 'char', // Ab hier beginnen meine eigenen JoinUs-Felder 'prof', 'cl', 'geschl', 'impreb', 'playertyp'// und hier enden sie. ); $x = 0; foreach ($far as $v) { if (!empty($_POST[$v])) { $$v = escape($_POST[$v], 'string'); $x++; } else { $$v = ''; } } $xname = escape_nickname($name); $ch_name = false; if (loggedin()) { $ch_name = true; } elseif (isset($_POST['sub']) AND $name == $xname AND !empty($name) AND 0 == db_result(db_query("SELECT COUNT(*) FROM prefix_user WHERE name = BINARY '".$name."'"),0)) { $ch_name = true; } if (count($far) <> $x OR $ch_name == false) { $tpl = new tpl ( 'joinus.htm' ); $squad = dblistee ($squad, "SELECT id,name FROM prefix_groups WHERE show_joinus = 1 ORDER BY pos"); if (loggedin()) { $name = $_SESSION['authname']; } foreach($far as $v) { if ($x > 0 AND empty($_POST[$v])) { echo 'Es fehlt: '.$lang[$v].'<br />'; } $tpl->set ($v, $$v); } if ($x > 0 AND $name != $xname) { echo $lang['wrongnickname'].'<br />'; } elseif ($x > 0 AND $ch_name == false) { echo $lang['namealreadyinuse'].'<br />'; } $name = $xname; $tpl->set('readonly', (loggedin()?' readonly': '')); $tpl->out(0); } else { # eintragen $name = $xname; $userreg = $lang['no']; if (!loggedin()) { $x = user_regist ($name,$mail,genkey(8)); $userreg = $lang['yes']; } db_query("INSERT INTO prefix_usercheck (`check`,name,datime,ak) VALUES ('".genkey(8)."','".$name."',NOW(),4)"); $squad = escape($squad, 'integer'); $abf = "SELECT `mod1`, `mod2`, `mod4`, name FROM prefix_groups WHERE id = ".$squad; $erg = db_query($abf); $row = db_fetch_assoc($erg); $rulz = (isset($_POST['rules'])?$_POST['rules']:$lang['no']); # bitte in der richtigen reihenfolge angeben, sonst das nicht gehen tun, kann. $mailtxt = sprintf ($lang['joinusprivmsg'], $name, $row['name'], $online, $mail, $hometown, $age, $icqnumber, $ground, $rulz, $char, // Hier fangen meine eigenen an. $prof, $cl, $geschl, $impreb, $playertyp, // und hier enden sie. $userreg ); # pm an den leader sendpm ($_SESSION['authid'], $row['mod1'], 'Joinus Anfrage',$mailtxt, -1); # Wenn Co Leader != Leader if ($row['mod2'] != $row['mod1']){ sendpm ($_SESSION['authid'], $row['mod2'], 'Joinus Anfrage',$mailtxt, -1); } if ($row['mod4'] != $row['mod1'] AND $row['mod2'] != $row['mod4']){ sendpm ($_SESSION['authid'], $row['mod4'], 'Joinus Anfrage',$mailtxt, -1); } if (!loggedin()) { echo $lang['amailhasbeensenttoyouwithmailandpass'].'<br /><br />'; } echo sprintf($lang['leaderofxalert'], $row['name']); } $design->footer(); ?>
<?php # Copyright by: Manuel Staechele # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); //-----------------------------------------------------------| $title = $allgAr['title'].' :: Joinus'; $hmenu = 'Joinus'; $design = new design ( $title , $hmenu ); $design->header(); if (!isset($_SESSION['alterscheck'] or $_SESSION['alterscheck'] == 0)) { wd('index.php?alterscheck', 'Prüfung des Alters erforderlich', 3); $design->footer(); } if ( 0 == db_count_query("SELECT COUNT(*) FROM prefix_groups WHERE show_joinus = 1") ) { echo $lang['noteamthere']; $design->footer(); exit (); } $skill_ar = array ( 1 => $lang['verybad'], 2 => $lang['bad'], 3 => $lang['middle'], 4 => $lang['good'], 5 => $lang['verygood'], ); $far = array ( 'name', 'online', 'icqnumber', 'mail', 'age', 'hometown', 'squad', 'ground', 'rules', 'char', // Ab hier beginnen meine eigenen JoinUs-Felder 'prof', 'cl', 'geschl', 'impreb', 'playertyp'// und hier enden sie. ); $x = 0; foreach ($far as $v) { if (!empty($_POST[$v])) { $$v = escape($_POST[$v], 'string'); $x++; } else { $$v = ''; } } $xname = escape_nickname($name); $ch_name = false; if (loggedin()) { $ch_name = true; } elseif (isset($_POST['sub']) AND $name == $xname AND !empty($name) AND 0 == db_result(db_query("SELECT COUNT(*) FROM prefix_user WHERE name = BINARY '".$name."'"),0)) { $ch_name = true; } if (count($far) <> $x OR $ch_name == false) { $tpl = new tpl ( 'joinus.htm' ); $squad = dblistee ($squad, "SELECT id,name FROM prefix_groups WHERE show_joinus = 1 ORDER BY pos"); if (loggedin()) { $name = $_SESSION['authname']; } foreach($far as $v) { if ($x > 0 AND empty($_POST[$v])) { echo 'Es fehlt: '.$lang[$v].'<br />'; } $tpl->set ($v, $$v); } if ($x > 0 AND $name != $xname) { echo $lang['wrongnickname'].'<br />'; } elseif ($x > 0 AND $ch_name == false) { echo $lang['namealreadyinuse'].'<br />'; } $name = $xname; $tpl->set('readonly', (loggedin()?' readonly': '')); $tpl->out(0); } else { # eintragen $name = $xname; $userreg = $lang['no']; if (!loggedin()) { $x = user_regist ($name,$mail,genkey(8)); $userreg = $lang['yes']; } db_query("INSERT INTO prefix_usercheck (`check`,name,datime,ak) VALUES ('".genkey(8)."','".$name."',NOW(),4)"); $squad = escape($squad, 'integer'); $abf = "SELECT `mod1`, `mod2`, `mod4`, name FROM prefix_groups WHERE id = ".$squad; $erg = db_query($abf); $row = db_fetch_assoc($erg); $rulz = (isset($_POST['rules'])?$_POST['rules']:$lang['no']); # bitte in der richtigen reihenfolge angeben, sonst das nicht gehen tun, kann. $mailtxt = sprintf ($lang['joinusprivmsg'], $name, $row['name'], $online, $mail, $hometown, $age, $icqnumber, $ground, $rulz, $char, // Hier fangen meine eigenen an. $prof, $cl, $geschl, $impreb, $playertyp, // und hier enden sie. $userreg ); # pm an den leader sendpm ($_SESSION['authid'], $row['mod1'], 'Joinus Anfrage',$mailtxt, -1); # Wenn Co Leader != Leader if ($row['mod2'] != $row['mod1']){ sendpm ($_SESSION['authid'], $row['mod2'], 'Joinus Anfrage',$mailtxt, -1); } if ($row['mod4'] != $row['mod1'] AND $row['mod2'] != $row['mod4']){ sendpm ($_SESSION['authid'], $row['mod4'], 'Joinus Anfrage',$mailtxt, -1); } if (!loggedin()) { echo $lang['amailhasbeensenttoyouwithmailandpass'].'<br /><br />'; } echo sprintf($lang['leaderofxalert'], $row['name']); } $design->footer(); ?>
<?php # Copyright by: Manuel Staechele # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); //-----------------------------------------------------------| $title = $allgAr['title'].' :: Joinus'; $hmenu = 'Joinus'; $design = new design ( $title , $hmenu ); $design->header(); <?php if (!isset($_SESSION['alterscheck'] or $_SESSION['alterscheck'] == 0)) { wd('index.php?alterscheck', 'Prüfung des Alters erforderlich', 3); $design->footer(); } if ( 0 == db_count_query("SELECT COUNT(*) FROM prefix_groups WHERE show_joinus = 1") ) { echo $lang['noteamthere']; $design->footer(); exit (); } $skill_ar = array ( 1 => $lang['verybad'], 2 => $lang['bad'], 3 => $lang['middle'], 4 => $lang['good'], 5 => $lang['verygood'], ); $far = array ( 'name', 'online', 'icqnumber', 'mail', 'age', 'hometown', 'squad', 'ground', 'rules', 'char', // Ab hier beginnen meine eigenen JoinUs-Felder 'prof', 'cl', 'geschl', 'impreb', 'playertyp'// und hier enden sie. ); $x = 0; foreach ($far as $v) { if (!empty($_POST[$v])) { $$v = escape($_POST[$v], 'string'); $x++; } else { $$v = ''; } } $xname = escape_nickname($name); $ch_name = false; if (loggedin()) { $ch_name = true; } elseif (isset($_POST['sub']) AND $name == $xname AND !empty($name) AND 0 == db_result(db_query("SELECT COUNT(*) FROM prefix_user WHERE name = BINARY '".$name."'"),0)) { $ch_name = true; } if (count($far) <> $x OR $ch_name == false) { $tpl = new tpl ( 'joinus.htm' ); $squad = dblistee ($squad, "SELECT id,name FROM prefix_groups WHERE show_joinus = 1 ORDER BY pos"); if (loggedin()) { $name = $_SESSION['authname']; } foreach($far as $v) { if ($x > 0 AND empty($_POST[$v])) { echo 'Es fehlt: '.$lang[$v].'<br />'; } $tpl->set ($v, $$v); } if ($x > 0 AND $name != $xname) { echo $lang['wrongnickname'].'<br />'; } elseif ($x > 0 AND $ch_name == false) { echo $lang['namealreadyinuse'].'<br />'; } $name = $xname; $tpl->set('readonly', (loggedin()?' readonly': '')); $tpl->out(0); } else { # eintragen $name = $xname; $userreg = $lang['no']; if (!loggedin()) { $x = user_regist ($name,$mail,genkey(8)); $userreg = $lang['yes']; } db_query("INSERT INTO prefix_usercheck (`check`,name,datime,ak) VALUES ('".genkey(8)."','".$name."',NOW(),4)"); $squad = escape($squad, 'integer'); $abf = "SELECT `mod1`, `mod2`, `mod4`, name FROM prefix_groups WHERE id = ".$squad; $erg = db_query($abf); $row = db_fetch_assoc($erg); $rulz = (isset($_POST['rules'])?$_POST['rules']:$lang['no']); # bitte in der richtigen reihenfolge angeben, sonst das nicht gehen tun, kann. $mailtxt = sprintf ($lang['joinusprivmsg'], $name, $row['name'], $online, $mail, $hometown, $age, $icqnumber, $ground, $rulz, $char, // Hier fangen meine eigenen an. $prof, $cl, $geschl, $impreb, $playertyp, // und hier enden sie. $userreg ); # pm an den leader sendpm ($_SESSION['authid'], $row['mod1'], 'Joinus Anfrage',$mailtxt, -1); # Wenn Co Leader != Leader if ($row['mod2'] != $row['mod1']){ sendpm ($_SESSION['authid'], $row['mod2'], 'Joinus Anfrage',$mailtxt, -1); } if ($row['mod4'] != $row['mod1'] AND $row['mod2'] != $row['mod4']){ sendpm ($_SESSION['authid'], $row['mod4'], 'Joinus Anfrage',$mailtxt, -1); } if (!loggedin()) { echo $lang['amailhasbeensenttoyouwithmailandpass'].'<br /><br />'; } echo sprintf($lang['leaderofxalert'], $row['name']); } $design->footer(); ?>
if (!isset($_SESSION['alterscheck']) or $_SESSION['alterscheck'] == 0) { wd('index.php?alterscheck', 'Prüfung des Alters erforderlich', 3); $design->footer(); }
Geschlossen | ||
Zurück zu Module und Modifikationen |