Beide Seiten der vorigen Revision Vorhergehende Überarbeitung | |
archiv:expblog5 [2023/11/05 22:47] – psycore | archiv:expblog5 [2023/11/08 13:12] (aktuell) – gelöscht psycore |
---|
{{template>vorlagen:delete}} | |
| |
====== eXpBlog Mods ====== | |
| |
Autor: Volker Latainski | |
| |
===== Update Backup ===== | |
| |
^ Datei ^ Ordner ^ | |
| config.php | / | | |
| .htaccess | / | | |
| settings.php | / | | |
| history.txt | /plugins/ | | |
| [[archiv:php:expblog:weblinks.php]] | /plugins/ | | |
| header.png | /styles/expblog/img/ | | |
| * | /files/ | | |
| [[archiv:php:expblog:suptime.php]] | /plugins/ | | |
| [[archiv:php:expblog:profile.php]] | /plugins/ | | |
| |
===== Änderungen footer.php ===== | |
| |
==== Zeile 36: ==== | |
| |
<code html>Blog content © by <a href="www.hellhost.de">hellhost.de</a> 2008<br /> | |
Codename: Lima V2<br /></code> | |
| |
| |
| |
===== Änderungen header.php ===== | |
| |
==== Zeile 84: ==== | |
| |
<code php>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>';</code> | |
| |
===== Änderungen admin/classes/BILDER.class.php ===== | |
| |
==== Zeile 89: ==== | |
| |
<code php>chmod($savepath.$basename.".jpg", $chmod);</code> | |
| |
==== Zeile 94: ==== | |
| |
<code php>chmod($savepath.$basename.".gif", $chmod);</code> | |
| |
==== Zeile 99: ==== | |
| |
<code php>chmod($savepath.$basename.".png", $chmod);</code> | |
| |
===== Änderungen plugins/meistgelesene.php ===== | |
| |
==== Zeile 26: ==== | |
| |
<code php>$limit = 5;</code> | |
| |
===== Erstellen: robots.txt ===== | |
| |
<code text>User-agent: * | |
Disallow: impressum.php | |
Disallow: /admin/</code> | |
| |
===== mod_rewrite ===== | |
| |
apache2.conf: | |
<code text> | |
<Directory "/var/www/web0/html/exp/"> | |
AllowOverride ALL | |
Options +FollowSymlinks | |
</Directory></code> | |
| |
.htaccess: | |
<code text> | |
Options -MultiViews | |
RewriteEngine on | |
RewriteRule ^([^/]+)/([^./]+)/?$ index.php?a=$1&b=$2 [L] | |
RewriteRule ^([^/]+)/([^./]+)/([^./]+)/?$ details.php?a=$1&b=$2&c=$3 [L] | |
</code> | |
| |
===== wartung.php ===== | |
| |
<code 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>'; | |
</code> | |
| |
| |
| |
===== Benutzercookie speichern ===== | |
| |
==== details.php ==== | |
| |
Unterhalb der Zeile <code php>if(!$hits->checkIfBlocked($_id)) $hits->addHit($_id);</code> folgendes einfügen: | |
| |
<code php>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']); | |
}</code> | |
| |
Suche nach: | |
<code html><div id="details_comment_form"></code> | |
Ändern von: <code html> <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" /></code> in: | |
| |
<code php><?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 } ?></code> | |
| |
==== include/pre_details.php ==== | |
| |
Suche nach: <code php>$name = checkSql(htmlentities($_POST["name"]));</code> | |
Unterhalb der Zeile einfügen: <code php>setcookie("comment_user_name",$name,time() + (3600 * 24 * 30 * 12),"/");</code> | |
| |
Suche nach: <code php>$homepage = checkSql(htmlentities($_POST["homepage"]));</code> | |
Unterhalb der Zeile einfügen: <code php>setcookie("comment_user_site",$homepage,time() + (3600 * 24 * 30 * 12),"/");</code> | |