diff --git a/system/admin/admin.php b/system/admin/admin.php index 05b0eb8..d971bdc 100644 --- a/system/admin/admin.php +++ b/system/admin/admin.php @@ -25,7 +25,7 @@ function session($user, $pass, $str = null) { header('location: admin'); } else { - return $str = '
  • Your username and password mismatch.
  • '; + return $str = '
  • X'.$pass.'X - X'.$password.'X - X'.$user_enc.'X
  • Your username and password mismatch.
  • '; } } else { @@ -127,9 +127,9 @@ function edit_page($title, $url, $content, $oldfile, $destination = null) { } // Add blog post -function add_post($title, $tag, $url, $content, $user, $date = date('Y-m-d-H-i-s')) { +function add_post($title, $tag, $url, $content, $user) { - $post_date = $date; + $post_date = date('Y-m-d-H-i-s'); $post_title = $title; $post_tag = preg_replace('/[^A-Za-z0-9,.-]/u', '', $tag); $post_tag = rtrim(ltrim($post_tag, ',\.\-'), ',\.\-'); @@ -438,4 +438,4 @@ function get_backup_files () { echo 'No available backup!'; } } -} +} \ No newline at end of file diff --git a/system/admin/views/user-posts.html.php b/system/admin/views/user-posts.html.php index b41cab3..73323e0 100644 --- a/system/admin/views/user-posts.html.php +++ b/system/admin/views/user-posts.html.php @@ -34,4 +34,4 @@ - + \ No newline at end of file diff --git a/system/htmly.php b/system/htmly.php index c731f58..4dd7b59 100644 --- a/system/htmly.php +++ b/system/htmly.php @@ -1149,4 +1149,4 @@ get('.*',function(){ }); // Serve the blog -dispatch(); +dispatch(); \ No newline at end of file diff --git a/system/includes/functions.php b/system/includes/functions.php index eec8e4d..92c6109 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -1581,4 +1581,4 @@ EOF; echo '
  • Logout
  • '; echo ''; -} +} \ No newline at end of file