\n"); print ("\n"); print ("\n"); die(); } if ($do=="add") { $ttitle=mhtml(substr($HTTP_POST_VARS["ttitle"],0,256)); $url=mhtml(substr($HTTP_POST_VARS["url"],0,256)); $email=mhtml(substr($HTTP_POST_VARS["email"],0,256)); $description=mhtml(substr($HTTP_POST_VARS["description"],0,2048)); $c1=intval($HTTP_POST_VARS["c1"]); $error=""; if ($c1==0) $error.="
  • ".$LANG["mustbecat"]; if (empty($email)) $error.="
  • ".$LANG["mustbeemail"]; if (empty($url)) $error.="
  • ".$LANG["mustbeurl"]; if (empty($ttitle)) $error.="
  • ".$LANG["mustbetitle"]; if (empty($description)) $error.="
  • ".$LANG["mustbedescription"]; if (empty($error)) { if ($cat["mailifnewlink"]=="yes") { mail($cat["mailifnewlinkto"],$cat["mailifnewlinksubject"],"TITLE: $ttitle\nURL: $url\n"); } mysql_query("INSERT INTO main SET title='$ttitle', description='$description', url='$url', cat1='$c1', cat2='0', cat3='0', gin=0, gout=0, moder_vote=0, email='$email', type=0;") or die(mysql_error()); require("template.php"); if($onregister == "on") { $headers = "From: $namesender <$emailsender>\n"; mail($email,$subjbefore,html_entity_decode($templbefore,ENT_QUOTES),$headers); } $r=mysql_query("SELECT max(lid) FROM main WHERE url='$url'") or die(mysql_error()); $cid=@mysql_result($r,0,0); print ("\n"); print ("\n"); print ("\n"); die(); } } $title=$LANG["addlink"]; include "_top.php"; $template=$TMPL["bmenu"]; $template=str_replace("%MODERATORSTEXT",$LANG["moderators"],$template); $template=str_replace("%ADDLINKTEXT",$LANG["addlink"],$template); $template=str_replace("%MAINTEXT",$LANG["main"],$template); print $template; print "
    "; if (!empty($error)) { print "

    ".$LANG["errorsfound"]."\n"; print "

    \n"; } ?>

    :
    :  
    :
    :
    :