ich hab' die "NOTE IT"-box im acp eingebaut.
auf meinem alten board lief sie auch wunderbar, doch nun (nach neuinstallation des boards) wird der text nach abschicken immer umformatiert, d.h. aus z.b. don't wird don\'t. das heißt, vor hochstrichen und anführungszeichen wird immer ein backslash gesetzt.
warum ist das so und kann man das ändern?
Code: Alles auswählen
##############################################################
## MOD Title: Note It
## MOD Author: Newbie (NL)
## MOD Description: Admin Notepad
## MOD Version: 1.0
##
## Installation Level: Easy
## Installation Time: 1 Minute
## Files To Edit: templates/subSilver/admin/index_body.tpl
## admin/index.php
##
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes: You must have MySQL
##############################################################
## MOD History: n/a
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ SQL ]------------------------------------------
#
CREATE TABLE note (
id int(8) not null,
text text);
INSERT INTO note (id,text) VALUES
('1','Text');
#
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
</table>
<br />
#
#-----[ BEFORE ADD ]------------------------------------------
#
</table>
<h1>NOTE IT!</h1>
<table width="100" cellpadding="4" cellspacing="1" border="0" class="forumline">
<tr>
<td class="row2">
<form action="{U_ADMIN_INDEX}" method="post">
<textarea name="noteme" cols=50 rows=10 style="background-color: #EFEFEF;">{U_NOTEIT}</textarea>
<input type="submit" name="post" value="Note it!">
</form>
</td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
}
elseif( isset($HTTP_GET_VARS['pane']) && $HTTP_GET_VARS['pane'] == 'right' )
{
#
#-----[ AFTER ADD ]------------------------------------------
#
// Begin of Note It
if(isset($_POST['post'])){
$tnote = addslashes($_POST['noteme']);
$query = mysql_query("UPDATE tech_note SET text = '" . addslashes($_POST['noteme']) . "' WHERE id = 1");
}
$sql = mysql_query("SELECT text FROM tech_note");
if(!$sql) { echo mysql_error(); };
$note = mysql_fetch_array($sql);
// End of Note It
#
#-----[ FIND ]------------------------------------------
#
"L_GZIP_COMPRESSION" => $lang['Gzip_compression'],
#
#-----[ AFTER ADD ]------------------------------------------
#
"U_NOTEIT" => $note['text']
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM