Compare commits

...

3 commits

Author SHA1 Message Date
a6bb67ca51 Fix ip del server db01 2016-09-04 16:45:03 +02:00
a740d31050 Commento più informativo 2016-09-04 16:44:17 +02:00
d020af83bb Fix Cambio di url rasplice 2016-09-04 16:43:42 +02:00
3 changed files with 6 additions and 8 deletions

View file

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

View file

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

View file

@ -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);