Changeset 84
- Timestamp:
- Sep 30, 2007, 10:28:14 AM (17 years ago)
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
FormGM/index.php
r5 r84 3 3 <head> 4 4 <meta http-equiv="content-type" content="text/html; charset=iso-8859-2"> 5 <title> Formuláø pro pøíjem nových GM 6 </title> 5 <meta name="author" content="Than; e-mail: "> 6 <meta name="author" content="HosipLan; e-mail: HosipLan@seznam.cz"> 7 <title>Formuláø pro pøíjem nových GM</title> 8 <style type="text/css"> 9 body { 10 font-family: 'Tahoma CE', 'Verdana CE', 'ArialCE', 'Lucida Grande CE', 'Helvetica CE', Tahoma, Verdana, Arial, lucida, sans-serif; 11 font-size: 13px; color: black; } 12 label { font-size: 12px; } 13 input { font-size: 13px; padding: 2px; width:250px; 14 border-color: black; background-color: white; } 15 div#waittext { font-size: 13px; padding: 2px; border: 0px; } 16 textarea { border-color: black; background-color: white; } 17 table { margin-top: 20px; margin-bottom: 10px; border: 0px; } 18 table td { border: 0px; } 19 </style> 20 <script type="text/javascript"> 21 function wait(){ 22 document.getElementById('hidethis').style.display = 'none'; 23 document.getElementById('waittext').style.display = 'inline'; 24 return true; 25 }; 26 </script> 7 27 </head> 8 <body> ®ádný z údajù není povinný, ale èím víc uvedete, tím máte vìtí monost získat GM status. 9 <br> Není vhodné psát vìci, které neumíte, protoe po tomto hned následuje pøezkouení.<br><br> 10 <FORM METHOD="post" ACTION="script.php"> 11 <table border="0"> 28 <body> 29 30 <p>®ádný z údajù není povinný, ale èím víc uvedete, tím máte vìt¹í mo¾nost získat GM status.<br> 31 Není vhodné psát vìci, které neumíte, proto¾e po tomto hned následuje pøezkou¹ení.</p> 32 33 <form method="post" action="script.php" OnSubmit="return wait();"> 34 <table cellpadding='2'> 12 35 <tr> 13 <th> Dotazník pro nové GM 14 </th> 36 <th>Dotazník pro nové GM</th> 37 </tr><tr> 38 <td><label for="nick">1.Nick:</label></td> 39 <td><input type="text" name="nick" id="nick"></td> 40 </tr><tr> 41 <td><label for="game_nick">2.Nick tvojí herní postavy:</label></td> 42 <td><input type="text" name="game_nick" id="game_nick"></td> 43 </tr><tr> 44 <td><label for="icq">3.ICQ:</label></td> 45 <td><input type="text" name="icq" id="icq"></td> 46 </tr><tr> 47 <td><label for="email">4.E-mail:</label></td> 48 <td><input type="text" name="email" id="email"></td> 49 </tr><tr> 50 <td><label for="answer1">5.Kolik hodin dennì se vìnuje¹ hraní WoW:</label></td> 51 <td><input type="text" name="answer1" id="answer1"></td> 52 </tr><tr> 53 <td><label for="answer2">6.Jak dlouho hraje¹ WoW:</label></td> 54 <td><input type="text" name="answer2" id="answer2"></td> 55 </tr><tr> 56 <td><label for="old">7.Kolik je ti rokù:</label></td> 57 <td><input type="text" name="old" id="old"></td> 58 </tr><tr> 59 <td><label for="answer3">8. Tvùj maximální level za herní postavu:</label></td> 60 <td><input type="text" name="answer3" id="answer3"></td> 15 61 </tr> 62 </table><table cellpadding='2'> 16 63 <tr> 17 <td> 1.Nick: 18 </td> 19 <td> 20 <input name="nick" > 21 </td> 22 </tr> 23 <tr> 24 <td> 25 <span> 2.Nick tvojí herní postavy: 26 </span> 27 </td> 28 <td> 29 <input name="game_nick" > 30 </td> 31 </tr> 32 <tr> 33 <td> 34 <span> 3.ICQ: 35 </span> 36 </td> 37 <td> 38 <input type name="icq" > 39 </td> 40 </tr> 41 <tr> 42 <td> 43 <span> 4.E-mail: 44 </span> 45 </td> 46 <td> 47 <input name="email"> 48 </td> 49 </tr> 50 <tr> 51 <td> 5.Kolik hodin dennì se vìnuje hraní WoW: 52 </td> 53 <td> 54 <input name="answer1" > 55 </td> 56 </tr> 57 <tr> 58 <td> 6.Jak dlouho hraje WoW: 59 </td> 60 <td> 61 <input name="answer2" > 62 </td> 63 </tr> 64 <tr> 65 <td> 7.Kolik je ti rokù: 66 </td> 67 <td> 68 <input name="old" > 69 </td> 70 </tr> 71 <tr> 72 <td> 8. Tvùj maximální level za herní postavu: 73 </td> 74 <td> 75 <input name="answer3" > 76 </td> 77 </tr> 78 </table> 79 <table> 80 <tr> 81 <td> 82 9.Jaký umí programovací jazyk? 83 <br> 84 <input type="checkbox" name="Pascal" value="Pascal, "> Pascal 85 <br> 86 <input type="checkbox" name="Delphi" value="Delphi, "> Delphi 87 <br> 88 <input type="checkbox" name="Sql" value="Sql, "> SQL 89 <br> 90 <input type="checkbox" name="Php" value="Php, "> PHP 91 <br> 92 <input type="checkbox" name="C#" value="C#, "> C# 93 <br> 94 <input type="checkbox" name="C++" value="C++, "> C++ 95 <br> 96 <input type="checkbox" name="Html" value="Html, "> HTML 97 <br> 98 <input type="checkbox" name="Jiné" value="Jiné, "> 99 Jiné 100 <br>10.Jestlie ano, zapi syntaxi podmínky. (kromì SQL, Html) 101 <br> 102 <textarea cols="45" rows="5" name="Podminka"></textarea> 64 <td><label>9.Jaký umí¹ programovací jazyk?</label></td><td> 65 <input type="checkbox" name="Pascal" id="Pascal" value="Pascal, " style="width:auto;"> <label for="Pascal">Pascal</label> 66 </td></tr><tr><td></td><td> 67 <input type="checkbox" name="Delphi" id="Delphi" value="Delphi, " style="width:auto;"> <label for="Delphi">Delphi</label> 68 </td></tr><tr><td></td><td> 69 <input type="checkbox" name="Sql" id="Sql" value="Sql, " style="width:auto;"> <label for="Sql">SQL</label> 70 </td></tr><tr><td></td><td> 71 <input type="checkbox" name="Php" id="Php" value="Php, " style="width:auto;"> <label for="Php">PHP</label> 72 </td></tr><tr><td></td><td> 73 <input type="checkbox" name="C#" id="C#" value="C#, " style="width:auto;"> <label for="C#">C#</label> 74 </td></tr><tr><td></td><td> 75 <input type="checkbox" name="C++" id="C++" value="C++, " style="width:auto;"> <label for="C++">C++</label> 76 </td></tr><tr><td></td><td> 77 <input type="checkbox" name="Html" id="Html" value="Html, " style="width:auto;"> <label for="Html">HTML</label> 78 </td></tr><tr><td></td><td> 79 <input type="checkbox" name="Jiné" id="Jiné" value="Jiné, " style="width:auto;"> <label for="Jiné">Jiné</label> 80 </td></tr><tr><td colspan='2'> 81 <label for="Podminka">10.Jestli¾e ano, zapi¹ syntaxi podmínky. (kromì SQL, Html)</label><br> 82 <textarea cols="45" rows="5" name="Podminka" id="Podminka" style="width:400px;Height:100px;"></textarea> 103 83 </td> 104 84 </tr> 105 </table> 106 <table> 85 </table><table cellpadding='2'> 86 </tr><tr> 87 <td><label>11.Umí¹ GM pøíkazy?</label></td> 88 <td><input type="radio" name="gm_command" id="gm_command_1" value="1" style="width:auto;"><label for="gm_command_1">Ano</label></td> 89 <td><input type="radio" name="gm_command" id="gm_command_0" value="0" checked="checked" style="width:auto;"><label for="gm_command_0">Ne</label></td> 90 </tr><tr> 91 <td><label>12.Umí¹ se pohybovat v databázi?</label></td> 92 <td><input type="radio" name="db" id="db_1" value="1" style="width:auto;"><label for="db_1">Ano</label></td> 93 <td><input type="radio" name="db" id="db_0" value="0" checked="checked" style="width:auto;"><label for="db_0">Ne</label></td> 94 </tr><tr> 95 <td><label>13.Má¹ u sebe doma nainstalovaný vlastní server?</label></td> 96 <td><input type="radio" name="server" id="server_1" value="1" style="width:auto;"><label for="server_1">Ano</label></td> 97 <td><input type="radio" name="server" id="server_0" value="0" checked="checked" style="width:auto;"><label for="server_0">Ne</label></td> 98 </tr><tr> 99 </table><table cellpadding='2'> 107 100 <tr> 108 <td> 11.Umí GM pøíkazy? 109 </td> 110 <td> 111 <input type="radio" name="gm_command" value="1"> Ano 112 <input type="radio" name="gm_command" value="0" checked="checked"> Ne 113 </td> 114 </tr> 115 <tr> 116 <td> 12.Umí se pohybovat v databázi? 117 </td> 118 <td> 119 <input type="radio" name="db" value="1"> Ano 120 <input type="radio" name="db" value="0" checked="checked" > Ne 121 </td> 122 </tr> 123 <tr> 124 <td> 13.Má u sebe doma nainstalovaný vlastní server? 125 </td> 126 <td> 127 <input type="radio" name="server" value="1"> Ano 128 <input type="radio" name="server" value="0" checked="checked"> Ne 129 </td> 130 </tr> 131 </table> 132 <table> 133 <tr> 134 <td> 135 14.Co bys udìlal, kdyby za tebou pøiel hráè, e pøiel o postavu a e by chtìl vrátit lvl? 136 <br> 137 <textarea cols="45" rows="5" name="answer4"></textarea> 138 </td> 139 </tr> 140 <tr> 141 <td> 142 15.Co by jsi udìlal, kdyby jsi vidìl e se hráè mìní v onixii nebo zabíjí NPC na jednu ránu? 143 <br> 144 <textarea cols="40" rows="5" name="answer5"></textarea> 145 </td> 146 </tr> 147 <tr> 148 <td> 149 16.Proè chce být gamemaster, co od této práce èeká, jak hodlá být pøínosem pro ná server? 150 <br> 151 <textarea cols="40" rows="5" name="answer6"></textarea> 152 </td> 153 </tr> 154 <tr> 155 <td> 156 17.Byl jsi GM i na jiném serveru?Popøípadì kde? 157 <br> 158 <textarea cols="40" rows="5" name="answer7"></textarea> 159 </td> 160 </tr> 161 <tr> 162 <td> 163 18.Dodatek co by jste chtìli o sobì øíci nebo se sem nevelo. 164 <br> 165 <textarea cols="40" rows="5" name="answer8"></textarea> 166 </td> 167 </tr> 168 <tr> 169 <td> 170 <input type="reset" value="reset"> 171 <input type="submit" value="odeslat"> 172 </td> 173 </tr> 101 <td><label for="answer4">14.Co bys udìlal, kdyby za tebou pøi¹el hráè, ¾e pøi¹el o postavu a ¾e by chtìl vrátit lvl?</label></td></tr><tr> 102 <td><textarea cols="45" rows="5" name="answer4" id="answer4" style="width:100%;"></textarea></td> 103 </tr><tr> 104 <td><label for="answer5">15.Co by jsi udìlal, kdyby jsi vidìl ¾e se hráè mìní v onixii nebo zabíjí NPC na jednu ránu?</label></td></tr><tr> 105 <td><textarea cols="45" rows="5" name="answer5" id="answer5" style="width:100%;"></textarea></td> 106 </tr><tr> 107 <td><label for="answer6">16.Proè chce¹ být gamemaster, co od této práce èeká¹, jak hodlá¹ být pøínosem pro ná¹ server?</label></td></tr><tr> 108 <td><textarea cols="45" rows="5" name="answer6" id="answer6" style="width:100%;"></textarea></td> 109 </tr><tr 110 <td><label for="answer7">17.Byl jsi GM i na jiném serveru?Popøípadì kde?</label></td></tr><tr> 111 <td><textarea cols="45" rows="5" name="answer7" id="answer7" style="width:100%;"></textarea></td> 112 </tr><tr> 113 <td><label for="answer8">18.Dodatek co by jste chtìli o sobì øíci nebo se sem neve¹lo.</label></td></tr><tr> 114 <td><textarea cols="45" rows="5" name="answer8" id="answer8" style="width:100%;"></textarea></td> 115 </tr><tr><td colspan='2'> 116 <input type="reset" value="Reset" style="width:auto;"> 117 <div id="hidethis" style="display: inline;"> 118 <input type="submit" value="Odeslat" style="width:auto;"> 119 </div><div id="waittext" style="display: none;">Èekej...</div> 120 </td></tr> 174 121 </table> 175 </form> Made by Than 122 </form> 123 124 <span>Made by Than</span><br><span>Improved by HosipLan</span> 125 176 126 </body> 177 127 </html> -
FormGM/script.php
r5 r84 3 3 <head> 4 4 <meta http-equiv="content-type" content="text/html; charset=windows-1250"> 5 <meta name="author" content="Than; e-mail: "> 6 <meta name="author" content="HosipLan; e-mail: HosipLan@seznam.cz"> 5 7 <title>Formuláø pro pøíjem nových GM</title> 6 8 </head> … … 8 10 <?php 9 11 10 $ID_Spojeni = mysql_connect('localhost','root','gurubashi'); 11 if (!$ID_Spojeni) 12 die('Spojení s MySQL databází se nezdaøilo.'); 13 $ID_vybrani = mysql_select_db('wow',$ID_Spojeni); 14 if (!$ID_vybrani) 15 { 16 echo mysql_errno($ID_vybrani),': ',mysql_error($ID_vybrani),'<br>'; 17 die('Nepodaøilo se vybrat databázi pokus.'); 18 } 12 mysql_connect('localhost','root','gurubashi') 13 OR DIE('<p>Spojení s MySQL databází se nezdaøilo.</p>'); 14 mysql_select_db('wow',$ID_Spojeni) 15 OR DIE("<p>".mysql_errno().": ".mysql_error()."<br>\nNepodaøilo se vybrat databázi pokus.</p>"); 16 19 17 $nick = $_POST['nick']; 20 18 $game_nick= $_POST['game_nick']; … … 63 61 $old = $_POST['old']; 64 62 65 $ID = mysql_fetch_row(mysql_query("SELECT Max(ID) FROM newgm",$ID_Spojeni)); 63 $sql = "INSERT INTO newgm values('NULL', 0, ". 64 "'".addslashes($nick)."', ". 65 "'".addslashes($game_nick)."', ". 66 "'".addslashes($icq)."', ". 67 "'".addslashes($email)."', ". 68 "'".addslashes($answer1)."', ". 69 "'".addslashes($answer2)."', ". 70 "'".addslashes($answer3)."', ". 71 "'".addslashes($a)."', ". 72 "'".addslashes($b)."', ". 73 "'".addslashes($c)."', ". 74 "'".addslashes($answer4)."', ". 75 "'".addslashes($answer5)."', ". 76 "'".addslashes($answer6)."', ". 77 "'".addslashes($answer7)."', ". 78 "'".addslashes($answer8)."', ". 79 "'".addslashes($Language)."', ". 80 "'".addslashes($Podminka)."', ". 81 "'".addslashes($old)."', ". 82 " now() )"; 66 83 67 $IDmessage = $ID[0]+1; 84 if ( !mysql_query($sql) ){ 85 echo mysql_errno($ID_Spojeni),': ',mysql_error($ID_Spojeni),'<br>'; 86 die('<p>Nepodaøil se vlo¾it vá¹ záznam do databáze pøíkaz.</p>'); 87 }; 68 88 69 $sql = "INSERT INTO newgm values('$IDmessage','0','$nick','$game_nick','$icq','$email','$answer1','$answer2','$answer3','$a','$b','$c','$answer4','$answer5','$answer6','$answer7','$answer8','$Language','$Podminka','$old',now())"; 89 if(@mail($email, "Automaticky e-mail o vyplneni formulare", "Vase prihlaska na post administratora na serveru Heroes of Fantasy byla ulozena do databaze. V blízké dobe se vám ozveme jestli jste byli prijati nebo ne. \n Vas nick: $nick\n ICQ: $icq \n E-mail: $email")){ 90 echo '<p>Zpráva je zapsána.<br>Byl vám zaslán Automatický e-mail na adresu: <b>'.$email.'</b></p>'; 91 } 92 else{ echo "<p>Nepodaøilo se odesat vám informaèní E-mail.</p>"; }; 70 93 71 $id_vysledku = mysql_query($sql,$ID_Spojeni); 72 if (!$id_vysledku) 73 { 74 echo mysql_errno($ID_Spojeni),': ',mysql_error($ID_Spojeni),'<br>'; 75 die('Nepodaøil se SQL pøíkaz.'); 76 } 77 mail($email, "Automaticky e-mail o vyplneni formulare", "Vase prihlaska na post administratora na serveru Heroes of Fantasy byla ulozena do databaze. V blízké dobe se vám ozveme jestli jste byli prijati nebo ne. \n Vas nick: $nick\n ICQ: $icq \n E-mail: $email"); 78 echo 'Zpráva je zapsána.<br>Byl vám zaslán Automatický e-mail na adresu: <b>'.$email.'</b>'; 79 mysql_close($ID_Spojeni); 94 mysql_close(); 95 80 96 ?> 81 82 97 83 98 </body> 84 99 </html> 85 86 -
db/include/uvod.php
r82 r84 1 1 <?php 2 if($vlozeni_souboru == "OK"){ 2 if($vlozeni_souboru == "OK"){ 3 3 ?> 4 4 -
db/obsah.php
r82 r84 52 52 if( !File_Exists($file) ){ $file = "./include/uvod.php"; }; 53 53 } 54 else{ $file = "./include/uvod.php"; };54 else{ $file = "./include/uvod.php"; $nadpis = "Úvod"; }; 55 55 ?> 56 56 <h1><?php echo $nadpis; ?></h1> -
db/post_read.php
r82 r84 1 1 <?php 2 if($vlozeni_souboru == "OK"){ 2 if($vlozeni_souboru == "OK"){ 3 3 ?> 4 4
Note:
See TracChangeset
for help on using the changeset viewer.