mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 05:00:49 +08:00
add lang: ja
This commit is contained in:
@@ -397,10 +397,10 @@ $SUBSPATH = "subs";
|
||||
//Whether clean-up is triggered by cron, instead of the default browser clicks.
|
||||
//Set this to true ONLY if you have setup other method to schedule the clean-up process.
|
||||
//e.g. cron on *nix, add the following line (without "") in your crontab file
|
||||
//"*/5 * * * * wget -O - -q -t 1 http://www.nexusphp.com/cron.php"
|
||||
//"*/5 * * * * wget -O - -q -t 1 https://nexusphp.org/cron.php"
|
||||
//NOTE:
|
||||
//Make sure you have wget installed on your OS
|
||||
//replace "http://www.nexusphp.com/" with your own site address
|
||||
//replace "https://nexusphp.org/" with your own site address
|
||||
|
||||
$useCronTriggerCleanUp = true;
|
||||
//some promotion rules
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.9.0');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2025-04-17');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2025-04-19');
|
||||
defined('IN_TRACKER') || define('IN_TRACKER', false);
|
||||
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
||||
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
||||
|
||||
@@ -45,7 +45,9 @@ function get_langfile_path($script_name ="", $target = false, $lang_folder = "")
|
||||
{
|
||||
$lang_folder = $CURLANGDIR;
|
||||
}
|
||||
return "lang/" . ($target == false ? $lang_folder : "_target") ."/lang_". ( $script_name == "" ? substr(strrchr($_SERVER['SCRIPT_NAME'],'/'),1) : $script_name);
|
||||
$result = "lang/" . ($target == false ? $lang_folder : "_target") ."/lang_". ( $script_name == "" ? substr(strrchr($_SERVER['SCRIPT_NAME'],'/'),1) : $script_name);
|
||||
do_log($result);
|
||||
return $result;
|
||||
}
|
||||
|
||||
function get_row_sum($table, $field, $suffix = "")
|
||||
@@ -1715,7 +1717,7 @@ function registration_check($type = "invitesystem", $maxuserscheck = true, $ipch
|
||||
$ip = getip () ;
|
||||
$a = (@mysql_fetch_row(@sql_query("select count(*) from users where ip='" . mysql_real_escape_string($ip) . "'"))) or sqlerr(__FILE__, __LINE__);
|
||||
if ($a[0] > $maxip)
|
||||
stderr($lang_functions['std_sorry'], $lang_functions['std_the_ip']."<b>" . htmlspecialchars($ip) ."</b>". $lang_functions['std_used_many_times'],false, true);
|
||||
stderr($lang_functions['std_sorry'], $lang_functions['std_the_ip']."<b>" . htmlspecialchars($ip) ."</b>". sprintf($lang_functions['std_used_many_times'], \App\Models\Setting::getSiteName()),false, true);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -4273,7 +4275,7 @@ function permissiondenied($allowMinimumClass = null){
|
||||
if ($allowMinimumClass === null) {
|
||||
stderr($lang_functions['std_error'], $lang_functions['std_permission_denied']);
|
||||
} else {
|
||||
stderr($lang_functions['std_sorry'],$lang_functions['std_permission_denied_only'].get_user_class_name($allowMinimumClass,false,true,true).$lang_functions['std_or_above_can_view'],false);
|
||||
stderr($lang_functions['std_sorry'],$lang_functions['std_permission_denied_only'].get_user_class_name($allowMinimumClass,false,true,true).sprintf($lang_functions['std_or_above_can_view'], \App\Models\Setting::getSiteName()),false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -242,8 +242,8 @@ function getLogFile($append = '')
|
||||
return $logFiles[$append];
|
||||
}
|
||||
$config = nexus_config('nexus');
|
||||
if (!empty($config['log_file']) && in_array($config['log_files'], ["/dev/stdout", "/dev/stderr"])) {
|
||||
return $logFiles[$append] = $config['log_files'];
|
||||
if (!empty($config['log_file']) && in_array($config['log_file'], ["/dev/stdout", "/dev/stderr"])) {
|
||||
return $logFiles[$append] = $config['log_file'];
|
||||
}
|
||||
$path = getenv('NEXUS_LOG_DIR', true);
|
||||
$fromEnv = true;
|
||||
@@ -1227,7 +1227,7 @@ function user_can($permission, $fail = false, $uid = 0): bool
|
||||
global $lang_functions;
|
||||
$requireClass = get_setting("authority.$permission");
|
||||
if (isset(\App\Models\User::$classes[$requireClass])) {
|
||||
stderr($lang_functions['std_sorry'],$lang_functions['std_permission_denied_only'].get_user_class_name($requireClass,false,true,true).$lang_functions['std_or_above_can_view'],false);
|
||||
stderr($lang_functions['std_sorry'],$lang_functions['std_permission_denied_only'].get_user_class_name($requireClass,false,true,true).sprintf($lang_functions['std_or_above_can_view'], \App\Models\Setting::getSiteName()),false);
|
||||
} else {
|
||||
stderr($lang_functions['std_error'], $lang_functions['std_permission_denied']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user