2021-11-14 11:02:22 +01:00
|
|
|
<?php if (! defined('BASEPATH')) {
|
|
|
|
exit('No direct script access allowed');
|
|
|
|
}
|
2021-10-30 19:02:07 +02:00
|
|
|
|
2021-11-14 11:02:22 +01:00
|
|
|
if (! function_exists('gender')) {
|
|
|
|
function gender($gender = '')
|
|
|
|
{
|
|
|
|
if ($gender == 1) {
|
|
|
|
return 'Male';
|
|
|
|
} else {
|
|
|
|
return 'Female';
|
|
|
|
}
|
|
|
|
}
|
2021-10-30 19:02:07 +02:00
|
|
|
}
|
|
|
|
|
2021-11-14 11:02:22 +01:00
|
|
|
if (! function_exists('class_name')) {
|
|
|
|
function class_name($id = 0)
|
2021-10-30 19:02:07 +02:00
|
|
|
{
|
2021-11-14 11:02:22 +01:00
|
|
|
switch ($id) {
|
2021-10-30 19:02:07 +02:00
|
|
|
case 1:
|
2021-11-14 11:02:22 +01:00
|
|
|
return 'Warrior';
|
2021-10-30 19:02:07 +02:00
|
|
|
case 2:
|
2021-11-14 11:02:22 +01:00
|
|
|
return 'Rogue';
|
2021-10-30 19:02:07 +02:00
|
|
|
case 3:
|
2021-11-14 11:02:22 +01:00
|
|
|
return 'Archer';
|
2021-10-30 19:02:07 +02:00
|
|
|
default:
|
2021-11-14 11:02:22 +01:00
|
|
|
return 'Error';
|
2021-10-30 19:02:07 +02:00
|
|
|
}
|
2021-11-14 11:02:22 +01:00
|
|
|
}
|
|
|
|
}
|