Skip to content

Commit

Permalink
1.26 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kalcaddle committed Dec 31, 2021
1 parent 2067633 commit 75c90f9
Show file tree
Hide file tree
Showing 35 changed files with 99 additions and 60 deletions.
2 changes: 1 addition & 1 deletion app/autoload.php

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions app/controller/admin/member.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,12 @@ private function import(){
$res = ActionCallHook('admin.member.add');
if($res['code']) $success++;
}
$info = LNG('common.success') . ":{$success}; ";
$info .= LNG('common.valid') . ":{$fileData['valid']}; ";
$info .= LNG('common.inAll') . ":{$fileData['total']}";
$fail = $fileData['total'] - $success;
$info = LNG('common.inAll') . ":{$fileData['total']}; ";
$info .= LNG('common.success') . ":{$success}";
if ($fail > 0) {
$info .= "<br/>" . LNG('common.fail') . ":{$fail} (".LNG('admin.member.importFailDesc').")";
}
$code = (boolean) $success;
$data = $code ? LNG('admin.member.importSuccess') : LNG('admin.member.importFail');
show_json($data, $code, $info);
Expand All @@ -340,6 +343,7 @@ private function getImport($file){
fclose($handle);
// 2.获取列表数据
unset($dataList[0]);
$dataList = array_filter($dataList);
$list = array();
$keys = array('name','nickName','password','sex','phone','email');
$sex = array('' => 0, '' => 1);
Expand Down
11 changes: 11 additions & 0 deletions app/function/helper.function.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ function checkExt($file){
}
return 1;
}
function checkExtSafe($file){
if($file == '.htaccess' || $file == '.user.ini') return false;
if(strstr($file,'<') || strstr($file,'>') || $file=='') return false;
$disable = 'php|phtml|phtm|pwml|asp|aspx|ascx|jsp|pl|html|htm|svg|shtml|shtm';
$extArr = explode('|',$disable);
foreach ($extArr as $ext) {
if ($ext && stristr($file,'.'.$ext)) return false;
}
return true;
}

function linkHref($src,$dev=false){
if($dev){echo STATIC_PATH.$src.'?v='.time(); return;}
$static = STATIC_PATH;
Expand Down
5 changes: 3 additions & 2 deletions config/i18n/ar/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,9 @@
"admin.member.downTplDesc" => "، يرجى ملء شكل القالب وتحميله.",
"admin.member.uploadInvalid" => "لا توجد بيانات صالحة في الملف الذي تم تحميله ، يرجى التحقق والتحميل مرة أخرى",
"admin.member.uploadDataInvalid" => "تحميل البيانات غير صالح أو منتهي الصلاحية ، يرجى التحميل مرة أخرى",
"admin.member.importSuccess" => "نجح الاستيراد",
"admin.member.importSuccess" => "اكتمل الاستيراد",
"admin.member.importFail" => "فشل الاستيراد",
"admin.member.importFailDesc" => "حقل غير صالح أو مكرر",
"admin.member.groupRemoveTips" => "لا يمكن لمستخدمي مجموعة المستخدمين هذه تسجيل الدخول بعد الحذف <br/> (تحتاج إلى إعادة تعيين مجموعة المستخدم) ، هل أنت متأكد أنك تريد المتابعة؟",
"admin.member.memberRemoveTips" => "بعد الحذف ، سيتم نقل دليل المستخدم إلى سلة محذوفات النظام ،<br/> هل أنت متأكد أنك تريد الاستمرار؟",
"admin.member.selectUserTips" => "الرجاء تحديد الحساب للعمل",
Expand Down Expand Up @@ -1076,7 +1077,7 @@
"common.error" => "خطأ",
"common.expired" => "انتهت",
"common.valid" => "فعال",
"common.inAll" => "تماما",
"common.inAll" => "مجموع",
"common.allAndNull" => "حدد الكل / إلغاء",
"common.moveTop" => "أعلى",
"common.moveBottom" => "حدد في النهاية",
Expand Down
5 changes: 3 additions & 2 deletions config/i18n/bn/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,9 @@
"admin.member.downTplDesc" => ", দয়া করে টেম্পলেট ফর্ম্যাটটি পূরণ করুন এবং আপলোড করুন।",
"admin.member.uploadInvalid" => "আপলোড করা ফাইলটিতে কোনও বৈধ ডেটা নেই, দয়া করে চেক করুন এবং আবার আপলোড করুন",
"admin.member.uploadDataInvalid" => "আপলোড ডেটা অবৈধ বা মেয়াদোত্তীর্ণ, দয়া করে আবার আপলোড করুন",
"admin.member.importSuccess" => "আমদানি সফল হয়েছে",
"admin.member.importSuccess" => "আমদানি সম্পূর্ণ",
"admin.member.importFail" => "আমদানি ব্যর্থ",
"admin.member.importFailDesc" => "অবৈধ বা সদৃশ ক্ষেত্র৷",
"admin.member.groupRemoveTips" => "এই ব্যবহারকারী দলের ব্যবহারকারীরা মোছার পরে লগ ইন করতে পারবেন না <br/> (ব্যবহারকারীর গোষ্ঠীটি পুনরায় সেট করা দরকার), আপনি কি নিশ্চিত যে আপনি চালিয়ে যেতে চান?",
"admin.member.memberRemoveTips" => "মোছার পরে, ব্যবহারকারী ডিরেক্টরিটি সিস্টেমের পুনর্ব্যবহারযোগ্য বিনে স্থানান্তরিত হবে,<br/> আপনি কি নিশ্চিত যে আপনি চালিয়ে যেতে চান?",
"admin.member.selectUserTips" => "পরিচালনা করতে অ্যাকাউন্ট নির্বাচন করুন",
Expand Down Expand Up @@ -1076,7 +1077,7 @@
"common.error" => "এরর",
"common.expired" => "মেয়াদ শেষ হয়ে গেছে",
"common.valid" => "কার্যকর",
"common.inAll" => "পুরাপুরি",
"common.inAll" => "মোট",
"common.allAndNull" => "সমস্ত নির্বাচন করুন / বাতিল করুন",
"common.moveTop" => "শীর্ষ",
"common.moveBottom" => "শেষে সেট করুন",
Expand Down
5 changes: 3 additions & 2 deletions config/i18n/de/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,9 @@
"admin.member.downTplDesc" => "Bitte füllen Sie das Vorlagenformat aus und laden Sie es hoch.",
"admin.member.uploadInvalid" => "Die hochgeladene Datei enthält keine gültigen Daten. Bitte überprüfen Sie sie und laden Sie sie erneut hoch",
"admin.member.uploadDataInvalid" => "Upload-Daten sind ungültig oder abgelaufen. Bitte laden Sie sie erneut hoch",
"admin.member.importSuccess" => "Import erfolgreich",
"admin.member.importSuccess" => "Import abgeschlossen",
"admin.member.importFail" => "Import fehlgeschlagen",
"admin.member.importFailDesc" => "Ungültiges oder doppeltes Feld",
"admin.member.groupRemoveTips" => "Benutzer dieser Benutzergruppe können sich nach dem Löschen nicht anmelden <br/> (Müssen Sie die Benutzergruppe zurücksetzen) Sind Sie sicher, dass Sie fortfahren möchten?",
"admin.member.memberRemoveTips" => "Nach dem Löschen wird das Benutzerverzeichnis in den Papierkorb des Systems verschoben,<br/> Sind Sie sicher, dass Sie fortfahren möchten?",
"admin.member.selectUserTips" => "Bitte wählen Sie das zu betreibende Konto aus",
Expand Down Expand Up @@ -1076,7 +1077,7 @@
"common.error" => "Falsch",
"common.expired" => "Abgelaufen",
"common.valid" => "Wirksam",
"common.inAll" => "Total",
"common.inAll" => "gesamt",
"common.allAndNull" => "Wählen Sie Alle / Abbrechen",
"common.moveTop" => "oben",
"common.moveBottom" => "Am Ende einstellen",
Expand Down
3 changes: 2 additions & 1 deletion config/i18n/en/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,9 @@
"admin.member.downTplDesc" => ", Please fill in the template format and upload.",
"admin.member.uploadInvalid" => "There is no valid data in the uploaded file, please check and upload again",
"admin.member.uploadDataInvalid" => "Upload data is invalid or expired, please upload again",
"admin.member.importSuccess" => "Import succeeded",
"admin.member.importSuccess" => "Import complete",
"admin.member.importFail" => "Import failed",
"admin.member.importFailDesc" => "Invalid or duplicate field",
"admin.member.groupRemoveTips" => "Users of this user group cannot log in after deletion <br/> (Need to reset the user group), are you sure you want to continue?",
"admin.member.memberRemoveTips" => "After deletion, the user directory will be moved to the system recycle bin,<br/> Are you sure you want to continue?",
"admin.member.selectUserTips" => "Please select the account to operate",
Expand Down
5 changes: 3 additions & 2 deletions config/i18n/es/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,9 @@
"admin.member.downTplDesc" => ", Complete el formato de la plantilla y cárguelo.",
"admin.member.uploadInvalid" => "No hay datos válidos en el archivo cargado, verifique y cargue nuevamente",
"admin.member.uploadDataInvalid" => "Los datos de carga no son válidos o caducaron, cargue nuevamente",
"admin.member.importSuccess" => "Importación exitosa",
"admin.member.importSuccess" => "Importación completa",
"admin.member.importFail" => "Importación fallida",
"admin.member.importFailDesc" => "Campo no válido o duplicado",
"admin.member.groupRemoveTips" => "Los usuarios de este grupo de usuarios no pueden iniciar sesión después de la eliminación <br/> (Necesita restablecer el grupo de usuarios), ¿está seguro de que desea continuar?",
"admin.member.memberRemoveTips" => "Después de la eliminación, el directorio de usuarios se moverá a la papelera de reciclaje del sistema,<br/> Estás seguro de que quieres continuar?",
"admin.member.selectUserTips" => "Seleccione la cuenta para operar",
Expand Down Expand Up @@ -1076,7 +1077,7 @@
"common.error" => "Mal",
"common.expired" => "Caducado",
"common.valid" => "Eficaz",
"common.inAll" => "Total",
"common.inAll" => "total",
"common.allAndNull" => "Seleccionar todo / Cancelar",
"common.moveTop" => "Parte superior",
"common.moveBottom" => "Establecer al final",
Expand Down
5 changes: 3 additions & 2 deletions config/i18n/fr/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,9 @@
"admin.member.downTplDesc" => ", Veuillez remplir le format du modèle et télécharger.",
"admin.member.uploadInvalid" => "Il n'y a pas de données valides dans le fichier téléchargé, veuillez vérifier et télécharger à nouveau",
"admin.member.uploadDataInvalid" => "Les données de téléchargement ne sont pas valides ou ont expiré, veuillez télécharger à nouveau",
"admin.member.importSuccess" => "Importation réussie",
"admin.member.importSuccess" => "Importation terminée",
"admin.member.importFail" => "L'importation a échoué",
"admin.member.importFailDesc" => "Champ invalide ou en double",
"admin.member.groupRemoveTips" => "Les utilisateurs de ce groupe d'utilisateurs ne peuvent pas se connecter après la suppression <br/> (Vous devez réinitialiser le groupe d'utilisateurs), êtes-vous sûr de vouloir continuer?",
"admin.member.memberRemoveTips" => "Après la suppression, le répertoire utilisateur sera déplacé vers la corbeille du système,<br/> Es-tu sur de vouloir continuer?",
"admin.member.selectUserTips" => "Veuillez sélectionner le compte à exploiter",
Expand Down Expand Up @@ -1076,7 +1077,7 @@
"common.error" => "Mal",
"common.expired" => "Expiré",
"common.valid" => "Efficace",
"common.inAll" => "Total",
"common.inAll" => "le total",
"common.allAndNull" => "Sélectionner tout / Annuler",
"common.moveTop" => "Haut",
"common.moveBottom" => "Définir à la fin",
Expand Down
5 changes: 3 additions & 2 deletions config/i18n/hi/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,9 @@
"admin.member.downTplDesc" => ", कृपया टेम्पलेट प्रारूप भरें और अपलोड करें।",
"admin.member.uploadInvalid" => "अपलोड की गई फ़ाइल में कोई मान्य डेटा नहीं है, कृपया फिर से जांचें और अपलोड करें",
"admin.member.uploadDataInvalid" => "अपलोड डेटा अमान्य या समाप्त हो गया है, कृपया फिर से अपलोड करें",
"admin.member.importSuccess" => "आयात सफल हुआ",
"admin.member.importSuccess" => "आयात पूर्ण",
"admin.member.importFail" => "आयात विफल रहा",
"admin.member.importFailDesc" => "अमान्य या डुप्लिकेट फ़ील्ड",
"admin.member.groupRemoveTips" => "इस उपयोगकर्ता समूह के उपयोगकर्ता विलोपन के बाद लॉग इन नहीं कर सकते हैं <br/> (उपयोगकर्ता समूह को रीसेट करने की आवश्यकता है), क्या आप वाकई जारी रखना चाहते हैं?",
"admin.member.memberRemoveTips" => "हटाने के बाद, उपयोगकर्ता निर्देशिका को सिस्टम रीसायकल बिन में ले जाया जाएगा,<br/> क्या तुम वाकई जारी रखना चाहते हो?",
"admin.member.selectUserTips" => "कृपया संचालित करने के लिए खाते का चयन करें",
Expand Down Expand Up @@ -1076,7 +1077,7 @@
"common.error" => "त्रुटि",
"common.expired" => "समाप्त हो गया है",
"common.valid" => "प्रभावी",
"common.inAll" => "कुल मिलाकर",
"common.inAll" => "कुल",
"common.allAndNull" => "सभी का चयन करें / रद्द करें",
"common.moveTop" => "ऊपर",
"common.moveBottom" => "अंत में सेट करें",
Expand Down
5 changes: 3 additions & 2 deletions config/i18n/id/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,9 @@
"admin.member.downTplDesc" => ", Silakan isi format templat dan unggah.",
"admin.member.uploadInvalid" => "Tidak ada data yang valid dalam file yang diunggah, silakan periksa dan unggah lagi",
"admin.member.uploadDataInvalid" => "Data unggahan tidak valid atau kedaluwarsa, harap unggah lagi",
"admin.member.importSuccess" => "Impor berhasil",
"admin.member.importSuccess" => "Impor selesai",
"admin.member.importFail" => "Gagal mengimpor",
"admin.member.importFailDesc" => "Bidang tidak valid atau duplikat",
"admin.member.groupRemoveTips" => "Pengguna grup pengguna ini tidak dapat masuk setelah penghapusan <br/> (Perlu menyetel ulang grup pengguna), apakah Anda yakin ingin melanjutkan?",
"admin.member.memberRemoveTips" => "Setelah dihapus, direktori pengguna akan dipindahkan ke tempat sampah sistem,<br/> Apakah anda yakin ingin melanjutkan?",
"admin.member.selectUserTips" => "Silakan pilih akun yang akan dioperasikan",
Expand Down Expand Up @@ -1076,7 +1077,7 @@
"common.error" => "Salah",
"common.expired" => "Kedaluwarsa",
"common.valid" => "Efektif",
"common.inAll" => "Total",
"common.inAll" => "total",
"common.allAndNull" => "Pilih Semua / Batalkan",
"common.moveTop" => "Puncak",
"common.moveBottom" => "Atur di akhir",
Expand Down
5 changes: 3 additions & 2 deletions config/i18n/it/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,9 @@
"admin.member.downTplDesc" => ", Compila il formato del modello e carica.",
"admin.member.uploadInvalid" => "Non ci sono dati validi nel file caricato, controlla e carica di nuovo",
"admin.member.uploadDataInvalid" => "I dati di caricamento non sono validi o scaduti, si prega di caricare di nuovo",
"admin.member.importSuccess" => "Importazione riuscita",
"admin.member.importSuccess" => "Importazione completata",
"admin.member.importFail" => "Importazione non riuscita",
"admin.member.importFailDesc" => "Campo non valido o duplicato",
"admin.member.groupRemoveTips" => "Gli utenti di questo gruppo di utenti non possono accedere dopo l'eliminazione <br/> (È necessario reimpostare il gruppo utenti), sei sicuro di voler continuare?",
"admin.member.memberRemoveTips" => "Dopo l'eliminazione, la directory dell'utente verrà spostata nel cestino del sistema,<br/> Sei sicuro di voler continuare?",
"admin.member.selectUserTips" => "Si prega di selezionare l'account per operare",
Expand Down Expand Up @@ -1076,7 +1077,7 @@
"common.error" => "Errore",
"common.expired" => "Scaduto",
"common.valid" => "Valido",
"common.inAll" => "tutto",
"common.inAll" => "totale",
"common.allAndNull" => "Seleziona Tutto / Annulla",
"common.moveTop" => "Sposta in cima",
"common.moveBottom" => "Sposta alla fine",
Expand Down
3 changes: 2 additions & 1 deletion config/i18n/ja/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,9 @@
"admin.member.downTplDesc" => "、テンプレート形式を入力してアップロードしてください。",
"admin.member.uploadInvalid" => "アップロードされたファイルに有効なデータがありません。もう一度確認してアップロードしてください",
"admin.member.uploadDataInvalid" => "アップロードデータが無効か期限切れです。もう一度アップロードしてください",
"admin.member.importSuccess" => "インポートに成功しました",
"admin.member.importSuccess" => "インポートが完了しました",
"admin.member.importFail" => "インポートに失敗しました",
"admin.member.importFailDesc" => "無効または重複するフィールド",
"admin.member.groupRemoveTips" => "削除後、このユーザーグループのユーザーはログインできません<br/> (ユーザーグループをリセットする必要があります)、続行してもよろしいですか?",
"admin.member.memberRemoveTips" => "削除後、ユーザーディレクトリはシステムのごみ箱に移動されます。<br/>続行してもよろしいですか?",
"admin.member.selectUserTips" => "運用するアカウントを選択してください",
Expand Down
Loading

0 comments on commit 75c90f9

Please sign in to comment.