From d020af83bbd170a551534120bd6e132dbefc9b43 Mon Sep 17 00:00:00 2001 From: gine Date: Sun, 4 Sep 2016 16:43:42 +0200 Subject: [PATCH] Fix Cambio di url rasplice --- index.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index cb8be22..b810f3b 100755 --- a/index.php +++ b/index.php @@ -8,7 +8,8 @@ require_once('include/template.php'); $err=$user=$email=""; $type="-1"; -$rasplice_url="http://rasplice.contaminati.net/cgi-bin/rasplice.txt"; +//$rasplice_url="http://rasplice.contaminati.net/cgi-bin/rasplice.txt"; +$rasplice_url="http://rasplice.contaminati.net/i2rasplice/"; $indivia24hdomain="@24h.indivia.net"; $db=Database::getInstance('std'); @@ -40,13 +41,13 @@ function getSqlAliasInfo($goto_email){ if (isset($_POST["ph"]) AND $_POST["ph"]=="1" AND $_POST['email'] != "") { - $goto_email_noescape = $_POST['email']; $goto_email = $db->escapeString($goto_email_noescape); + if (email_check($goto_email)) { //solo l'email alias deve non essere presente. do { - $alias_nic = preg_replace('/\s+/', '', get_data($rasplice_url)); + $alias_nic = preg_replace('/\s+/', '', get_data($rasplice_url.rand())); if($alias_nic===FALSE) $alias_nic="email_".rand(10000,99999); $alias_dom = substr($indivia24hdomain,1);