pninc/functions.inc.php
|
Änderung in Zeile 375
$user = L_NEWS_GUEST;
Änderung in Zeile 707-712
if ($pnconfig[bbcode] == "Comments/News" OR $pnconfig[bbcode] == "News") {
$title = $this->bbreplace($title);
}
if ($pnconfig[smilies] == "Comments/News" OR $pnconfig[smilies] == "News") {
$title = $this->smiliereplace($title);
}
Änderung in Zeile 428
$template->message(L_ALL_FILLALL, "javascript:history.back()");
Änderung in Zeile 747-756
if ($pnconfig[bbcode] == "Comments/News" OR $pnconfig[bbcode] == "News") {
$title = $this->bbreplace($title);
$text = $this->bbreplace($text);
$moretext = $this->bbreplace($moretext);
}
if ($pnconfig[smilies] == "Comments/News" OR $pnconfig[smilies] == "News") {
$title = $this->smiliereplace($title);
$text = $this->smiliereplace($text);
$moretext = $this->smiliereplace($moretext);
}
Änderung in Zeile 809-814
if ($pnconfig[bbcode] == "Comments/News" OR $pnconfig[bbcode] == "Comments") {
$text = $this->bbreplace($text);
}
if ($pnconfig[smilies] == "Comments/News" OR $pnconfig[smilies] == "Comments") {
$text = $this->smiliereplace($text);
}
|
pnadmin/configuration.inc.php
|
Veränderung in Zeile 85
<option value="Guests/Registered" <?PHP if ($pnconfig[commentwriting] == "Guests/Registered") { echo "selected"; } ?>><?PHP echo L_CONF_GUESTSANDREGS; ?></option>
Veränderung in Zeile 110
<option value="Guests/Registered" <?PHP if ($pnconfig[newssending] == "Guests/Registered") { echo "selected"; } ?>><?PHP echo L_CONF_GUESTSANDREGS; ?></option>
Veränderung in Zeile 122
<option value="Comments/News" <?PHP if ($pnconfig[smilies] == "Comments/News") { echo "selected"; } ?>><?PHP echo L_CONF_COMMENTSANDNEWS; ?></option>
Veränderung in Zeile 133
<option value="Comments/News" <?PHP if ($pnconfig[bbcode] == "Comments/News") { echo "selected"; } ?>><?PHP echo L_CONF_COMMENTSANDNEWS; ?></option>
Veränderung in Zeile 144
<option value="Comments/News" <?PHP if ($pnconfig[html] == "Comments/News") { echo "selected"; } ?>><?PHP echo L_CONF_COMMENTSANDNEWS; ?></option>
|
pnadmin/functions.inc.php
|
Änderung in Zeile 993
mysql_query("UPDATE $pn_config[configtable] SET categories = '$categories', categorypics = '$categorypics', comments = '$comments', commentwriting = '$commentwriting', moretext = '$moretext', sendnews = '$sendnews', newssending = '$newssending', smilies = '$smilies', bbcode = '$bbcode', html = '$html', dateformat = '$dateformat', timeformat = '$timeformat', template = '$template', url = '$url', email = '$email', headlines = '$headlines', news = '$news', spamprotection = '$spamprotection', relatedlinks = '$relatedlinks', relatedlinks_num = '$relatedlinks_num'", $pn_handler) OR $error = L_CONF_EDITFAILED;
Veränderung in Zeile 1385-1395
if ($pnconfig[html] == "Comments" OR $pnconfig[html] == "Comments/News") {
?><b><?PHP echo L_NEWS_ON; ?></b>/<a href="index.php?page=other&subpage=help#news.bbcode">BB Code</a> <?PHP
} else {
?><b><?PHP echo L_NEWS_OFF; ?></b>/<a href="index.php?page=other&subpage=help#news.bbcode">BB Code</a> <?PHP
}
if ($pnconfig[bbcode] == "Comments" OR $pnconfig[bbcode] == "Comments/News") {
?><b><?PHP echo L_NEWS_ON; ?></b>)<?PHP
} else {
?><b><?PHP echo L_NEWS_OFF; ?></b>)<?PHP
}
Neu in Zeile 1570-1597
// Reads a mySQL dumpfile into mySQL database
//
// @param string path to the dumpfile
//
// @return array splitted sql commands
function readDump ($dumpFile) {
$sql = '';
// Extract comments from filecontent
$content = file($dumpFile);
for ($i = 0; $i < count($content); $i++) {
if (!preg_match('^#^', $content[$i])) {
$sql .= trim($content[$i]);
} // end if
} // end for
$command = array();
$sql_len = strlen($sql);
for ($i = 0; $i < $sql_len; $i++) {
$char = $sql[$i];
if ($char == ';') {
$command[] = substr($sql, 0, $i);
$sql = substr($sql, $i + 1, $sql_len);
$sql_len = strlen($sql);
$i = -1;
} // End if
} // End for
return $command;
} // End of readDump()
Änderung in Zeile 1043-1046
if ($pnconfig[categorypics] == "YES") {
$pic = $picture['name'];
@copy($picture[tmp_name], "../pngfx/categories/$picture[name]") OR $error = L_CAT_PICUPLOADERROR;
}
Änderung in Zeile 1150-1156
if ($uploadpic == "YES") {
$pic = $picture['name'];
if ($row['picture']) {
@unlink('../pngfx/categories/'.$row['picture']) OR $error = L_CAT_CANNOTDELETEOLDPIC;
}
@copy($picture['tmp_name'], "../pngfx/categories/$picture[name]") OR $error = L_CAT_PICUPLOADERROR;
}
|
pnadmin/lang/german-du.php & pnadmin/lang/german-sie.php
|
Neu in Zeile 114
define("L_CONF_EDITFAILED", "Die Konfiguration konnte nicht editiert werden!");
Änderung in Zeile 38
define("L_CAT_PICDESC", "Bild für die neue Kategorie");
Löschung in Zeile 42
define("L_CAT_PICSONLYINTHISFORMAT", "Bilder dürfen nur im GIF/JPG/JPEG Format hochgeladen werden!");
|