Changeset 383
- Timestamp:
- Sep 28, 2008, 11:22:53 AM (16 years ago)
- Location:
- beta
- Files:
-
- 3 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
beta/inc/player.php
r380 r383 248 248 {$this -> Msg ("Tato postava není vaše.",1);} 249 249 } 250 public function PlayerJail ($guid) 251 { 252 // .go xyz -90.54 41.35 -31.71 253 // .go xyz -91.01 100.46 -31.71 254 // .go xyz -119.16 71.82 -31.71 255 $defined_positions = array ( 256 "x1" => "-90.54", 257 "y1" => "41.35", 258 "z1" => "-31.71", 259 "o1" => "1.4623", 260 261 "x2" => "-91.01", 262 "y2" => "100.46", 263 "z2" => "-31.71", 264 "o3" => "4.6282", 265 266 "x3" => "-119.16", 267 "y3" => "71.82", 268 "z3" => "-31.71", 269 "o3" => "6.2116", 270 ); 271 $rand_place = rand (1,3); 272 if (!$this -> IsOnline($guid)) 273 { 274 $this -> db -> select_db("characters"); 275 $this -> db -> query("UPDATE `characters` SET 276 `map` = '35' , 277 `orientation` = '".$defined_positions["o".$rand_place]."' , 278 `position_x` ='".$defined_positions["x".$rand_place]."' , 279 `position_y` = '".$defined_positions["y".$rand_place]."' , 280 `position_z` = '".$defined_positions["z".$rand_place]."' 281 WHERE `guid` ='".$guid."' LIMIT 1;"); 282 $this -> db -> query("INSERT INTO `character_aura` (`guid`, `caster_guid`, `spell`, `effect_index`, `amount`, `maxduration`, `remaintime`, `remaincharges`) VALUES 283 (".$guid.", ".$guid.", 23775, 0, 1, -1, -1, -1), 284 (".$guid.", ".$guid.", 36558, 0, 1, -1, -1, -1);"); 285 286 $this -> Msg ("Postava ve vězení.",0); 287 288 } 289 else 290 {$this -> Msg ("Postava musí být offline.",1);} 291 292 293 } 250 294 // -- done 251 295 public function IsOnline ($guid) -
beta/pages/admin.php
r377 r383 1 1 <?php 2 echo "<center>"; 3 $lvl = $player -> GetGmLvl(); 4 echo " 5 <form method=\"post\"> 6 <table align=\"center\" border=\"0\" width=\"300\"> 7 <tr> 8 <td colspan=\"2\"><b>Přidat novinku</b></td> 9 </tr> 10 <tr> 11 <td>Nadpis</td> 12 <td><input type=\"text\" name=\"nadpis\"></td> 13 </tr> 14 <tr> 15 <td>Text</td> 16 <td> 17 <textarea cols=\"30\" rows=\"5\" name=\"text\" autocomplete=\"off\"></textarea> 18 </td> 19 </tr> 20 <tr> 21 <td>Kategorie</td> 22 <td> 23 <select name=\"kategorie\"> 24 <option value=\"\">Vyberte :</option> 25 <option value=\"1\">Server novinky</option> 26 <option value=\"2\">GM novinky</option> 27 <option value=\"3\">In-game novinky</option> 28 <option value=\"4\">Články</option> 29 </select> 30 </td> 31 </tr> 32 <tr> 33 <td></td> 34 <td><input type=\"submit\" value=\"Přidat\" name=\"add\"></td> 35 </tr> 36 37 </table> 38 </form> 39 "; 40 41 if (isset($_POST["add"])) 42 { 43 $db -> select_db("web"); 44 $result = $db -> query("INSERT INTO `articles` ( `id` , `title` , `autor` , `date` , `category` , `text`) VALUES (NULL, '".$_POST["nadpis"]."', '".$_COOKIE["hof-nick"]."', NULL , '".$_POST["kategorie"]."' , '".$_POST["text"]."');"); 45 echo "Přidáno !"; 46 } 47 48 49 echo "</center>"; 2 echo "Menu"; 50 3 ?> -
beta/pages/aukce.php
r377 r383 17 17 if (isset($_POST["set"])) 18 18 { 19 $ day_half = 129600;20 setcookie("hof-maxlvl",$_POST["maxlvl"],time()+$ day_half);21 setcookie("hof-minlvl",$_POST["minlvl"],time()+$ day_half);22 setcookie("hof-maxgold",$_POST["maxgold"],time()+$ day_half);23 setcookie("hof-frakce",$_POST["frakce"],time()+$ day_half);19 $year = 365 * 24 * 60 * 60; 20 setcookie("hof-maxlvl",$_POST["maxlvl"],time()+$year); 21 setcookie("hof-minlvl",$_POST["minlvl"],time()+$year); 22 setcookie("hof-maxgold",$_POST["maxgold"],time()+$year); 23 setcookie("hof-frakce",$_POST["frakce"],time()+$year); 24 24 echo "<meta http-equiv=\"refresh\" content=\"2;url=?page=aukce\">"; 25 25 $work = "Ukládám nastavení , chvíli strpení"; … … 27 27 if (isset($_POST["reset"])) 28 28 { 29 setcookie("hof-maxlvl",""); 30 setcookie("hof-minlvl",""); 31 setcookie("hof-maxgold",""); 32 setcookie("hof-frakce",""); 29 $year = 365 * 24 * 60 * 60; 30 setcookie("hof-maxlvl","",time()+$year); 31 setcookie("hof-minlvl","",time()+$year); 32 setcookie("hof-maxgold","",time()+$year); 33 setcookie("hof-frakce","",time()+$year); 33 34 echo "<meta http-equiv=\"refresh\" content=\"2;url=?page=aukce\">"; 34 35 $work = "Ukládám nastavení , chvíli strpení"; -
beta/pages/guildy.php
r377 r383 47 47 48 48 echo " 49 <table border=\"1\" width=\"5 55\">49 <table border=\"1\" width=\"500\"> 50 50 <tr> 51 51 <th align=\"center\">".MakeLink("Frakce","fraction")."</th> -
beta/pages/server.php
r373 r383 16 16 </tr> 17 17 <tr> 18 <td> Server je</td>18 <td>Herní server je</td> 19 19 <td>".$server -> ServerImg($server -> ServerOnline("wow.zdechov.net",8085))."</td> 20 20 </tr> 21 21 22 <tr> 22 23 <td>Ve hře přítomno</td> … … 34 35 <td>V databázi uloženo</td> 35 36 <td>".$server -> CharacterCount()." postav</td> 37 </tr> 38 <tr> 39 <td><a href=\"?page=teamspeak\">TeamSpeak</a> server je</td> 40 <td>".$server -> ServerImg($server -> ServerOnline("game.zdechov.net",51234))."</td> 41 </tr> 42 <tr> 43 <td><a href=\"http://game.zdechov.net:6969/\" target=\"_blank\">Torrent</a> server je</td> 44 <td>".$server -> ServerImg($server -> ServerOnline("game.zdechov.net",6969))."</td> 36 45 </tr> 37 46 <tr> -
beta/pages/webconfig.php
r377 r383 5 5 if (isset($_POST["save"])) 6 6 { 7 setcookie("hof-random",$_POST["random"]); 8 setcookie("hof-widget",$_POST["widget"]); 9 setcookie("hof-quick",$_POST["quick"]); 7 $year = 7 * 24 * 60 * 60; 8 setcookie("hof-random",$_POST["random"],time()+$year); 9 setcookie("hof-widget",$_POST["widget"],time()+$year); 10 setcookie("hof-quick",$_POST["quick"],time()+$year); 11 setcookie("hof-web",$_POST["web"],time()+$year); 10 12 $msg = "<br /><center><b>Ukládám změny.</b></center><br /> 11 13 <meta http-equiv=\"refresh\" content=\"1;url=?page=webconfig\">"; … … 34 36 $default = "yes"; 35 37 break; 38 case "web": 39 $default = "2"; 40 break; 36 41 } 37 setcookie("hof-".$value,$default); 42 $year = 7 * 24 * 60 * 60; 43 setcookie("hof-".$value,$default,time()+$year); 38 44 $msg = "<br /><center><b>Nahrávám základní nastavení</b></center><br /> 39 45 <meta http-equiv=\"refresh\" content=\"1;url=?page=webconfig\">"; … … 59 65 Ne <input type=\"radio\" name=\"quick\" value=\"no\"".Check("quick","no")."> 60 66 <br /> 67 <b>Zobrazovat web</b><br /> 68 Web 1.0 (původní menu vlevo) <input type=\"radio\" name=\"web\" value=\"1\"".Check("web","1")."><br /> 69 Web 2.0 (nový menu vpravo) <input type=\"radio\" name=\"web\" value=\"2\"".Check("web","2")."> 70 <br /> 61 71 62 72 -
beta/styles/ie.css
r373 r383 1 1 /* CSS Document */ 2 2 #footer { 3 4 margin-left: -870px;5 } 3 width: 982px; 4 margin-left: -865px; 5 } 6 6 7 7 #menu { 8 margin-left: 56px;9 } 8 margin-left: 110px; 9 } 10 10 #content { 11 11 margin-left: 65px; 12 } 12 }
Note:
See TracChangeset
for help on using the changeset viewer.