Compare commits

..

No commits in common. "a6bb67ca511fef606bda4fd70be2ce1e8b72ac8c" and "2acc4a67cc798560b6625c220ac758d4c96295e3" have entirely different histories.

3 changed files with 8 additions and 6 deletions

View file

@ -1,4 +1,6 @@
<?php <?php
$dbms_server="172.19.0.102"; $dbms_server="10.42.1.61";
// $dbms_server="127.0.0.1";
$dbms_port="3306"; $dbms_port="3306";
// $dbms_port="33306";
?> ?>

View file

@ -265,9 +265,10 @@ class Database {
*/ */
function execQuery($sql) { function execQuery($sql) {
$this->last_query = $sql; $this->last_query = $sql;
$r = mysqli_query($this->db_link,$sql); $r = mysqli_query($this->db_link,$sql);
if (!$r) if (!$r)
$this->callException(_("Exec Query error."),E_DB_ERR); $this->callException(_("Query error."),E_DB_ERR);
return $this->row_count = mysqli_affected_rows($this->db_link); return $this->row_count = mysqli_affected_rows($this->db_link);
} }

View file

@ -8,8 +8,7 @@ require_once('include/template.php');
$err=$user=$email=""; $err=$user=$email="";
$type="-1"; $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"; $indivia24hdomain="@24h.indivia.net";
$db=Database::getInstance('std'); $db=Database::getInstance('std');
@ -41,13 +40,13 @@ function getSqlAliasInfo($goto_email){
if (isset($_POST["ph"]) AND if (isset($_POST["ph"]) AND
$_POST["ph"]=="1" AND $_POST["ph"]=="1" AND
$_POST['email'] != "") { $_POST['email'] != "") {
$goto_email_noescape = $_POST['email']; $goto_email_noescape = $_POST['email'];
$goto_email = $db->escapeString($goto_email_noescape); $goto_email = $db->escapeString($goto_email_noescape);
if (email_check($goto_email)) { if (email_check($goto_email)) {
//solo l'email alias deve non essere presente. //solo l'email alias deve non essere presente.
do { do {
$alias_nic = preg_replace('/\s+/', '', get_data($rasplice_url.rand())); $alias_nic = preg_replace('/\s+/', '', get_data($rasplice_url));
if($alias_nic===FALSE) if($alias_nic===FALSE)
$alias_nic="email_".rand(10000,99999); $alias_nic="email_".rand(10000,99999);
$alias_dom = substr($indivia24hdomain,1); $alias_dom = substr($indivia24hdomain,1);