Exemplo n.º 1
0
 //(sizeof($_SESSION["import_attribute"]) + sizeof($system_attributes) - sizeof($unused_systemattr)) .
 //"), this may cause trouble: $index");
 if (!$invalid || $invalid && $_SESSION["omit_invalid"] != "yes") {
     $user["systemvalues"] = $system_values;
     reset($_SESSION["import_attribute"]);
     $replace = array();
     while (list($key, $val) = each($_SESSION["import_attribute"])) {
         if (!empty($values[$val["index"]])) {
             $user[$val["index"]] = addslashes($values[$val["index"]]);
             $replace[$key] = addslashes($values[$val["index"]]);
         }
     }
 } else {
     # Warn("Omitting invalid one: $email");
 }
 $user["systemvalues"]["email"] = parseImportPlaceHolders($system_values["email"], array_merge($replace, $system_values, array("number" => $c)));
 $user["systemvalues"]["email"] = cleanEmail($user["systemvalues"]["email"]);
 $c++;
 if (!isset($user["systemvalues"]["htmlemail"])) {
     $user["systemvalues"]["htmlemail"] = 1;
 }
 if ($_SESSION["test_import"]) {
     #   var_dump($user["systemvalues"]);#exit;
     $html = '';
     foreach ($user["systemvalues"] as $column => $value) {
         if (strpos($column, 'grouptype_') === 0) {
             if (isset($system_attributes[$column])) {
                 $column = $system_attributes[$column];
             }
         }
         if (!empty($column)) {
Exemplo n.º 2
0
 //(sizeof($_SESSION["import_attribute"]) + sizeof($system_attributes) - sizeof($unused_systemattr)) .
 //"), this may cause trouble: $index");
 if (!$invalid || $invalid && $_SESSION['omit_invalid'] != 'yes') {
     $user['systemvalues'] = $system_values;
     reset($_SESSION['import_attribute']);
     $replace = array();
     while (list($key, $val) = each($_SESSION['import_attribute'])) {
         if (!empty($values[$val['index']])) {
             $user[$val['index']] = addslashes($values[$val['index']]);
             $replace[$key] = addslashes($values[$val['index']]);
         }
     }
 } else {
     # Warn("Omitting invalid one: $email");
 }
 $user['systemvalues']['email'] = parseImportPlaceHolders($system_values['email'], array_merge($replace, $system_values, array('number' => $c)));
 $user['systemvalues']['email'] = cleanEmail($user['systemvalues']['email']);
 ++$c;
 if (!isset($user['systemvalues']['htmlemail'])) {
     $user['systemvalues']['htmlemail'] = 1;
 }
 if ($_SESSION['test_import']) {
     #   var_dump($user["systemvalues"]);#exit;
     $html = '';
     foreach ($user['systemvalues'] as $column => $value) {
         if (strpos($column, 'grouptype_') === 0) {
             if (isset($system_attributes[$column])) {
                 $column = $system_attributes[$column];
             }
         }
         if (!empty($column)) {