mirror of
https://github.com/danpros/htmly.git
synced 2026-04-21 04:56:23 +05:30
Update htmly.php
This commit is contained in:
parent
3d8b037169
commit
54823b1003
1 changed files with 6 additions and 2 deletions
|
|
@ -428,8 +428,12 @@ get('/front/edit', function () {
|
||||||
// Show the "Add content" page
|
// Show the "Add content" page
|
||||||
get('/add/content', function () {
|
get('/add/content', function () {
|
||||||
|
|
||||||
$req = _h($_GET['type']);
|
if (isset($_GET['type'])) {
|
||||||
|
$req = _h($_GET['type']);
|
||||||
|
} else {
|
||||||
|
$req = 'post';
|
||||||
|
}
|
||||||
|
|
||||||
$type = 'is_' . $req;
|
$type = 'is_' . $req;
|
||||||
|
|
||||||
if (login()) {
|
if (login()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue