|
|
|
@ -45,12 +45,16 @@ function addlinkcategory($type) { |
|
|
|
|
|
|
|
|
|
if ($_POST['onhomepage'] == '') { |
|
|
|
|
$onhomepage = 0; |
|
|
|
|
$target = '_self'; // Default target. |
|
|
|
|
} else { |
|
|
|
|
$onhomepage = Security :: remove_XSS($_POST['onhomepage']); |
|
|
|
|
$target = Security :: remove_XSS($_POST['target_link']); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (empty($_POST['target_link'])) { |
|
|
|
|
$target = '_self'; // Default target. |
|
|
|
|
} else { |
|
|
|
|
$target = Security :: remove_XSS($_POST['target_link']); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$urllink = trim($urllink); |
|
|
|
|
$title = trim($title); |
|
|
|
|
$description = trim($description); |
|
|
|
|