|
|
|
@ -27,8 +27,8 @@
|
|
|
|
|
$id = intval($_REQUEST['id']);
|
|
|
|
|
if($id == 2)
|
|
|
|
|
$id = 0;
|
|
|
|
|
$oldid = intval($_POST['oldid']);
|
|
|
|
|
$process = $_POST['process'];
|
|
|
|
|
$oldid = array_key_exists('oldid',$_POST)?intval($_POST['oldid']):0;
|
|
|
|
|
$process = array_key_exists('process',$_POST)?$_POST['process']:"";
|
|
|
|
|
|
|
|
|
|
loadem("account");
|
|
|
|
|
$errmsg = "";
|
|
|
|
@ -48,24 +48,24 @@
|
|
|
|
|
{
|
|
|
|
|
$id = 1;
|
|
|
|
|
$errmsg .= _("You can only place an advertisement for up to 12 months.<br />");
|
|
|
|
|
unset($process);
|
|
|
|
|
unset($oldid);
|
|
|
|
|
$process="";
|
|
|
|
|
$oldid=0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(strlen($title) <= 5)
|
|
|
|
|
{
|
|
|
|
|
$id = 1;
|
|
|
|
|
$errmsg .= _("Link title was too short.<br />");
|
|
|
|
|
unset($process);
|
|
|
|
|
unset($oldid);
|
|
|
|
|
$process="";
|
|
|
|
|
$oldid=0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(strlen($link) <= 10)
|
|
|
|
|
{
|
|
|
|
|
$id = 1;
|
|
|
|
|
$errmsg .= _("Link URI was too short.<br />");
|
|
|
|
|
unset($process);
|
|
|
|
|
unset($oldid);
|
|
|
|
|
$process="";
|
|
|
|
|
$oldid=0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|