Пример #1
0
 public static function NoPermsAndDie()
 {
     $lng = language::getinstance()->GetLngBlock('dataengine');
     DataEngine::ErrorAndDie($lng['nopermsanddie']);
 }
Пример #2
0
// pour avoir les coords des planètes
require_once CLASS_PATH . 'parser.class.php';
// Ajout des vortex dans la base...
require_once CLASS_PATH . 'cartographie.class.php';
// Ajout des vortex dans la base...
require_once './inc.php';
// Check si activé
if (!addons::getinstance()->Is_installed('scanner')) {
    DataEngine::NoPermsAndDie();
}
header('Content-Type: text/html;charset=utf-8');
error_reporting(E_ALL);
FB::setEnabled(false);
ob_end_flush();
if (!isset($_GET['id']) || !isset($_GET['step']) || !isset($_SESSION['scanner_email']) || !isset($_SESSION['scanner_session']) || $_SESSION['scanner_email'] == '' || $_SESSION['scanner_session'] == '') {
    DataEngine::ErrorAndDie('Paramètre(s) manquant(s)');
}
$scanner = addons::getinstance()->Get_Addons('scanner');
$host = $scanner->ScanServer();
$header = 'Cookie: login_email=' . str_replace('@', '%40', $_SESSION['scanner_email']) . '; testcookie=1; PHPSESSID=' . $_SESSION['scanner_session'] . "\r\n";
$nbplanets = 0;
$skipnb = intval($_GET['step']);
$skipnext = $skipnb + 1;
$carto = cartographie::getinstance();
if (isset($_GET['ss']) && $_GET['ss'] != '') {
    $coord = $_GET['ss'];
} else {
    $coord = ownuniverse::getinstance()->get_comlevel();
    $coord = $coord[intval($_GET['id'])]['ss'];
}
$coords = map::getinstance()->Parcours()->GetListeCoorByRay($coord, $scanner->ScanRay('planets'));