Changeset 445
- Timestamp:
- Feb 22, 2009, 5:46:24 PM (16 years ago)
- Location:
- beta
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
beta/inc/db_sample.php
r405 r445 3 3 $db_user = "web"; 4 4 $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 5 12 $db = new mysqli($db_server, $db_user, $db_pass); 6 13 if (mysqli_connect_errno()) -
beta/inc/html.php
r405 r445 62 62 <meta name=\"keywords\" content=\"".$this->CfgChck("keywords")."\" /> 63 63 <link rel=\"stylesheet\" type=\"text/css\" href=\"styles/style.css\" /> 64 <script type=\"text/javascript\" src=\"styles/global.js\"></script> 64 65 <!--[if IE]><link rel=\"stylesheet\" type=\"text/css\" href=\"styles/ie.css\" /><![endif]--> 65 66 </head> … … 207 208 public function ShowNews ($kategorie) 208 209 { 210 global $db_webu; 211 209 212 if ($kategorie == "all") 210 213 { … … 215 218 $where = "WHERE `category` = '".$kategorie."'"; 216 219 } 217 $this -> db -> select_db( "wow_web");220 $this -> db -> select_db($db_webu); 218 221 $sql = $this -> db -> query("SELECT * FROM `articles`".$where."ORDER BY `date` DESC;"); 219 222 if ($sql -> num_rows > 0) … … 258 261 <tr> 259 262 <td>Sekce : <a href=\"?page=".$link."\">".$cat."</a></td> 260 <td> Zork</td>263 <td>".$row["autor"]."</td> 261 264 </tr> 262 265 </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 2 session_start(); 10 3 include_once("./inc/db.php"); 11 4 include_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 10 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; 11 12 -- 13 -- Databáze: `wow_web` 14 -- 15 16 -- -------------------------------------------------------- 1 17 2 18 -- … … 12 28 `date` timestamp NOT NULL default '0000-00-00 00:00:00' on update CURRENT_TIMESTAMP, 13 29 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 ; 15 31 16 32 -- -------------------------------------------------------- … … 72 88 73 89 -- 90 -- Struktura tabulky `finance` 91 -- 92 93 CREATE 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 -- 74 105 -- Struktura tabulky `guildy` 75 106 --
Note:
See TracChangeset
for help on using the changeset viewer.