Merge branch 'master' of https://github.com/flatpressblog/flatpress
This commit is contained in:
commit
a01cb828b5
13
CHANGELOG.md
13
CHANGELOG.md
@ -18,6 +18,9 @@
|
||||
- Gallery captions plugin added: Manages image captions for gallery images ([#108](https://github.com/flatpressblog/flatpress/issues/108))
|
||||
- SEO Meta Tag Info plugin added: Manages SEO meta tags ([#145](https://github.com/flatpressblog/flatpress/issues/145))
|
||||
- FlatPress Protect plugin added: Adds HTTP headers for hardening your blog ([#146](https://github.com/flatpressblog/flatpress/issues/146))
|
||||
- DateChanger plugin added: Allows you to change the publication date for (new) entries.
|
||||
- Feed plugin added: Shows the RSS and Atom feed in the header and activates the widget. The buttons can be easily swapped via the upload manager ([#317](https://github.com/flatpressblog/flatpress/issues/317))
|
||||
- CookieBanner plugin added: Discreet reference to the use of cookies ([#325](https://github.com/flatpressblog/flatpress/issues/325))
|
||||
|
||||
### Changes
|
||||
- jQuery plugin: Updated jQuery (3.5.1 => 3.6.1) and jQueryUI (1.12.1 => 1.13.2)
|
||||
@ -25,7 +28,8 @@
|
||||
- BBCode plugin: Added "h4" icon to editor toolbar ([#201](https://github.com/flatpressblog/flatpress/issues/201))
|
||||
- BBCode plugin: Facebook-Video now uses the latest video player API and the lazy loading mechanism of the browser; also now has localized languages with language tag ([#252](https://github.com/flatpressblog/flatpress/issues/252)) - see also https://developers.facebook.com/docs/javascript/internationalization
|
||||
- BBCode plugin: Added optional "target" attribute to the "url" element - ([PR270](https://github.com/flatpressblog/flatpress/pull/270) by [@sjustesen](https://github.com/sjustesen))
|
||||
- Akismet and comment center plugin revised to enable a more understandable operation ([#273](https://github.com/flatpressblog/flatpress/issues/273))
|
||||
- Comment center plugin (Akismet) revised to enable a more understandable operation ([#273](https://github.com/flatpressblog/flatpress/issues/273))
|
||||
- Akismet-Pluin removed: is already included in the comment center plugin
|
||||
|
||||
### Bugfixes
|
||||
- LastCommentsAdmin plugin will not even attempt to delete or rebuild LastComments caches if LastComments plugin is not available ([#43](https://github.com/flatpressblog/flatpress/issues/43))
|
||||
@ -36,6 +40,7 @@
|
||||
- BBCode plugin: Initial settings after fresh install shown correctly ([#102](https://github.com/flatpressblog/flatpress/issues/102))
|
||||
- Calendar plugin: Fixed incorrect text output when Russian is set as language
|
||||
- Fixed broken links in the administration area
|
||||
- Footnotes plugin: Compatibility with [Markdown plugin](https://github.com/flatpressblog/flatpress-extras/tree/master/fp-plugins/markdown) established ([#322](https://github.com/flatpressblog/flatpress/issues/322))
|
||||
|
||||
## Setup
|
||||
- Reworked Installer ([#266](https://github.com/flatpressblog/flatpress/issues/266))
|
||||
@ -43,7 +48,7 @@
|
||||
- In the setup CSS, unused IDs, classes and incorrect references to fonts have been removed.
|
||||
- The installer header now shines in a simple FlatPress style.
|
||||
- Added missing language files for Greek, Spanish and French ([#214](https://github.com/flatpressblog/flatpress/issues/214))
|
||||
- The installer tries to write permissions to the fp-content directory recursively for owners and groups, which had to be done manually before.
|
||||
- The installer tries to write permissions recursively for owners and groups, which had to be done manually before.
|
||||
|
||||
## Themes
|
||||
- Reworked "Leggero v2" style, Admin Area now responsive ([#259](https://github.com/flatpressblog/flatpress/issues/259))
|
||||
@ -93,7 +98,8 @@
|
||||
- Contact form: Admin notification mail is now localized ([#205](https://github.com/flatpressblog/flatpress/issues/205))
|
||||
- Setup tries to determine local language automatically ([#197](https://github.com/flatpressblog/flatpress/issues/197), [#216](https://github.com/flatpressblog/flatpress/issues/216), [#262](https://github.com/flatpressblog/flatpress/issues/262))
|
||||
- The HTML of the installer now has a lang attribute in the html start tag to specify the language.
|
||||
- BBcode toolbar: Internationalized button titles translated to the end
|
||||
- BBCode plugin: Localized toolbar button tooltips
|
||||
- Footnotes plugin: Hard-coded output now localized ([#322](https://github.com/flatpressblog/flatpress/issues/322))
|
||||
|
||||
## Bugfixes
|
||||
- Plugin management page: Removed empty warning messages box
|
||||
@ -103,6 +109,7 @@
|
||||
- Worked around strftime() marked as deprecated as of PHP 8.1 ([#92](https://github.com/flatpressblog/flatpress/issues/92)) - thx @bohwaz
|
||||
- Comments and contact form: Fixed error on sending mails with umlaut subjects ([#207](https://github.com/flatpressblog/flatpress/issues/207), [#209](https://github.com/flatpressblog/flatpress/issues/209))
|
||||
- Added missing properties in order to prevent "Dynamic properties are deprecated" error under PHP 8.2 ([#115](https://github.com/flatpressblog/flatpress/issues/115))
|
||||
- Admin maintenance panel: Check file access rights after reset
|
||||
|
||||
## Security
|
||||
- Possible XSS prevented: Session cookie missed the "secure" and "httponly" flags
|
||||
|
@ -24,7 +24,7 @@ Since 2018, FlatPress is taken care of by [Arvid Zimmermann](https://github.com/
|
||||
- 🇫🇷 French: [Marc Thibeault](https://github.com/MarcThibeault) and Dimitri Soufflet, reworked by Gee
|
||||
- 🇩🇪 German: [Matthias Mauch (laborix)](http://www.aadmm.org/), reworked by Detlef
|
||||
- 🇬🇷 Greek: An unknown, since deleted GitHub user :(
|
||||
- 🇮🇹 Italian: Giacomo Margarito
|
||||
- 🇮🇹 Italian: [Giacomo Margarito](https://github.com/eagleman)
|
||||
- 🇯🇵 Japanese: [NORTH HILL WORK STUDIO](https://nhws.localinfo.jp/)
|
||||
- 🇷🇺 Russian: [Mark](https://github.com/cosmopolityan)
|
||||
- 🇪🇸 Spanish: karelv
|
||||
|
@ -159,7 +159,17 @@ class admin_maintain_default extends AdminPanelAction {
|
||||
case 'restorechmods':
|
||||
{
|
||||
$this->smarty->assign('files', fs_chmod_recursive());
|
||||
$this->smarty->assign('success', 1);
|
||||
|
||||
// Test whether writing is possible in the fp-content directory
|
||||
$test_file = @fopen(CONTENT_DIR . 'chmod-test-file', "a+");
|
||||
if ($test_file) {
|
||||
$this->smarty->assign('success', 1);
|
||||
} else {
|
||||
$this->smarty->assign('success', -1);
|
||||
}
|
||||
@fclose($test_file);
|
||||
@unlink(CONTENT_DIR . 'chmod-test-file');
|
||||
|
||||
return PANEL_NOREDIRECT;
|
||||
}
|
||||
case 'purgetplcache':
|
||||
|
@ -8,13 +8,10 @@ $fp_plugins = array(
|
||||
'lightbox2', // fancy usable img overlay effect, needs jquery
|
||||
'thumb', // creates thumbnails adding scale=NN% to [img] tags :)
|
||||
'bbcode', // bbcode-style formatting; if you disable this
|
||||
// you'll loose some features, but you will be able to use xhtml
|
||||
// as a default
|
||||
// 'syntaxhighlighter',//fancy js to color code
|
||||
// you'll loose some features, but you will be able to use html
|
||||
// as a default
|
||||
'accessibleantispam',
|
||||
'qspam', // quick spam filter
|
||||
// 'akismet', // powerful antispam; requires you to have a wordpress api key
|
||||
// open the plugin file to set your key
|
||||
'adminarea',
|
||||
'archives',
|
||||
// 'calendar', //time consuming, not really recommended :p
|
||||
@ -27,8 +24,11 @@ $fp_plugins = array(
|
||||
'blockparser',
|
||||
'readmore',
|
||||
'favicon',
|
||||
'commentcenter',
|
||||
'commentcenter', // including Akismet interface
|
||||
'mediamanager',
|
||||
'datechanger', // Lets you change the publish date for (new) entries.
|
||||
'feed', // Activates the RSS and Atom feed widget
|
||||
'gallerycaptions',
|
||||
'photoswipe'
|
||||
);
|
||||
?>
|
||||
|
@ -1,45 +1,36 @@
|
||||
<?php
|
||||
$fp_widgets = array (
|
||||
|
||||
$fp_widgets = array (
|
||||
|
||||
// to disable put // or # before the plugin name
|
||||
// remove it to enable :)
|
||||
|
||||
|
||||
'top' =>
|
||||
array (
|
||||
// (no widgets)
|
||||
),
|
||||
// to disable put // or # before the plugin name
|
||||
// remove it to enable :)
|
||||
|
||||
// Left side widgets. Put here blocks which will appear
|
||||
// on the left side
|
||||
// (Theme dependant)
|
||||
'top' => array (
|
||||
// (no widgets)
|
||||
),
|
||||
|
||||
'left' =>
|
||||
array (
|
||||
// (no widgets)
|
||||
),
|
||||
// Left side widgets. Put here blocks which will appear
|
||||
// on the left side
|
||||
// (Theme dependant)
|
||||
|
||||
'left' => array (
|
||||
// (no widgets)
|
||||
),
|
||||
|
||||
// Right side widgets
|
||||
'right' =>
|
||||
array (
|
||||
'adminarea',
|
||||
'blockparser:menu',
|
||||
'categories',
|
||||
'archives',
|
||||
//'calendar', // quite time consuming, not really recommended
|
||||
'lastentries',
|
||||
// 'lastcomments',
|
||||
'searchbox',
|
||||
),
|
||||
|
||||
'bottom' =>
|
||||
array (
|
||||
// (no widgets)
|
||||
),
|
||||
// Right side widgets
|
||||
'right' => array (
|
||||
'adminarea',
|
||||
'blockparser:menu',
|
||||
'categories',
|
||||
'archives',
|
||||
//'calendar', // quite time consuming, not really recommended
|
||||
'lastentries',
|
||||
// 'lastcomments',
|
||||
'searchbox',
|
||||
'feed'
|
||||
),
|
||||
|
||||
|
||||
'bottom' => array (
|
||||
// (no widgets)
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
|
@ -11,12 +11,13 @@ $lang ['admin'] ['maintain'] ['default'] = array(
|
||||
'opt4' => 'Ukázat informace o PHP',
|
||||
'opt5' => 'Zjistit aktualizace',
|
||||
|
||||
'chmod_info' => 'Následující oprávnění <strong>nemůžou být</strong> resetované na 0776; pravděpodobně vlastník souborů není stejná osoba jako vlastník webu. ' . //
|
||||
'chmod_info' => 'Pokud se oprávnění souboru <strong>nepodařilo</strong> obnovit na ' . decoct(FILE_PERMISSIONS) . ', vlastník souboru pravděpodobně není stejný jako vlastník webového serveru.<br>' . //
|
||||
'Případně můžete ignorovat toto oznámení.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['default'] ['msgs'] = array(
|
||||
1 => 'Operace kompletní'
|
||||
1 => 'Operace kompletní',
|
||||
-1 => 'Operace se nezdařila'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['updates'] = array(
|
||||
|
@ -20,7 +20,10 @@ $lang ['main'] = array(
|
||||
|
||||
'nocomments' => 'Přidej komentář',
|
||||
'comment' => '1 komentář',
|
||||
'comments' => 'komentáře'
|
||||
'comments' => 'komentáře',
|
||||
|
||||
'rss' => 'Přihlásit se k odběru RSS feed',
|
||||
'atom' => 'Přihlásit se k odběru Atom feed'
|
||||
);
|
||||
|
||||
$lang ['search'] = array(
|
||||
|
@ -11,12 +11,13 @@ $lang ['admin'] ['maintain'] ['default'] = array(
|
||||
'opt4' => 'Vis PHP-information om webserveren',
|
||||
'opt5' => 'Tjek for nye versioner',
|
||||
|
||||
'chmod_info' => 'Filadgangsrettighederne <strong>kunne ikke være nulstilles til standardværdierne på 0776.' . //
|
||||
'chmod_info' => 'Hvis filrettighederne <strong>ikke</strong> kunne nulstilles til ' . decoct(FILE_PERMISSIONS) . ', er ejeren af filen sandsynligvis ikke den samme som ejeren af webserveren.<br>' . //
|
||||
'Normalt kan du ignorere dette tip.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['default'] ['msgs'] = array(
|
||||
1 => 'Handling udført.'
|
||||
1 => 'Handling udført.',
|
||||
-1 => 'Handling mislukt.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['updates'] = array(
|
||||
|
@ -20,7 +20,10 @@ $lang ['main'] = array(
|
||||
|
||||
'nocomments' => 'Tilføj kommentar',
|
||||
'comment' => '1 Kommentar',
|
||||
'comments' => 'Kommentarer'
|
||||
'comments' => 'Kommentarer',
|
||||
|
||||
'rss' => 'Abonner på RSS-feed',
|
||||
'atom' => 'Abonner på Atom-feed'
|
||||
);
|
||||
|
||||
$lang ['search'] = array(
|
||||
|
@ -11,12 +11,13 @@ $lang ['admin'] ['maintain'] ['default'] = array(
|
||||
'opt4' => 'Zeige PHP-Informationen des Webservers',
|
||||
'opt5' => 'Prüfe auf neue Versionen',
|
||||
|
||||
'chmod_info' => 'Die Dateizugriffsrechte <strong>konnten nicht</strong> auf die Default Werte von 0776 zurückgesetzt werden. ' . //
|
||||
'chmod_info' => 'Wenn die Dateiberechtigungen <strong>nicht</strong> auf ' . decoct(FILE_PERMISSIONS) . ' zurückgesetzt werden konnten, ist wahrscheinlich der Eigentümer der Datei nicht derselbe wie der des Webservers.<br>' . //
|
||||
'Normalerweise kann man diesen Hinweis ignorieren.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['default'] ['msgs'] = array(
|
||||
1 => 'Aktion ausgeführt.'
|
||||
1 => 'Aktion ausgeführt.',
|
||||
-1 => 'Aktion fehlgeschlagen.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['updates'] = array(
|
||||
|
@ -20,7 +20,10 @@ $lang ['main'] = array(
|
||||
|
||||
'nocomments' => 'Kommentar hinzufügen',
|
||||
'comment' => '1 Kommentar',
|
||||
'comments' => 'Kommentare'
|
||||
'comments' => 'Kommentare',
|
||||
|
||||
'rss' => 'RSS-Feed abonnieren',
|
||||
'atom' => 'Atom-Feed abonnieren'
|
||||
);
|
||||
|
||||
$lang ['search'] = array(
|
||||
|
@ -11,12 +11,13 @@ $lang ['admin'] ['maintain'] ['default'] = array(
|
||||
'opt4' => 'Εμφάνιση πληροφοριών σχετικά με την PHP',
|
||||
'opt5' => 'Έλεγχος για αναβαθμίσεις',
|
||||
|
||||
'chmod_info' => 'Τα ακόλουθα δικαιώματα αρχείων <strong>δεν μπόρεσαν</strong> να επανέλθουν σε 0776; πιθανότατα ο ιδιοκτήτης των αρχείων δεν είναι ο ίδιος με τον ιδιοκτήτη του διακομιστή. ' . //
|
||||
'chmod_info' => 'Αν τα δικαιώματα του αρχείου <strong>δεν μπόρεσαν</strong> να επανέλθουν σε ' . decoct(FILE_PERMISSIONS) . ', ο ιδιοκτήτης του αρχείου δεν είναι πιθανότατα ο ίδιος με τον ιδιοκτήτη του διακομιστή ιστού.<br>' . //
|
||||
'Συνήθως αυτή η ειδοποίηση μπορεί να αγνοηθεί.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['default'] ['msgs'] = array(
|
||||
1 => 'Η διαδικασία ολοκληρώθηκε'
|
||||
1 => 'Η διαδικασία ολοκληρώθηκε',
|
||||
-1 => 'Η διαδικασία απέτυχε'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['updates'] = array(
|
||||
|
@ -20,7 +20,10 @@ $lang ['main'] = array(
|
||||
|
||||
'nocomments' => 'Προσθήκη σχολίου',
|
||||
'comment' => '1 σχόλιο',
|
||||
'comments' => 'σχόλια'
|
||||
'comments' => 'σχόλια',
|
||||
|
||||
'rss' => 'Εγγραφείτε στο RSS Feed',
|
||||
'atom' => 'Εγγραφείτε στο Atom Feed'
|
||||
);
|
||||
|
||||
$lang ['search'] = array(
|
||||
|
@ -11,12 +11,13 @@ $lang ['admin'] ['maintain'] ['default'] = array(
|
||||
'opt4' => 'Show info about PHP',
|
||||
'opt5' => 'Check for updates',
|
||||
|
||||
'chmod_info' => 'The following file permissions <strong>could not</strong> be reset to 0776; probably file owner is not the same as the webserver\'s. ' . //
|
||||
'Usually you can ignore this notice.'
|
||||
'chmod_info' => 'If the file permissions <strong>could not</strong> be reset to ' . decoct(FILE_PERMISSIONS) . ', the owner of the file is probably not the same as the owner of the web server.<br>' . //
|
||||
'Normalement, tu peux ignorer cette remarque.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['default'] ['msgs'] = array(
|
||||
1 => 'Operation completed'
|
||||
1 => 'Operation completed',
|
||||
-1 => 'Operation failed'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['updates'] = array(
|
||||
|
@ -20,7 +20,10 @@ $lang ['main'] = array(
|
||||
|
||||
'nocomments' => 'Add a comment',
|
||||
'comment' => '1 comment',
|
||||
'comments' => 'comments'
|
||||
'comments' => 'comments',
|
||||
|
||||
'rss' => 'Subscribe RSS feed',
|
||||
'atom' => 'Subscribe Atom feed'
|
||||
);
|
||||
|
||||
$lang ['search'] = array(
|
||||
|
@ -11,12 +11,13 @@ $lang ['admin'] ['maintain'] ['default'] = array(
|
||||
'opt4' => 'Mostrar información sobre PHP',
|
||||
'opt5' => 'Buscar actualizaciones',
|
||||
|
||||
'chmod_info' => 'Los siguientes permisos de archivo <strong>no pudieron</strong> ser reiniciados a 0776; probablemente el propietario del archivo no sea el mismo que el del servidor web. ' . //
|
||||
'chmod_info' => 'Si los permisos del archivo <strong>no se pudieron</strong> restablecer a ' . decoct(FILE_PERMISSIONS) . ', es probable que el propietario del archivo no sea el mismo que el del servidor web.<br>' . //
|
||||
'Por lo general, puede ignorar este aviso.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['default'] ['msgs'] = array(
|
||||
1 => 'Operación completada'
|
||||
1 => 'Operación completada',
|
||||
-1 => 'Operación fallida'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['updates'] = array(
|
||||
|
@ -20,7 +20,10 @@ $lang ['main'] = array(
|
||||
|
||||
'nocomments' => 'Agregar un Comentario',
|
||||
'comment' => '1 comentario',
|
||||
'comments' => 'comentarios'
|
||||
'comments' => 'comentarios',
|
||||
|
||||
'rss' => 'Suscribirse a RSS Feed',
|
||||
'atom' => 'Suscribirse a Atom Feed'
|
||||
);
|
||||
|
||||
$lang ['search'] = array(
|
||||
|
@ -11,12 +11,13 @@ $lang ['admin'] ['maintain'] ['default'] = array(
|
||||
'opt4' => 'Afficher info.php',
|
||||
'opt5' => 'Vérifier les mises à jour',
|
||||
|
||||
'chmod_info' => 'Les permissions de fichiers (chmod) <strong>ne sont peut-être pas</strong> à 0776; propriétaire du fichier peut-ê' . //
|
||||
'chmod_info' => 'Si les permissions du fichier <strong>n\'ont pas pu être remises à ' . decoct(FILE_PERMISSIONS) . '</strong>, il est probable que le propriétaire du fichier ne soit pas le même que celui du serveur web.<br>' . //
|
||||
'tre différent du serveur web.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['default'] ['msgs'] = array(
|
||||
1 => 'Opération effectuée'
|
||||
1 => 'Opération effectuée',
|
||||
-1 => 'Échec de l\'opération'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['updates'] = array(
|
||||
|
@ -20,7 +20,10 @@ $lang ['main'] = array(
|
||||
|
||||
'nocomments' => 'Ajouter un commentaire',
|
||||
'comment' => '1 commentaire',
|
||||
'comments' => 'commentaires'
|
||||
'comments' => 'commentaires',
|
||||
|
||||
'rss' => 'S\'abonner au flux RSS',
|
||||
'atom' => 'S\'abonner au flux Atom'
|
||||
);
|
||||
|
||||
$lang ['search'] = array(
|
||||
|
@ -11,12 +11,13 @@ $lang ['admin'] ['maintain'] ['default'] = array(
|
||||
'opt4' => 'Visualizza informazioni su PHP',
|
||||
'opt5' => 'Controllo aggiornamenti',
|
||||
|
||||
'chmod_info' => 'I seguenti permessi dei file <strong>non possono</strong> essere ripristinati a 0776; probabilmente il proprietario non è lo stesso del server web. ' . //
|
||||
'chmod_info' => 'Se non è stato possibile reimpostare i permessi del file a ' . decoct(FILE_PERMISSIONS) . ', probabilmente il proprietario del file non è lo stesso del server web.<br>' . //
|
||||
'Di solito puoi ignorare questo avviso.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['default'] ['msgs'] = array(
|
||||
1 => 'Operazione completata con successo'
|
||||
1 => 'Operazione completata con successo',
|
||||
-1 => 'Operazione non completata con successo'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['updates'] = array(
|
||||
|
@ -20,7 +20,10 @@ $lang ['main'] = array(
|
||||
|
||||
'nocomments' => 'Aggiungi un commento',
|
||||
'comment' => '1 commento',
|
||||
'comments' => 'commenti'
|
||||
'comments' => 'commenti',
|
||||
|
||||
'rss' => 'Iscriviti al feed RSS',
|
||||
'atom' => 'Iscriviti al feed Atom'
|
||||
);
|
||||
|
||||
$lang ['search'] = array(
|
||||
|
@ -11,12 +11,13 @@ $lang ['admin'] ['maintain'] ['default'] = array(
|
||||
'opt4' => 'PHP情報を表示します',
|
||||
'opt5' => 'アップデートをチェックします',
|
||||
|
||||
'chmod_info' => '次のファイルのパーミッションを 0776 にリセット<strong>できません</strong>; おそらく、ファイルの所有権者とウェブサーバの権限が異なるのでしょう。' . //
|
||||
'chmod_info' => 'ファイルのパーミッションを' . decoct(FILE_PERMISSIONS) . 'にリセットできなかった場合、ファイルの所有者がウェブサーバーの所有者と同じでない可能性があります。<br>' . //
|
||||
'でも通常、この通知を無視することができます。'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['default'] ['msgs'] = array(
|
||||
1 => '作業を完了しました。'
|
||||
1 => '作業を完了しました。',
|
||||
-1 => '操作が正常に完了しなかった。'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['updates'] = array(
|
||||
|
@ -20,7 +20,10 @@ $lang['main'] = array(
|
||||
|
||||
'nocomments' => 'コメントを追加する',
|
||||
'comment' => '1コメントあります',
|
||||
'comments' => 'コメントあります'
|
||||
'comments' => 'コメントあります',
|
||||
|
||||
'rss' => 'RSSフィードを購読する',
|
||||
'atom' => 'Atomフィードを購読する'
|
||||
);
|
||||
|
||||
$lang['search'] = array(
|
||||
|
@ -11,12 +11,13 @@ $lang ['admin'] ['maintain'] ['default'] = array(
|
||||
'opt4' => 'Toon info over PHP',
|
||||
'opt5' => 'Controleren op updates',
|
||||
|
||||
'chmod_info' => 'De volgende bestandsmachtigingen <strong>kan niet</strong> worden teruggezet naar 0776; waarschijnlijk is de bestandseigenaar niet hetzelfde als de webserver\'s. ' . //
|
||||
'chmod_info' => 'Als de bestandsrechten niet konden worden teruggezet naar ' . decoct(FILE_PERMISSIONS) . ', is de eigenaar van het bestand waarschijnlijk niet dezelfde als de eigenaar van de webserver.<br>' . //
|
||||
'Meestal kunt u deze kennisgeving negeren.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['default'] ['msgs'] = array(
|
||||
1 => 'Operation completed'
|
||||
1 => 'Operation completed',
|
||||
-1 => 'Operatie mislukt'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['updates'] = array(
|
||||
|
@ -20,7 +20,10 @@ $lang ['main'] = array(
|
||||
|
||||
'nocomments' => 'Voeg een commentaar toe',
|
||||
'comment' => '1 commentaar',
|
||||
'comments' => 'commentaren'
|
||||
'comments' => 'commentaren',
|
||||
|
||||
'rss' => 'Abonneren op RSS-feed',
|
||||
'atom' => 'Abonneren op Atom-feed'
|
||||
);
|
||||
|
||||
$lang ['search'] = array(
|
||||
|
@ -11,12 +11,13 @@ $lang ['admin'] ['maintain'] ['default'] = array(
|
||||
'opt4' => 'Mostre as informações sobre o PHP',
|
||||
'opt5' => 'Procure atualizações',
|
||||
|
||||
'chmod_info' => 'As seguintes permissões de arquivo <strong>não puderam</strong> ser redefinidas para 0776; provavelmente o proprietário do arquivo não é o mesmo do servidor da web. ' . //
|
||||
'chmod_info' => 'Se não for possível redefinir as permissões do arquivo para ' . decoct(FILE_PERMISSIONS) . ', o proprietário do arquivo provavelmente não é o mesmo que o proprietário do servidor Web.<br>' . //
|
||||
'Geralmente você pode ignorar este aviso.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['default'] ['msgs'] = array(
|
||||
1 => 'Operação concluída'
|
||||
1 => 'Operação concluída',
|
||||
-1 => 'Falha na operação'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['updates'] = array(
|
||||
|
@ -20,7 +20,10 @@ $lang ['main'] = array(
|
||||
|
||||
'nocomments' => 'Adicione comentário',
|
||||
'comment' => '1 comentário',
|
||||
'comments' => 'comentários'
|
||||
'comments' => 'comentários',
|
||||
|
||||
'rss' => 'Assine o RSS Feed',
|
||||
'atom' => 'Assine o Atom Feed'
|
||||
);
|
||||
|
||||
$lang ['search'] = array(
|
||||
|
@ -11,12 +11,13 @@ $lang ['admin'] ['maintain'] ['default'] = array(
|
||||
'opt4' => 'Показать информацию о PHP',
|
||||
'opt5' => 'Проверить наличие обновлений',
|
||||
|
||||
'chmod_info' => '<strong>Не удалось<strong> сбросить следующие права доступа к файлам на 0776; вероятно, владелец файла не совпадает с владельцем веб-сервера. ' . //
|
||||
'chmod_info' => 'Если права доступа к файлу не удалось сбросить на ' . decoct(FILE_PERMISSIONS) . ', владелец файла, вероятно, не совпадает с владельцем веб-сервера.<br>' . //
|
||||
'Обычно это уведомление можно проигнорировать.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['default'] ['msgs'] = array(
|
||||
1 => 'Операция выполнена'
|
||||
1 => 'Операция выполнена',
|
||||
-1 => 'Операция не удалась'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['updates'] = array(
|
||||
|
@ -20,7 +20,10 @@ $lang ['main'] = array(
|
||||
|
||||
'nocomments' => 'Добавить комментарий',
|
||||
'comment' => '1 комментарий',
|
||||
'comments' => 'комментарии'
|
||||
'comments' => 'комментарии',
|
||||
|
||||
'rss' => 'Подписаться на RSS-канал',
|
||||
'atom' => 'Подписаться на Atom-канал'
|
||||
);
|
||||
|
||||
$lang ['search'] = array(
|
||||
|
@ -11,12 +11,13 @@ $lang ['admin'] ['maintain'] ['default'] = array(
|
||||
'opt4' => 'Prikaži informacije o PHP',
|
||||
'opt5' => 'Preveri posodobitve',
|
||||
|
||||
'chmod_info' => 'Naslednja dovoljenja za datoteke <strong>ni mogoče</strong> povrniti na 0776; verjetno lastnik datoteke ni isti kot spletne strežnik. ' . //
|
||||
'chmod_info' => 'Če pravic datoteke ni bilo mogoče ponastaviti na ' . decoct(FILE_PERMISSIONS) . ', lastnik datoteke verjetno ni isti kot lastnik spletnega strežnika.<br>' . //
|
||||
'Običajno lahko to obvestilo prezrete.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['default'] ['msgs'] = array(
|
||||
1 => 'Operacija je končana'
|
||||
1 => 'Operacija je končana',
|
||||
-1 => 'Operacija ni uspela'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['maintain'] ['updates'] = array(
|
||||
|
@ -20,7 +20,10 @@ $lang ['main'] = array(
|
||||
|
||||
'nocomments' => 'Dodajte komentar',
|
||||
'comment' => '1 komentar',
|
||||
'comments' => 'komentarji'
|
||||
'comments' => 'komentarji',
|
||||
|
||||
'rss' => 'Naročite se na vir RSS',
|
||||
'atom' => 'Naročite se na vir Atom'
|
||||
);
|
||||
|
||||
$lang ['search'] = array(
|
||||
|
@ -129,6 +129,12 @@ h1 { /* Title of the blog */
|
||||
text-decoration: none
|
||||
}
|
||||
|
||||
#head a img.feed {
|
||||
float: right;
|
||||
margin: 0px !IMPORTANT;
|
||||
height: 12px
|
||||
}
|
||||
|
||||
h2 { /* Titles of the entry */
|
||||
font-size: 1.4em;
|
||||
color: #333333;
|
||||
@ -410,3 +416,6 @@ form#search ul li:before { content: none }
|
||||
|
||||
/* Calendar-widget */
|
||||
#widget_calendar table.calendar { font-size: 90% }
|
||||
|
||||
/* Feed-widget */
|
||||
.feed-widget { height: 12px !IMPORTANT; }
|
||||
|
@ -180,6 +180,7 @@ h4 { font-size: 1.2em }
|
||||
margin: .5em 0 0 0
|
||||
}
|
||||
|
||||
|
||||
/* ===== DIV CONTAINER "MAIN" ===== */
|
||||
#outer-container {
|
||||
position: relative;
|
||||
@ -239,6 +240,12 @@ h4 { font-size: 1.2em }
|
||||
width: 100%;
|
||||
height: 180px !IMPORTANT
|
||||
}
|
||||
|
||||
#head a img.feed {
|
||||
float: right;
|
||||
margin: 0px;
|
||||
height: 14px
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) { /* Smartphone landscape and Tablet */
|
||||
@ -266,6 +273,8 @@ h4 { font-size: 1.2em }
|
||||
.bbcode_video.right { float: right !IMPORTANT; margin: 0.5em 0.5em 1em 1em }
|
||||
|
||||
.bbcode_video.left { float: left !IMPORTANT; margin: 0.5em 1em 1em 0.5em }
|
||||
|
||||
#head a img.feed { height: 16px }
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) { /* Laptop and small Desktop-PC */
|
||||
@ -352,6 +361,12 @@ h4 { font-size: 1.2em }
|
||||
}
|
||||
|
||||
.bbcode_video.nofloat { text-align: center }
|
||||
|
||||
#head a img.feed {
|
||||
float: right;
|
||||
margin: 0px;
|
||||
height: 10px
|
||||
}
|
||||
}
|
||||
|
||||
#main p { line-height: 1.4em; margin-top: 1em }
|
||||
|
@ -10,7 +10,7 @@ Author: NoWhereMan & drudo
|
||||
Version: 0.2
|
||||
Module: style.css
|
||||
|
||||
last change: 2023-11-01
|
||||
last change: 2024-02-05
|
||||
|
||||
*/
|
||||
|
||||
@ -33,6 +33,13 @@ body { margin: 80px 0 10px 0 }
|
||||
text-align: left
|
||||
}
|
||||
|
||||
#head a img.feed {
|
||||
float: right;
|
||||
height: 16px;
|
||||
position: relative;
|
||||
top: -6.3em
|
||||
}
|
||||
|
||||
/* 800er Bildschirme zum Beispiel iPad Hochformat */
|
||||
@media (max-width: 768px) {
|
||||
|
||||
@ -95,6 +102,8 @@ body { margin: 80px 0 10px 0 }
|
||||
width: 100%
|
||||
}
|
||||
|
||||
#head a img.feed { display: none }
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
padding: 0.5em 0 0 0.2em
|
||||
|
@ -1,391 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Akismet anti-comment spam service
|
||||
*
|
||||
* The class in this package allows use of the {@link http://akismet.com Akismet} anti-comment spam service in any PHP5 application.
|
||||
*
|
||||
* This service performs a number of checks on submitted data and returns whether or not the data is likely to be spam.
|
||||
*
|
||||
* Please note that in order to use this class, you must have a vaild {@link http://wordpress.com/api-keys/ WordPress API key}. They are free for non/small-profit types and getting one will only take a couple of minutes.
|
||||
*
|
||||
* For commercial use, please {@link http://akismet.com/commercial/ visit the Akismet commercial licensing page}.
|
||||
*
|
||||
* Please be aware that this class is PHP5 only. Attempts to run it under PHP4 will most likely fail.
|
||||
*
|
||||
* See the Akismet class documentation page linked to below for usage information.
|
||||
*
|
||||
* @package Akismet
|
||||
* @author Alex Potsides, {@link http://www.achingbrain.net http://www.achingbrain.net}, Bret Kuhns {@link http://www.miphp.net}
|
||||
* @version 0.1
|
||||
* @copyright Alex Potsides, {@link http://www.achingbrain.net http://www.achingbrain.net}
|
||||
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License
|
||||
*/
|
||||
|
||||
/**
|
||||
* The Akismet PHP4 Class
|
||||
*
|
||||
* This class takes the functionality from the Akismet WordPress plugin written by {@link http://photomatt.net/ Matt Mullenweg} and allows it to be integrated into any PHP5 application or website.
|
||||
*
|
||||
* The original plugin is {@link http://akismet.com/download/ available on the Akismet website}.
|
||||
*
|
||||
* <b>Usage:</b>
|
||||
* <code>
|
||||
* $akismet = new Akismet('http://www.example.com/blog/', 'aoeu1aoue');
|
||||
* $akismet->setCommentAuthor($name);
|
||||
* $akismet->setCommentAuthorEmail($email);
|
||||
* $akismet->setCommentAuthorURL($url);
|
||||
* $akismet->setCommentContent($comment);
|
||||
* $akismet->setPermalink('http://www.example.com/blog/alex/someurl/');
|
||||
* if($akismet->isCommentSpam())
|
||||
* // store the comment but mark it as spam (in case of a mis-diagnosis)
|
||||
* else
|
||||
* // store the comment normally
|
||||
* </code>
|
||||
*
|
||||
* @package akismet
|
||||
* @name Akismet
|
||||
* @version 0.2
|
||||
* @author Alex Potsides (converted to PHP4 by Bret Kuhns)
|
||||
* @link http://www.achingbrain.net/
|
||||
*/
|
||||
class Akismet {
|
||||
|
||||
var $version = '0.2';
|
||||
|
||||
var $wordPressAPIKey;
|
||||
|
||||
var $blogURL;
|
||||
|
||||
var $comment;
|
||||
|
||||
var $apiPort;
|
||||
|
||||
var $akismetServer;
|
||||
|
||||
var $akismetVersion;
|
||||
|
||||
// This prevents some potentially sensitive information from being sent accross the wire.
|
||||
var $ignore = array(
|
||||
'HTTP_COOKIE',
|
||||
'HTTP_X_FORWARDED_FOR',
|
||||
'HTTP_X_FORWARDED_HOST',
|
||||
'HTTP_MAX_FORWARDS',
|
||||
'HTTP_X_FORWARDED_SERVER',
|
||||
'REDIRECT_STATUS',
|
||||
'SERVER_PORT',
|
||||
'PATH',
|
||||
'DOCUMENT_ROOT',
|
||||
'SERVER_ADMIN',
|
||||
'QUERY_STRING',
|
||||
'PHP_SELF'
|
||||
);
|
||||
|
||||
/**
|
||||
*
|
||||
* @throws Exception An exception is thrown if your API key is invalid.
|
||||
* @param
|
||||
* string Your WordPress API key.
|
||||
* @param string $blogURL
|
||||
* The URL of your blog.
|
||||
*/
|
||||
function __construct($blogURL, $wordPressAPIKey) {
|
||||
$this->blogURL = $blogURL;
|
||||
$this->wordPressAPIKey = $wordPressAPIKey;
|
||||
|
||||
// Set some default values
|
||||
$this->apiPort = 80;
|
||||
$this->akismetServer = 'rest.akismet.com';
|
||||
$this->akismetVersion = '1.1';
|
||||
|
||||
// Start to populate the comment data
|
||||
$this->comment ['blog'] = $blogURL;
|
||||
$this->comment ['user_agent'] = $_SERVER ['HTTP_USER_AGENT'];
|
||||
$this->comment ['referrer'] = $_SERVER ['HTTP_REFERER'];
|
||||
|
||||
// This is necessary if the server PHP5 is running on has been set up to run PHP4 and
|
||||
// PHP5 concurently and is actually running through a separate proxy al a these instructions:
|
||||
// http://www.schlitt.info/applications/blog/archives/83_How_to_run_PHP4_and_PHP_5_parallel.html
|
||||
// and http://wiki.coggeshall.org/37.html
|
||||
// Otherwise the user_ip appears as the IP address of the PHP4 server passing the requests to the
|
||||
// PHP5 one...
|
||||
$this->comment ['user_ip'] = $_SERVER ['REMOTE_ADDR'] != getenv('SERVER_ADDR') ? $_SERVER ['REMOTE_ADDR'] : getenv('HTTP_X_FORWARDED_FOR');
|
||||
|
||||
// Check to see if the key is valid
|
||||
$response = $this->http_post('key=' . $this->wordPressAPIKey . '&blog=' . $this->blogURL, $this->akismetServer, '/' . $this->akismetVersion . '/verify-key');
|
||||
|
||||
if ($response [1] != 'valid') {
|
||||
// Whoops, no it's not. Throw an exception as we can't proceed without a valid API key.
|
||||
trigger_error('Invalid API key. Please obtain one from http://wordpress.com/api-keys/', E_USER_ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
function http_post($request, $host, $path) {
|
||||
$http_request = "POST " . $path . " HTTP/1.0\r\n" . //
|
||||
"Host: " . $host . "\r\n" . //
|
||||
"Content-Type: application/x-www-form-urlencoded; charset=utf-8\r\n" . //
|
||||
"Content-Length: " . strlen($request) . "\r\n" . //
|
||||
"User-Agent: Akismet PHP5 Class " . $this->version . " | Akismet/1.11\r\n" . //
|
||||
"\r\n" . //
|
||||
$request;
|
||||
|
||||
$socketWriteRead = new SocketWriteRead($host, $this->apiPort, $http_request);
|
||||
$socketWriteRead->send();
|
||||
|
||||
return explode("\r\n\r\n", $socketWriteRead->getResponse(), 2);
|
||||
}
|
||||
|
||||
// Formats the data for transmission echo $sql;
|
||||
function getQueryString() {
|
||||
foreach ($_SERVER as $key => $value) {
|
||||
if (!in_array($key, $this->ignore)) {
|
||||
if ($key == 'REMOTE_ADDR') {
|
||||
$this->comment [$key] = $this->comment ['user_ip'];
|
||||
} else {
|
||||
$this->comment [$key] = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$query_string = '';
|
||||
|
||||
foreach ($this->comment as $key => $data) {
|
||||
|
||||
@$query_string .= $key . '=' . urlencode(stripslashes($data)) . '&';
|
||||
}
|
||||
|
||||
return $query_string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests for spam.
|
||||
*
|
||||
* Uses the web service provided by {@link http://www.akismet.com Akismet} to see whether or not the submitted comment is spam. Returns a boolean value.
|
||||
*
|
||||
* @return bool True if the comment is spam, false if not
|
||||
*/
|
||||
function isSpam() {
|
||||
$response = $this->http_post($this->getQueryString(), $this->wordPressAPIKey . '.rest.akismet.com', '/' . $this->akismetVersion . '/comment-check');
|
||||
|
||||
return ($response [1] == 'true');
|
||||
}
|
||||
|
||||
/**
|
||||
* Submit spam that is incorrectly tagged as ham.
|
||||
*
|
||||
* Using this function will make you a good citizen as it helps Akismet to learn from its mistakes. This will improve the service for everybody.
|
||||
*/
|
||||
function submitSpam() {
|
||||
$this->http_post($this->getQueryString(), $this->wordPressAPIKey . '.' . $this->akismetServer, '/' . $this->akismetVersion . '/submit-spam');
|
||||
}
|
||||
|
||||
/**
|
||||
* Submit ham that is incorrectly tagged as spam.
|
||||
*
|
||||
* Using this function will make you a good citizen as it helps Akismet to learn from its mistakes. This will improve the service for everybody.
|
||||
*/
|
||||
function submitHam() {
|
||||
$this->http_post($this->getQueryString(), $this->wordPressAPIKey . '.' . $this->akismetServer, '/' . $this->akismetVersion . '/submit-ham');
|
||||
}
|
||||
|
||||
/**
|
||||
* To override the user IP address when submitting spam/ham later on
|
||||
*
|
||||
* @param string $userip
|
||||
* An IP address. Optional.
|
||||
*/
|
||||
function setUserIP($userip) {
|
||||
$this->comment ['user_ip'] = $userip;
|
||||
}
|
||||
|
||||
/**
|
||||
* To override the referring page when submitting spam/ham later on
|
||||
*
|
||||
* @param string $referrer
|
||||
* The referring page. Optional.
|
||||
*/
|
||||
function setReferrer($referrer) {
|
||||
$this->comment ['referrer'] = $referrer;
|
||||
}
|
||||
|
||||
/**
|
||||
* A permanent URL referencing the blog post the comment was submitted to.
|
||||
*
|
||||
* @param string $permalink
|
||||
* The URL. Optional.
|
||||
*/
|
||||
function setPermalink($permalink) {
|
||||
$this->comment ['permalink'] = $permalink;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of comment being submitted.
|
||||
*
|
||||
* May be blank, comment, trackback, pingback, or a made up value like "registration" or "wiki".
|
||||
*/
|
||||
function setType($commentType) {
|
||||
$this->comment ['comment_type'] = $commentType;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name that the author submitted with the comment.
|
||||
*/
|
||||
function setAuthor($commentAuthor) {
|
||||
$this->comment ['comment_author'] = $commentAuthor;
|
||||
}
|
||||
|
||||
/**
|
||||
* The email address that the author submitted with the comment.
|
||||
*
|
||||
* The address is assumed to be valid.
|
||||
*/
|
||||
function setAuthorEmail($authorEmail) {
|
||||
$this->comment ['comment_author_email'] = $authorEmail;
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL that the author submitted with the comment.
|
||||
*/
|
||||
function setAuthorURL($authorURL) {
|
||||
$this->comment ['comment_author_url'] = $authorURL;
|
||||
}
|
||||
|
||||
/**
|
||||
* The comment's body text.
|
||||
*/
|
||||
function setContent($commentBody) {
|
||||
$this->comment ['comment_content'] = $commentBody;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defaults to 80
|
||||
*/
|
||||
function setAPIPort($apiPort) {
|
||||
$this->apiPort = $apiPort;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defaults to rest.akismet.com
|
||||
*/
|
||||
function setAkismetServer($akismetServer) {
|
||||
$this->akismetServer = $akismetServer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defaults to '1.1'
|
||||
*/
|
||||
function setAkismetVersion($akismetVersion) {
|
||||
$this->akismetVersion = $akismetVersion;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Utility class used by Akismet
|
||||
*
|
||||
* This class is used by Akismet to do the actual sending and receiving of data. It opens a connection to a remote host, sends some data and the reads the response and makes it available to the calling program.
|
||||
*
|
||||
* The code that makes up this class originates in the Akismet WordPress plugin, which is {@link http://akismet.com/download/ available on the Akismet website}.
|
||||
*
|
||||
* N.B. It is not necessary to call this class directly to use the Akismet class. This is included here mainly out of a sense of completeness.
|
||||
*
|
||||
* @package akismet
|
||||
* @name SocketWriteRead
|
||||
* @version 0.1
|
||||
* @author Alex Potsides
|
||||
* @link http://www.achingbrain.net/
|
||||
*/
|
||||
class SocketWriteRead {
|
||||
|
||||
var $host;
|
||||
|
||||
var $port;
|
||||
|
||||
var $request;
|
||||
|
||||
var $response;
|
||||
|
||||
var $responseLength;
|
||||
|
||||
var $errorNumber;
|
||||
|
||||
var $errorString;
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $host
|
||||
* The host to send/receive data.
|
||||
* @param int $port
|
||||
* The port on the remote host.
|
||||
* @param string $request
|
||||
* The data to send.
|
||||
* @param int $responseLength
|
||||
* The amount of data to read. Defaults to 1160 bytes.
|
||||
*/
|
||||
function __construct($host, $port, $request, $responseLength = 1160) {
|
||||
$this->host = $host;
|
||||
$this->port = $port;
|
||||
$this->request = $request;
|
||||
$this->responseLength = $responseLength;
|
||||
$this->errorNumber = 0;
|
||||
$this->errorString = '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends the data to the remote host.
|
||||
*
|
||||
* @throws An exception is thrown if a connection cannot be made to the remote host.
|
||||
*/
|
||||
function send() {
|
||||
$this->response = '';
|
||||
|
||||
$fs = fsockopen($this->host, $this->port, $this->errorNumber, $this->errorString, AKISMET_TIMEOUT);
|
||||
|
||||
if ($this->errorNumber != 0) {
|
||||
trigger_error('Error connecting to host: ' . $this->host . ' Error number: ' . $this->errorNumber . ' Error message: ' . $this->errorString, E_USER_ERROR);
|
||||
}
|
||||
|
||||
if ($fs !== false) {
|
||||
@fwrite($fs, $this->request);
|
||||
|
||||
while (!feof($fs)) {
|
||||
$this->response .= fgets($fs, $this->responseLength);
|
||||
}
|
||||
|
||||
fclose($fs);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the server response text
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function getResponse() {
|
||||
return $this->response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the error number
|
||||
*
|
||||
* If there was no error, 0 will be returned.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
function getErrorNumber() {
|
||||
return $this->errorNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the error string
|
||||
*
|
||||
* If there was no error, an empty string will be returned.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function getErrorString() {
|
||||
return $this->errorString;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
@ -1,24 +0,0 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['akismet'] ['errors'] = array (
|
||||
-1 => 'Kľíč API není nastavený. Otevřte plugin a nastavte klíč API. Zaregistrujte sa na <a href="https://akismet.com/signup/" target="_blank">akismet.com</a> a získejte nějaký.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['submenu'] ['akismet'] = 'Nastavení Akismet';
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] = array(
|
||||
'head' => 'Nastavení Akismet',
|
||||
'description '=> 'Většině uživatelům, <a href="https://akismet.com/" target="_blank">Akismet</a> výrazně znižuje ' . //
|
||||
'nebo úplně eliminuje spam v komentářích a trackbacky na stránkách. ' . //
|
||||
'Pokud ještě nemáte účet na akismet.com, založte si ho ' . //
|
||||
'<a href="https://akismet.com/signup/" target="_blank">akismet.com/signup<a>.',
|
||||
'apikey' => 'akismet.com API klíč',
|
||||
'whatis' => '(<a href="https://akismet.com/support/getting-started/api-key/" target="_blank">Co to je?</a>)',
|
||||
'submit' => 'Uložit klíč API'
|
||||
);
|
||||
|
||||
$lang['admin']['plugin']['akismet']['msgs'] = array(
|
||||
1 => 'Klíč API uložený',
|
||||
-1 => 'Klíč API je neplatný'
|
||||
);
|
||||
|
||||
?>
|
@ -1,23 +0,0 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['akismet'] ['errors'] = array (
|
||||
-1 => 'Ingen API-nøgle tilgængelig, indtast venligst denne for pluginet eller gå til <a href="https://akismet.com/signup/" target="_blank">akismet.com</a> for at anmode om en gyldig API-nøgle ved at registrere dig.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['submenu'] ['akismet'] = 'Akismet Konfiguration';
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] = array(
|
||||
'head' => 'Akismet Konfiguration',
|
||||
'description' => 'Med <a href="https://akismet.com/" target="_blank">Akismet</a> kan du reducere eller helt fjerne spam, ' . //
|
||||
'der når denne blog via kommentarer eller trackbacks. ' . //
|
||||
'Hvis du ikke har en Wordpress.com-konto endnu, kan du oprette en på ' . //
|
||||
'<a href="https://akismet.com/signup/" target="_blank">akismet.com/signup<a> for at anmode om en API-nøgle.',
|
||||
'apikey' => 'Akismet API-nøgle',
|
||||
'whatis' => '(<a href="https://akismet.com/support/getting-started/api-key/" target="_blank">Hvad er en API-nøgle?</a>)',
|
||||
'submit' => 'Gem API-nøgle'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] ['msgs'] = array(
|
||||
1 => 'API-nøglen er blevet gemt',
|
||||
-1 => 'API-nøglen er ikke gyldig'
|
||||
);
|
||||
?>
|
@ -1,23 +0,0 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['akismet'] ['errors'] = array (
|
||||
-1 => 'Kein API Key vorhanden, bitte diesen für das Plugin eintragen oder auf <a href="https://akismet.com/signup/" target="_blank">akismet.com</a> einen gültigen API Key durch Registrierung beantragen.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['submenu'] ['akismet'] = 'Akismet Konfiguration';
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] = array(
|
||||
'head' => 'Akismet Konfiguration',
|
||||
'description'=>'Mit <a href="https://akismet.com/" target="_blank">Akismet</a> kann man Spam reduzieren ' . //
|
||||
'oder komplett eliminieren der durch Kommentare oder Trackbacks dieses Blog erreicht. ' . //
|
||||
'Wenn bis jetzt noch kein Akismet Account existiert, so kann man auf ' . //
|
||||
'<a href="https://akismet.com/signup/" target="_blank">akismet.com/signup<a> einen anlegen um einen API key zu beantragen.',
|
||||
'apikey' => 'Akismet API Key',
|
||||
'whatis' => '(<a href="https://akismet.com/support/getting-started/api-key/" target="_blank">Was ist ein API Key?</a>)',
|
||||
'submit' => 'API key speichern'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] ['msgs'] = array(
|
||||
1 => 'Der API key wurde gespeichert',
|
||||
-1 => 'Der API key ist nicht gültig'
|
||||
);
|
||||
?>
|
@ -1,23 +0,0 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['akismet'] ['errors'] = array (
|
||||
-1 => 'Δεν έχει οριστεί κλειδί API. Ανοίξτε το πρόσθετο για να ρυθμίσετε το API κλειδί σας. Εγγραφείτε στο <a href="https://akismet.com/signup/" target="_blank">akismet.com</a> για να λάβετε ένα.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['submenu'] ['akismet'] = 'Ρύθμιση του Akismet';
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] = array(
|
||||
'head' => 'Ρύθμιση του Akismet',
|
||||
'description' => 'Για πολλούς ανθρώπους, το <a href="https://akismet.com/" target="_blank">Akismet</a> θα μειώσει αξιοσημείωτα ' . //
|
||||
'ή ακόμη και θα εξαλείψει πλήρως τα κακόβουλα αυτοματοποιημένα μηνύματα που δέχεται η ιστοσελίδα. ' . //
|
||||
'Εάν δεν έχετε ακόμη έναν λογαριασμό akismet.com, μπορείτε να δημιουργήσετε έναν στο ' . //
|
||||
'<a href="https://akismet.com/signup/" target="_blank">akismet.com/signup<a>.',
|
||||
'apikey' => 'Akismet κλειδί API',
|
||||
'whatis' => '(<a href="https://akismet.com/support/getting-started/api-key/" target="_blank">Τι είναι αυτό;</a>)',
|
||||
'submit' => 'Αποθήκευση κλειδιού API'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] ['msgs'] = array(
|
||||
1 => 'Το κλειδί API αποθηκεύτηκε',
|
||||
-1 => 'Το κλειδί API δεν είναι έγκυρο'
|
||||
);
|
||||
?>
|
@ -1,23 +0,0 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['akismet'] ['errors'] = array (
|
||||
-1 => 'API key not set. Open the plugin to set your API key. Register on <a href="https://akismet.com/signup/" target="_blank">akismet.com</a> to get one.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['submenu'] ['akismet'] = 'Akismet Config';
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] = array(
|
||||
'head' => 'Akismet Configuration',
|
||||
'description' => 'For many people, <a href="https://akismet.com/" target="_blank">Akismet</a> will greatly reduce ' . //
|
||||
'or even completely eliminate the comment and trackback spam you get on your site. ' . //
|
||||
'If you don\'t have a akismet.com account yet, you can get one at ' . //
|
||||
'<a href="https://akismet.com/signup/" target="_blank">akismet.com/signup<a>.',
|
||||
'apikey' => 'Akismet API Key',
|
||||
'whatis' => '(<a href="https://akismet.com/support/getting-started/api-key/" target="_blank">What is an API key?</a>)',
|
||||
'submit' => 'Save API key'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] ['msgs'] = array(
|
||||
1 => 'API key saved',
|
||||
-1 => 'API key is not valid'
|
||||
);
|
||||
?>
|
@ -1,23 +0,0 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['akismet'] ['errors'] = array (
|
||||
-1 => 'No se estableció la clave de API. Abra el Plugin para configurar su clave de API. Registrarse en <a href="https://akismet.com/signup/" target="_blank">akismet.com</a> para conseguir uno.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['submenu'] ['akismet'] = 'Configuración de Akismet';
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] = array(
|
||||
'head' => 'Configuración de Akismet',
|
||||
'description' => 'Para muchas personas, <a href="https://akismet.com/" target="_blank">Akismet</a> reducirá en gran medida ' . //
|
||||
'o incluso eliminar por completo el spam de comentarios y trackback que recibe en su sitio. ' . //
|
||||
'Si aún no tiene una cuenta de akismet.com, puede obtener una en ' . //
|
||||
'<a href="https://akismet.com/signup/" target="_blank">akismet.com/signup<a>.',
|
||||
'apikey' => 'Akismet API Key',
|
||||
'whatis' => '(<a href="https://akismet.com/support/getting-started/api-key/" target="_blank">¿Que es esto?</a>)',
|
||||
'submit' => 'Guardar clave de API'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] ['msgs'] = array(
|
||||
1 => 'Clave de API guardada',
|
||||
-1 => 'La clave de API no es válida'
|
||||
);
|
||||
?>
|
@ -1,23 +0,0 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['akismet'] ['errors'] = array (
|
||||
-1 => 'Clef API non définie. Configurez le plugin afin de configurer la clef API. Enregistrez vous sur <a href="https://akismet.com/signup/" target="_blank">akismet.com</a> pour en obtenir une.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['submenu'] ['akismet'] = 'Configuration Akismet';
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] = array(
|
||||
'head' => 'Configuration Akismet',
|
||||
'description' => 'La plupart du temps, <a href="https://akismet.com/" target="_blank">Akismet</a> va grandement ' . //
|
||||
'ou complètement éliminer les commentaires indésirables sur votre blog. ' . //
|
||||
'Si vous n\'avez pas de compte sur akismet.com, vous pouvez vous en créer un sur ' . //
|
||||
'<a href="https://akismet.com/signup/" target="_blank">akismet.com/signup<a>.',
|
||||
'apikey' => 'Clef API akismet.com',
|
||||
'whatis' => '(<a href="https://akismet.com/support/getting-started/api-key/" target="_blank">Qu\'est-ce que c\'est?</a>)',
|
||||
'submit' => 'Sauvegarder'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet']['msgs'] = array(
|
||||
1 => 'Clef API sauvegardée',
|
||||
-1 => 'Clef API non valide'
|
||||
);
|
||||
?>
|
@ -1,23 +0,0 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['akismet'] ['errors'] = array (
|
||||
-1 => 'La chiave API non è stata impostata. Esegui il plugin per impostare la chiave API. Registrati su <a href="https://akismet.com/signup/" target="_blank">akismet.com</a> per riceverne una.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['submenu'] ['akismet'] = 'Configurazione di Akismet';
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] = array(
|
||||
'head' => 'Configurazione di Akismet',
|
||||
'description' => 'Per molte persone, <a href="https://akismet.com/" target="_blank">Akismet</a> riduce enormemente ' . //
|
||||
'o perfino elimina completamente i commenti e i collegamenti traccianti di spam che compaiono sul proprio sito. ' . //
|
||||
'Se non hai ancora un profilo su akismet.com, puoi crearne uno su ' . //
|
||||
'<a href="https://akismet.com/signup/" target="_blank">akismet.com/signup</a>.',
|
||||
'apikey' => 'Chiave API di akismet.com',
|
||||
'whatis' => '(<a href="https://akismet.com/support/getting-started/api-key/" target="_blank">What is this?</a>)',
|
||||
'submit' => 'Salva chiave API'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] ['msgs'] = array(
|
||||
1 => 'Chiave API salvata',
|
||||
-1 => 'La chiave API non è valida'
|
||||
);
|
||||
?>
|
@ -1,23 +0,0 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['akismet'] ['errors'] = array (
|
||||
-1 => 'API key not set. Open the plugin to set your API key. Register on <a href="https://akismet.com/signup/" target="_blank">akismet.com</a> to get one.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['submenu'] ['akismet'] = 'Akismetの設定';
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] = array(
|
||||
'head' => 'Akismetの設定',
|
||||
'description' => 'For many people, <a href="https://akismet.com/" target="_blank">Akismet</a> will greatly reduce ' . //
|
||||
'or even completely eliminate the comment and trackback spam you get on your site. ' . //
|
||||
'If you don\'t have a akismet.com account yet, you can get one at ' . //
|
||||
'<a href="https://akismet.com/signup/" target="_blank">akismet.com/signup<a>.',
|
||||
'apikey' => 'Akismet API Key',
|
||||
'whatis' => '(<a href="https://akismet.com/support/getting-started/api-key/" target="_blank">What is this?</a>)',
|
||||
'submit' => 'API keyを保存する'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] ['msgs'] = array(
|
||||
1 => 'API keyを保存しました',
|
||||
-1 => 'API key is not valid'
|
||||
);
|
||||
?>
|
@ -1,23 +0,0 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['akismet'] ['errors'] = array (
|
||||
-1 => 'API-sleutel niet ingesteld. Open de plug-in om jouw API-sleutel in te stellen. Registreer op <a href="https://akismet.com/signup/" target="_blank">akismet.com</a> om een te krijgen.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['submenu'] ['akismet'] = 'Akismet Configuratie';
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] = array(
|
||||
'head' => 'Akismet Configuratie',
|
||||
'description' => 'Voor veel mensen, <a href="https://akismet.com/" target="_blank">Akismet</a> zal sterk verminderen ' . //
|
||||
'of zelfs compleet elimineren de opmerkingen en trackback spam die je krijgy op je site. ' . //
|
||||
'Als je nog geen akismet.com-account hebt, kun je er een krijgen op ' . //
|
||||
'<a href="https://akismet.com/signup/" target="_blank">akismet.com/signup<a>.',
|
||||
'apikey' => 'Akismet API Key',
|
||||
'whatis' => '(<a href="https://akismet.com/support/getting-started/api-key/" target="_blank">wat is dit?</a>)',
|
||||
'submit' => 'Sla API key op'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] ['msgs'] = array(
|
||||
1 => 'API key opgeslagen',
|
||||
-1 => 'API key is niet geldig'
|
||||
);
|
||||
?>
|
@ -1,23 +0,0 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['akismet'] ['errors'] = array (
|
||||
-1 => 'Chave da API não definida. Abra o plugin para definir sua chave de API. Registre-se no <a href="https://akismet.com/signup/" target="_blank">akismet.com</a> para obter uma.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['submenu'] ['akismet'] = 'Akismet Configuração';
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] = array(
|
||||
'head' => 'Configure o Akismet',
|
||||
'description' => 'Para muitas pessoas, o <a href="https://akismet.com/" target="_blank">Akismet</a> reduzirá bastante ' . //
|
||||
'ou até eliminará completamente o comentário e o spam de trackback que você recebe no seu site.' . //
|
||||
'Se você ainda não possui uma conta no akismet.com, pode obtê-la em ' . //
|
||||
'<a href="https://akismet.com/signup/" target="_blank">akismet.com/signup</a>.',
|
||||
'apikey' => 'Akismet API Key',
|
||||
'whatis' => '(<a href="https://akismet.com/support/getting-started/api-key/" target="_blank">O que é isso?</a>)',
|
||||
'submit' => 'Salvar a chave da API'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] ['msgs'] = array(
|
||||
1 => 'A chave da API foi salva',
|
||||
-1 => 'A chave da API não é válida'
|
||||
);
|
||||
?>
|
@ -1,23 +0,0 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['akismet'] ['errors'] = array (
|
||||
-1 => 'Не установлен API-ключ. Откройте плагин для установки API-ключа. Зарегистрируйтесь на сайте <a href="https://akismet.com/signup/" target="_blank">akismet.com</a> чтобы получить его.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['submenu'] ['akismet'] = 'Конфигурация плагина Akismet';
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] = array(
|
||||
'head' => 'Конфигурация плагина Akismet',
|
||||
'description' => 'Для многих <a href="https://akismet.com/">Akismet</a> значительно уменьшит ' . //
|
||||
'или даже полностью устранит спам в комментариях и трекбэках, который вы получаете на своем сайте. ' . //
|
||||
'Если у вас еще нет учетной записи akismet.com, вы можете получить ее на сайте ' . //
|
||||
'<a href="https://akismet.com/signup/" target="_blank">akismet.com/signup</a>.',
|
||||
'apikey' => 'akismet.com API Key',
|
||||
'whatis' => '(<a href="https://akismet.com/support/getting-started/api-key/" target="_blank">Что это?</a>)',
|
||||
'submit' => 'Сохранить API-ключ'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] ['msgs'] = array(
|
||||
1 => 'API-ключ сохранен',
|
||||
-1 => 'API-ключ не действителен'
|
||||
);
|
||||
?>
|
@ -1,22 +0,0 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['akismet'] ['errors'] = array (
|
||||
-1 => 'API ključ ni nastavljen. Odpri vtičnik in nastavi svoj API ključ. Registriraj se na <a href="https://akismet.com/signup/" target="_blank">akismet.com</a>, da ga pridobiš.'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['submenu'] ['akismet'] = 'Nastavitve Akismet-a';
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] = array(
|
||||
'head' => 'Nastavitve Akismet-a',
|
||||
'description' => 'Za veliko ljudi bo <a href="https://akismet.com/" target="_blank">Akismet</a> zelo zmanjšal ali celo popolnoma odpravil komentarje in sledenje spamu na vaši spletni strani. ' . //
|
||||
'Če še nimate akismet.com računa, si ga lahko pridobite na ' .
|
||||
'<a href="https://akismet.com/signup/" target="_blank">akismet.com/signup<a>.',
|
||||
'apikey' => 'Akismet API Ključ',
|
||||
'whatis' => '(<a href="https://akismet.com/support/getting-started/api-key/" target="_blank">Kaj je to?</a>)',
|
||||
'submit' => 'Shrani API ključ'
|
||||
);
|
||||
|
||||
$lang ['admin'] ['plugin'] ['akismet'] ['msgs'] = array(
|
||||
1 => 'API ključ je bil shranjen',
|
||||
-1 => 'API ključ ni veljaven'
|
||||
);
|
||||
?>
|
@ -1,84 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* Plugin Name: Akismet
|
||||
* Plugin URI: https://www.flatpress.org
|
||||
* Author: FlatPress
|
||||
* Author URI: https://www.flatpress.org
|
||||
* Description: Integration with Akismet powerful Antispam system. Part of the standard distribution.
|
||||
* Version: 1.0
|
||||
*/
|
||||
define('AKISMET_TIMEOUT', 10);
|
||||
|
||||
require plugin_getdir('akismet') . '/inc/Akismet.class.php';
|
||||
|
||||
function plugin_akismet_setup() {
|
||||
global $fp_config;
|
||||
|
||||
if (!plugin_getoptions('akismet', 'apikey')) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (plugin_getoptions('akismet', 'apikey')) {
|
||||
add_filter('comment_validate', 'plugin_akismet_validate', 10, 2);
|
||||
}
|
||||
|
||||
function plugin_akismet_validate($bool, $contents) {
|
||||
if (!$bool)
|
||||
return false;
|
||||
|
||||
global $fp_config;
|
||||
|
||||
$akismet = new Akismet($fp_config ['general'] ['www'], plugin_getoptions('akismet', 'apikey'));
|
||||
$akismet->setAuthor($contents ['name']);
|
||||
$akismet->setAuthorEmail(isset($contents ['email']) ? $contents ['email'] : '');
|
||||
$akismet->setAuthorURL(isset($contents ['url']) ? $contents ['url'] : '');
|
||||
$akismet->setContent($contents ['content']);
|
||||
|
||||
if ($v = $akismet->isSpam()) {
|
||||
global $smarty;
|
||||
$smarty->assign('error', array(
|
||||
'ERROR: Comment is invalid'
|
||||
));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
if (class_exists('AdminPanelAction')) {
|
||||
|
||||
class admin_plugin_akismet extends AdminPanelAction {
|
||||
|
||||
var $langres = 'plugin:akismet';
|
||||
|
||||
function setup() {
|
||||
$this->smarty->assign('admin_resource', "plugin:akismet/admin.plugin.akismet");
|
||||
}
|
||||
|
||||
function main() {
|
||||
$akismetconf = plugin_getoptions('akismet');
|
||||
$this->smarty->assign('akismetconf', $akismetconf);
|
||||
}
|
||||
|
||||
function onsubmit($data = null) {
|
||||
global $fp_config;
|
||||
|
||||
if ($_POST ['wp-apikey']) {
|
||||
|
||||
plugin_addoption('akismet', 'apikey', $_POST ['wp-apikey']);
|
||||
plugin_saveoptions('akismet');
|
||||
|
||||
$this->smarty->assign('success', 1);
|
||||
} else {
|
||||
$this->smarty->assign('success', -1);
|
||||
}
|
||||
|
||||
return 2;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
admin_addpanelaction('plugin', 'akismet', true);
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
<h2>{$plang.head}</h2>
|
||||
<p>{$plang.description}</p>
|
||||
|
||||
{include file="shared:errorlist.tpl"}
|
||||
|
||||
<div style="margin: 0 auto; width: 20em;">
|
||||
|
||||
{html_form}
|
||||
|
||||
<h4><label for="wp-apikey">{$plang.apikey}</label></h4>
|
||||
<p><input id="wp-apikey" type="text" name="wp-apikey" value="{$akismetconf.apikey|default:''}" />
|
||||
<input type="submit" value="{$plang.submit}"/> </p>
|
||||
<p> {$plang.whatis} </p>
|
||||
|
||||
{/html_form}
|
||||
|
||||
</div>
|
@ -15,6 +15,7 @@
|
||||
{$plang.allow_html_long}</p>
|
||||
</dd>
|
||||
|
||||
{* <!-- BBcode toolbar cannot be deactivated since commit 733a2bb (FP 1.3 Beta1). -->
|
||||
<dt><label for="bb-toolbar">
|
||||
{$plang.toolbar}
|
||||
</label></dt>
|
||||
@ -22,7 +23,7 @@
|
||||
<p><input type="checkbox" name="bb-toolbar" id="bb-toolbar" {if $bbchecked[2]}checked="checked"{/if} />
|
||||
{$plang.toolbar_long}</p>
|
||||
</dd>
|
||||
|
||||
*}
|
||||
</dl>
|
||||
|
||||
|
||||
|
9
fp-plugins/cookiebanner/lang/lang.cs-cz.php
Normal file
9
fp-plugins/cookiebanner/lang/lang.cs-cz.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$baseurl = BLOG_BASEURL;
|
||||
$lang ['plugin'] ['cookiebanner'] = array(
|
||||
'bannertext' => 'Soubory <a href="https://cs.wikipedia.org/wiki/HTTP_cookie" title="Wikipedia" target="_blank">cookie</a> ' . //
|
||||
'používám k zajištění spolehlivého a bezpečného chodu těchto webových stránek.',
|
||||
'ok' => 'OK',
|
||||
'notice_text' => 'Vaše údaje zpracovávám v souladu se svými <a href="' . $baseurl . 'static.php?page=privacy-policy">zásadami ochrany osobních údajů</a>.'
|
||||
);
|
||||
?>
|
9
fp-plugins/cookiebanner/lang/lang.da-dk.php
Normal file
9
fp-plugins/cookiebanner/lang/lang.da-dk.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$baseurl = BLOG_BASEURL;
|
||||
$lang ['plugin'] ['cookiebanner'] = array(
|
||||
'bannertext' => 'Jeg bruger <a href="https://da.wikipedia.org/wiki/Cookie" title="Wikipedia" target="_blank">cookies</a> ' . //
|
||||
'til at sikre, at denne hjemmeside kører pålideligt og sikkert.',
|
||||
'ok' => 'JEG ER ENIG',
|
||||
'notice_text' => 'Jeg behandler dine data i overensstemmelse med min <a href="' . $baseurl . 'static.php?page=privacy-policy">privatlivspolitik</a>.'
|
||||
);
|
||||
?>
|
9
fp-plugins/cookiebanner/lang/lang.de-de.php
Normal file
9
fp-plugins/cookiebanner/lang/lang.de-de.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$baseurl = BLOG_BASEURL;
|
||||
$lang ['plugin'] ['cookiebanner'] = array(
|
||||
'bannertext' => 'Ich verwende <a href="https://de.wikipedia.org/wiki/HTTP-Cookie" title="Wikipedia" target="_blank">Cookies</a>, ' . //
|
||||
'damit diese Webseite zuverlässig und sicher läuft.',
|
||||
'ok' => 'OK',
|
||||
'notice_text' => 'Ich verarbeite deine Daten gemäß meiner <a href="' . $baseurl . 'static.php?page=privacy-policy">Datenschutzerklärung</a>.'
|
||||
);
|
||||
?>
|
9
fp-plugins/cookiebanner/lang/lang.el-gr.php
Normal file
9
fp-plugins/cookiebanner/lang/lang.el-gr.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$baseurl = BLOG_BASEURL;
|
||||
$lang ['plugin'] ['cookiebanner'] = array(
|
||||
'bannertext' => 'Χρησιμοποιώ <a href="https://el.wikipedia.org/wiki/HTTP_cookies" title="Wikipedia" target="_blank">cookies</a> ' . //
|
||||
'για να διασφαλίσω ότι αυτός ο ιστότοπος λειτουργεί αξιόπιστα και με ασφάλεια.',
|
||||
'ok' => 'ΣΥΜΦΩΝΩ',
|
||||
'notice_text' => 'Επεξεργάζομαι τα δεδομένα σας σύμφωνα με την <a href="' . $baseurl . 'static.php?page=privacy-policy">Πολιτική απορρήτου</a>.'
|
||||
);
|
||||
?>
|
9
fp-plugins/cookiebanner/lang/lang.en-us.php
Normal file
9
fp-plugins/cookiebanner/lang/lang.en-us.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$baseurl = BLOG_BASEURL;
|
||||
$lang ['plugin'] ['cookiebanner'] = array(
|
||||
'bannertext' => 'I use <a href="https://en.wikipedia.org/wiki/HTTP_cookie" title="Wikipedia" target="_blank">cookies</a>, ' . //
|
||||
'so that this website runs reliably and securely.',
|
||||
'ok' => 'Okay',
|
||||
'notice_text' => 'I process your data according to my <a href="' . $baseurl . 'static.php?page=dataprotection">privacy policy</a>.'
|
||||
);
|
||||
?>
|
9
fp-plugins/cookiebanner/lang/lang.es-es.php
Normal file
9
fp-plugins/cookiebanner/lang/lang.es-es.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$baseurl = BLOG_BASEURL;
|
||||
$lang ['plugin'] ['cookiebanner'] = array(
|
||||
'bannertext' => 'Utilizo <a href="https://es.wikipedia.org/wiki/Cookie_(inform%C3%A1tica)" title="Wikipedia" target="_blank">cookies</a> ' . //
|
||||
'para garantizar que este sitio web funcione de forma fiable y segura.',
|
||||
'ok' => 'ACEPTO',
|
||||
'notice_text' => 'Trato sus datos de acuerdo con mi <a href="' . $baseurl . 'static.php?page=privacy-policy">política de privacidad</a>.'
|
||||
);
|
||||
?>
|
9
fp-plugins/cookiebanner/lang/lang.fr-fr.php
Normal file
9
fp-plugins/cookiebanner/lang/lang.fr-fr.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$baseurl = BLOG_BASEURL;
|
||||
$lang ['plugin'] ['cookiebanner'] = array(
|
||||
'bannertext' => 'J\'utilise des <a href="https://fr.wikipedia.org/wiki/Cookie_(informatique)" title="Wikipedia" target="_blank">cookies</a>, ' . //
|
||||
'pour que ce site web fonctionne de manière fiable et sûre.',
|
||||
'ok' => 'Accepter',
|
||||
'notice_text' => 'Je traite tes données conformément à ma <a href="' . $baseurl . 'static.php?page=privacy-policy">déclaration de protection des données</a>.'
|
||||
);
|
||||
?>
|
9
fp-plugins/cookiebanner/lang/lang.it-it.php
Normal file
9
fp-plugins/cookiebanner/lang/lang.it-it.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$baseurl = BLOG_BASEURL;
|
||||
$lang ['plugin'] ['cookiebanner'] = array(
|
||||
'bannertext' => 'Utilizzo i <a href="https://it.wikipedia.org/wiki/Cookie" title="Wikipedia" target="_blank">cookie</a>, ' . //
|
||||
'per garantire che questo sito web funzioni in modo affidabile e sicuro.',
|
||||
'ok' => 'Accetta i cookie',
|
||||
'notice_text' => 'I vostri dati sono trattati in conformità con la mia <a href="' . $baseurl . 'static.php?page=privacy-policy">politica sulla privacy</a>.'
|
||||
);
|
||||
?>
|
9
fp-plugins/cookiebanner/lang/lang.ja-jp.php
Normal file
9
fp-plugins/cookiebanner/lang/lang.ja-jp.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$baseurl = BLOG_BASEURL;
|
||||
$lang ['plugin'] ['cookiebanner'] = array(
|
||||
'bannertext' => 'このウェブサイトを確実かつ安全に運営するために <a href="https://ja.wikipedia.org/wiki/HTTP_cookie" title="ウィキペディア" target="_blank">クッキー</a>, ' . //
|
||||
'を使用しています。',
|
||||
'ok' => 'クッキーを受け入れる',
|
||||
'notice_text' => '私は、<a href="' . $baseurl . 'static.php?page=privacy-policy">プライバシーポリシ</a>に従ってあなたのデータを処理します。'
|
||||
);
|
||||
?>
|
9
fp-plugins/cookiebanner/lang/lang.nl-nl.php
Normal file
9
fp-plugins/cookiebanner/lang/lang.nl-nl.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$baseurl = BLOG_BASEURL;
|
||||
$lang ['plugin'] ['cookiebanner'] = array(
|
||||
'bannertext' => 'Ik gebruik <a href="https://nl.wikipedia.org/wiki/Cookie_(internet)" title="Wikipedia" target="_blank">cookies</a> ' . //
|
||||
'om ervoor te zorgen dat deze website betrouwbaar en veilig werkt.',
|
||||
'ok' => 'Cookies accepteren',
|
||||
'notice_text' => 'Ik verwerk uw gegevens in overeenstemming met mijn <a href="' . $baseurl . 'static.php?page=privacy-policy">privacybeleid</a>.'
|
||||
);
|
||||
?>
|
9
fp-plugins/cookiebanner/lang/lang.pt-br.php
Normal file
9
fp-plugins/cookiebanner/lang/lang.pt-br.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$baseurl = BLOG_BASEURL;
|
||||
$lang ['plugin'] ['cookiebanner'] = array(
|
||||
'bannertext' => 'Utilizo <a href="https://pt.wikipedia.org/wiki/Cookie_(inform%C3%A1tica)" title="Wikipédia" target="_blank">cookies</a> ' . //
|
||||
'para garantir que este site funcione de forma confiável e segura.',
|
||||
'ok' => 'Aceitar',
|
||||
'notice_text' => 'Eu processo seus dados de acordo com minha <a href="' . $baseurl . 'static.php?page=privacy-policy">política de privacidade</a>.'
|
||||
);
|
||||
?>
|
9
fp-plugins/cookiebanner/lang/lang.ru-ru.php
Normal file
9
fp-plugins/cookiebanner/lang/lang.ru-ru.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$baseurl = BLOG_BASEURL;
|
||||
$lang ['plugin'] ['cookiebanner'] = array(
|
||||
'bannertext' => 'Я использую файлы <a href="https://ru.wikipedia.org/wiki/Cookie" title="Википедия" target="_blank">cookie</a>, ' . //
|
||||
'чтобы обеспечить надежную и безопасную работу этого сайта.',
|
||||
'ok' => 'Принять',
|
||||
'notice_text' => 'Я обрабатываю ваши данные в соответствии с моей <a href="' . $baseurl . 'static.php?page=privacy-policy">политикой конфиденциальности</a>.'
|
||||
);
|
||||
?>
|
9
fp-plugins/cookiebanner/lang/lang.sl-si.php
Normal file
9
fp-plugins/cookiebanner/lang/lang.sl-si.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$baseurl = BLOG_BASEURL;
|
||||
$lang ['plugin'] ['cookiebanner'] = array(
|
||||
'bannertext' => '<a href="https://sl.wikipedia.org/wiki/Pi%C5%A1kotek" title="Wikipedija" target="_blank">Piškotke</a> ' . //
|
||||
'uporabljam za zagotavljanje zanesljivega in varnega delovanja tega spletnega mesta.',
|
||||
'ok' => 'V REDU',
|
||||
'notice_text' => 'Vaše podatke obdelujem v skladu s svojo <a href="' . $baseurl . 'static.php?page=privacy-policy">zasebnostno politiko</a>.'
|
||||
);
|
||||
?>
|
80
fp-plugins/cookiebanner/plugin.cookiebanner.php
Normal file
80
fp-plugins/cookiebanner/plugin.cookiebanner.php
Normal file
@ -0,0 +1,80 @@
|
||||
<?php
|
||||
/*
|
||||
* Plugin Name: CookieBanner
|
||||
* Plugin URI: https://flatpress.org
|
||||
* Description: Displays a discreet banner that informs the visitor about the use of cookies and provides a link to the <a href="./admin.php?p=static&action=write&page=privacy-policy" title="Edit me!" >privacy policy</a>. Part of the standard distribution. <a href="#" id="DeleteCookie" title="Reset CookieBanner">[Reset]</a>
|
||||
* Author: FlatPress
|
||||
* Version: 1.0.1
|
||||
* Author URI: http://flatpress.org
|
||||
*/
|
||||
function plugin_cookiebanner_head() {
|
||||
$pdir = plugin_geturl('cookiebanner');
|
||||
echo '
|
||||
<!-- BOF CookieBanner CSS -->
|
||||
<link rel="stylesheet" type="text/css" href="' . $pdir . 'res/cookiebanner.css">
|
||||
<!-- EOF Cookiebanner CSS -->
|
||||
';
|
||||
}
|
||||
|
||||
add_action('wp_head', 'plugin_cookiebanner_head', 0);
|
||||
|
||||
function plugin_cookiebanner_footer() {
|
||||
|
||||
global $lang;
|
||||
lang_load('plugin:cookiebanner');
|
||||
|
||||
$bannertext = $lang ['plugin'] ['cookiebanner'] ['bannertext'];
|
||||
$ok = $lang ['plugin'] ['cookiebanner'] ['ok'];
|
||||
|
||||
echo '
|
||||
<!-- BOF Cookie-Banner HTML -->
|
||||
<div id="cookie_banner">
|
||||
<div class="buttonbar">
|
||||
' . $bannertext . '
|
||||
<input type="submit" value="' . $ok . '" class="btn btn-primary btn-sm " onclick="cookie_ok()"></input>
|
||||
</div>
|
||||
</div>
|
||||
<!-- EOF Cookie-Banner HTML -->
|
||||
|
||||
<!-- BOF Cookie-Banner JS -->
|
||||
<script>
|
||||
/**
|
||||
* Initializes the CookieBanner plugin.
|
||||
*/
|
||||
if( document.cookie.indexOf(\'cookiebanner=1\') != -1 ){ // if cookie exists
|
||||
jQuery(\'#cookie_banner\').hide(); // then hide banner
|
||||
} else {
|
||||
jQuery(\'#cookie_banner\').prependTo(\'body\'); // to the body and display
|
||||
}
|
||||
|
||||
// OK button - sets cookie
|
||||
function cookie_ok() {
|
||||
document.cookie = \'cookiebanner=1;path=/\';
|
||||
jQuery(\'#cookie_banner\').slideUp();
|
||||
}
|
||||
|
||||
// Reset button - deletes the cookie and displays the banner again
|
||||
$(\'#DeleteCookie\').click(()=>{
|
||||
document.cookie = \'cookiebanner\' + \'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;\'; // delete CookieBanner -Cookie
|
||||
jQuery(\'#cookie_banner\').show(); // shows banner
|
||||
})
|
||||
</script>
|
||||
<!-- EOF Cookie-Banner JS -->
|
||||
';
|
||||
}
|
||||
|
||||
add_action('wp_footer', 'plugin_cookiebanner_footer', 0);
|
||||
|
||||
|
||||
function plugin_cookiebanner_privacypolicy() {
|
||||
global $lang;
|
||||
$lang = lang_load('plugin:cookiebanner');
|
||||
|
||||
$notice_text = $lang ['plugin'] ['cookiebanner'] ['notice_text'];
|
||||
|
||||
echo '<p><em>' . $notice_text . '</em></p>';
|
||||
}
|
||||
|
||||
add_action('comment_form', 'plugin_cookiebanner_privacypolicy', 0);
|
||||
?>
|
||||
|
31
fp-plugins/cookiebanner/res/cookiebanner.css
Normal file
31
fp-plugins/cookiebanner/res/cookiebanner.css
Normal file
@ -0,0 +1,31 @@
|
||||
/* prevents too large font size on mobile devices */
|
||||
@media (max-width: 1920px) {
|
||||
#cookie_banner {
|
||||
-webkit-text-size-adjust: none;
|
||||
-moz-text-size-adjust: none;
|
||||
text-size-adjust: none
|
||||
}
|
||||
}
|
||||
|
||||
/* Cookie-Banner */
|
||||
#cookie_banner {
|
||||
background: #cccdcd;
|
||||
color: #000000;
|
||||
position: fixed;
|
||||
bottom: 0px;
|
||||
left: 0;
|
||||
z-index: 10000;
|
||||
opacity: 0.9;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* OK-Button */
|
||||
.btn.btn-primary.btn-sm {
|
||||
color: #ffffff;
|
||||
background: #008A17;
|
||||
}
|
||||
|
9
fp-plugins/datechanger/doc_datechanger.txt
Normal file
9
fp-plugins/datechanger/doc_datechanger.txt
Normal file
@ -0,0 +1,9 @@
|
||||
Description
|
||||
-----------
|
||||
Lets you change the publish date for (new) entries. Therefore, it adds the edit interface with a date drop down menu.
|
||||
|
||||
This plugin only works for new entries. Once published, the date cannot be changed again!
|
||||
|
||||
About
|
||||
-----
|
||||
The DateChanger plugin was built by Edoardo Vacchi (NoWhereMan).
|
7
fp-plugins/datechanger/lang/lang.cs-cz.php
Normal file
7
fp-plugins/datechanger/lang/lang.cs-cz.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['admin'] ['plugin'] ['datechanger'] = array(
|
||||
'title' => 'Změna času/datumu zveřejnění',
|
||||
'date' => 'Datum',
|
||||
'time' => 'Denní doba'
|
||||
);
|
||||
?>
|
7
fp-plugins/datechanger/lang/lang.da-dk.php
Normal file
7
fp-plugins/datechanger/lang/lang.da-dk.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['admin'] ['plugin'] ['datechanger'] = array(
|
||||
'title' => 'Ændre udgivelsestidspunkt/dato',
|
||||
'date' => 'Dato',
|
||||
'time' => 'Tid på dagen'
|
||||
);
|
||||
?>
|
7
fp-plugins/datechanger/lang/lang.de-de.php
Normal file
7
fp-plugins/datechanger/lang/lang.de-de.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['admin'] ['plugin'] ['datechanger'] = array(
|
||||
'title' => 'Veröffentlichungszeit/-Datum ändern',
|
||||
'date' => 'Datum',
|
||||
'time' => 'Uhrzeit'
|
||||
);
|
||||
?>
|
7
fp-plugins/datechanger/lang/lang.el-gr.php
Normal file
7
fp-plugins/datechanger/lang/lang.el-gr.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['admin'] ['plugin'] ['datechanger'] = array(
|
||||
'title' => 'Αλλαγή ώρας/ημερομηνίας δημοσίευσης',
|
||||
'date' => 'ημερομηνία',
|
||||
'time' => 'Ώρα της ημέρας'
|
||||
);
|
||||
?>
|
7
fp-plugins/datechanger/lang/lang.en-us.php
Normal file
7
fp-plugins/datechanger/lang/lang.en-us.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['admin'] ['plugin'] ['datechanger'] = array(
|
||||
'title' => 'Change publication time/-date',
|
||||
'date' => 'Date',
|
||||
'time' => 'Time'
|
||||
);
|
||||
?>
|
7
fp-plugins/datechanger/lang/lang.es-es.php
Normal file
7
fp-plugins/datechanger/lang/lang.es-es.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['admin'] ['plugin'] ['datechanger'] = array(
|
||||
'title' => 'Cambiar la hora/fecha de publicación',
|
||||
'date' => 'Fecha',
|
||||
'time' => 'Hora del día'
|
||||
);
|
||||
?>
|
7
fp-plugins/datechanger/lang/lang.fr-fr.php
Normal file
7
fp-plugins/datechanger/lang/lang.fr-fr.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['admin'] ['plugin'] ['datechanger'] = array(
|
||||
'title' => 'Modifier l\'heure/la date de publication',
|
||||
'date' => 'Date',
|
||||
'time' => 'Heure'
|
||||
);
|
||||
?>
|
7
fp-plugins/datechanger/lang/lang.it-it.php
Normal file
7
fp-plugins/datechanger/lang/lang.it-it.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['admin'] ['plugin'] ['datechanger'] = array(
|
||||
'title' => 'Modifica dell\'ora/data di pubblicazione',
|
||||
'date' => 'Data',
|
||||
'time' => 'Ora del giorno'
|
||||
);
|
||||
?>
|
7
fp-plugins/datechanger/lang/lang.ja-jp.php
Normal file
7
fp-plugins/datechanger/lang/lang.ja-jp.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['admin'] ['plugin'] ['datechanger'] = array(
|
||||
'title' => '発行日時の変更',
|
||||
'date' => '日付',
|
||||
'time' => '時間帯'
|
||||
);
|
||||
?>
|
7
fp-plugins/datechanger/lang/lang.nl-nl.php
Normal file
7
fp-plugins/datechanger/lang/lang.nl-nl.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['admin'] ['plugin'] ['datechanger'] = array(
|
||||
'title' => 'Publicatie tijd/datum wijzigen',
|
||||
'date' => 'Datum',
|
||||
'time' => 'Tijd van de dag'
|
||||
);
|
||||
?>
|
7
fp-plugins/datechanger/lang/lang.pt-br.php
Normal file
7
fp-plugins/datechanger/lang/lang.pt-br.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['admin'] ['plugin'] ['datechanger'] = array(
|
||||
'title' => 'Alterar data/hora de publicação',
|
||||
'date' => 'Data',
|
||||
'time' => 'Hora do dia'
|
||||
);
|
||||
?>
|
7
fp-plugins/datechanger/lang/lang.ru-ru.php
Normal file
7
fp-plugins/datechanger/lang/lang.ru-ru.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['admin'] ['plugin'] ['datechanger'] = array(
|
||||
'title' => 'Изменить время/дату публикации',
|
||||
'date' => 'дата',
|
||||
'time' => 'Время суток'
|
||||
);
|
||||
?>
|
7
fp-plugins/datechanger/lang/lang.sl-si.php
Normal file
7
fp-plugins/datechanger/lang/lang.sl-si.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['admin'] ['plugin'] ['datechanger'] = array(
|
||||
'title' => 'Sprememba časa/datuma objave',
|
||||
'date' => 'Datum',
|
||||
'time' => 'Čas dneva'
|
||||
);
|
||||
?>
|
116
fp-plugins/datechanger/plugin.datechanger.php
Normal file
116
fp-plugins/datechanger/plugin.datechanger.php
Normal file
@ -0,0 +1,116 @@
|
||||
<?php
|
||||
/*
|
||||
* Plugin Name: DateChanger
|
||||
* Plugin URI: https://www.flatpress.org
|
||||
* Type: Block
|
||||
* Author: FlatPress
|
||||
* Description: Allows to change the date and time for <a href="./admin.php?p=entry&action=write" title="Write Entry">new entries</a> via a drop-down menu. Part of the standard distribution. <a href="./fp-plugins/datechanger/doc_datechanger.txt" title="Instructions" target="_blank">[Instructions]</a>
|
||||
* Version: 1.0.4
|
||||
* Author URI: https://www.flatpress.org
|
||||
*/
|
||||
if (!(basename($_SERVER ['PHP_SELF']) == 'admin.php' && // must be admin area
|
||||
@$_GET ['p'] == 'entry' && // must be right panel
|
||||
@$_GET ['action'] == 'write' && // must be right action
|
||||
!(@$_POST ['timestamp'] || @$_REQUEST ['entry']))) // must be a new entry
|
||||
return;
|
||||
|
||||
function plugin_datechanger_toolbar() {
|
||||
$time = time();
|
||||
|
||||
$h = date('H', $time);
|
||||
$m = date('i', $time);
|
||||
$s = date('s', $time);
|
||||
|
||||
$Y = date('Y', $time);
|
||||
$M = date('m', $time);
|
||||
$D = date('d', $time);
|
||||
|
||||
$lang = lang_load('plugin:datechanger'); // Multilingual support by Plugin
|
||||
global $lang; // Multilingual support by FlatPress
|
||||
|
||||
echo '<div id="admin-date"><fieldset id="plugin_datechanger"><legend>' . $lang ['admin'] ['plugin'] ['datechanger'] ['title'] . '</legend><p>' . $lang ['admin'] ['plugin'] ['datechanger'] ['time'] . ': ';
|
||||
|
||||
// set time
|
||||
echo '<label><select name="date[]">';
|
||||
for($i = 0; $i < 24; $i++) {
|
||||
$v = sprintf('%02d', $i);
|
||||
echo '<option value="' . $v . '"' . (($v == $h) ? ' selected="selected"' : '') . '>' . $v . '</option>';
|
||||
}
|
||||
|
||||
echo '</select></label>:';
|
||||
|
||||
echo '<label><select name="date[]">';
|
||||
for($i = 0; $i < 60; $i++) {
|
||||
$v = sprintf('%02d', $i);
|
||||
echo '<option value="' . $v . '"' . (($v == $m) ? ' selected="selected"' : '') . '>' . $v . '</option>';
|
||||
}
|
||||
|
||||
echo '</select></label>:';
|
||||
|
||||
echo '<label><select name="date[]">';
|
||||
for($i = 0; $i < 60; $i++) {
|
||||
$v = sprintf('%02d', $i);
|
||||
echo '<option value="' . $v . '"' . (($v == $s) ? ' selected="selected"' : '') . '>' . $v . '</option>';
|
||||
}
|
||||
|
||||
echo '</select> </label> ';
|
||||
|
||||
// set date
|
||||
echo '' . $lang ['admin'] ['plugin'] ['datechanger'] ['date'] . ': <select name="date[]">';
|
||||
for($i = 1; $i <= 31; $i++) {
|
||||
$v = sprintf('%02d', $i);
|
||||
echo '<option value="' . $v . '"' . (($v == $D) ? ' selected="selected"' : '') . '>' . $v . '</option>';
|
||||
}
|
||||
echo '</select> ';
|
||||
|
||||
$mths = $lang ['date'] ['month'];
|
||||
|
||||
echo '<select name="date[]">';
|
||||
for($i = 0; $i < 12; $i++) {
|
||||
$v = sprintf('%02d', $i + 1);
|
||||
echo '<option value="' . $v . '"' . (($v == $M) ? ' selected="selected"' : '') . '>' . $mths [$i] . '</option>';
|
||||
}
|
||||
echo '</select> ';
|
||||
|
||||
echo '<select name="date[]">';
|
||||
foreach (range(2000, intval($Y) + 10) as $v) {
|
||||
echo '<option value="' . $v . '"' . (($v == $Y) ? ' selected="selected"' : '') . '>' . $v . '</option>';
|
||||
}
|
||||
echo '</select>';
|
||||
|
||||
echo '</p></fieldset></div><!-- end of #admin-date -->';
|
||||
}
|
||||
|
||||
// Meh, {toolbar} no longer works with fp-1.3 dev -> #17
|
||||
//add_action('editor_toolbar', 'plugin_datechanger_toolbar', 0);
|
||||
add_filter('simple_datechanger_form', 'plugin_datechanger_toolbar', 0);
|
||||
|
||||
|
||||
function plugin_datechanger_check() {
|
||||
if ((isset($_GET ['p']) && $_GET ['p'] != 'entry') || (isset($_GET ['action']) && $_GET ['action'] != 'write'))
|
||||
return;
|
||||
|
||||
if (empty($_POST))
|
||||
return;
|
||||
|
||||
if (!empty($_POST ['date']))
|
||||
$date = $_POST ['date'];
|
||||
else
|
||||
return;
|
||||
|
||||
foreach ($date as $v) {
|
||||
if (!is_numeric($v))
|
||||
return;
|
||||
else
|
||||
$date [] = intval($v);
|
||||
}
|
||||
|
||||
list ($hour, $minute, $second, $day, $month, $year) = $date;
|
||||
|
||||
$time = mktime($hour, $minute, $second, $month, $day, $year);
|
||||
|
||||
$_POST ['timestamp'] = $time;
|
||||
}
|
||||
|
||||
add_action('init', 'plugin_datechanger_check');
|
||||
?>
|
6
fp-plugins/feed/img/License.md
Normal file
6
fp-plugins/feed/img/License.md
Normal file
@ -0,0 +1,6 @@
|
||||
## Source:
|
||||
https://www.kisscc0.com/clipart/atom-rss-logo-web-feed-computer-icons-rss-atom-but-n1kmz1/
|
||||
|
||||
## Image License:
|
||||
✔️ Free for personal and commercial use
|
||||
✔️ Attribution is not required.
|
BIN
fp-plugins/feed/img/atom-white.png
Normal file
BIN
fp-plugins/feed/img/atom-white.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
BIN
fp-plugins/feed/img/atom.png
Normal file
BIN
fp-plugins/feed/img/atom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.5 KiB |
BIN
fp-plugins/feed/img/rss-white.png
Normal file
BIN
fp-plugins/feed/img/rss-white.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
BIN
fp-plugins/feed/img/rss.png
Normal file
BIN
fp-plugins/feed/img/rss.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.4 KiB |
7
fp-plugins/feed/lang/lang.cs-cz.php
Normal file
7
fp-plugins/feed/lang/lang.cs-cz.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['feed'] = array(
|
||||
'subject' => 'Přihlaste se k odběru na',
|
||||
'rss' => 'Přihlásit se k odběru RSS feed',
|
||||
'atom' => 'Přihlásit se k odběru Atom feed'
|
||||
);
|
||||
?>
|
7
fp-plugins/feed/lang/lang.da-dk.php
Normal file
7
fp-plugins/feed/lang/lang.da-dk.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['feed'] = array(
|
||||
'subject' => 'Abonnieren',
|
||||
'rss' => 'Abonner på RSS-feed',
|
||||
'atom' => 'Abonner på Atom-feed'
|
||||
);
|
||||
?>
|
7
fp-plugins/feed/lang/lang.de-de.php
Normal file
7
fp-plugins/feed/lang/lang.de-de.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['feed'] = array(
|
||||
'subject' => 'Abonnieren',
|
||||
'rss' => 'RSS-Feed abonnieren',
|
||||
'atom' => 'Atom-Feed abonnieren'
|
||||
);
|
||||
?>
|
7
fp-plugins/feed/lang/lang.el-gr.php
Normal file
7
fp-plugins/feed/lang/lang.el-gr.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['feed'] = array(
|
||||
'subject' => 'Εγγραφείτε στην τροφοδοσία',
|
||||
'rss' => 'Εγγραφείτε στο RSS Feed',
|
||||
'atom' => 'Εγγραφείτε στο Atom Feed'
|
||||
);
|
||||
?>
|
7
fp-plugins/feed/lang/lang.en-us.php
Normal file
7
fp-plugins/feed/lang/lang.en-us.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['feed'] = array(
|
||||
'subject' => 'Subscribe',
|
||||
'rss' => 'Subscribe RSS feed',
|
||||
'atom' => 'Subscribe Atom feed'
|
||||
);
|
||||
?>
|
7
fp-plugins/feed/lang/lang.es-es.php
Normal file
7
fp-plugins/feed/lang/lang.es-es.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['feed'] = array(
|
||||
'subject' => 'Suscribirse al feed',
|
||||
'rss' => 'Suscribirse a RSS Feed',
|
||||
'atom' => 'Suscribirse a Atom Feed'
|
||||
);
|
||||
?>
|
7
fp-plugins/feed/lang/lang.fr-fr.php
Normal file
7
fp-plugins/feed/lang/lang.fr-fr.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['feed'] = array(
|
||||
'subject' => 'S\'abonner à',
|
||||
'rss' => 'S\'abonner au flux RSS',
|
||||
'atom' => 'S\'abonner au flux Atom'
|
||||
);
|
||||
?>
|
7
fp-plugins/feed/lang/lang.it-it.php
Normal file
7
fp-plugins/feed/lang/lang.it-it.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['feed'] = array(
|
||||
'subject' => 'Iscriviti al feed',
|
||||
'rss' => 'Iscriviti al feed RSS',
|
||||
'atom' => 'Iscriviti al feed Atom'
|
||||
);
|
||||
?>
|
7
fp-plugins/feed/lang/lang.ja-jp.php
Normal file
7
fp-plugins/feed/lang/lang.ja-jp.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['feed'] = array(
|
||||
'subject' => 'フィードを購読する',
|
||||
'rss' => 'RSSフィードを購読する',
|
||||
'atom' => 'Atomフィードを購読する'
|
||||
);
|
||||
?>
|
7
fp-plugins/feed/lang/lang.nl-nl.php
Normal file
7
fp-plugins/feed/lang/lang.nl-nl.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['feed'] = array(
|
||||
'subject' => 'Abonneren op feed',
|
||||
'rss' => 'Abonneren op RSS-feed',
|
||||
'atom' => 'Abonneren op Atom-feed'
|
||||
);
|
||||
?>
|
7
fp-plugins/feed/lang/lang.pt-br.php
Normal file
7
fp-plugins/feed/lang/lang.pt-br.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['feed'] = array(
|
||||
'subject' => 'Assinar o feed',
|
||||
'rss' => 'Assine o RSS Feed',
|
||||
'atom' => 'Assine o Atom Feed'
|
||||
);
|
||||
?>
|
7
fp-plugins/feed/lang/lang.ru-ru.php
Normal file
7
fp-plugins/feed/lang/lang.ru-ru.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['feed'] = array(
|
||||
'subject' => 'Подписаться на фид',
|
||||
'rss' => 'Подписаться на RSS-канал',
|
||||
'atom' => 'Подписаться на Atom-канал'
|
||||
);
|
||||
?>
|
7
fp-plugins/feed/lang/lang.sl-si.php
Normal file
7
fp-plugins/feed/lang/lang.sl-si.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$lang ['plugin'] ['feed'] = array(
|
||||
'subject' => 'Naročite se na vir',
|
||||
'rss' => 'Naročite se na vir RSS',
|
||||
'atom' => 'Naročite se na vir Atom'
|
||||
);
|
||||
?>
|
50
fp-plugins/feed/plugin.feed.php
Normal file
50
fp-plugins/feed/plugin.feed.php
Normal file
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Plugin Name: RSS and Atom Feed
|
||||
* Version: 1.0.0
|
||||
* Plugin URI: https://www.flatpress.org
|
||||
* Author: FlatPress
|
||||
* Author URI: https://www.flatpress.org
|
||||
* Description: Activates feed buttons in the <a href="./admin.php?p=widgets" title="Widget menu">widget menu</a>. Part of the standard distribution.
|
||||
*/
|
||||
|
||||
|
||||
function plugin_feed_head() { // stytesheet-file
|
||||
$pdir = plugin_geturl('feed');
|
||||
|
||||
echo '
|
||||
<!-- BOF Feed-Button Stylesheet -->
|
||||
<link rel="stylesheet" type="text/css" href="' . $pdir . 'res/feed.css">
|
||||
<!-- EOF Feed Stylesheet -->
|
||||
';
|
||||
}
|
||||
|
||||
function plugin_feed_widget() {
|
||||
|
||||
$lang = lang_load('plugin:feed');
|
||||
$baseurl = BLOG_BASEURL;
|
||||
$imgdir = plugin_geturl('feed');
|
||||
|
||||
$widget ['subject'] = $lang ['plugin'] ['feed'] ['subject'];
|
||||
|
||||
$rss = $lang ['plugin'] ['feed'] ['rss'];
|
||||
$atom = $lang ['plugin'] ['feed'] ['atom'];
|
||||
|
||||
$widget ['content'] = '
|
||||
<!-- BOF Feed-Buttons -->
|
||||
<ul>
|
||||
<li>
|
||||
<a href="' . $baseurl . '?x=feed:rss2" title="' . $rss . '" target="_blank"><img class="feed-widget" src="' . $imgdir . 'img/rss.png" alt="RSS"></a>
|
||||
<a href="' . $baseurl . '?x=feed:atom" title="' . $atom . '" target="_blank"><img class="feed-widget" src="' . $imgdir . 'img/atom.png" alt="Atom"></a>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- EOF Feed-Buttons -->
|
||||
';
|
||||
|
||||
return $widget;
|
||||
}
|
||||
|
||||
register_widget('feed', 'RSS and Atom Feed', 'plugin_feed_widget'); // feed-widget
|
||||
add_action('wp_head', 'plugin_feed_head'); // stytesheet-file
|
||||
?>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user