mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-24 16:16:14 +00:00
c37c08ef53
--HG-- branch : gsoc2012-achievements
37 lines
825 B
PHP
37 lines
825 B
PHP
<?php
|
|
|
|
error_reporting(E_ALL ^ E_NOTICE);
|
|
ini_set("display_errors","1");
|
|
|
|
define('APP_NAME', 'app_achievements_admin');
|
|
|
|
require_once('../config.php');
|
|
include_once('../lang.php');
|
|
include_once('lang.php');
|
|
require_once('conf.php');
|
|
|
|
// Ask to authenticate user (using ingame or session method) and fill $user with all information
|
|
ryzom_app_authenticate($user, false);
|
|
|
|
$user = array();
|
|
$user['id'] = 1;
|
|
$user['lang'] = 'en';
|
|
$user['name'] = 'Talvela';
|
|
$user['race'] = "r_matis";
|
|
$user['civilization'] = "c_neutral";
|
|
$user['cult'] = "c_neutral";
|
|
$user['admin'] = true;
|
|
|
|
require_once("class/RyzomAdmin_class.php");
|
|
$_USER = new RyzomAdmin($user);
|
|
|
|
if($_USER->isIG()) {
|
|
die("IG disabled for admin tool!");
|
|
}
|
|
|
|
$DBc = ryDB::getInstance("app_achievements");
|
|
|
|
|
|
echo ryzom_app_render("achievements admin", $c, $_USER->isIG());
|
|
|
|
?>
|