mirror of
https://github.com/danpros/htmly.git
synced 2026-04-20 20:46:26 +05:30
Merge pull request #86 from Kanti/master
meta description and Password security fix by @Kanti
This commit is contained in:
commit
124d2139b0
5 changed files with 5 additions and 5 deletions
|
|
@ -20,7 +20,7 @@ function session($user, $pass, $str = null) {
|
|||
$password = (strlen($user_enc) > 0 && $user_enc !== 'clear' && $user_enc !== 'none') ? hash($user_enc, $pass) : $pass;
|
||||
|
||||
if (file_exists($user_file)) {
|
||||
if ($pass === $user_pass) {
|
||||
if ($password === $user_pass) {
|
||||
$_SESSION[config("site.url")]['user'] = $user;
|
||||
header('location: admin');
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
Title <span class="required">*</span><br><input type="text" class="text <?php if (isset($postTitle)) { if (empty($postTitle)) { echo 'error';}} ?>" name="title" value="<?php if (isset($postTitle)) { echo $postTitle;} ?>"/><br><br>
|
||||
Url (optional)<br><input type="text" class="text" name="url" value="<?php if (isset($postUrl)) { echo $postUrl;} ?>"/><br>
|
||||
<span class="help">If the url leave empty we will use the page title.</span><br><br>
|
||||
Meta Description (optional)<br><input type="text" class="text" name="description" value="<?php if (isset($postDescription)) { echo $postDescription;} ?>"/><br>
|
||||
Meta Description (optional)<br><input type="text" class="text" name="description" maxlength="2" value="<?php if (isset($postDescription)) { echo $postDescription;} ?>"/><br>
|
||||
<br>
|
||||
<div id="wmd-button-bar" class="wmd-button-bar"></div>
|
||||
<textarea id="wmd-input" class="wmd-input <?php if (isset($postContent)) { if (empty($postContent)) { echo 'error';}} ?>" name="content" cols="20" rows="10"><?php if (isset($postContent)) { echo $postContent;} ?></textarea><br/>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
Tag <span class="required">*</span> <br><input type="text" class="text <?php if (isset($postTag)) { if (empty($postTag)) { echo 'error';}} ?>" name="tag" value="<?php if (isset($postTag)) { echo $postTag;} ?>"/><br><br>
|
||||
Url (optional)<br><input type="text" class="text" name="url" value="<?php if (isset($postUrl)) { echo $postUrl;} ?>"/><br>
|
||||
<span class="help">If the url leave empty we will use the post title.</span><br><br>
|
||||
Meta Description (optional)<br><input type="text" class="text" name="description" value="<?php if (isset($postDescription)) { echo $postDescription;} ?>"/><br>
|
||||
Meta Description (optional)<br><input type="text" class="text" name="description" maxlength="2" value="<?php if (isset($postDescription)) { echo $postDescription;} ?>"/><br>
|
||||
<br><br>
|
||||
<div id="wmd-button-bar" class="wmd-button-bar"></div>
|
||||
<textarea id="wmd-input" class="wmd-input <?php if (isset($postContent)) { if (empty($postContent)) { echo 'error';}} ?>" name="content" cols="20" rows="10"><?php if (isset($postContent)) { echo $postContent;} ?></textarea><br/>
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
Title <span class="required">*</span><br><input type="text" name="title" class="text <?php if (isset($postTitle)) { if (empty($postTitle)) { echo 'error';}} ?>" value="<?php echo $oldtitle?>"/><br><br>
|
||||
Url (optional)<br><input type="text" name="url" class="text" value="<?php echo $oldmd ?>"/><br>
|
||||
<span class="help">If the url leave empty we will use the page title.</span><br><br>
|
||||
Meta Description (optional)<br><input type="text" class="text" name="description" value="<?php if (isset($p->description)) { echo $p->description;} ?>"/><br>
|
||||
Meta Description (optional)<br><input type="text" class="text" name="description" maxlength="2" value="<?php if (isset($p->description)) { echo $p->description;} ?>"/><br>
|
||||
<br><br>
|
||||
<div id="wmd-button-bar" class="wmd-button-bar"></div>
|
||||
<textarea id="wmd-input" class="wmd-input <?php if (isset($postContent)) { if (empty($postContent)) { echo 'error';}} ?>" name="content" cols="20" rows="10"><?php echo $oldcontent ?></textarea><br>
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@
|
|||
Tag <span class="required">*</span> <br><input type="text" name="tag" class="text <?php if (isset($postTag)) { if (empty($postTag)) { echo 'error';}} ?>" value="<?php echo $oldtag?>"/><br><br>
|
||||
Url (optional)<br><input type="text" name="url" class="text" value="<?php echo $oldmd ?>"/><br>
|
||||
<span class="help">If the url leave empty we will use the post title.</span><br><br>
|
||||
Meta Description (optional)<br><input type="text" class="text" name="description" value="<?php if (isset($p->description)) { echo $p->description;} ?>"/><br>
|
||||
Meta Description (optional)<br><input type="text" class="text" name="description" maxlength="2" value="<?php if (isset($p->description)) { echo $p->description;} ?>"/><br>
|
||||
<br><br>
|
||||
<div id="wmd-button-bar" class="wmd-button-bar"></div>
|
||||
<textarea id="wmd-input" class="wmd-input <?php if (isset($postContent)) { if (empty($postContent)) { echo 'error';}} ?>" name="content" cols="20" rows="10"><?php echo $oldcontent ?></textarea><br>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue