diff --git a/admin/action/create_page.php b/admin/action/create_page.php index 0141505..f9d7bda 100644 --- a/admin/action/create_page.php +++ b/admin/action/create_page.php @@ -2,7 +2,7 @@ // Change this to your timezone date_default_timezone_set('Asia/Jakarta'); require '../../system/includes/dispatch.php'; - config('source', '../../admin/config.ini'); + config('source', '../../config/config.ini'); include '../includes/session.php'; if(isset($_POST['submit'])) { diff --git a/admin/action/create_post.php b/admin/action/create_post.php index be9ff88..004cd91 100644 --- a/admin/action/create_post.php +++ b/admin/action/create_post.php @@ -2,7 +2,7 @@ // Change this to your timezone date_default_timezone_set('Asia/Jakarta'); require '../../system/includes/dispatch.php'; - config('source', '../../admin/config.ini'); + config('source', '../../config/config.ini'); include '../includes/session.php'; if(isset($_POST['submit'])) { diff --git a/admin/action/delete_page.php b/admin/action/delete_page.php index 784c6e3..8e04561 100644 --- a/admin/action/delete_page.php +++ b/admin/action/delete_page.php @@ -2,7 +2,7 @@ // Change this to your timezone date_default_timezone_set('Asia/Jakarta'); require '../../system/includes/dispatch.php'; - config('source', '../../admin/config.ini'); + config('source', '../../config/config.ini'); include '../includes/session.php'; if(isset($_GET['url'])) { diff --git a/admin/action/delete_post.php b/admin/action/delete_post.php index 920deee..1c631a2 100644 --- a/admin/action/delete_post.php +++ b/admin/action/delete_post.php @@ -2,7 +2,7 @@ // Change this to your timezone date_default_timezone_set('Asia/Jakarta'); require '../../system/includes/dispatch.php'; - config('source', '../../admin/config.ini'); + config('source', '../../config/config.ini'); include '../includes/session.php'; if(isset($_GET['url'])) { diff --git a/admin/action/edit_bio.php b/admin/action/edit_bio.php index fbce409..9d7f715 100644 --- a/admin/action/edit_bio.php +++ b/admin/action/edit_bio.php @@ -2,7 +2,7 @@ // Change this to your timezone date_default_timezone_set('Asia/Jakarta'); require '../../system/includes/dispatch.php'; - config('source', '../../admin/config.ini'); + config('source', '../../config/config.ini'); include '../includes/session.php'; if(isset($_SESSION['user'])) { diff --git a/admin/action/edit_page.php b/admin/action/edit_page.php index 86f0161..e1a1e23 100644 --- a/admin/action/edit_page.php +++ b/admin/action/edit_page.php @@ -2,7 +2,7 @@ // Change this to your timezone date_default_timezone_set('Asia/Jakarta'); require '../../system/includes/dispatch.php'; - config('source', '../../admin/config.ini'); + config('source', '../../config/config.ini'); include '../includes/session.php'; if(isset($_GET['url'])) { @@ -21,7 +21,7 @@ $post_url = rtrim($post_url, ',\.\-'); $post_content = $_POST['content']; } - if(!empty($post_content)) { + if(!empty($post_url) && !empty($post_content)) { if(get_magic_quotes_gpc()) { $post_content = stripslashes($post_content); } diff --git a/admin/action/edit_post.php b/admin/action/edit_post.php index 80c2a05..7874b7d 100644 --- a/admin/action/edit_post.php +++ b/admin/action/edit_post.php @@ -2,7 +2,7 @@ // Change this to your timezone date_default_timezone_set('Asia/Jakarta'); require '../../system/includes/dispatch.php'; - config('source', '../../admin/config.ini'); + config('source', '../../config/config.ini'); include '../includes/session.php'; if(isset($_GET['url'])) { @@ -27,7 +27,7 @@ $post_url = rtrim($post_url, ',\.\-'); $post_content = $_POST['content']; } - if(!empty($post_content)) { + if(!empty($post_tag) && !empty($post_url) && !empty($post_content)) { if(get_magic_quotes_gpc()) { $post_content = stripslashes($post_content); } diff --git a/admin/action/login.php b/admin/action/login.php index ffdf589..9c1a11d 100644 --- a/admin/action/login.php +++ b/admin/action/login.php @@ -6,7 +6,7 @@ $user = $_REQUEST['user']; $pass = $_REQUEST['password']; - $user_file = '../../admin/users/' . $user . '.ini'; + $user_file = '../../config/users/' . $user . '.ini'; $user_pass = user('password', $user); if(file_exists($user_file)) { diff --git a/admin/editor/css/editor.css b/admin/editor/css/editor.css index 601f63a..bd3f11d 100644 --- a/admin/editor/css/editor.css +++ b/admin/editor/css/editor.css @@ -9,9 +9,9 @@ blockquote { } .wmd-panel{ - width: 46%; + width: 44%; float:left; - padding:2%; + padding-right:20px; } .wmd-button-bar { @@ -127,6 +127,11 @@ pre code { @media all and (max-width: 980px) { + .nav { + width: 100%; + padding: 2%; + } + .wmd-panel, .wmd-preview { width: 96%; float:left; diff --git a/admin/includes/page_list.php b/admin/includes/page_list.php index f0398ca..57160e6 100644 --- a/admin/includes/page_list.php +++ b/admin/includes/page_list.php @@ -1,6 +1,6 @@

Welcome to your new HTMLy-powered blog.

-

The next thing you will need to do is creating the first account. Please create YourUsername.ini inside admin/users folder and write down your password there:

+

The next thing you will need to do is creating the first account. Please create YourUsername.ini inside config/users folder and write down your password there:

password = YourPassword

Login to your blog admin panel at www.example.com/admin to creating your first post.

This welcome message will disappear after your first post published.

diff --git a/themes/clean/css/style.css b/themes/clean/css/style.css index ee5f301..b384710 100644 --- a/themes/clean/css/style.css +++ b/themes/clean/css/style.css @@ -208,6 +208,14 @@ pre { background: #F1F1FF; } +code { + color: #333333; + font-family: Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif; + font-size: 15px; + padding: 5px 10px; + background: #F1F1FF; +} + pre code { color: #333333; display: block; @@ -276,9 +284,8 @@ blockquote:after { vertical-align: -0.45em; } -blockquote { - font-style: italic; - margin: 1em 0 1em 1em; +blockquote p { + display:inline; } .credit { @@ -287,6 +294,56 @@ blockquote { padding: 10px 0; } +/*------------------------- + Table +--------------------------*/ + +table { + font-size:12px; + border: none; + width:100%; + color:#333333; + border: 1px solid #E3E3E3; + margin: 1em 0; +} + +table h2.title { + margin:5px 0; +} + +th, td { + padding: 5px 10px; + border: none; +} + +th.title { + margin:5px 0; + font-family: 'Open Sans Condensed', sans-serif; + font-size:18px; + font-weight:normal; +} + +td.title { + font-weight:normal; + background-color: #f6f6f6; + font-family: 'Open Sans Condensed', sans-serif; +} + +th { + background-color: #f6f6f6; + border-bottom: 1px solid #E3E3E3; + border-right: 1px solid #E3E3E3; + font-family: 'Open Sans Condensed', sans-serif; + font-size:18px; +} + +td { + background-color: #fafafa; + border: 1px solid #E3E3E3; + border-top: none; + border-left:none; +} + /*---------------------------- The left bar -----------------------------*/ diff --git a/themes/clean/profile.html.php b/themes/clean/profile.html.php index edff022..5ba80d7 100644 --- a/themes/clean/profile.html.php +++ b/themes/clean/profile.html.php @@ -20,7 +20,7 @@ $i++; ?>
  • - title ?> on date)?> - Posted in tag ?> + title ?> on date)?> - Posted in tag ?>
  • diff --git a/themes/default/css/style.css b/themes/default/css/style.css index 5c6907f..e17a52b 100644 --- a/themes/default/css/style.css +++ b/themes/default/css/style.css @@ -151,12 +151,24 @@ blockquote { margin: 1em 0 1em 1em; } +blockquote p { + display:inline; +} + pre { margin: 1em 0; overflow: auto; background: #F1F1FF; } +code { + color: #333333; + font-family: Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif; + font-size: 15px; + padding: 5px 10px; + background: #F1F1FF; +} + pre code { color: #333333; display: block; @@ -186,6 +198,56 @@ ul li, ol li{ margin: 0.25em 0; } +/*------------------------- + Table +--------------------------*/ + +table { + font-size:12px; + border: none; + width:100%; + color:#333333; + border: 1px solid #E3E3E3; + margin: 1em 0; +} + +table h2.title { + margin:5px 0; +} + +th, td { + padding: 5px 10px; + border: none; +} + +th.title { + margin:5px 0; + font-family: 'Open Sans',sans-serif; + font-size:18px; + font-weight:normal; +} + +td.title { + font-weight:normal; + background-color: #f6f6f6; + font-family: 'Open Sans',sans-serif; +} + +th { + background-color: #f6f6f6; + border-bottom: 1px solid #E3E3E3; + border-right: 1px solid #E3E3E3; + font-family: 'Open Sans',sans-serif; + font-size:18px; +} + +td { + background-color: #fafafa; + border: 1px solid #E3E3E3; + border-top: none; + border-left:none; +} + /*------------------------- Menu --------------------------*/ diff --git a/themes/default/profile.html.php b/themes/default/profile.html.php index edff022..5ba80d7 100644 --- a/themes/default/profile.html.php +++ b/themes/default/profile.html.php @@ -20,7 +20,7 @@ $i++; ?>
  • - title ?> on date)?> - Posted in tag ?> + title ?> on date)?> - Posted in tag ?>