Changeset 49 for trunk/includes/global_function.php
- Timestamp:
- Jan 30, 2009, 10:33:08 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:ignore
set to
SqlTranslate.zip
-
Property svn:ignore
set to
-
trunk/includes/global_function.php
r48 r49 87 87 while($DbRow = mysql_fetch_assoc($DbResult)) 88 88 { 89 $Result[$DbRow['Group']]['Items'][ $DbRow['Id']] = $DbRow;89 $Result[$DbRow['Group']]['Items'][] = $DbRow; 90 90 } 91 91 return($Result); 92 92 } 93 94 $Texts = array95 (96 //array('Title'),97 array('Details'),98 array('Objectives'),99 array('OfferRewardText'),100 array('RequestItemsText'),101 array('EndText'),102 array('ObjectiveText1'),103 array('ObjectiveText2'),104 array('ObjectiveText3'),105 array('ObjectiveText4'),106 );107 93 108 94 $LogTypes = array … … 128 114 $user = @$_SESSION['UserID']; 129 115 $Database->SelectDatabase($Config['Database']['Database']); 130 $Database->SQLCommand('INSERT INTO `log` ( `user` , `type` , `text` , `date` , `IP` ) 131 VALUES ( "'.$user.'", "'.$Type.'", "'.$Text.'", NOW(), "'.$_SERVER['REMOTE_ADDR'].'")'); 116 $Query = 'INSERT INTO `log` ( `user` , `type` , `text` , `date` , `IP` ) 117 VALUES ('.$user.', '.$Type.', "'.addslashes($Text).'", NOW(), "'.addslashes($_SERVER['REMOTE_ADDR']).'")'; 118 $Database->SQLCommand($Query); 132 119 } 133 120 134 $npc_text = array135 (136 '0' => 'text0_0',137 '1' => 'text0_1',138 '2' => 'text1_0',139 '3' => 'text1_1',140 '4' => 'text2_0',141 '5' => 'text2_1',142 '6' => 'text3_0',143 '7' => 'text3_1',144 '8' => 'text4_0',145 '9' => 'text4_1',146 '10' => 'text5_0',147 '11' => 'text5_1',148 '12' => 'text6_0',149 '13' => 'text6_1',150 '14' => 'text7_0',151 '15' => 'text7_1',152 );153 154 $page_text = array155 (156 '0' => 'text',157 );158 121 159 122 $client_files = array … … 168 131 ); 169 132 170 $client_text = array171 (172 '0' => 'text',173 );174 175 133 ?>
Note:
See TracChangeset
for help on using the changeset viewer.