Dies ist eine alte Version des Dokuments!
vorlagen:delete
eXpBlog Mods
Autor: Volker Latainski
Update Backup
Datei | Ordner |
---|---|
config.php | / |
.htaccess | / |
settings.php | / |
history.txt | /plugins/ |
weblinks.php | /plugins/ |
header.png | /styles/expblog/img/ |
* | /files/ |
suptime.php | /plugins/ |
profile.php | /plugins/ |
Änderungen footer.php
Zeile 36:
Änderungen header.php
Zeile 84:
echo '<li><a href="http://www.hellhost.de/global/datenschutz.html" target=_BLANK class="medi">Datenschutz</a></li>'; echo '<li><a href="http://wiki.hellhost.de" target=_BLANK class="medi">WiKi</a></li>'; echo '<li><a href="https://secure.hellhost.de/exp/admin/" target=_BLANK class="medi">Blogin</a></li>';
Änderungen admin/classes/BILDER.class.php
Zeile 89:
chmod($savepath.$basename.".jpg", $chmod);
Zeile 94:
chmod($savepath.$basename.".gif", $chmod);
Zeile 99:
chmod($savepath.$basename.".png", $chmod);
Änderungen plugins/meistgelesene.php
Zeile 26:
$limit = 5;
Erstellen: robots.txt
User-agent: * Disallow: impressum.php Disallow: /admin/
mod_rewrite
apache2.conf:
<Directory "/var/www/web0/html/exp/"> AllowOverride ALL Options +FollowSymlinks </Directory>
.htaccess:
Options -MultiViews RewriteEngine on RewriteRule ^([^/]+)/([^./]+)/?$ index.php?a=$1&b=$2 [L] RewriteRule ^([^/]+)/([^./]+)/([^./]+)/?$ details.php?a=$1&b=$2&c=$3 [L]
wartung.php
echo '<div style="text-align: center; width: 100%;"><font face="Trebuchet MS">'; echo '<h1>CSB Tuning</h1><hr>'; echo '<div style="text-align: center; margin:150px auto 0 auto;">Wir bauen für Sie! Schauen Sie doch einfach in einer halben Stunde wieder rein!</a></div>'; echo '<br><center><img src="files/theme/zahnrad.jpg"></center><br></font>'; echo '</div>';
Benutzercookie speichern
details.php
Unterhalb der Zeile
if(!$hits->checkIfBlocked($_id)) $hits->addHit($_id);
folgendes einfügen:
if(isset($_COOKIE['comment_user_name'])) { $comment_user_name = checksql($_COOKIE['comment_user_name']); } if(isset($_COOKIE['comment_user_site'])) { $comment_user_site = checksql($_COOKIE['comment_user_site']); }
Suche nach:
<div id="details_comment_form">
Ändern von:
<input type="text" class="details_comment_form_text" name="name" value="Name" onclick="this.value=''" /> <input type="text" class="details_comment_form_text" name="homepage" value="http://optional.deine.homepage" onclick="this.value=''" class="medi" />
in:
<?php if(isset($_COOKIE['comment_user_name'])) { ?> <input type="text" class="details_comment_form_text" name="name" value=<?php echo '"'.$comment_user_name.'"' ?> onclick="this.value=''" /> <?php } else { ?> <input type="text" class="details_comment_form_text" name="name" value="Name" onclick="this.value=''" /> <?php } //if if(isset($_COOKIE['comment_user_site'])) { ?> <input type="text" class="details_comment_form_text" name="homepage" value=<?php echo '"'.$comment_user_site.'"' ?> onclick="this.value=''" class="medi" /> <?php } else { ?> <input type="text" class="details_comment_form_text" name="homepage" value="http://optional.deine.homepage" onclick="this.value=''" class="medi" /> <?php } ?>
include/pre_details.php
Suche nach:
$name = checkSql(htmlentities($_POST["name"]));
Unterhalb der Zeile einfügen:
setcookie("comment_user_name",$name,time() + (3600 * 24 * 30 * 12),"/");
Suche nach:
$homepage = checkSql(htmlentities($_POST["homepage"]));
Unterhalb der Zeile einfügen:
setcookie("comment_user_site",$homepage,time() + (3600 * 24 * 30 * 12),"/");