- Timestamp:
- May 16, 2009, 3:23:11 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:ignore
set to
gallery
-
Property svn:ignore
set to
-
trunk/gh_system/admin.php
r490 r588 7 7 .nepodtrzene{text-decoration:none}; 8 8 </style> 9 <? include(" conn.php");9 <? include("../inc/db.php"); 10 10 $heslo = $_GET['heslo']; 11 11 $q = $_GET['q']; … … 41 41 <table align="center" border="1"><tr><td align=center><strong>Guild Master</strong><td align=center><strong>Jméno Guildy (ID Guildy)</strong><td align=center><strong>Typ GH (GUID)</strong><td align=center><strong>Mìsíèní platba</strong><td align=center><strong>Dalí platba</strong><td align=center><strong>Stav úètu</strong><td><strong>Mají na dalí splátku?</strong></td><td> </td><? 42 42 43 mysql_connect($ SQL_Server, $SQL_Uzivatel, $SQL_Heslo);44 mysql_select_db($ Databaze);43 mysql_connect($db_server, $db_user, $db_pass); 44 mysql_select_db($db_ghsystem); 45 45 mysql_query("SET NAMES 'utf8'"); 46 46 $pocet_v_seznamu = mysql_num_rows(mysql_query("SELECT id FROM guildy")); … … 76 76 77 77 78 mysql_select_db($ Databaze_characters);78 mysql_select_db($db_characters); 79 79 mysql_query("SET NAMES 'utf8'"); 80 80 $guild_prachy = mysql_query("SELECT BankMoney FROM guild where guildid=$id"); … … 139 139 endif; 140 140 141 mysql_select_db($ Databaze);141 mysql_select_db($db_ghsystem); 142 142 $pocet2 = mysql_num_rows(mysql_query("SELECT id FROM guildy where dalsi_platba='".date("Y-m-d")."' OR dalsi_platba<'".date("Y-m-d")."'")); 143 143 if($pocet2!=0): … … 180 180 else: 181 181 182 mysql_connect($ SQL_Server, $SQL_Uzivatel, $SQL_Heslo);183 mysql_select_db($ Databaze_characters);182 mysql_connect($db_server, $db_user, $db_pass); 183 mysql_select_db($db_characters); 184 184 mysql_query("SET NAMES 'utf8'"); 185 185 $existence_guilda = mysql_num_rows(mysql_query("SELECT guildid FROM guild where name='$guilda'")); … … 207 207 $p = 0; 208 208 else: 209 mysql_select_db($ Databaze);209 mysql_select_db($db_ghsystem); 210 210 $guilda_jiz_je = mysql_num_rows(mysql_query("SELECT id FROM guildy where jmeno='$guilda'")); 211 211 if($guilda_jiz_je!=0): … … 213 213 $p = 0; 214 214 else: 215 mysql_select_db($ Databaze);215 mysql_select_db($db_ghsystem); 216 216 mysql_query("SET NAMES 'utf8'"); 217 217 $guilda_do_seznamu = mysql_query("insert into guildy values ('$guildid', '$guilda', '$gum', '$typgh', date_add(now(), INTERVAL 7 day))"); … … 267 267 $id2 = $_POST['id']; 268 268 269 mysql_connect($ SQL_Server, $SQL_Uzivatel, $SQL_Heslo);270 mysql_select_db($ Databaze);269 mysql_connect($db_server, $db_user, $db_pass); 270 mysql_select_db($db_ghsystem); 271 271 mysql_query("SET NAMES 'utf8'"); 272 272 $guilda_info = mysql_query("select * from guildy where id=$id2"); … … 289 289 $dalsi_platba = $radek['dalsi_platba']; 290 290 } 291 mysql_select_db($ Databaze_characters);291 mysql_select_db($db_characters); 292 292 $guild_info = mysql_query("select * from guild where guildid=$id2"); 293 293 while ($zaznam = mysql_fetch_array($guild_info) ){ … … 311 311 312 312 $odebrat_prachy = mysql_query("update guild set BankMoney=$kolik_zbyde where guildid=$id2"); 313 mysql_select_db($ Databaze);313 mysql_select_db($db_ghsystem); 314 314 $upravit_datum_dalsi_platby = mysql_query("update guildy set dalsi_platba=date_add('$dalsi_platba', INTERVAL 7 day) where id=$id2"); 315 315 … … 334 334 if(empty($err)): 335 335 if($sure=="ano"): 336 mysql_connect($ SQL_Server, $SQL_Uzivatel, $SQL_Heslo);337 mysql_select_db($ Databaze);336 mysql_connect($db_server, $db_user, $db_pass); 337 mysql_select_db($db_ghsystem); 338 338 mysql_query("SET NAMES 'utf8'"); 339 339 $smazat_ze_seznamu = mysql_query("delete from guildy where id=$id LIMIT 1"); … … 363 363 } elseif($q==5) { 364 364 365 mysql_connect($ SQL_Server, $SQL_Uzivatel, $SQL_Heslo);366 mysql_select_db($ Databaze);365 mysql_connect($db_server, $db_user, $db_pass); 366 mysql_select_db($db_ghsystem); 367 367 mysql_query("SET NAMES 'utf8'"); 368 368 … … 390 390 $dalsi_platba = $radek['dalsi_platba']; 391 391 392 mysql_select_db($ Databaze_characters);392 mysql_select_db($db_characters); 393 393 $guild_info = mysql_query("select * from guild where guildid=$id2"); 394 394 while ($zaznam = mysql_fetch_array($guild_info) ){ … … 402 402 403 403 $odebrat_prachy = mysql_query("update guild set BankMoney=$kolik_zbyde where guildid=$id2"); 404 mysql_select_db($ Databaze);404 mysql_select_db($db_ghsystem); 405 405 $upravit_datum_dalsi_platby = mysql_query("update guildy set dalsi_platba=date_add('$dalsi_platba', INTERVAL 7 day) where id=$id2"); 406 406 -
trunk/index.php
r586 r588 39 39 array('link' => '?page=online', 'Text' => 'Online hráči'), 40 40 array('link' => '#', 'Text' => 'Mapa hráčů', 'OnClick' => "popup('../mmadmin/pomm_public/pomm.php', 758, 525); return false;"), 41 array('link' => '?page=tophraci', 'Text' => 'TopHráči'), 41 42 array('link' => '?page=banlist', 'Text' => 'Ban List'), 42 43 array('link' => '?page=guildy', 'Text' => 'Guildy'), -
trunk/pages/gh.php
r407 r588 12 12 13 13 <p align=center> 14 <BR> 15 <BR> 14 16 15 <table align=center><tr><td><font size=4><B>Jak si zařídit GH pro svou guildu</B></font><br /><br /><td> 17 16 … … 27 26 28 27 <? 29 include("gh_system/conn.php");30 28 31 mysql_connect($SQL_Server, $SQL_Uzivatel, $SQL_Heslo); 32 mysql_select_db($Databaze); 29 30 mysql_connect($db_server, $db_user, $db_pass); 31 mysql_select_db($db_webu); 33 32 mysql_query("SET NAMES 'utf8'"); 34 33 $pocet = mysql_num_rows(mysql_query("SELECT id FROM guildy")); … … 64 63 endif; 65 64 66 mysql_select_db($ Databaze_characters);65 mysql_select_db($db_characters); 67 66 $query2 = mysql_query("SELECT * FROM guild where guildid=$id"); 68 67 while ($radek = mysql_fetch_array($query2) ) {
Note:
See TracChangeset
for help on using the changeset viewer.