$v){
if (strncmp('record_', $k, 7) == 0) {
$fields .= ereg_replace( "record_", "", $k ) . ', ';
$values .= "'" . addslashes($v) . "', ";
}
if (strncmp('via_', $k, 4) == 0) {
$via .= $v . ' | ';
}
}
$now = time();
$date = date('Y-m-d H:i:s', $now);
if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARDED_FOR']) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else if (isset($_SERVER['REMOTE_ADDR'])) {
$ip = $_SERVER['REMOTE_ADDR'];
} else {
$ip = "0.0.0.0";
}
$fields .= 'via, date, ip';
$values .= "'" . $via . "', '" . $date . "', '" . $ip . "'";
$link = mysql_connect($default_host, $default_login, $default_password);
$db = mysql_select_db($default_database, $link);
$query = "INSERT INTO " . $default_preffix . $dbinfo['relate_' . LANG] . " (" . $fields . ") VALUES (" . $values . ")";
if (mysql_query($query, $link)){
$error = header("Location:formulario.htm?msg=INSERT_OK");
}else{
$error = INSERT_ERROR;
}
}
?>
100 y mas
" . $subtheme_name . " no pertenece al tema " . $theme_name . " !!";
// }
}
}else{
$error = SUBTHEME_ERROR;
}
mysql_free_result($result_2);
}else{
$error = THEME_ERROR;
}
mysql_free_result($result);
mysql_close ($link);
}else{
$error = URL_ERROR;
}
}
?>