Changeset 588 for trunk/gh_system/admin.php
- Timestamp:
- May 16, 2009, 3:23:11 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 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
Note:
See TracChangeset
for help on using the changeset viewer.