Browse Source

Update hash and draft partial

pull/51/head
BlackCodec 11 years ago
parent
commit
edb50004d8
4 changed files with 7 additions and 7 deletions
  1. +4
    -4
      system/admin/admin.php
  2. +1
    -1
      system/admin/views/user-posts.html.php
  3. +1
    -1
      system/htmly.php
  4. +1
    -1
      system/includes/functions.php

+ 4
- 4
system/admin/admin.php View File

@ -25,7 +25,7 @@ function session($user, $pass, $str = null) {
header('location: admin');
}
else {
return $str = '<li>Your username and password mismatch.</li>';
return $str = '<li>X'.$pass.'X - X'.$password.'X - X'.$user_enc.'X</li><li>Your username and password mismatch.</li>';
}
}
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!';
}
}
}
}

+ 1
- 1
system/admin/views/user-posts.html.php View File

@ -34,4 +34,4 @@
<?php endif;?>
</div>
<?php endif;?>
<?php } else { echo 'No posts found!'; }?>
<?php } else { echo 'No posts found!'; }?>

+ 1
- 1
system/htmly.php View File

@ -1149,4 +1149,4 @@ get('.*',function(){
});
// Serve the blog
dispatch();
dispatch();

+ 1
- 1
system/includes/functions.php View File

@ -1581,4 +1581,4 @@ EOF;
echo '<li><a href="'.$base.'logout">Logout</a></li>';
echo '</ul></div>';
}
}

Loading…
Cancel
Save