#1470 achievement admin initial

This commit is contained in:
SirCotare 2012-06-11 18:53:04 +02:00
parent f0fa5191f9
commit 7f192c3ed7
4 changed files with 138 additions and 0 deletions

View file

@ -0,0 +1,13 @@
<?php
if(!defined('APP_NAME')) {
die(-1);
}
$achConf = array();
$achConf['summary_size'] = 12;
$achConf['default_lang'] = 'en';
$achConf['enable_webig'] = true;
$achConf['enable_offgame'] = true;
$achConf['use_cache'] = false;
?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -0,0 +1,37 @@
<?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());
?>

View file

@ -0,0 +1,88 @@
<?php
$__texts = array (
'ach_summary' =>
array (
'en' => 'Summary',
'fr' => '',
'de' => '',
'ru' => '',
),
'ach_summary_header' =>
array (
'en' => 'Recent Achievements',
'fr' => '',
'de' => '',
'ru' => '',
),
'ach_summary_stats' =>
array (
'en' => 'Statistics',
'fr' => '',
'de' => '',
'ru' => '',
),
'ach_summary_stats_total' =>
array (
'en' => 'Total',
'fr' => '',
'de' => '',
'ru' => '',
),
'ach_c_neutral' =>
array (
'en' => 'neutral',
'fr' => '',
'de' => '',
'ru' => '',
),
'ach_allegiance_neutral_cult' =>
array (
'en' => 'While being of %s allegiance with the higher powers',
'fr' => '',
'de' => '',
'ru' => '',
),
'ach_allegiance_neutral_civ' =>
array (
'en' => 'While being of %s allegiance with the homin civilizations',
'fr' => '',
'de' => '',
'ru' => '',
),
'ach_allegiance_neutral' =>
array (
'en' => 'While being of %s allegiance',
'fr' => '',
'de' => '',
'ru' => '',
),
'ach_allegiance_start' =>
array (
'en' => 'While being aligned with the ',
'fr' => '',
'de' => '',
'ru' => '',
),
'ach_allegiance_and' =>
array (
'en' => ' and the ',
'fr' => '',
'de' => '',
'ru' => '',
),
'ach_allegiance_end' =>
array (
'en' => ', accomplish the following achievements:',
'fr' => '',
'de' => '',
'ru' => '',
),
);
if(isset($ryzom_texts))
$ryzom_texts = array_merge ($__texts, $ryzom_texts);
else
$ryzom_texts = $__texts;
?>