Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
1 to 6 of 6
<head>
(note that this doesn't mean that there is <title></title>
, there is no <title>
tag at all)
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine on
RewriteBase /index.php/index.php
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [S=2]
RewriteRule /index.php/feed/$ plog-rss.php?path=%{REQUEST_URI} [L]
RewriteRule ^.*$ index.php/index.php?path=%{REQUEST_URI} [L]
# 301-redirects all example.tld/* requests to www.example.tld/*:
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
Options -Indexes
</IfModule>
# BEGIN Plogger
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule .* http://www.example.com%{REQUEST_URI} [R=301,L]
RewriteBase /index.php
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [S=2]
RewriteRule feed/$ plog-rss.php?path=%{REQUEST_URI} [L]
RewriteRule ^.*$ index.php?path=%{REQUEST_URI} [L]
</IfModule>
# END Plogger
function generate_title(){
switch ($GLOBALS['plogger_level']) {
case 'collection':
$row = get_collection_by_id($GLOBALS['plogger_id']);
$breadcrumbs = SmartStripSlashes($row["name"]);
if ($GLOBALS['plogger_mode'] == "slideshow") $breadcrumbs .= ' » Slideshow';
break;
case 'slideshow':
case 'album':
$row = get_album_by_id($GLOBALS['plogger_id']);
$album_name = SmartStripSlashes($row["name"]);
$row = get_collection_by_id($row["parent_id"]);
if ($GLOBALS['plogger_mode'] == "slideshow") {
$breadcrumbs = SmartStripSlashes($row["name"]) . ' » ' . $album_name.' » ' . ' Slideshow';
} else {
$breadcrumbs = $album_name;
}
break;
case 'picture':
$row = get_picture_by_id($GLOBALS['plogger_id']);
$picture_name = basename($row["path"]);
$row = get_album_by_id($row["parent_album"]);
$album_name = SmartStripSlashes($row["name"]);
$row = get_collection_by_id($row["parent_id"]);
$collection_name = SmartStripSlashes($row["name"]);
$breadcrumbs = $album_name . ' » ' . $picture_name . ' | ' . SmartStripSlashes($config["gallery_name"]);
if ($GLOBALS['plogger_mode'] == "slideshow") $breadcrumbs .= ' » Slideshow';
break;
default:
$breadcrumbs = ' Collections';
}
return $breadcrumbs;
}
$title = generate_title_in_head($GLOBALS['plogger_level'], $GLOBALS['plogger_id']);
if ($config["embedded"] == 0) {
print "<title>$title</title>\n";
}
$config["embedded"] = 0;
// try to figure out whether we are embedded (for example running from Wordpress)
// on windows/apache $_SERVER['PATH_TRANSLATED'] uses "/" for directory separators,
// __FILE__ has them the other way, realpath takes care of that.
if (dirname(__FILE__) != dirname(realpath($_SERVER["PATH_TRANSLATED"])) && strpos($_SERVER["PATH_TRANSLATED"],"admin") === false) {
$config["embedded"] = 1;
// disable our own cruft-free urls, because the URL has already been processed
// by WordPress
$config["use_mod_rewrite"] = 0;
} else {
$config["baseurl"] = "http://".$_SERVER["HTTP_HOST"]. substr($_SERVER["PHP_SELF"],0,strrpos($_SERVER["PHP_SELF"],"/")) . "/";
}
$config["embedded"] = 0;
// try to figure out whether we are embedded (for example running from Wordpress)
// on windows/apache $_SERVER['PATH_TRANSLATED'] uses "/" for directory separators,
// __FILE__ has them the other way, realpath takes care of that.
//if (dirname(__FILE__) != dirname(realpath($_SERVER["PATH_TRANSLATED"])) && strpos($_SERVER["PATH_TRANSLATED"],"admin") === false) {
// $config["embedded"] = 1;
// // disable our own cruft-free urls, because the URL has already been processed
// // by WordPress
// $config["use_mod_rewrite"] = 0;
//} else {
$config["baseurl"] = "http://".$_SERVER["HTTP_HOST"]. substr($_SERVER["PHP_SELF"],0,strrpos($_SERVER["PHP_SELF"],"/")) . "/";
//}
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine on
RewriteBase /index.php/index.php
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [S=2]
RewriteRule /index.php/feed/$ plog-rss.php?path=%{REQUEST_URI} [L]
RewriteRule ^.*$ index.php/index.php?path=%{REQUEST_URI} [L]
# 301-redirects all example.tld/* requests to www.example.tld/*:
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
Options -Indexes
</IfModule>
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine on
RewriteBase /index.php/index.php
# 301-redirects all example.tld/* requests to www.example.tld/*:
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
# Other Plogger rewriterules
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [S=2]
RewriteRule /index.php/feed/$ plog-rss.php?path=%{REQUEST_URI} [L]
RewriteRule ^.*$ index.php/index.php?path=%{REQUEST_URI} [L]
Options -Indexes
</IfModule>
# Attempt to set your own DirectoryIndex:
DirectoryIndex default.php index.html index.php
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine on
RewriteBase /index.php/index.php
# 301-redirects all example.tld/* requests to www.example.tld/*:
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
# Other Plogger rewriterules
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [S=2]
RewriteRule /index.php/feed/$ plog-rss.php?path=%{REQUEST_URI} [L]
RewriteRule ^.*$ index.php/index.php?path=%{REQUEST_URI} [L]
Options -Indexes
</IfModule>
1 to 6 of 6