Changeset 102 for db/post_read.php
- Timestamp:
- Sep 30, 2007, 10:22:32 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
db/post_read.php
r92 r102 122 122 } 123 123 elseif( $id == "bugreport" AND empty($bug) ){ 124 $DB_web = mysql_select_db($Config['DB_read']['DB_read']['Database_web']);125 if( !$DB_web ){ DIE("<p>Nepodařilo se nastavit pracovní databázi ".$Config['DB_read']['DB_read']['Database_web']."!</p>"); };124 mysql_select_db($Config['DB_read']['DB_read']['Database_web']) 125 OR DIE("<p>Nepodařilo se nastavit pracovní databázi ".$Config['DB_read']['DB_read']['Database_web']."!</p>"); 126 126 127 127 $sql_select = SQLselect_Strankovani("SELECT * FROM `bug_report` ORDER BY `opraveno` ASC, `vlozeno` DESC", $limit, 20, "?id=bugreport", $SID); … … 134 134 $sql_select['result'] .= "<a href=\"./index.php?id=bugreport&bug=".$result['id']."\">".@date("d.m.Y H:i", $result['vlozeno'])."</a>"; 135 135 $sql_select['result'] .= "</td><td valign='top'>"; 136 $sql_select['result'] .= nl2br( htmlentities($result['popis']));136 $sql_select['result'] .= nl2br(preg_replace(array("(\<)","(\>)"), array("<",">"), $result['popis'])); 137 137 $sql_select['result'] .= "</td><td valign='top' align='right'>"; 138 138 if( $result['opraveno'] == 0 ){ … … 142 142 $sql_select['result'] .= "</td></tr>\n"; 143 143 }; 144 144 145 145 $sql_select['result'] .= "</table>\n"; 146 146 … … 149 149 } 150 150 elseif( $id == "bugreport" AND !empty($bug) ){ 151 $DB_web = mysql_select_db($Config['DB_read']['DB_read']['Database_web']);152 if( !$DB_web ){ DIE("<p>Nepodařilo se nastavit pracovní databázi ".$Config['DB_read']['DB_read']['Database_web']."!</p>"); };151 mysql_select_db($Config['DB_read']['DB_read']['Database_web']) 152 OR DIE("<p>Nepodařilo se nastavit pracovní databázi ".$Config['DB_read']['DB_read']['Database_web']."!</p>"); 153 153 154 154 $sql_select['sql'] = mysql_query("SELECT * FROM `bug_report` WHERE id=$bug LIMIT 1"); … … 166 166 } 167 167 elseif( $id == "sendbug" ANd isset($_POST['send']) ){ 168 $DB_web = mysql_select_db($Config['DB_read']['DB_read']['Database_web']);169 if( !$DB_web ){ DIE("<p>Nepodařilo se nastavit pracovní databázi ".$Config['DB_read']['DB_read']['Database_web']."!</p>"); };168 mysql_select_db($Config['DB_read']['DB_read']['Database_web']) 169 OR DIE("<p>Nepodařilo se nastavit pracovní databázi ".$Config['DB_read']['DB_read']['Database_web']."!</p>"); 170 170 171 171 $sql_insert['sql'] = "INSERT INTO `bug_report` (`nick`,`typ`,`vlozeno`,`popis`) VALUES('".$_POST['game_nick']."','".$_POST['err_type']."','".time()."','".$_POST['popis']."')";
Note:
See TracChangeset
for help on using the changeset viewer.