Hidistro.UI.Web/Admin/FileManagerJson.cs
(开头部分) 17KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Hidistro.UI.Web.Admin
{
using Hidistro.Core;
using Hidistro.UI.ControlPanel.Utility;
using LitJson;
using Microsoft.Practices.EnterpriseLibrary.Data;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.IO;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
public class FileManagerJson : AdminPage
{
private string dir;
protected FileManagerJson() : base("m01", "00000")
{
this.dir = "image";
}
public void FillTableForDb(string cid, string order, Hashtable table)
{
int result = 0;
int.TryParse(cid, out result);
Database database = DatabaseFactory.CreateDatabase();
table["moveup_dir_path"] = "";
table["current_dir_path"] = "";
table["current_url"] = "";
new List<Hashtable>();
List<Hashtable> list = new List<Hashtable>();
table["file_list"] = list;
if (result > 0)
{
Hashtable item = new Hashtable();
item["is_dir"] = true;
item["has_file"] = true;
item["filesize"] = 0;
item["is_photo"] = false;
item["filetype"] = "";
item["filename"] = "上级目录";
item["path"] = "-1";
item["datetime"] = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
list.Add(item);
}
if (result <= 0)
{
string str = "select CategoryId,CategoryName from Hishop_PhotoCategories order by DisplaySequence";
DbCommand command = database.GetSqlStringCommand(str);
using (IDataReader reader = database.ExecuteReader(command))
{
while (reader.Read())
{
int categoryFile = 0;
decimal fileSize = 0M;
categoryFile = this.GetCategoryFile((int) reader["CategoryId"], out fileSize);
Hashtable hashtable2 = new Hashtable();
后面还有 410 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
