Changeset 86 for trunk/admin
- Timestamp:
- 04/02/06 20:43:37 (3 years ago)
- Location:
- trunk/admin
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/index.php
r83 r86 17 17 */ 18 18 19 $adminmode = 1; 19 20 require("../common/functions_blog.php"); 20 21 //----------------------------- … … 705 706 <td><input type="text" name="author[email]" value="<?=$author["email"]?>" /></td> 706 707 </tr><tr> 708 <td align="right">website:</td> 709 <td><input type="text" name="author[website]" value="<?=$author["website"]?>" /></td> 710 </tr><tr> 707 711 <td align="right">full name: </td> 708 712 <td><input type="text" name="author[fullname]" value="<?=$author["fullname"]?>" /></td> … … 748 752 $query .= "\"fullname\"='".$author["fullname"]."'"; 749 753 $query .= ", \"email\"='".$author["email"]."'"; 754 $query .= ", \"website\"='".$author["website"]."'"; 750 755 $query .= ", active = ".(int)$author["active"]; 751 756 if (trim($author["password"])) { … … 755 760 } else { 756 761 if (trim($author["password"])) { 757 $query = "INSERT INTO authors (\"password\", \"fullname\", \"email\", \" login\", active) VALUES ('".trim($author["password"])."', ";762 $query = "INSERT INTO authors (\"password\", \"fullname\", \"email\", \"website\", \"login\", active) VALUES ('".trim($author["password"])."', "; 758 763 } else { 759 $query = "INSERT INTO authors (\"fullname\", \"email\", \" login\", active) VALUES (";764 $query = "INSERT INTO authors (\"fullname\", \"email\", \"website\", \"login\", active) VALUES ("; 760 765 } 761 766 $query .= "'".$author["fullname"]."'"; 762 767 $query .= ", '".$author["email"]."'"; 768 $query .= ", '".$author["website"]."'"; 763 769 $query .= ", '".$author["login"]."'"; 764 770 $query .= ", ".(int)$author["active"]; -
trunk/admin/login.php
r83 r86 3 3 * MvBlog -- An open source no-noncence blogtool 4 4 * 5 * Copyright (C) 2005 , Michiel van Baak5 * Copyright (C) 2005-2006, Michiel van Baak 6 6 * Logo design (C) 2005, Sofie van Tendeloo 7 7 * … … 16 16 * at the top of the source tree. 17 17 */ 18 18 $adminmode = 1; 19 19 require("../common/functions_blog.php"); 20 20 … … 59 59 $_SESSION["author_fullname"] = $row["fullname"]; 60 60 $_SESSION["author_email"] = $row["email"]; 61 $_SESSION["author_website"] = $row["website"]; 61 62 header("Location: index.php"); 62 63 } else {
