Changeset 82 for db/obsah.php
- Timestamp:
- Sep 29, 2007, 8:25:17 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
db/obsah.php
r76 r82 2 2 if($vlozeni_souboru == "OK"){ 3 3 4 if( !empty($id) ){ 4 5 if( $id == "uvod" ){ $file = "uvod"; $nadpis = "Úvod"; } 5 6 elseif( $id == "stats" ){ $file = "stats"; $nadpis = "Statistiky"; } … … 28 29 else{ $file = "uvod"; $nadpis = "Úvod"; }; 29 30 30 if ( File_Exists("./include/".$file.".php") ){31 if( File_Exists("./include/".$file.".php") ){ 31 32 $file = "./include/".$file.".php"; 32 } else{ $file = "./include/uvod.php"; }; 33 34 if( !empty($quest) ){ 35 /* $novinka_dotaz_nadpis = @mysql_query("SELECT nadpis FROM novinky WHERE id='".$novinka."' LIMIT 1"); 36 if( mysql_num_rows($novinka_dotaz_nadpis) == "1" ) { $i = "0"; 37 while( $result = @MySQL_Fetch_Array($novinka_dotaz_nadpis) ){ 38 $nadpis_novinky[$i] = $result["nadpis"]; 39 }; 40 } else{ $nadpis_novinky[0] = "Chyba"; }; 41 $file = "novinka"; $nadpis = $nadpis_novinky[0]; 42 if( File_Exists($file.".php") ) { 43 $file = $file.".php"; 44 }; */ 45 }; 33 }; 34 } 35 elseif( !empty($quest) ){ 36 $quest_dotaz_nadpis = mysql_query("SELECT `Title` FROM `quest_template` WHERE `entry`='".$quest."' LIMIT 1"); 37 if( mysql_num_rows($quest_dotaz_nadpis) == "1" ) { $i = "0"; 38 $result = MySQL_Fetch_Array($quest_dotaz_nadpis); 39 $nadpis_quest = $result["Title"]; 40 } else{ $nadpis_quest = "Chyba !"; }; 41 $file = "./include/quest.php"; $nadpis = "Quest: ".$nadpis_quest; 42 if( !File_Exists($file) ){ $file = "./include/uvod.php"; }; 43 } 44 elseif( !empty($creature) ){ 45 $creature_dotaz_nadpis = mysql_query("SELECT `name`,`subname` FROM `creature_template` WHERE `entry`='".$creature."' LIMIT 1"); 46 if( mysql_num_rows($creature_dotaz_nadpis) == "1" ) { $i = "0"; 47 $result = @MySQL_Fetch_Array($creature_dotaz_nadpis); 48 $nadpis_creature = $result["name"]; 49 $nadpis_creature .= (!empty($result['subname']))?" <".$result['subname'].">":""; 50 } else{ $creature_quest = "Chyba !"; }; 51 $file = "./include/creep.php"; $nadpis = "Creep: ".$nadpis_creature; 52 if( !File_Exists($file) ){ $file = "./include/uvod.php"; }; 53 } 54 else{ $file = "./include/uvod.php"; }; 46 55 ?> 47 56 <h1><?php echo $nadpis; ?></h1>
Note:
See TracChangeset
for help on using the changeset viewer.