diff --git a/.gitignore b/.gitignore index 3ddc1e9..0401add 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ /cache/* /content/* +/config/config.ini +/config/users/*.ini diff --git a/README.md b/README.md index e4121f4..c1deada 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ Passwords can be stored in `username.ini` (where "username" is the user's userna $ php -a > echo password_hash('desiredpassword', PASSWORD_BCRYPT); ```` -This will produce a hash which is to be placed in the `password` field in `username.ini`. Ensure that the `encryption` field is set to `bcrypt`. +This will produce a hash which is to be placed in the `password` field in `username.ini`. Ensure that the `encryption` field is set to `password_hash`. Both Online or Offline diff --git a/config/config.ini.example b/config/config.ini.example index 0161ec6..e4abce3 100644 --- a/config/config.ini.example +++ b/config/config.ini.example @@ -4,8 +4,8 @@ site.url = "" ; Your timezone timezone = "Asia/Jakarta" -; Time format. See: https://www.php.net/manual/en/function.date.php -time.format = "d F Y" +; Date format. See: https://www.php.net/manual/en/function.strftime +date.format = "%d %B %Y" ; Your language (currently only "en" for English or "de" for German) language = "en" diff --git a/lang/fr.ini b/lang/fr.ini new file mode 100644 index 0000000..bcc4f9a --- /dev/null +++ b/lang/fr.ini @@ -0,0 +1,86 @@ +About = "A propos" +Add_category = "Ajouter une catégorie" +Add_content = "Ajouter du contenu" +Add_sub = "Ajouter une sous-page" +Admin = "Administrateur" +All_blog_posts = "Tous les billets de blog" +Archives = "Archives" +Are_you_sure_you_want_to_delete_ = "Êtes-vous sûr que de vouloir supprimer %s?" +Audio_post = "Billet audio" +Audio_post_comment = "Créer un billet de blog avec un fichier audio" +Author = "Auteur" +Backup = "Sauvegarde" +Cancel = "Annuler" +Categories = "Catégories" +Category = "Catégorie" +Clear_cache = "Nettoyer le cache" +Config = "Configuration" +Contents = "Contenus" +Created = "Créé" +Delete = "Supprimer" +Description = "Description" +Draft = "Brouillon" +Edit = "Éditer" +Edit_profile = "Éditer le profil" +Filename = "Nom du fichier" +Follow = "Suivre" +Image_post = "Billet avec une image" +Image_post_comment = "Créer un billet de blog avec une image" +Import = "Importer" +Link_post = "Billet avec un lien" +Link_post_comment = "Créer un billet de blog avec un lien" +Login = "Connexion" +Login_page = "Page de connexion" +Logout = "Déconnexion" +Meta_description = "Meta-description" +Mine = "Mes billets" +More = "Plus" +My_draft = "Mes brouillons" +My_posts = "Mes billets" +Newer = "Plus récent" +Next = "Suivant" +Next_post = "Billet suivant" +No_draft_found = "Aucun brouillon trouvé" +No_posts_found = "Aucun billet trouvé" +No_related_post_found = "Aucun billet en rapport trouvé" +Older = "Plus vieux" +Operations = "Opérations" +Popular_posts = "Billets populaires" +Popular_tags = "Tags populaires" +Posted_in = "Posté en" +Posted_on = "Posté le" +Posts = "Billets" +Prev = "Ancien" +Prev_post = "Billet précédent" +Publish = "Publier" +Publish_draft = "Publier le brouillon" +Published = "Publié" +Quote_post = "Billet avec une citation" +Quote_post_comment = "Créer un billet avec un citation" +Recent_posts = "Billets récents" +Regular_post = "Billet simple" +Regular_post_comment = "Créer un billet de blog simple" +Related_posts = "Billets en rapport" +Revert_to_draft = "Retourner en brouillon" +Save = "Enregistrer" +Save_as_draft = "Enregistrer en brouillon" +Search = "Recherche" +Search_for = "Rechercher pour" +Static_page = "Page statique" +Static_page_comment = "Créer une page statique" +Static_pages = "Pages statiques" +Tag = "Tag" +Tags = "Tags" +Title = "Titre" +Uncategorized = "Sans catégorie" +Uncategorized_comment = "Sujets qui n'ont pas besoin de catégorie, ou qui ne conviennent a aucun catégorie existante" +Update = "Mise à jour" +Update_draft = "Mettre à jour le brouillon" +Update_post = "Mettre à jour le billet" +Video_post = "Mettre à jour la vidéo" +Video_post_comment = "Créer un billet de blog avec une vidéo" +View = "Voir" +Views = "Vues" +Your_recent_posts = "Vos billets récents" +by = "par" +read_more = "lire plus" diff --git a/lang/tr.ini b/lang/tr.ini new file mode 100644 index 0000000..90af6c3 --- /dev/null +++ b/lang/tr.ini @@ -0,0 +1,86 @@ +About = "Hakkında" +Add_category = "Kategori ekle" +Add_content = "İçerik ekle" +Add_sub = "Add sub" +Admin = "Yönetici" +All_blog_posts = "Tüm blog yazıları" +Archives = "Arşivler" +Are_you_sure_you_want_to_delete_ = "%s silmek istediğinize emin misiniz?" +Audio_post = "Sesli gönderi" +Audio_post_comment = "Ses içeren bir blog gönderisi oluşturuluyor" +Author = "Yazar" +Backup = "Yedekleme" +Cancel = "İptal" +Categories = "Kategoriler" +Category = "Kategori" +Clear_cache = "Önbelleği temizle" +Config = "Ayarlar" +Contents = "İçerikler" +Created = "Oluşturuldu" +Delete = "Sil" +Description = "Açıklama" +Draft = "Taslak" +Edit = "Düzenle" +Edit_profile = "Profili düzenle" +Filename = "Dosya Adı" +Follow = "Takip Et" +Image_post = "Görsel gönderi" +Image_post_comment = "Öne çıkan görsel içeren bir blog gönderisi oluşturuluyor" +Import = "İçe Aktar" +Link_post = "Bağlantı gönderisi" +Link_post_comment = "Link içerikli bir blog gönderisi oluşturuluyor." +Login = "Giriş Yap" +Login_page = "Giriş sayfası" +Logout = "Çıkış Yap" +Meta_description = "Meta Açıklaması" +Mine = "Benim" +More = "Daha fazla" +My_draft = "Taslaklarım" +My_posts = "Gönderilerim" +Newer = "Daha Yeni" +Next = "Sonraki" +Next_post = "Sonraki yönderi" +No_draft_found = "Taslak bulunamadı" +No_posts_found = "Gönderi bulunamadı" +No_related_post_found = "Benzer gönderi bulunamadı" +Older = "Daha Eski" +Operations = "Operasyonlar" +Popular_posts = "Popüler gönderiler" +Popular_tags = "Popüler etiketler" +Posted_in = "Gönderildi" +Posted_on = "Gönderildi" +Posts = "Gönderiler" +Prev = "Eski" +Prev_post = "Eski Gönderi" +Publish = "Yayınla" +Publish_draft = "Taslak yayınla" +Published = "Yayınlandı" +Quote_post = "Alıntı gönderi" +Quote_post_comment = "Alıntı içeren blog gönderisi oluşturuluyor" +Recent_posts = "Son gönderiler" +Regular_post = "Düzenli gönderi" +Regular_post_comment = "Düzenli gönderi oluşturuluyor" +Related_posts = "Benzer gönderiler" +Revert_to_draft = "Taslağa dönüştür" +Save = "Kaydet" +Save_as_draft = "Taslak olarak kaydet" +Search = "Ara" +Search_for = "Arama:" +Static_page = "Statik sayfa" +Static_page_comment = "Statik sayfa oluşturuluyor" +Static_pages = "Statik sayfalar" +Tag = "Etiket" +Tags = "Etiketler" +Title = "Başlık" +Uncategorized = "Kategorilenmemiş" +Uncategorized_comment = "Bir kategoriye ihtiyaç duymayan veya mevcut herhangi bir kategoriye uymayan konular" +Update = "Güncelle" +Update_draft = "Taslağı güncelle" +Update_post = "Gönderiyi güncelle" +Video_post = "Video gönderi" +Video_post_comment = "Video içeren blog gönderisi oluşturuluyor" +View = "Okunma" +Views = "Okunma" +Your_recent_posts = "Son gönderilerin" +by = "tarafından" +read_more = "daha fazla oku" diff --git a/system/admin/views/user-draft.html.php b/system/admin/views/user-draft.html.php index e24d2b5..57d401f 100644 --- a/system/admin/views/user-draft.html.php +++ b/system/admin/views/user-draft.html.php @@ -28,6 +28,16 @@ + +
+ + + + + + +
+ \ No newline at end of file +} ?> diff --git a/system/htmly.php b/system/htmly.php index 764b7a7..0781afa 100644 --- a/system/htmly.php +++ b/system/htmly.php @@ -1088,6 +1088,7 @@ get('/admin/draft', function () { 'is_admin' => true, 'bodyclass' => 'admin-draft', 'breadcrumb' => '' . config('breadcrumb.home') . ' » Draft for: ' . $author->name, + 'pagination' => has_pagination($total, $perpage, $page) )); die; } @@ -1105,6 +1106,7 @@ get('/admin/draft', function () { 'is_admin' => true, 'bodyclass' => 'admin-draft', 'breadcrumb' => '' . config('breadcrumb.home') . ' » Draft for: ' . $author->name, + 'pagination' => has_pagination($total, $perpage, $page) )); } else { $login = site_url() . 'login';