Ignore:
Timestamp:
May 16, 2009, 3:23:11 PM (15 years ago)
Author:
barny
Message:

*Upraven GH systém a přidán script na tophráče.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore set to
      gallery
  • trunk/gh_system/admin.php

    r490 r588  
    77.nepodtrzene{text-decoration:none};
    88</style>
    9 <? include("conn.php");
     9<? include("../inc/db.php");
    1010$heslo = $_GET['heslo'];
    1111$q = $_GET['q'];
     
    4141<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>&nbsp;</td><?
    4242
    43 mysql_connect($SQL_Server, $SQL_Uzivatel, $SQL_Heslo);
    44   mysql_select_db($Databaze);
     43mysql_connect($db_server, $db_user, $db_pass);
     44  mysql_select_db($db_ghsystem);
    4545    mysql_query("SET NAMES 'utf8'");
    4646        $pocet_v_seznamu = mysql_num_rows(mysql_query("SELECT id FROM guildy"));
     
    7676           
    7777       
    78   mysql_select_db($Databaze_characters);
     78  mysql_select_db($db_characters);
    7979    mysql_query("SET NAMES 'utf8'");
    8080        $guild_prachy = mysql_query("SELECT BankMoney FROM guild where guildid=$id");
     
    139139                endif;
    140140   
    141          mysql_select_db($Databaze);
     141         mysql_select_db($db_ghsystem);
    142142        $pocet2 = mysql_num_rows(mysql_query("SELECT id FROM guildy where dalsi_platba='".date("Y-m-d")."' OR dalsi_platba<'".date("Y-m-d")."'"));
    143143if($pocet2!=0):
     
    180180  else:
    181181 
    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);
    184184    mysql_query("SET NAMES 'utf8'");
    185185        $existence_guilda = mysql_num_rows(mysql_query("SELECT guildid FROM guild where name='$guilda'"));
     
    207207  $p = 0;
    208208  else:
    209  mysql_select_db($Databaze);
     209 mysql_select_db($db_ghsystem);
    210210        $guilda_jiz_je = mysql_num_rows(mysql_query("SELECT id FROM guildy where jmeno='$guilda'"));
    211211        if($guilda_jiz_je!=0):
     
    213213    $p = 0;
    214214  else:
    215   mysql_select_db($Databaze);
     215  mysql_select_db($db_ghsystem);
    216216    mysql_query("SET NAMES 'utf8'");
    217217  $guilda_do_seznamu = mysql_query("insert into guildy values ('$guildid', '$guilda', '$gum', '$typgh', date_add(now(), INTERVAL 7 day))");
     
    267267$id2 = $_POST['id'];
    268268
    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);
    271271    mysql_query("SET NAMES 'utf8'");
    272272  $guilda_info = mysql_query("select * from guildy where id=$id2");
     
    289289  $dalsi_platba = $radek['dalsi_platba'];
    290290  }
    291      mysql_select_db($Databaze_characters);
     291     mysql_select_db($db_characters);
    292292         $guild_info = mysql_query("select * from guild where guildid=$id2");
    293293           while ($zaznam = mysql_fetch_array($guild_info) ){
     
    311311
    312312$odebrat_prachy = mysql_query("update guild set BankMoney=$kolik_zbyde where guildid=$id2");
    313 mysql_select_db($Databaze);
     313mysql_select_db($db_ghsystem);
    314314$upravit_datum_dalsi_platby = mysql_query("update guildy set dalsi_platba=date_add('$dalsi_platba', INTERVAL 7 day) where id=$id2");
    315315
     
    334334if(empty($err)):
    335335if($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);
    338338    mysql_query("SET NAMES 'utf8'");
    339339  $smazat_ze_seznamu = mysql_query("delete from guildy where id=$id LIMIT 1");
     
    363363} elseif($q==5) {
    364364
    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);
    367367    mysql_query("SET NAMES 'utf8'");
    368368 
     
    390390$dalsi_platba = $radek['dalsi_platba'];
    391391
    392  mysql_select_db($Databaze_characters);
     392 mysql_select_db($db_characters);
    393393         $guild_info = mysql_query("select * from guild where guildid=$id2");
    394394           while ($zaznam = mysql_fetch_array($guild_info) ){
     
    402402
    403403$odebrat_prachy = mysql_query("update guild set BankMoney=$kolik_zbyde where guildid=$id2");
    404 mysql_select_db($Databaze);
     404mysql_select_db($db_ghsystem);
    405405$upravit_datum_dalsi_platby = mysql_query("update guildy set dalsi_platba=date_add('$dalsi_platba', INTERVAL 7 day) where id=$id2");
    406406
Note: See TracChangeset for help on using the changeset viewer.