Changeset 51 for administrace


Ignore:
Timestamp:
Aug 20, 2007, 3:58:00 PM (17 years ago)
Author:
george
Message:

Oprava administrace

Location:
administrace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • administrace

    • Property svn:ignore set to
      php_script_error.log
  • administrace/index.php

    r5 r51  
     1<?php
     2include('../global.php');
     3?>
    14<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    25<html>
    36<head>
    4 <title>Login</title>
    5 <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
    6 <meta name="generator" content="PSPad editor, www.pspad.com">
     7<title>Pøihlá¹ení</title>
     8<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
     9
    710</head>
    811<body>
     
    2326  </table>
    2427 
    25   Pokud jste jeden z GM a nemáte úèet tak napištì na maron2@centrum.cz, nebo na ICQ
     28  Pokud jste jeden z GM a nemáte úèet tak napi¹tì na <?php echo($Config['Web']['AdminEmail']); ?>.
    2629</form>
    2730
  • administrace/master.php

    r11 r51  
    11<?php
    2 include('../config.php');
    3         // Test zda je registrovaný uživatel
    4         session_start();
     2include('../global.php');
    53
    6 
    7 
    8         if (@$_SESSION['Licence'] == 1) {
    9         //  echo 'Registerovany';
    10     include 'SubFiles/DatabaseConection.php';
    11         } else {
    12           include 'SubFiles/LoginMaster.php';
    13         }
     4if (@$_SESSION['Licence'] == 1)
     5{
     6} else {
     7  include 'SubFiles/LoginMaster.php';
     8}
    149?>
    1510<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
     
    9186          <td valign="top">
    9287<?php
    93   $Database2 = new Database($DatabaseHost, $DatabaseUser, $DatabasePassword); // dodìlat IP
    94   $Database2->SelectDatabase('mangos');
    95 
    96 
    9788  // Update last login time
    98   $Database2->SelectDatabase('wow');
     89  $Database->select('wow');
    9990  $User = $_SESSION['User'];
    100   $Database2->SQLCommand("UPDATE user SET LastLogin = now() WHERE User = '$User'");
     91  $Database->query("UPDATE user SET LastLogin = now() WHERE User = '$User'");
    10192
    10293  echo('<b>Uživatelské úèty s oprávnìním:</b><br />');
    10394  // Show all user
    104   $ID = $Database2->SQLCommand("SELECT * FROM user WHERE ban = 0");
    105   while ($Line = mysql_fetch_array($ID)) echo $Line['User'].'<br />';
     95  $DbResult = $Database->query("SELECT * FROM user WHERE ban = 0");
     96  while ($Line = $DbResult->fetch_array())
     97    echo($Line['User'].'<br/>');
    10698
    10799  echo('<br><b>Online:</b><br />');
    108100  // Show online users list
    109   $ID = $Database2->SQLCommand("SELECT * FROM user WHERE LastLogin > (NOW() - 60)");
    110   while ($Line = mysql_fetch_array($ID)) echo $Line['User'].'<br />';
     101  $DbResult = $Database->query("SELECT * FROM user WHERE LastLogin > (NOW() - 60)");
     102  while ($Line = $DbResult->fetch_array())
     103    echo($Line['User'].'<br />');
    111104?>         
    112105         
     
    126119  echo('<strong>Požadavky hráèù (<a href="http://wow.zdechov.net/administrace/george/rss_tickets.php">RSS</a>):</strong><br/>');
    127120 
    128   $Database2->SelectDatabase('mangos');
    129   $Result = $Database2->SQLCommand("SELECT character_ticket.ticket_text AS text, character.name AS name FROM character_ticket JOIN `character` ON character.guid = character_ticket.guid");
    130   while ($Line = mysql_fetch_array($Result)) echo($Line['name'].': '.$Line['text'].'<br/>');
     121  $Database->select_db('mangos');
     122  $Result = $Database->query("SELECT character_ticket.ticket_text AS text, character.name AS name FROM character_ticket JOIN `character` ON character.guid = character_ticket.guid");
     123  while ($Line = $Result->fetch_array())
     124    echo($Line['name'].': '.$Line['text'].'<br/>');
    131125 
    132   $Database2->Disconnect();
    133126?>
    134127     
Note: See TracChangeset for help on using the changeset viewer.