Changeset 445


Ignore:
Timestamp:
Feb 22, 2009, 5:46:24 PM (16 years ago)
Author:
george
Message:
  • Přidáno: Skript pro import financí a aktualit ze starého webu.
  • Opraveno: Ukázkový skript db_sample.php nebyl řádné upravený!
  • Opraveno: U zobrazování aktualit se všude zobrazoval jako autor Zork.
  • Upraveno: Javascript kódy umísťujte do souboru styles/global.js.
Location:
beta
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • beta/inc/db_sample.php

    r405 r445  
    33$db_user    = "web";
    44$db_pass    = "";
     5
     6$db_mangos = "mangos";
     7$db_realmd = "realmd";
     8$db_characters = "characters";
     9$db_ghsystem = "wow_web";
     10$db_webu = "wow_web";
     11
    512$db = new mysqli($db_server, $db_user, $db_pass);
    613  if (mysqli_connect_errno())
  • beta/inc/html.php

    r405 r445  
    6262  <meta name=\"keywords\" content=\"".$this->CfgChck("keywords")."\" />
    6363  <link rel=\"stylesheet\" type=\"text/css\" href=\"styles/style.css\" />
     64  <script type=\"text/javascript\" src=\"styles/global.js\"></script>
    6465  <!--[if IE]><link rel=\"stylesheet\" type=\"text/css\" href=\"styles/ie.css\" /><![endif]-->
    6566  </head>
     
    207208      public function ShowNews ($kategorie)
    208209      {
     210                global $db_webu;
     211               
    209212        if ($kategorie == "all")
    210213        {
     
    215218          $where = "WHERE `category` = '".$kategorie."'";
    216219        }
    217         $this -> db -> select_db("wow_web");
     220        $this -> db -> select_db($db_webu);
    218221        $sql = $this -> db -> query("SELECT * FROM `articles`".$where."ORDER BY `date` DESC;");
    219222        if ($sql -> num_rows > 0)
     
    258261              <tr>
    259262                <td>Sekce : <a href=\"?page=".$link."\">".$cat."</a></td>
    260                 <td>Zork</td>
     263                <td>".$row["autor"]."</td>
    261264              </tr>
    262265            </table>
  • beta/index.php

    r440 r445  
    1 <script>
    2 function popup(url, wid, hei) {
    3 left = (window.screen.availWidth-wid)/2;
    4 shora = (window.screen.availHeight-hei)/2;
    5 window.open(url,"_blank","left="+left+",top="+shora+",scrollbars=yes,resiza ble=no,toolbar=no,menubar=no,status=no,location=0,width="+wid+",height ="+hei);
    6 }
    7 </script>
    8 <?php
    9   session_start();
     1<?php
     2session_start();
    103include_once("./inc/db.php");
    114include_once("./inc/html.php");
  • beta/sql/structure.sql

    r406 r445  
     1-- phpMyAdmin SQL Dump
     2-- version 3.1.2
     3-- http://www.phpmyadmin.net
     4--
     5-- Počítač: localhost
     6-- Vygenerováno: Neděle 22. února 2009, 17:17
     7-- Verze MySQL: 5.0.51
     8-- Verze PHP: 5.2.6
     9
     10SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
     11
     12--
     13-- Databáze: `wow_web`
     14--
     15
     16-- --------------------------------------------------------
    117
    218--
     
    1228  `date` timestamp NOT NULL default '0000-00-00 00:00:00' on update CURRENT_TIMESTAMP,
    1329  PRIMARY KEY  (`id`)
    14 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=9 ;
     30) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=12 ;
    1531
    1632-- --------------------------------------------------------
     
    7288
    7389--
     90-- Struktura tabulky `finance`
     91--
     92
     93CREATE TABLE IF NOT EXISTS `finance` (
     94  `id` int(11) NOT NULL auto_increment,
     95  `time` datetime default NULL,
     96  `money` int(11) default NULL,
     97  `operation` enum('contribution','consumption','buy','internet','sell') collate latin2_czech_cs NOT NULL default 'contribution',
     98  `description` varchar(255) collate latin2_czech_cs default NULL,
     99  KEY `ID` (`id`)
     100) ENGINE=MyISAM  DEFAULT CHARSET=latin2 COLLATE=latin2_czech_cs AUTO_INCREMENT=113 ;
     101
     102-- --------------------------------------------------------
     103
     104--
    74105-- Struktura tabulky `guildy`
    75106--
Note: See TracChangeset for help on using the changeset viewer.