Namespaces refactoring

main
Inga 🏳‍🌈 13 years ago
parent dae391b682
commit 2b39bb505f
  1. 2
      Builder/IISMainHandler/build.txt
  2. 2
      Common/BBCodes/Quote.cs
  3. 2
      Common/BBCodes/helpers/TexProcessor.cs
  4. 4
      Common/BBCodes/helpers/UrlProcessor.cs
  5. 8
      Common/Config.cs
  6. 2
      Common/ISqlObjectTableSpec.cs
  7. 6
      Common/SqlObject.cs
  8. 2
      Common/TableManager.cs
  9. 2
      Common/UBBParser.cs
  10. 2
      Common/URL/AbstractUrl.cs
  11. 2
      Common/URL/upload/Info.cs
  12. 2
      Common/URL/upload/Item.cs
  13. 6
      Common/UploadManager.cs
  14. 6
      Common/UserContext.cs
  15. 2
      Common/actions/AbstractChange.cs
  16. 4
      Common/actions/ChangeSet.cs
  17. 2
      Common/actions/ChangeSetUtil.cs
  18. 2
      Common/actions/InsertChange.cs
  19. 6
      Common/actions/InsertOrUpdateChange.cs
  20. 2
      Common/actions/UpdateChange.cs
  21. 6
      Common/dataobjects/Account.cs
  22. 6
      Common/dataobjects/AccountIndicator.cs
  23. 6
      Common/dataobjects/AccountSettings.cs
  24. 2
      Common/dataobjects/AnonymousUserSettings.cs
  25. 6
      Common/dataobjects/AvatarsSettings.cs
  26. 10
      Common/dataobjects/Board.cs
  27. 10
      Common/dataobjects/Category.cs
  28. 6
      Common/dataobjects/Invite.cs
  29. 8
      Common/dataobjects/LocalNetwork.cs
  30. 8
      Common/dataobjects/Machichara.cs
  31. 6
      Common/dataobjects/Moderator.cs
  32. 8
      Common/dataobjects/ModernSkin.cs
  33. 6
      Common/dataobjects/PMConversation.cs
  34. 4
      Common/dataobjects/PMMessage.cs
  35. 6
      Common/dataobjects/Poll.cs
  36. 6
      Common/dataobjects/Post.cs
  37. 8
      Common/dataobjects/PostLayer.cs
  38. 6
      Common/dataobjects/Punishment.cs
  39. 6
      Common/dataobjects/PunishmentLayerChange.cs
  40. 6
      Common/dataobjects/PunishmentTransfer.cs
  41. 8
      Common/dataobjects/PunishmentType.cs
  42. 6
      Common/dataobjects/QuickLink.cs
  43. 6
      Common/dataobjects/Restriction.cs
  44. 2
      Common/dataobjects/Revision.cs
  45. 6
      Common/dataobjects/Session.cs
  46. 8
      Common/dataobjects/Skin.cs
  47. 8
      Common/dataobjects/TexImage.cs
  48. 10
      Common/dataobjects/Thread.cs
  49. 6
      Common/dataobjects/Upload.cs
  50. 6
      Common/dataobjects/User.cs
  51. 6
      Common/dataobjects/UserGroup.cs
  52. 2
      Core/Cache.cs
  53. 2
      Core/Config.cs
  54. 2
      Core/Core.csproj
  55. 2
      Core/DB/ColumnOrValue.cs
  56. 2
      Core/DB/ColumnSpec.cs
  57. 2
      Core/DB/Diapasone.cs
  58. 4
      Core/DB/IDBConnection.cs
  59. 2
      Core/DB/ILock.cs
  60. 2
      Core/DB/ITableSpec.cs
  61. 2
      Core/DB/JoinSpec.cs
  62. 2
      Core/DB/SortSpec.cs
  63. 2
      Core/DB/Transaction.cs
  64. 2
      Core/DB/conditions/AbstractCondition.cs
  65. 2
      Core/DB/conditions/ComparisonCondition.cs
  66. 2
      Core/DB/conditions/ComparisonType.cs
  67. 2
      Core/DB/conditions/ComplexCondition.cs
  68. 2
      Core/DB/conditions/ConditionsJoinType.cs
  69. 2
      Core/DB/conditions/EmptyCondition.cs
  70. 2
      Core/DB/conditions/IsNullCondition.cs
  71. 2
      Core/DB/conditions/MultiValueCondition.cs
  72. 2
      Core/DB/conditions/NotEmptyCondition.cs
  73. 2
      Core/DB/conditions/NotIsNullCondition.cs
  74. 2
      Core/DB/conditions/SimpleCondition.cs
  75. 2
      Core/DataObject.cs
  76. 2
      Core/IDataObject.cs
  77. 2
      Core/Network/IPv4.cs
  78. 2
      Core/Network/IPv4Address.cs
  79. 2
      Core/Network/IPv4Subnet.cs
  80. 2
      Core/Registry.cs
  81. 2
      Core/RegistryCleaner.cs
  82. 2
      Core/Switch.cs
  83. 2
      Core/Util.cs
  84. 2
      Core/delegates/Lazy.cs
  85. 2
      Core/delegates/Predicate.cs
  86. 2
      Core/exceptions/AccessDeniedException.cs
  87. 2
      Core/exceptions/CriticalException.cs
  88. 2
      Core/exceptions/FLocalException.cs
  89. 4
      Core/exceptions/NotFoundInDBException.cs
  90. 2
      Core/exceptions/ObjectDoesntHaveAnIdException.cs
  91. 2
      Core/extensions/Delegate.cs
  92. 2
      Core/extensions/Extensions.cs
  93. 2
      Core/extensions/String.cs
  94. 4
      IISMainHandler/Extensions.cs
  95. 2
      IISMainHandler/HandlersFactory.cs
  96. 4
      IISMainHandler/MainHandler.cs
  97. 4
      IISMainHandler/PageOuter.cs
  98. 2
      IISMainHandler/TemplateEngine.cs
  99. 14
      IISMainHandler/WebContext.cs
  100. 2
      IISMainHandler/designs/IDesign.cs
  101. Some files were not shown because too many files have changed in this diff Show More

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLocal.Core;
using Web.Core;
using PJonDevelopment.BBCode;
namespace FLocal.Common.BBCodes {

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLocal.TexCompiler;
using TexCompiler;
using System.IO;
namespace FLocal.Common.BBCodes.helpers {

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using FLocal.Core;
using Web.Core;
namespace FLocal.Common.BBCodes {
class UrlProcessor {
@ -35,7 +35,7 @@ namespace FLocal.Common.BBCodes {
try {
uri = new Uri(url);
} catch(UriFormatException) {
throw new Core.FLocalException("wrong url: " + url);
throw new Web.Core.FLocalException("wrong url: " + url);
}
if (Config.instance.AdditionalHosts.Contains(uri.Host.ToLower()) || uri.Host.ToLower().EndsWith(Config.instance.BaseHost)) {
return new UrlInfo(true, uri.PathAndQuery);

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.Specialized;
using FLocal.Core;
using Web.Core;
namespace FLocal.Common {
@ -11,7 +11,7 @@ namespace FLocal.Common {
public readonly string InitTime;
public readonly Core.DB.IDBConnection mainConnection;
public readonly Web.Core.DB.IDBConnection mainConnection;
public readonly string dataDir;
@ -86,8 +86,8 @@ namespace FLocal.Common {
base.Dispose();
}
public static void Transactional(Action<Core.DB.Transaction> action) {
using(Core.DB.Transaction transaction = Core.DB.IDBConnectionExtensions.beginTransaction(instance.mainConnection)) {
public static void Transactional(Action<Web.Core.DB.Transaction> action) {
using(Web.Core.DB.Transaction transaction = Web.Core.DB.IDBConnectionExtensions.beginTransaction(instance.mainConnection)) {
bool success = false;
try {
action(transaction);

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLocal.Core.DB;
using Web.Core.DB;
namespace FLocal.Common {
public interface ISqlObjectTableSpec : ITableSpec {

@ -2,11 +2,11 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLocal.Core;
using FLocal.Core.DB;
using Web.Core;
using Web.Core.DB;
namespace FLocal.Common {
abstract public class SqlObject<TKey, T> : Core.DataObject<TKey, T>
abstract public class SqlObject<TKey, T> : Web.Core.DataObject<TKey, T>
where T : SqlObject<TKey, T>, new()
where TKey : struct {

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLocal.Core;
using Web.Core;
namespace FLocal.Common {
public static class TableManager {

@ -6,7 +6,7 @@ using System.Web;
using System.Text.RegularExpressions;
using PJonDevelopment.BBCode;
using System.IO;
using FLocal.Core;
using Web.Core;
namespace FLocal.Common {
public static class UBBParser {

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLocal.Core;
using Web.Core;
namespace FLocal.Common.URL {
public abstract class AbstractUrl {

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLocal.Core;
using Web.Core;
using FLocal.Common.dataobjects;
namespace FLocal.Common.URL.upload {

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLocal.Core;
using Web.Core;
using FLocal.Common.dataobjects;
namespace FLocal.Common.URL.upload {

@ -3,10 +3,10 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using FLocal.Core;
using Web.Core;
using FLocal.Common.dataobjects;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core.DB;
using Web.Core.DB.conditions;
using System.Net;
namespace FLocal.Common {

@ -7,9 +7,9 @@ using System.Xml.Linq;
namespace FLocal.Common {
abstract public class UserContext {
public Common.Config config {
public FLocal.Common.Config config {
get {
return Common.Config.instance;
return FLocal.Common.Config.instance;
}
}
@ -62,7 +62,7 @@ namespace FLocal.Common {
}
public static Guid GetGuid(this Exception exception) {
return Core.Cache<Guid>.instance.get(exception, () => Guid.NewGuid());
return Web.Core.Cache<Guid>.instance.get(exception, () => Guid.NewGuid());
}
public static XElement ToXml(this Exception exception) {

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLocal.Core.DB;
using Web.Core.DB;
namespace FLocal.Common.actions {
abstract public class AbstractChange {

@ -2,8 +2,8 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLocal.Core;
using FLocal.Core.DB;
using Web.Core;
using Web.Core.DB;
namespace FLocal.Common.actions {

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLocal.Core.DB;
using Web.Core.DB;
namespace FLocal.Common.actions {
public static class ChangeSetUtil {

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLocal.Core.DB;
using Web.Core.DB;
namespace FLocal.Common.actions {
public class InsertChange : AbstractChange {

@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
namespace FLocal.Common.actions {
class InsertOrUpdateChange : AbstractChange {

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLocal.Core.DB;
using Web.Core.DB;
namespace FLocal.Common.actions {
public class UpdateChange : AbstractChange {

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
using FLocal.Common.actions;
namespace FLocal.Common.dataobjects {

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
using FLocal.Common.actions;
namespace FLocal.Common.dataobjects {

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
using FLocal.Common.actions;
namespace FLocal.Common.dataobjects {

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLocal.Core;
using Web.Core;
namespace FLocal.Common.dataobjects {
public class AnonymousUserSettings : IUserSettings {

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
using FLocal.Common.actions;
namespace FLocal.Common.dataobjects {

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
using FLocal.Common.actions;
namespace FLocal.Common.dataobjects {
@ -212,9 +212,9 @@ namespace FLocal.Common.dataobjects {
() => {
IEnumerable<int> ids = (from stringId in Config.instance.mainConnection.LoadIdsByConditions(
TableSpec.instance,
new FLocal.Core.DB.conditions.ComparisonCondition(
new Web.Core.DB.conditions.ComparisonCondition(
TableSpec.instance.getColumnSpec(Board.TableSpec.FIELD_PARENTBOARDID),
FLocal.Core.DB.conditions.ComparisonType.EQUAL,
Web.Core.DB.conditions.ComparisonType.EQUAL,
this.id.ToString()
),
Diapasone.unlimited

@ -2,8 +2,8 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLocal.Core;
using FLocal.Core.DB;
using Web.Core;
using Web.Core.DB;
using System.Xml.Linq;
namespace FLocal.Common.dataobjects {
@ -57,7 +57,7 @@ namespace FLocal.Common.dataobjects {
() => {
IEnumerable<int> ids = (from stringId in Config.instance.mainConnection.LoadIdsByConditions(
TableSpec.instance,
new FLocal.Core.DB.conditions.EmptyCondition(),
new Web.Core.DB.conditions.EmptyCondition(),
Diapasone.unlimited
) select int.Parse(stringId)).ToList();
Category.LoadByIds(ids);
@ -82,9 +82,9 @@ namespace FLocal.Common.dataobjects {
() => {
IEnumerable<int> ids = (from stringId in Config.instance.mainConnection.LoadIdsByConditions(
Board.TableSpec.instance,
new FLocal.Core.DB.conditions.ComparisonCondition(
new Web.Core.DB.conditions.ComparisonCondition(
Board.TableSpec.instance.getColumnSpec(Board.TableSpec.FIELD_CATEGORYID),
FLocal.Core.DB.conditions.ComparisonType.EQUAL,
Web.Core.DB.conditions.ComparisonType.EQUAL,
this.id.ToString()
),
Diapasone.unlimited

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
using FLocal.Common.actions;
namespace FLocal.Common.dataobjects {

@ -3,10 +3,10 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using FLocal.Core.Network;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
using Web.Core.Network;
namespace FLocal.Common.dataobjects {
public class LocalNetwork : SqlObject<LocalNetwork> {

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
namespace FLocal.Common.dataobjects {
public class Machichara : SqlObject<Machichara> {
@ -43,7 +43,7 @@ namespace FLocal.Common.dataobjects {
() => {
List<int> ids = (from stringId in Config.instance.mainConnection.LoadIdsByConditions(
TableSpec.instance,
new FLocal.Core.DB.conditions.EmptyCondition(),
new Web.Core.DB.conditions.EmptyCondition(),
Diapasone.unlimited
) select int.Parse(stringId)).ToList();
Machichara.LoadByIds(ids);

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
namespace FLocal.Common.dataobjects {
public class Moderator : SqlObject<Moderator> {

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
namespace FLocal.Common.dataobjects {
public class ModernSkin : SqlObject<ModernSkin> {
@ -43,7 +43,7 @@ namespace FLocal.Common.dataobjects {
() => {
List<int> ids = (from stringId in Config.instance.mainConnection.LoadIdsByConditions(
TableSpec.instance,
new FLocal.Core.DB.conditions.EmptyCondition(),
new Web.Core.DB.conditions.EmptyCondition(),
Diapasone.unlimited
) select int.Parse(stringId)).ToList();
ModernSkin.LoadByIds(ids);

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
using FLocal.Common.actions;
namespace FLocal.Common.dataobjects {

@ -3,8 +3,8 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using Web.Core;
using Web.Core.DB;
using FLocal.Common;
using FLocal.Common.actions;

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
using FLocal.Common.actions;
namespace FLocal.Common.dataobjects {

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
using FLocal.Common;
using FLocal.Common.actions;

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
namespace FLocal.Common.dataobjects {
public class PostLayer : SqlObject<PostLayer> {
@ -58,7 +58,7 @@ namespace FLocal.Common.dataobjects {
() => {
List<int> ids = (from stringId in Config.instance.mainConnection.LoadIdsByConditions(
TableSpec.instance,
new FLocal.Core.DB.conditions.EmptyCondition(),
new Web.Core.DB.conditions.EmptyCondition(),
Diapasone.unlimited
) select int.Parse(stringId)).ToList();
PostLayer.LoadByIds(ids);

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
namespace FLocal.Common.dataobjects {
public class Punishment : SqlObject<Punishment> {

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
namespace FLocal.Common.dataobjects {
public class PunishmentLayerChange : SqlObject<PunishmentLayerChange> {

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
namespace FLocal.Common.dataobjects {
public class PunishmentTransfer : SqlObject<PunishmentTransfer> {

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
namespace FLocal.Common.dataobjects {
public class PunishmentType : SqlObject<PunishmentType> {
@ -83,7 +83,7 @@ namespace FLocal.Common.dataobjects {
() => {
List<int> ids = (from stringId in Config.instance.mainConnection.LoadIdsByConditions(
TableSpec.instance,
new FLocal.Core.DB.conditions.EmptyCondition(),
new Web.Core.DB.conditions.EmptyCondition(),
Diapasone.unlimited
) select int.Parse(stringId)).ToList();
PunishmentType.LoadByIds(ids);

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
namespace FLocal.Common.dataobjects {
public class QuickLink : SqlObject<QuickLink> {

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
using FLocal.Common.actions;
namespace FLocal.Common.dataobjects {

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLocal.Core;
using Web.Core;
using System.Xml.Linq;
namespace FLocal.Common.dataobjects {

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
using FLocal.Common.actions;
namespace FLocal.Common.dataobjects {

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
namespace FLocal.Common.dataobjects {
public class Skin : SqlObject<Skin> {
@ -43,7 +43,7 @@ namespace FLocal.Common.dataobjects {
() => {
List<int> ids = (from stringId in Config.instance.mainConnection.LoadIdsByConditions(
TableSpec.instance,
new FLocal.Core.DB.conditions.EmptyCondition(),
new Web.Core.DB.conditions.EmptyCondition(),
Diapasone.unlimited
) select int.Parse(stringId)).ToList();
Skin.LoadByIds(ids);

@ -3,11 +3,11 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
using FLocal.Common.actions;
using FLocal.TexCompiler;
using TexCompiler;
namespace FLocal.Common.dataobjects {
public class TexImage : SqlObject<TexImage> {

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
using FLocal.Common.actions;
namespace FLocal.Common.dataobjects {
@ -174,8 +174,8 @@ namespace FLocal.Common.dataobjects {
this._title = data[TableSpec.FIELD_TITLE];
this._lastPostId = int.Parse(data[TableSpec.FIELD_LASTPOSTID]);
this._lastPostDate = new DateTime(long.Parse(data[TableSpec.FIELD_LASTPOSTDATE]));
this._isAnnouncement = FLocal.Core.Util.string2bool(data[TableSpec.FIELD_ISANNOUNCEMENT]);
this._isLocked = FLocal.Core.Util.string2bool(data[TableSpec.FIELD_ISLOCKED]);
this._isAnnouncement = Web.Core.Util.string2bool(data[TableSpec.FIELD_ISANNOUNCEMENT]);
this._isLocked = Web.Core.Util.string2bool(data[TableSpec.FIELD_ISLOCKED]);
this._totalPosts = int.Parse(data[TableSpec.FIELD_TOTALPOSTS]);
this._totalViews = int.Parse(data[TableSpec.FIELD_TOTALVIEWS]);
}

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
namespace FLocal.Common.dataobjects {
public class Upload : SqlObject<Upload> {

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
using FLocal.Common.actions;
namespace FLocal.Common.dataobjects {

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using FLocal.Core;
using FLocal.Core.DB;
using FLocal.Core.DB.conditions;
using Web.Core;
using Web.Core.DB;
using Web.Core.DB.conditions;
namespace FLocal.Common.dataobjects {
public class UserGroup : SqlObject<UserGroup> {

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core {
namespace Web.Core {
public class Cache<T> {
public static readonly Cache<T> instance = new Cache<T>();

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Collections.Specialized;
namespace FLocal.Core {
namespace Web.Core {
public abstract class Config<T> : IDisposable where T : Config<T> {

@ -8,7 +8,7 @@
<ProjectGuid>{6F532626-E9F8-498E-9683-1538E7CD62CB}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>FLocal.Core</RootNamespace>
<RootNamespace>Web.Core</RootNamespace>
<AssemblyName>Core</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.DB {
namespace Web.Core.DB {
public class ColumnOrValue {
private bool _isColumn;

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.DB {
namespace Web.Core.DB {
public class ColumnSpec {
public readonly ITableSpec table;

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.DB {
namespace Web.Core.DB {
public class Diapasone {
public readonly long start;

@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLocal.Core.DB.conditions;
using Web.Core.DB.conditions;
namespace FLocal.Core.DB {
namespace Web.Core.DB {
public interface IDBConnection : IDisposable {
List<Dictionary<string, string>> LoadByIds(ITableSpec table, List<string> ids);

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.DB {
namespace Web.Core.DB {
public interface ILock : IDisposable {
}
}

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.DB {
namespace Web.Core.DB {
public interface ITableSpec {
string name {
get;

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.DB {
namespace Web.Core.DB {
public class JoinSpec {
private class TableSpec : ITableSpec {

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.DB {
namespace Web.Core.DB {
public class SortSpec {
public readonly ColumnSpec column;

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.DB {
namespace Web.Core.DB {
abstract public class Transaction : IDisposable {

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.DB.conditions {
namespace Web.Core.DB.conditions {
public abstract class AbstractCondition {
}

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.DB.conditions {
namespace Web.Core.DB.conditions {
public class ComparisonCondition : SimpleCondition {
public readonly ColumnSpec left;

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.DB.conditions {
namespace Web.Core.DB.conditions {
public enum ComparisonType {
EQUAL,
NOTEQUAL,

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.DB.conditions {
namespace Web.Core.DB.conditions {
public class ComplexCondition : NotEmptyCondition {
public readonly ConditionsJoinType type;

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.DB.conditions {
namespace Web.Core.DB.conditions {
public enum ConditionsJoinType {
AND,
OR,

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.DB.conditions {
namespace Web.Core.DB.conditions {
public class EmptyCondition : AbstractCondition {
}
}

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.DB.conditions {
namespace Web.Core.DB.conditions {
public class IsNullCondition : SimpleCondition {
public readonly ColumnSpec column;

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.DB.conditions {
namespace Web.Core.DB.conditions {
public class MultiValueCondition : SimpleCondition {
public readonly ColumnSpec column;

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.DB.conditions {
namespace Web.Core.DB.conditions {
public abstract class NotEmptyCondition : AbstractCondition {
}
}

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.DB.conditions {
namespace Web.Core.DB.conditions {
public class NotIsNullCondition : SimpleCondition {
public readonly ColumnSpec column;

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.DB.conditions {
namespace Web.Core.DB.conditions {
public abstract class SimpleCondition : NotEmptyCondition {
}
}

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Diagnostics;
namespace FLocal.Core {
namespace Web.Core {
abstract public class DataObject<TKey, T> : IDataObject<TKey, T>
where T : DataObject<TKey, T>, new()

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core {
namespace Web.Core {
public abstract class IDataObject<TKey, TData>
where TData : IDataObject<TKey, TData>, new()

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.Network {
namespace Web.Core.Network {
class IPv4 {
public const ulong UNIT = 256;

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.Network {
namespace Web.Core.Network {
public class IPv4Address {
private const ulong MAX = IPv4.UNIT * IPv4.UNIT * IPv4.UNIT * IPv4.UNIT;

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core.Network {
namespace Web.Core.Network {
public class IPv4Subnet {
private readonly IPv4Address prefix;

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core {
namespace Web.Core {
class Registry<TKey, TData>
where TData : IDataObject<TKey, TData>, new()
where TKey : struct {

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core {
namespace Web.Core {
public static class RegistryCleaner {
public static void CleanRegistry<TKey, TData>() where TKey : struct where TData : IDataObject<TKey, TData>, new() {

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core {
namespace Web.Core {
class Switch<TResult> : List<KeyValuePair<Predicate, Func<TResult>>> {

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.IO;
namespace FLocal.Core {
namespace Web.Core {
public class Util {

@ -3,6 +3,6 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core {
namespace Web.Core {
delegate T Lazy<T>();
}

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core {
namespace Web.Core {
delegate bool Predicate();

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core {
namespace Web.Core {
public partial class AccessDeniedException : FLocalException {

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core {
namespace Web.Core {
public partial class CriticalException : FLocalException {

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core {
namespace Web.Core {
public partial class FLocalException : ApplicationException {

@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLocal.Core.DB;
using Web.Core.DB;
namespace FLocal.Core {
namespace Web.Core {
public partial class NotFoundInDBException : FLocalException {

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core {
namespace Web.Core {
public partial class ObjectDoesntHaveAnIdException : FLocalException {

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core {
namespace Web.Core {
static class DelegateExtension {

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.IO;
namespace FLocal.Core {
namespace Web.Core {
public static class ExtensionMethods {

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Core {
namespace Web.Core {
public static class StringExtension {

@ -4,14 +4,14 @@ using System.Linq;
using System.Text;
using System.Web;
using System.Xml.Linq;
using FLocal.Core;
using Web.Core;
namespace FLocal.IISHandler {
static class Extensions {
public static void WriteLine(this HttpResponse response, string toWrite) {
response.Write(toWrite);
response.Write(Core.Util.EOL);
response.Write(Web.Core.Util.EOL);
}
public static string[] Split(this string str, string separator, StringSplitOptions options) {

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using FLocal.Core;
using Web.Core;
using FLocal.Common.URL;
using URL = FLocal.Common.URL;

@ -25,10 +25,10 @@ namespace FLocal.IISHandler {
Uri current = httpcontext.Request.Url;
if(!current.Host.EndsWith(Config.instance.BaseHost)) {
throw new FLocal.Core.FLocalException("Wrong host: " + current.Host + " (expected *" + Config.instance.BaseHost + ")");
throw new Web.Core.FLocalException("Wrong host: " + current.Host + " (expected *" + Config.instance.BaseHost + ")");
}
if(Config.instance.forceHttps && !httpcontext.Request.IsSecureConnection) {
throw new FLocal.Core.FLocalException("Only HTTPS connections are allowed");
throw new Web.Core.FLocalException("Only HTTPS connections are allowed");
}
Uri referer = httpcontext.Request.UrlReferrer;

@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLocal.Core.DB;
using Web.Core.DB;
using System.Xml.Linq;
using FLocal.Core;
using Web.Core;
namespace FLocal.IISHandler {
class PageOuter : Diapasone {

@ -7,7 +7,7 @@ using System.Xml.Linq;
using System.Xml.Xsl;
using System.IO;
using System.Globalization;
using FLocal.Core;
using Web.Core;
namespace FLocal.IISHandler {
class TemplateEngine {

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using FLocal.Core;
using Web.Core;
using FLocal.Common;
using FLocal.Common.dataobjects;
using FLocal.Common.actions;
@ -11,7 +11,7 @@ using System.Xml.Linq;
using System.IO;
namespace FLocal.IISHandler {
class WebContext : Common.UserContext {
class WebContext : FLocal.Common.UserContext {
private static readonly Encoding OutputEncoding = Encoding.UTF8;
@ -60,7 +60,7 @@ namespace FLocal.IISHandler {
private set;
}
public override Common.IOutputParams outputParams {
public override FLocal.Common.IOutputParams outputParams {
get {
return this.design;
}
@ -190,18 +190,18 @@ namespace FLocal.IISHandler {
return result;
}
public Core.Network.IPv4Address remoteHost {
public Web.Core.Network.IPv4Address remoteHost {
get {
return new Core.Network.IPv4Address(this.httprequest.UserHostAddress);
return new Web.Core.Network.IPv4Address(this.httprequest.UserHostAddress);
}
}
public void LogError(Exception e) {
string dir;
if(e is AccessDeniedException) {
dir = Common.Config.instance.dataDir + "Logs\\AccessDenied\\";
dir = FLocal.Common.Config.instance.dataDir + "Logs\\AccessDenied\\";
} else {
dir = Common.Config.instance.dataDir + "Logs\\";
dir = FLocal.Common.Config.instance.dataDir + "Logs\\";
}
using(StreamWriter writer = new StreamWriter(dir + DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss") + "." + e.GetGuid().ToString() + ".txt")) {
writer.WriteLine("Requested url: " + this.httprequest.Url.ToString());

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
namespace FLocal.IISHandler.designs {
interface IDesign : Common.IOutputParams {
interface IDesign : FLocal.Common.IOutputParams {
string GetFSName(string template);

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save