Merge branch 'master' of github.com:dignajar/bludit
This commit is contained in:
commit
2bc925cced
|
@ -155,6 +155,14 @@ class Url
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function parameter($field)
|
||||||
|
{
|
||||||
|
if (isset($this->parameters[$field])) {
|
||||||
|
return $this->parameters[$field];
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public function setNotFound()
|
public function setNotFound()
|
||||||
{
|
{
|
||||||
$this->setWhereAmI('page');
|
$this->setWhereAmI('page');
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"native": "Deutsch (Schweiz)",
|
"native": "Deutsch (Schweiz)",
|
||||||
"english-name": "German",
|
"english-name": "German",
|
||||||
"locale": "de, de_CH",
|
"locale": "de, de_CH",
|
||||||
"last-update": "2018-01-17",
|
"last-update": "2018-02-27",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Clickwork https:\/\/clickwork.ch",
|
"Clickwork https:\/\/clickwork.ch",
|
||||||
"blog2read https:\/\/github.com\/blog2read",
|
"blog2read https:\/\/github.com\/blog2read",
|
||||||
|
@ -277,28 +277,28 @@
|
||||||
"next-page": "Nächste Seite",
|
"next-page": "Nächste Seite",
|
||||||
"scheduled": "Veröffentlichung geplant",
|
"scheduled": "Veröffentlichung geplant",
|
||||||
"this-token-is-similar-to-a-password-it-should-not-be-shared": "Dieser Token ist genauso wichtig wie ein Passwort und sollte nicht weitergegen werden.",
|
"this-token-is-similar-to-a-password-it-should-not-be-shared": "Dieser Token ist genauso wichtig wie ein Passwort und sollte nicht weitergegen werden.",
|
||||||
"congratulations-you-have-successfully-installed-your-bludit": "Gratulation, **Bludit** wurde erfolgreich installiert!",
|
"congratulations-you-have-successfully-installed-your-bludit": "Gratulation, Bludit wurde erfolgreich installiert!",
|
||||||
"this-theme-may-not-be-supported-by-this-version-of-bludit": "Dieses Theme wird möglicherweise von der installierten Version von Bludit nicht unterstützt.",
|
"this-theme-may-not-be-supported-by-this-version-of-bludit": "Dieses Theme wird möglicherweise von der installierten Version von Bludit nicht unterstützt.",
|
||||||
"read-more": "Weiterlesen",
|
"read-more": "Weiterlesen",
|
||||||
"remember-me": "Angemeldet bleiben",
|
"remember-me": "Angemeldet bleiben",
|
||||||
"plugins-position": "Plugin position",
|
"plugins-position": "Plugin position",
|
||||||
"plugins-sorted": "Plugins sorted",
|
"plugins-sorted": "Plugins sorted",
|
||||||
"plugins-position-changed": "Plugin position changed",
|
"plugins-position-changed": "Die Reihenfolge der Plugins wurde geändert.",
|
||||||
"drag-and-drop-to-set-the-position-of-the-plugin": "Drag and Drop to set the position of the plugins",
|
"drag-and-drop-to-set-the-position-of-the-plugin": "Die Reihenfolge der Plugins kann mit \"Drag and Drop\" geändert werden",
|
||||||
"change-the-position-of-the-plugins": "Change the position of the plugins",
|
"change-the-position-of-the-plugins": "Reihenfolge der Plugins bearbeiten",
|
||||||
"reading-time": "Reading time",
|
"reading-time": "Reading time",
|
||||||
"minutes": "minutes",
|
"minutes": "Minuten",
|
||||||
"minute": "minute",
|
"minute": "Minute",
|
||||||
"example-page-1-slug": "create-your-own-content",
|
"example-page-1-slug": "veroeffentliche-deine-inhalte",
|
||||||
"example-page-1-title": "Create your own content",
|
"example-page-1-title": "Veröffentliche deine Inhalte",
|
||||||
"example-page-1-content": "Start writing your own content or edit the current to fit your needs. To create, edit or remove content you need to login to the [admin panel](.\/admin) with the username `admin` and the password you set on the installation process.",
|
"example-page-1-content": "Veröffentliche deine eigenen Inhalte oder passe die vorhandenen deinen Bedürfnissen an. Um Inhalte zu veröffentlichen, zu bearbeiten oder zu löschen, musst du dich im [Administrationsbereich](.\/admin) anmelden mit dem Benutzernamen `admin` und dem Passwort, das Du bei der Installation eingegeben hast.",
|
||||||
"example-page-2-slug": "set-up-your-new-site",
|
"example-page-2-slug": "richte-deine-website-ein",
|
||||||
"example-page-2-title": "Set up your new site",
|
"example-page-2-title": "Richte deine Website ein",
|
||||||
"example-page-2-content": "Update the settings of your site from the [admin panel](.\/admin), you can change the title, description and the social networks from [Settings > General](.\/admin\/settings-general).",
|
"example-page-2-content": "Passe die Einstellungen deiner Website im [Administrationsbereich](.\/admin) an. Unter [Einstellungen > Allgemein](.\/admin\/settings-general) kannst Du beispielsweise den Titel und die Beschreibung der Website ändern oder Links zu sozialen Netzwerken eingeben.",
|
||||||
"example-page-3-slug": "follow-bludit",
|
"example-page-3-slug": "follow-bludit",
|
||||||
"example-page-3-title": "Follow Bludit",
|
"example-page-3-title": "Follow Bludit",
|
||||||
"example-page-3-content": "Get information about news, new releases, new themes or new plugins on our social networks [Facebook](https:\/\/www.facebook.com\/bluditcms\/), [Twitter](https:\/\/twitter.com\/bludit) and [GooglePlus](https:\/\/plus.google.com\/+Bluditcms) or visit our [Blog](https:\/\/blog.bludit.com).",
|
"example-page-3-content": "Get information about news, new releases, new themes or new plugins on our social networks [Facebook](https:\/\/www.facebook.com\/bluditcms\/), [Twitter](https:\/\/twitter.com\/bludit) and [GooglePlus](https:\/\/plus.google.com\/+Bluditcms) or visit our [Blog](https:\/\/blog.bludit.com).",
|
||||||
"example-page-4-slug": "about",
|
"example-page-4-slug": "ueber",
|
||||||
"example-page-4-title": "About",
|
"example-page-4-title": "Über",
|
||||||
"example-page-4-content": "Your About page is typically one of the most visited pages on your site, need to be simple with a few key things, such as your name, who are you, how can contact you, a small story, etc."
|
"example-page-4-content": "Your About page is typically one of the most visited pages on your site, need to be simple with a few key things, such as your name, who are you, how can contact you, a small story, etc."
|
||||||
}
|
}
|
|
@ -4,8 +4,8 @@
|
||||||
"name": "Backup",
|
"name": "Backup",
|
||||||
"description": "Einfach Backups erstellen und wiederherstellen."
|
"description": "Einfach Backups erstellen und wiederherstellen."
|
||||||
},
|
},
|
||||||
"create-backup": "Create Backup",
|
"create-backup": "Backup erstellen",
|
||||||
"download": "Download",
|
"download": "Backup herunterladen",
|
||||||
"restore-backup": "Restore Backup",
|
"restore-backup": "Backup wiederherstellen",
|
||||||
"delete-backup": "Delete Backup"
|
"delete-backup": "Backup löschen"
|
||||||
}
|
}
|
|
@ -4,8 +4,8 @@
|
||||||
"name": "Backup",
|
"name": "Backup",
|
||||||
"description": "Einfach Backups erstellen und wiederherstellen."
|
"description": "Einfach Backups erstellen und wiederherstellen."
|
||||||
},
|
},
|
||||||
"create-backup": "Create Backup",
|
"create-backup": "Backup erstellen",
|
||||||
"download": "Download",
|
"download": "Backup herunterladen",
|
||||||
"restore-backup": "Restore Backup",
|
"restore-backup": "Backup wiederherstellen",
|
||||||
"delete-backup": "Delete Backup"
|
"delete-backup": "Backup löschen"
|
||||||
}
|
}
|
|
@ -82,6 +82,15 @@ class pluginRSS extends Plugin {
|
||||||
$this->createXML();
|
$this->createXML();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function post()
|
||||||
|
{
|
||||||
|
// Call the method
|
||||||
|
parent::post();
|
||||||
|
|
||||||
|
// After POST request
|
||||||
|
$this->createXML();
|
||||||
|
}
|
||||||
|
|
||||||
public function afterPageCreate()
|
public function afterPageCreate()
|
||||||
{
|
{
|
||||||
$this->createXML();
|
$this->createXML();
|
||||||
|
|
|
@ -59,6 +59,15 @@ class pluginSitemap extends Plugin {
|
||||||
$this->createXML();
|
$this->createXML();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function post()
|
||||||
|
{
|
||||||
|
// Call the method
|
||||||
|
parent::post();
|
||||||
|
|
||||||
|
// After POST request
|
||||||
|
$this->createXML();
|
||||||
|
}
|
||||||
|
|
||||||
public function afterPageCreate()
|
public function afterPageCreate()
|
||||||
{
|
{
|
||||||
$this->createXML();
|
$this->createXML();
|
||||||
|
|
41
install.php
41
install.php
|
@ -190,13 +190,28 @@ function checkSystem()
|
||||||
$stdOut = array();
|
$stdOut = array();
|
||||||
$dirpermissions = 0755;
|
$dirpermissions = 0755;
|
||||||
|
|
||||||
// Check .htaccess file for different webservers
|
// Try to create .htaccess file if not exists
|
||||||
if (!file_exists(PATH_ROOT.'.htaccess')) {
|
$htaccessContent = 'AddDefaultCharset UTF-8
|
||||||
|
|
||||||
if ( !isset($_SERVER['SERVER_SOFTWARE']) ||
|
<IfModule mod_rewrite.c>
|
||||||
stripos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false ||
|
|
||||||
stripos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false
|
# Enable rewrite rules
|
||||||
) {
|
RewriteEngine on
|
||||||
|
|
||||||
|
# Deny direct access to .txt files
|
||||||
|
RewriteRule ^bl-content/(.*)\.txt$ - [R=404,L]
|
||||||
|
|
||||||
|
# All URL process by index.php
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteRule ^(.*) index.php [PT,L]
|
||||||
|
|
||||||
|
</IfModule>';
|
||||||
|
|
||||||
|
if ( !file_exists(PATH_ROOT.'.htaccess') || (filesize(PATH_ROOT.'.htaccess')<1) ) {
|
||||||
|
if (!file_put_contents(PATH_ROOT.'.htaccess', $htaccessContent)) {
|
||||||
|
if (!empty($_SERVER['SERVER_SOFTWARE'])) {
|
||||||
|
$webserver = Text::lowercase($_SERVER['SERVER_SOFTWARE']);
|
||||||
|
if (Text::stringContains($webserver, 'apache') || Text::stringContains($webserver, 'litespeed')) {
|
||||||
$errorText = 'Missing file, upload the file .htaccess (ERROR_204)';
|
$errorText = 'Missing file, upload the file .htaccess (ERROR_204)';
|
||||||
error_log($errorText, 0);
|
error_log($errorText, 0);
|
||||||
|
|
||||||
|
@ -205,6 +220,20 @@ function checkSystem()
|
||||||
array_push($stdOut, $tmp);
|
array_push($stdOut, $tmp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check mod_rewrite module
|
||||||
|
if (function_exists('apache_get_modules') ) {
|
||||||
|
if (!in_array('mod_rewrite', apache_get_modules())) {
|
||||||
|
$errorText = 'Module mod_rewrite is not installed or loaded.';
|
||||||
|
error_log($errorText, 0);
|
||||||
|
|
||||||
|
$tmp['title'] = 'Apache mod_rewrite module';
|
||||||
|
$tmp['errorText'] = $errorText;
|
||||||
|
array_push($stdOut, $tmp);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Try to create the directory content
|
// Try to create the directory content
|
||||||
@mkdir(PATH_CONTENT, $dirpermissions, true);
|
@mkdir(PATH_CONTENT, $dirpermissions, true);
|
||||||
|
|
Loading…
Reference in New Issue