mirror of
https://github.com/Relintai/mourne_rcpp_fw.git
synced 2024-11-13 05:57:21 +01:00
31 lines
534 B
PHP
Executable File
31 lines
534 B
PHP
Executable File
<?php if (! defined('BASEPATH')) {
|
|
exit('No direct script access allowed');
|
|
}
|
|
|
|
if (! function_exists('gender')) {
|
|
function gender($gender = '')
|
|
{
|
|
if ($gender == 1) {
|
|
return 'Male';
|
|
} else {
|
|
return 'Female';
|
|
}
|
|
}
|
|
}
|
|
|
|
if (! function_exists('class_name')) {
|
|
function class_name($id = 0)
|
|
{
|
|
switch ($id) {
|
|
case 1:
|
|
return 'Warrior';
|
|
case 2:
|
|
return 'Rogue';
|
|
case 3:
|
|
return 'Archer';
|
|
default:
|
|
return 'Error';
|
|
}
|
|
}
|
|
}
|