mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 11:27:24 +08:00
index page add top uploader
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.7.4');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-04-23');
|
||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.7.5');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-04-25');
|
||||
defined('IN_TRACKER') || define('IN_TRACKER', true);
|
||||
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
||||
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
||||
|
||||
@@ -2546,7 +2546,7 @@ else {
|
||||
$Cache->cache_value('user_'.$CURUSER["id"].'_outbox_count', $outmessages, 900);
|
||||
}
|
||||
if (!$connect = $Cache->get_value('user_'.$CURUSER["id"].'_connect')){
|
||||
$res3 = sql_query("SELECT connectable FROM peers WHERE userid=" . sqlesc($CURUSER["id"]) . " LIMIT 1");
|
||||
$res3 = sql_query("SELECT connectable FROM peers WHERE userid=" . sqlesc($CURUSER["id"]) . " order by id desc LIMIT 1");
|
||||
if($row = mysql_fetch_row($res3))
|
||||
$connect = $row[0];
|
||||
else $connect = 'unknown';
|
||||
@@ -3164,9 +3164,9 @@ function writecomment($userid, $comment, $oldModcomment = null) {
|
||||
if (is_null($oldModcomment)) {
|
||||
$res = sql_query("SELECT modcomment FROM users WHERE id = '$userid'") or sqlerr(__FILE__, __LINE__);
|
||||
$arr = mysql_fetch_assoc($res);
|
||||
$modcomment = date("d-m-Y") . " - " . $comment . "" . ($arr['modcomment'] != "" ? "\n" : "") . $arr['modcomment'];
|
||||
$modcomment = date("Y-m-d") . " - " . $comment . "" . ($arr['modcomment'] != "" ? "\n" : "") . $arr['modcomment'];
|
||||
} else {
|
||||
$modcomment = date("d-m-Y") . " - " . $comment . "" . ($oldModcomment != "" ? "\n" : "") .$oldModcomment;
|
||||
$modcomment = date("Y-m-d") . " - " . $comment . "" . ($oldModcomment != "" ? "\n" : "") .$oldModcomment;
|
||||
}
|
||||
$modcom = sqlesc($modcomment);
|
||||
do_log("update user: $userid prepend modcomment: $comment, with oldModcomment: $oldModcomment");
|
||||
|
||||
@@ -607,8 +607,10 @@ function nexus_trans($key, $replace = [], $locale = null)
|
||||
$getKey = $locale . "." . $key;
|
||||
$result = arr_get($translations, $getKey);
|
||||
if (empty($result) && $locale != 'en') {
|
||||
$getKey = "en.$key";
|
||||
$getKey = "en." . $key;
|
||||
$result = arr_get($translations, $getKey);
|
||||
} else {
|
||||
do_log("original getKey: $getKey can not get any translations", 'error');
|
||||
}
|
||||
if (!empty($replace)) {
|
||||
$search = array_map(function ($value) {return ":$value";}, array_keys($replace));
|
||||
|
||||
Reference in New Issue
Block a user