создайте в корне SE файл confirm.php с таким содержимым:
Code:
CONFIRM::1234-1234-1234-1234,yourdomainname
далее, в файле include/class_radcodes.php
найдите строку
Code:
$response = rc_toolkit::get_url_content("http://www.".RADCODES_LIBRARY_NAME.".com/gateway/version.php?$param_query");
и поменяйте ее на
Code:
$response = rc_toolkit::get_url_content("http://your.domain/confirm.php");
или если у вас нет такой строки (другая версия SE), возможен такой вариант:
найдите
Code:
$response = file_get_contents(”http://www.radcodes.com/gateway/license.php?key=$value&domain=$http_host&type=$typ e&version=$version”);
и поменяйте на
Code:
$response = file_get_contents(”http://yourdomainname/confirm.php”);
---------- Добавлено в 00:10 ---------- Предыдущее сообщение было написано в 00:03 ----------
исправить проблему с лицензией на business площадку можно так:
в файле admin/admin_business.php
найти
Code:
$rc_validator->license($setting['setting_business_license'],'business','license');
if (!$rc_validator->has_errors()) {
// SAVE CHANGES
$sql = "UPDATE se_settings SET
setting_business_license='{$setting[setting_business_license]}',
setting_permission_business='{$setting[setting_permission_business]}',
setting_business_proximity_country='{$setting[setting_business_proximity_country]}',
setting_business_proximity_search='{$setting[setting_business_proximity_search]}',
setting_business_summary_required='{$setting[setting_business_summary_required]}',
setting_business_desc_required='{$setting[setting_business_desc_required]}',
setting_business_phone_required='{$setting[setting_business_phone_required]}',
setting_business_url_required='{$setting[setting_business_url_required]}',
setting_business_tags_required='{$setting[setting_business_tags_required]}',
setting_business_neighborhood_required='{$setting[setting_business_neighborhood_required]}',
setting_business_location_postal_required='{$setting[setting_business_location_postal_required]}',
setting_business_location_street_required='{$setting[setting_business_location_street_required]}',
setting_business_location_city_required='{$setting[setting_business_location_city_required]}',
setting_business_location_province_required='{$setting[setting_business_location_province_required]}',
setting_business_location_country_required='{$setting[setting_business_location_country_required]}',
setting_business_countries='{$setting[setting_business_countries]}',
setting_business_country_field_type='{$setting[setting_business_country_field_type]}',
setting_business_provinces='{$setting[setting_business_provinces]}',
setting_business_province_field_type='{$setting[setting_business_province_field_type]}',
setting_business_cities='{$setting[setting_business_cities]}',
setting_business_city_field_type='{$setting[setting_business_city_field_type]}'
";
$resource = $database->database_query($sql) or die($database->database_error()." <b>SQL was: </b>$sql");
$catprofile_map = rc_toolkit::get_post('catprofile_map', array());
foreach ($catprofile_map as $cat_id => $profilecat_id) {
$sql = "UPDATE se_businesscats SET businesscat_businessprofilecat_id = '$profilecat_id' WHERE businesscat_id = '$cat_id'";
$resource = $database->database_query($sql) or die($database->database_error()." <b>SQL was: </b>$sql");
}
$result = 1;
}
}
и заменить на
Code:
// $rc_validator->license($setting['setting_business_license'],'business','license');
// if (!$rc_validator->has_errors()) {
// SAVE CHANGES
$sql = "UPDATE se_settings SET
setting_business_license='{$setting[setting_business_license]}',
setting_permission_business='{$setting[setting_permission_business]}',
setting_business_proximity_country='{$setting[setting_business_proximity_country]}',
setting_business_proximity_search='{$setting[setting_business_proximity_search]}',
setting_business_summary_required='{$setting[setting_business_summary_required]}',
setting_business_desc_required='{$setting[setting_business_desc_required]}',
setting_business_phone_required='{$setting[setting_business_phone_required]}',
setting_business_url_required='{$setting[setting_business_url_required]}',
setting_business_tags_required='{$setting[setting_business_tags_required]}',
setting_business_neighborhood_required='{$setting[setting_business_neighborhood_required]}',
setting_business_location_postal_required='{$setting[setting_business_location_postal_required]}',
setting_business_location_street_required='{$setting[setting_business_location_street_required]}',
setting_business_location_city_required='{$setting[setting_business_location_city_required]}',
setting_business_location_province_required='{$setting[setting_business_location_province_required]}',
setting_business_location_country_required='{$setting[setting_business_location_country_required]}',
setting_business_countries='{$setting[setting_business_countries]}',
setting_business_country_field_type='{$setting[setting_business_country_field_type]}',
setting_business_provinces='{$setting[setting_business_provinces]}',
setting_business_province_field_type='{$setting[setting_business_province_field_type]}',
setting_business_cities='{$setting[setting_business_cities]}',
setting_business_city_field_type='{$setting[setting_business_city_field_type]}'
";
$resource = $database->database_query($sql) or die($database->database_error()." <b>SQL was: </b>$sql");
$catprofile_map = rc_toolkit::get_post('catprofile_map', array());
foreach ($catprofile_map as $cat_id => $profilecat_id) {
$sql = "UPDATE se_businesscats SET businesscat_businessprofilecat_id = '$profilecat_id' WHERE businesscat_id = '$cat_id'";
$resource = $database->database_query($sql) or die($database->database_error()." <b>SQL was: </b>$sql");
}
$result = 1;
//}
}
то есть, грубо говоря, там пару строк всего закомментировать надо, или удалить, чтоб валидатор не срабатывал.