Changeset 4627

Show
Ignore:
Timestamp:
02/19/08 09:18:32 (10 months ago)
Author:
xmlhacker
Message:

various updates

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/nuxleus/Source/Nuxleus.Authentication/Nuxleus.Authentication.csproj

    r4555 r4627  
    6060    <None Include="Extf.Net.snk" /> 
    6161  </ItemGroup> 
     62  <ItemGroup> 
     63    <Folder Include="OAuth\" /> 
     64  </ItemGroup> 
    6265  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 
    6366  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.  
  • trunk/nuxleus/Source/Nuxleus.Web/HttpHandler/NuxleusHttpAsyncXmlServiceOperationHandler.cs

    r4620 r4627  
    212212                m_lastModifiedDate = DateTime.UtcNow.ToString("r"); 
    213213            } 
    214             context.Response.AppendHeader("Cache-Control", "max-age=3600"); 
     214            context.Response.AppendHeader("Cache-Control", "max-age=86400"); 
    215215            context.Response.AddHeader("Last-Modified", m_lastModifiedDate); 
    216216            context.Response.AddHeader("ETag", String.Format("\"{0}\"", m_requestHashcode)); 
     
    229229            if (!m_CONTENT_IS_MEMCACHED && m_USE_MEMCACHED) { 
    230230                Console.WriteLine("Adding Last Modified Key: {0}", m_lastModifiedKey); 
    231                 m_memcachedClient.Set(m_context.GetRequestHashcode(true).ToString(), output, DateTime.Now.AddHours(4)); 
     231                m_memcachedClient.Set(m_context.GetRequestHashcode(true).ToString(), output, DateTime.Now.AddHours(24)); 
    232232                m_memcachedClient.Set(m_lastModifiedKey, m_lastModifiedDate); 
    233233            } 
  • trunk/nuxleus/Source/Nuxleus/Nuxleus.csproj

    r4555 r4627  
    3838  </PropertyGroup> 
    3939  <ItemGroup> 
     40    <Reference Include="erb, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> 
     41      <SpecificVersion>False</SpecificVersion> 
     42      <HintPath>C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\erb\erb\bin\Debug\erb.dll</HintPath> 
     43    </Reference> 
     44    <Reference Include="QUT.SymbolWriter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=8b16d9e060688056, processorArchitecture=x86"> 
     45      <SpecificVersion>False</SpecificVersion> 
     46      <HintPath>C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\erb\erb\bin\Debug\QUT.SymbolWriter.dll</HintPath> 
     47    </Reference> 
    4048    <Reference Include="System" /> 
    4149    <Reference Include="System.Core"> 
  • trunk/nuxleus/Source/Xameleon/Function/HttpRequestCollection.cs

    r4533 r4627  
    44using System.Web; 
    55 
    6 namespace Xameleon.Function 
    7 
     6namespace Xameleon.Function { 
    87 
    9     public class HttpRequestCollection 
    10     { 
     8    public class HttpRequestCollection { 
    119 
    1210        static string notSet = "not-set"; 
    1311 
    14         public static string GetValue(HttpRequest request, string type, string key) 
    15         { 
    16             try 
    17             { 
    18                 switch (type) 
    19                 { 
     12        public static string GetValue ( HttpRequest request, string type, string key ) { 
     13            try { 
     14                switch (type) { 
    2015                    case "cookie": 
    21                         if (request.Cookies.Count > 0) 
    22                         { 
     16                        if (request.Cookies.Count > 0) { 
    2317                            IEnumerator enumerator = request.Cookies.GetEnumerator(); 
    24                             for (int i = 0; enumerator.MoveNext(); i++) 
    25                             { 
     18                            for (int i = 0; enumerator.MoveNext(); i++) { 
    2619                                string local = request.Cookies.AllKeys[i].ToString(); 
    27                                 if (local == key) 
    28                                 { 
     20                                if (local == key) { 
    2921                                    return request.Cookies[local].Value; 
    3022                                } 
     
    3527 
    3628                    case "form": 
    37                         if (request.Form.Count > 0) 
    38                         { 
     29                        if (request.Form.Count > 0) { 
    3930                            IEnumerator enumerator = request.Form.GetEnumerator(); 
    40                             for (int i = 0; enumerator.MoveNext(); i++) 
    41                             { 
     31                            for (int i = 0; enumerator.MoveNext(); i++) { 
     32 
    4233                                string local = request.Form.AllKeys[i].ToString(); 
    43                                 if (local == key) 
    44                                
     34                                Console.WriteLine("Form Value {0}", local); 
     35                                if (local == key)
    4536                                    return request.Form[local]; 
    4637                                } 
     
    5142 
    5243                    case "query-string": 
    53                         if (request.QueryString.Count > 0) 
    54                         { 
     44                        if (request.QueryString.Count > 0) { 
    5545                            IEnumerator enumerator = request.QueryString.GetEnumerator(); 
    56                             for (int i = 0; enumerator.MoveNext(); i++) 
    57                             { 
     46                            for (int i = 0; enumerator.MoveNext(); i++) { 
    5847                                string local = request.QueryString.AllKeys[i].ToString(); 
    59                                 if (local == key) 
    60                                 { 
     48                                if (local == key) { 
    6149                                    return request.QueryString[local]; 
    6250                                } 
     
    6654                        return notSet; 
    6755                    case "server-variable": 
    68                         if (request.ServerVariables.Count > 0) 
    69                         { 
     56                        if (request.ServerVariables.Count > 0) { 
    7057                            IEnumerator enumerator = request.ServerVariables.GetEnumerator(); 
    71                             for (int i = 0; enumerator.MoveNext(); i++) 
    72                             { 
     58                            for (int i = 0; enumerator.MoveNext(); i++) { 
    7359                                string local = request.ServerVariables.AllKeys[i].ToString(); 
    74                                 if (local == key) 
    75                                 { 
     60                                if (local == key) { 
    7661                                    return request.ServerVariables[local]; 
    7762                                } 
     
    8267 
    8368                    case "header": 
    84                         if (request.Headers.Count > 0) 
    85                         { 
     69                        if (request.Headers.Count > 0) { 
    8670                            IEnumerator enumerator = request.Headers.GetEnumerator(); 
    87                             for (int i = 0; enumerator.MoveNext(); i++) 
    88                             { 
     71                            for (int i = 0; enumerator.MoveNext(); i++) { 
    8972                                string local = request.Headers.AllKeys[i].ToString(); 
    90                                 if (local == key) 
    91                                 { 
     73                                if (local == key) { 
    9274                                    return request.Headers[local]; 
    9375                                } 
     
    9678                        } 
    9779                        return notSet; 
    98                 case "file": 
    99                   if(request.Files.Count > 0) 
    100                     { 
    101                       foreach (string fieldName in request.Files.AllKeys) 
    102                         { 
    103                           if(fieldName == key) { 
    104                             return fieldName; 
    105                           } 
    106                         } 
    107                     } 
    108                   return notSet; 
     80                    case "file": 
     81                        if (request.Files.Count > 0) { 
     82                            foreach (string fieldName in request.Files.AllKeys) { 
     83                                if (fieldName == key) { 
     84                                    return fieldName; 
     85                                } 
     86                            } 
     87                        } 
     88                        return notSet; 
    10989                    default: 
    11090                        return notSet; 
    11191                } 
    11292 
    113             } 
    114             catch (Exception e) 
    115             { 
     93            } catch (Exception e) { 
    11694                Debug.WriteLine("Error: " + e.Message); 
    11795                return e.Message; 
  • trunk/nuxleus/Source/nuXleus.sln

    r4584 r4627  
    171171EndProject 
    172172Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nuxleus.Drawing", "Nuxleus.Drawing\Nuxleus.Drawing.csproj", "{13FADE77-14DD-4F14-A52E-63AE71DB1756}" 
     173EndProject 
     174Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nuxleus.Extension.MySpace", "Nuxleus.Extension.MySpace\Nuxleus.Extension.MySpace.csproj", "{1A6A1729-0B96-40A7-A4B5-6DADE71682B3}" 
    173175EndProject 
    174176Global 
     
    692694                {13FADE77-14DD-4F14-A52E-63AE71DB1756}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU 
    693695                {13FADE77-14DD-4F14-A52E-63AE71DB1756}.Release|Mixed Platforms.Build.0 = Release|Any CPU 
     696                {1A6A1729-0B96-40A7-A4B5-6DADE71682B3}.Debug|.NET.ActiveCfg = Debug|Any CPU 
     697                {1A6A1729-0B96-40A7-A4B5-6DADE71682B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 
     698                {1A6A1729-0B96-40A7-A4B5-6DADE71682B3}.Debug|Any CPU.Build.0 = Debug|Any CPU 
     699                {1A6A1729-0B96-40A7-A4B5-6DADE71682B3}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU 
     700                {1A6A1729-0B96-40A7-A4B5-6DADE71682B3}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 
     701                {1A6A1729-0B96-40A7-A4B5-6DADE71682B3}.Release|.NET.ActiveCfg = Release|Any CPU 
     702                {1A6A1729-0B96-40A7-A4B5-6DADE71682B3}.Release|Any CPU.ActiveCfg = Release|Any CPU 
     703                {1A6A1729-0B96-40A7-A4B5-6DADE71682B3}.Release|Any CPU.Build.0 = Release|Any CPU 
     704                {1A6A1729-0B96-40A7-A4B5-6DADE71682B3}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU 
     705                {1A6A1729-0B96-40A7-A4B5-6DADE71682B3}.Release|Mixed Platforms.Build.0 = Release|Any CPU 
    694706        EndGlobalSection 
    695707        GlobalSection(SolutionProperties) = preSolution 
     
    735747                {D937BA9E-1E6C-4757-98CC-7D932F4697B0} = {0A887F73-C7E8-430A-AB73-EA9E5F822CB4} 
    736748                {13FADE77-14DD-4F14-A52E-63AE71DB1756} = {0A887F73-C7E8-430A-AB73-EA9E5F822CB4} 
     749                {1A6A1729-0B96-40A7-A4B5-6DADE71682B3} = {0A887F73-C7E8-430A-AB73-EA9E5F822CB4} 
    737750                {A800D9F1-D877-4076-99BA-CBD73BCFB203} = {138403FE-C587-460E-A3C8-77B713E904C9} 
    738751                {64C1203C-1912-4FE0-BA73-01BA2B0758E4} = {216314AA-0FA4-4DD9-8BD9-77D5D8869820} 
  • trunk/nuxleus/Web/4lessig.org/service/transform/atomictalk/base.xslt

    r4624 r4627  
    7070  </xsl:variable> 
    7171  <xsl:variable name="lb"> 
    72     <xsl:text></xsl:text> 
     72    <xsl:text> 
     73</xsl:text> 
    7374  </xsl:variable> 
    7475  <xsl:variable name="q">"</xsl:variable>