mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 15:16:30 +02:00
@@ -106,7 +106,24 @@ if ($_POST['createbanner'] || $_POST['updatebanner'])
|
|||||||
$cLogin = $e107->tp->toDB($_POST['client_login']);
|
$cLogin = $e107->tp->toDB($_POST['client_login']);
|
||||||
$cPassword = $e107->tp->toDB($_POST['client_password']);
|
$cPassword = $e107->tp->toDB($_POST['client_password']);
|
||||||
$banImage = $e107->tp->toDB($_POST['banner_image']);
|
$banImage = $e107->tp->toDB($_POST['banner_image']);
|
||||||
|
|
||||||
$banURL = $e107->tp->toDB($_POST['click_url']);
|
$banURL = $e107->tp->toDB($_POST['click_url']);
|
||||||
|
if (strpos($banURL, '://' ) !== FALSE)
|
||||||
|
{
|
||||||
|
$clickBits = explode('://', $banURL, 2);
|
||||||
|
if (($clickBits[0] == 'http') || ($clickBits[0] == 'https'))
|
||||||
|
{
|
||||||
|
$banURL = $clickBits[0].'://'.rawurlencode($clickBits[1]);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$banURL = rawurlencode($banURL);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$banURL = rawurlencode($banURL);
|
||||||
|
}
|
||||||
|
|
||||||
if ($_POST['banner_pages'])
|
if ($_POST['banner_pages'])
|
||||||
{ // Section redundant?
|
{ // Section redundant?
|
||||||
|
Reference in New Issue
Block a user