File size: 1.83Kb
<?php
require_once '../element_database.php';
require_once '../../element_function/element_function_standart.php';
$list = town_list_update(0);
if (count($list) > 0) {
foreach ($list as $key => $value) {
$cache_town = readcache('element_town_id_'.$key);
if (!empty($cache_town)) {
mysql_query("UPDATE `element_town` SET `lost_name` = '$cache_town[lost_name]',
`lost_level` = '$cache_town[lost_level]',
`lost_exp` = '$cache_town[lost_exp]',
`lost_race` = '$cache_town[lost_race]',
`lost_max_users` = '$cache_town[lost_max_users]',
`lost_text_announce` = '$cache_town[lost_text_announce]',
`lost_other_announce` = '$cache_town[lost_other_announce]',
`lost_treas_gold` = '$cache_town[lost_treas_gold]',
`lost_treas_crist` = '$cache_town[lost_treas_crist]',
`lost_treas_iridiy` = '$cache_town[lost_treas_iridiy]',
`lost_altar` = '$cache_town[lost_altar]',
`lost_altar_time` = '$cache_town[lost_altar_time]' WHERE `lost_id` = '$cache_town[lost_id]' LIMIT 1");
echo 'Обновлен клан с ID '.$cache_town['lost_id'].' - "'.$cache_town['lost_name'].'"<br/>';
unset($list[$key]);
writecache('element_town_list_update', $list);
}
}
}
// %progdir%\modules\wget\bin\wget.exe -q --no-cache http://elemental.local/element_options/element_lost_cron/element_lost_update_town10.php -O %progdir%\userdata\temp\temp.txt
///element_options/element_lost_cron/element_lost_update_town10.php
// /usr/bin/wget -q -o /dev/null http://godwars.ru/element_options/element_lost_cron/element_lost_update_town10.php
// /usr/bin/wget -q -o /dev/null http://godwars.ru/element_options/element_lost_cron/element_lost_update_town.php
?>