mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-25 08:16:16 +00:00
#1470 achievement admin initial
This commit is contained in:
parent
f5f3d5d43f
commit
cbb4470bab
4 changed files with 138 additions and 0 deletions
13
code/web/app/app_achievements_admin/conf.php
Normal file
13
code/web/app/app_achievements_admin/conf.php
Normal 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;
|
||||
?>
|
BIN
code/web/app/app_achievements_admin/favicon.png
Normal file
BIN
code/web/app/app_achievements_admin/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
37
code/web/app/app_achievements_admin/index.php
Normal file
37
code/web/app/app_achievements_admin/index.php
Normal 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());
|
||||
|
||||
?>
|
88
code/web/app/app_achievements_admin/lang.php
Normal file
88
code/web/app/app_achievements_admin/lang.php
Normal 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;
|
||||
?>
|
Loading…
Reference in a new issue