repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
dmytrokuzmin/RepairisCore
src/Repairis.Application/Sessions/Dto/GetCurrentLoginInformationsOutput.cs
269
namespace Repairis.Sessions.Dto { public class GetCurrentLoginInformationsOutput { public ApplicationInfoDto Application { get; set; } public UserLoginInfoDto User { get; set; } public TenantLoginInfoDto Tenant { get; set; } } }
mit
waynemunro/orleans
src/Orleans.Runtime/Catalog/ActivationData.cs
35365
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading; using System.Threading.Tasks; using Orleans.CodeGeneration; using Orleans.Core; using Orleans.GrainDirectory; using Orleans.Runtime.Configuration; using Orleans.Runtime.Scheduler; using Orleans.Storage; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; namespace Orleans.Runtime { /// <summary> /// Maintains additional per-activation state that is required for Orleans internal operations. /// MUST lock this object for any concurrent access /// Consider: compartmentalize by usage, e.g., using separate interfaces for data for catalog, etc. /// </summary> internal class ActivationData : IGrainActivationContext, IActivationData, IInvokable, IDisposable { // This class is used for activations that have extension invokers. It keeps a dictionary of // invoker objects to use with the activation, and extend the default invoker // defined for the grain class. // Note that in all cases we never have more than one copy of an actual invoker; // we may have a ExtensionInvoker per activation, in the worst case. private class ExtensionInvoker : IGrainMethodInvoker, IGrainExtensionMap { // Because calls to ExtensionInvoker are allways made within the activation context, // we rely on the single-threading guarantee of the runtime and do not protect the map with a lock. private Dictionary<int, Tuple<IGrainExtension, IGrainExtensionMethodInvoker>> extensionMap; // key is the extension interface ID /// <summary> /// Try to add an extension for the specific interface ID. /// Fail and return false if there is already an extension for that interface ID. /// Note that if an extension invoker handles multiple interface IDs, it can only be associated /// with one of those IDs when added, and so only conflicts on that one ID will be detected and prevented. /// </summary> /// <param name="invoker"></param> /// <param name="handler"></param> /// <returns></returns> internal bool TryAddExtension(IGrainExtensionMethodInvoker invoker, IGrainExtension handler) { if (extensionMap == null) { extensionMap = new Dictionary<int, Tuple<IGrainExtension, IGrainExtensionMethodInvoker>>(1); } if (extensionMap.ContainsKey(invoker.InterfaceId)) return false; extensionMap.Add(invoker.InterfaceId, new Tuple<IGrainExtension, IGrainExtensionMethodInvoker>(handler, invoker)); return true; } /// <summary> /// Removes all extensions for the specified interface id. /// Returns true if the chained invoker no longer has any extensions and may be safely retired. /// </summary> /// <param name="extension"></param> /// <returns>true if the chained invoker is now empty, false otherwise</returns> public bool Remove(IGrainExtension extension) { int interfaceId = 0; foreach(int iface in extensionMap.Keys) if (extensionMap[iface].Item1 == extension) { interfaceId = iface; break; } if (interfaceId == 0) // not found throw new InvalidOperationException(String.Format("Extension {0} is not installed", extension.GetType().FullName)); extensionMap.Remove(interfaceId); return extensionMap.Count == 0; } public bool TryGetExtensionHandler(Type extensionType, out IGrainExtension result) { result = null; if (extensionMap == null) return false; foreach (var ext in extensionMap.Values) if (extensionType == ext.Item1.GetType()) { result = ext.Item1; return true; } return false; } /// <summary> /// Invokes the appropriate grain or extension method for the request interface ID and method ID. /// First each extension invoker is tried; if no extension handles the request, then the base /// invoker is used to handle the request. /// The base invoker will throw an appropriate exception if the request is not recognized. /// </summary> /// <param name="grain"></param> /// <param name="request"></param> /// <returns></returns> public Task<object> Invoke(IAddressable grain, InvokeMethodRequest request) { if (extensionMap == null || !extensionMap.ContainsKey(request.InterfaceId)) throw new InvalidOperationException( String.Format("Extension invoker invoked with an unknown inteface ID:{0}.", request.InterfaceId)); var invoker = extensionMap[request.InterfaceId].Item2; var extension = extensionMap[request.InterfaceId].Item1; return invoker.Invoke(extension, request); } public bool IsExtensionInstalled(int interfaceId) { return extensionMap != null && extensionMap.ContainsKey(interfaceId); } public int InterfaceId { get { return 0; } // 0 indicates an extension invoker that may have multiple intefaces inplemented by extensions. } public ushort InterfaceVersion { get { return 0; } } /// <summary> /// Gets the extension from this instance if it is available. /// </summary> /// <param name="interfaceId">The interface id.</param> /// <param name="extension">The extension.</param> /// <returns> /// <see langword="true"/> if the extension is found, <see langword="false"/> otherwise. /// </returns> public bool TryGetExtension(int interfaceId, out IGrainExtension extension) { Tuple<IGrainExtension, IGrainExtensionMethodInvoker> value; if (extensionMap != null && extensionMap.TryGetValue(interfaceId, out value)) { extension = value.Item1; } else { extension = null; } return extension != null; } } internal class GrainActivationContextFactory { public IGrainActivationContext Context { get; set; } } // This is the maximum amount of time we expect a request to continue processing private readonly TimeSpan maxRequestProcessingTime; private readonly TimeSpan maxWarningRequestProcessingTime; private readonly NodeConfiguration nodeConfiguration; public readonly TimeSpan CollectionAgeLimit; private readonly Logger logger; private IGrainMethodInvoker lastInvoker; private IServiceScope serviceScope; // This is the maximum number of enqueued request messages for a single activation before we write a warning log or reject new requests. private LimitValue maxEnqueuedRequestsLimit; private HashSet<IGrainTimer> timers; public ActivationData( ActivationAddress addr, string genericArguments, PlacementStrategy placedUsing, IMultiClusterRegistrationStrategy registrationStrategy, IActivationCollector collector, TimeSpan ageLimit, NodeConfiguration nodeConfiguration, TimeSpan maxWarningRequestProcessingTime, TimeSpan maxRequestProcessingTime, IRuntimeClient runtimeClient, ILoggerFactory loggerFactory) { if (null == addr) throw new ArgumentNullException(nameof(addr)); if (null == placedUsing) throw new ArgumentNullException(nameof(placedUsing)); if (null == collector) throw new ArgumentNullException(nameof(collector)); logger = new LoggerWrapper<ActivationData>(loggerFactory); this.lifecycle = new GrainLifecycle(logger); this.maxRequestProcessingTime = maxRequestProcessingTime; this.maxWarningRequestProcessingTime = maxWarningRequestProcessingTime; this.nodeConfiguration = nodeConfiguration; ResetKeepAliveRequest(); Address = addr; State = ActivationState.Create; PlacedUsing = placedUsing; RegistrationStrategy = registrationStrategy; if (!Grain.IsSystemTarget && !Constants.IsSystemGrain(Grain)) { this.collector = collector; } CollectionAgeLimit = ageLimit; GrainReference = GrainReference.FromGrainId(addr.Grain, runtimeClient.GrainReferenceRuntime, genericArguments, Grain.IsSystemTarget ? addr.Silo : null); this.SchedulingContext = new SchedulingContext(this); } public Type GrainType => GrainTypeData.Type; public IGrainIdentity GrainIdentity => this.Identity; public IServiceProvider ActivationServices => this.serviceScope.ServiceProvider; #region Method invocation private ExtensionInvoker extensionInvoker; public IGrainMethodInvoker GetInvoker(GrainTypeManager typeManager, int interfaceId, string genericGrainType = null) { // Return previous cached invoker, if applicable if (lastInvoker != null && interfaceId == lastInvoker.InterfaceId) // extension invoker returns InterfaceId==0, so this condition will never be true if an extension is installed return lastInvoker; if (extensionInvoker != null && extensionInvoker.IsExtensionInstalled(interfaceId)) { // Shared invoker for all extensions installed on this grain lastInvoker = extensionInvoker; } else { // Find the specific invoker for this interface / grain type lastInvoker = typeManager.GetInvoker(interfaceId, genericGrainType); } return lastInvoker; } internal bool TryAddExtension(IGrainExtensionMethodInvoker invoker, IGrainExtension extension) { if(extensionInvoker == null) extensionInvoker = new ExtensionInvoker(); return extensionInvoker.TryAddExtension(invoker, extension); } internal void RemoveExtension(IGrainExtension extension) { if (extensionInvoker != null) { if (extensionInvoker.Remove(extension)) extensionInvoker = null; } else throw new InvalidOperationException("Grain extensions not installed."); } internal bool TryGetExtensionHandler(Type extensionType, out IGrainExtension result) { result = null; return extensionInvoker != null && extensionInvoker.TryGetExtensionHandler(extensionType, out result); } #endregion public ISchedulingContext SchedulingContext { get; } public string GrainTypeName { get { if (GrainInstanceType == null) { throw new ArgumentNullException("GrainInstanceType", "GrainInstanceType has not been set."); } return GrainInstanceType.FullName; } } internal Type GrainInstanceType => GrainTypeData?.Type; internal void SetGrainInstance(Grain grainInstance) { GrainInstance = grainInstance; } internal void SetupContext(GrainTypeData typeData, IServiceProvider grainServices) { this.GrainTypeData = typeData; this.Items = new Dictionary<object, object>(); this.serviceScope = grainServices.CreateScope(); SetGrainActivationContextInScopedServices(this.ActivationServices, this); if (typeData != null) { var grainType = typeData.Type; // Don't ever collect system grains or reminder table grain or memory store grains. bool doNotCollect = typeof(IReminderTableGrain).IsAssignableFrom(grainType) || typeof(IMemoryStorageGrain).IsAssignableFrom(grainType); if (doNotCollect) { this.collector = null; } } } private static void SetGrainActivationContextInScopedServices(IServiceProvider sp, IGrainActivationContext context) { var contextFactory = sp.GetRequiredService<GrainActivationContextFactory>(); contextFactory.Context = context; } private Streams.StreamDirectory streamDirectory; internal Streams.StreamDirectory GetStreamDirectory() { return streamDirectory ?? (streamDirectory = new Streams.StreamDirectory()); } internal bool IsUsingStreams { get { return streamDirectory != null; } } internal async Task DeactivateStreamResources() { if (streamDirectory == null) return; // No streams - Nothing to do. if (extensionInvoker == null) return; // No installed extensions - Nothing to do. if (StreamResourceTestControl.TestOnlySuppressStreamCleanupOnDeactivate) { logger.Warn(0, "Suppressing cleanup of stream resources during tests for {0}", this); return; } await streamDirectory.Cleanup(true, false); } #region IActivationData GrainReference IActivationData.GrainReference { get { return GrainReference; } } public GrainId Identity { get { return Grain; } } public GrainTypeData GrainTypeData { get; private set; } public Grain GrainInstance { get; private set; } public ActivationId ActivationId { get { return Address.Activation; } } public ActivationAddress Address { get; private set; } public IServiceProvider ServiceProvider => this.serviceScope?.ServiceProvider; public IDictionary<object, object> Items { get; private set; } private readonly GrainLifecycle lifecycle; public IGrainLifecycle ObservableLifecycle => lifecycle; internal ILifecycleObserver Lifecycle => lifecycle; public void OnTimerCreated(IGrainTimer timer) { AddTimer(timer); } #endregion #region Catalog internal readonly GrainReference GrainReference; public SiloAddress Silo { get { return Address.Silo; } } public GrainId Grain { get { return Address.Grain; } } public ActivationState State { get; private set; } public void SetState(ActivationState state) { State = state; } // Don't accept any new messages and stop all timers. public void PrepareForDeactivation() { SetState(ActivationState.Deactivating); deactivationStartTime = DateTime.UtcNow; StopAllTimers(); } /// <summary> /// If State == Invalid, this may contain a forwarding address for incoming messages /// </summary> public ActivationAddress ForwardingAddress { get; set; } private IActivationCollector collector; internal bool IsExemptFromCollection { get { return collector == null; } } public DateTime CollectionTicket { get; private set; } private bool collectionCancelledFlag; public bool TrySetCollectionCancelledFlag() { lock (this) { if (default(DateTime) == CollectionTicket || collectionCancelledFlag) return false; collectionCancelledFlag = true; return true; } } public void ResetCollectionCancelledFlag() { lock (this) { collectionCancelledFlag = false; } } public void ResetCollectionTicket() { CollectionTicket = default(DateTime); } public void SetCollectionTicket(DateTime ticket) { if (ticket == default(DateTime)) throw new ArgumentException("default(DateTime) is disallowed", "ticket"); if (CollectionTicket != default(DateTime)) { throw new InvalidOperationException("call ResetCollectionTicket before calling SetCollectionTicket."); } CollectionTicket = ticket; } #endregion #region Dispatcher public PlacementStrategy PlacedUsing { get; private set; } public IMultiClusterRegistrationStrategy RegistrationStrategy { get; private set; } // Currently, the only supported multi-activation grain is one using the StatelessWorkerPlacement strategy. internal bool IsStatelessWorker { get { return PlacedUsing is StatelessWorkerPlacement; } } // Currently, the only grain type that is not registered in the Grain Directory is StatelessWorker. internal bool IsUsingGrainDirectory { get { return !IsStatelessWorker; } } public Message Running { get; private set; } // the number of requests that are currently executing on this activation. // includes reentrant and non-reentrant requests. private int numRunning; private DateTime currentRequestStartTime; private DateTime becameIdle; private DateTime deactivationStartTime; public void RecordRunning(Message message) { // Note: This method is always called while holding lock on this activation, so no need for additional locks here numRunning++; if (Running != null) return; // This logic only works for non-reentrant activations // Consider: Handle long request detection for reentrant activations. Running = message; currentRequestStartTime = DateTime.UtcNow; } public void ResetRunning(Message message) { // Note: This method is always called while holding lock on this activation, so no need for additional locks here numRunning--; if (numRunning == 0) { becameIdle = DateTime.UtcNow; if (!IsExemptFromCollection) { collector.TryRescheduleCollection(this); } } // The below logic only works for non-reentrant activations. if (Running != null && !message.Equals(Running)) return; Running = null; currentRequestStartTime = DateTime.MinValue; } private long inFlightCount; private long enqueuedOnDispatcherCount; /// <summary> /// Number of messages that are actively being processed [as opposed to being in the Waiting queue]. /// In most cases this will be 0 or 1, but for Reentrant grains can be >1. /// </summary> public long InFlightCount { get { return Interlocked.Read(ref inFlightCount); } } /// <summary> /// Number of messages that are being received [as opposed to being in the scheduler queue or actively processed]. /// </summary> public long EnqueuedOnDispatcherCount { get { return Interlocked.Read(ref enqueuedOnDispatcherCount); } } /// <summary>Increment the number of in-flight messages currently being processed.</summary> public void IncrementInFlightCount() { Interlocked.Increment(ref inFlightCount); } /// <summary>Decrement the number of in-flight messages currently being processed.</summary> public void DecrementInFlightCount() { Interlocked.Decrement(ref inFlightCount); } /// <summary>Increment the number of messages currently in the prcess of being received.</summary> public void IncrementEnqueuedOnDispatcherCount() { Interlocked.Increment(ref enqueuedOnDispatcherCount); } /// <summary>Decrement the number of messages currently in the prcess of being received.</summary> public void DecrementEnqueuedOnDispatcherCount() { Interlocked.Decrement(ref enqueuedOnDispatcherCount); } /// <summary> /// grouped by sending activation: responses first, then sorted by id /// </summary> private List<Message> waiting; public int WaitingCount { get { return waiting == null ? 0 : waiting.Count; } } public enum EnqueueMessageResult { Success, ErrorInvalidActivation, ErrorStuckActivation, } /// <summary> /// Insert in a FIFO order /// </summary> /// <param name="message"></param> public EnqueueMessageResult EnqueueMessage(Message message) { lock (this) { if (State == ActivationState.Invalid) { logger.Warn(ErrorCode.Dispatcher_InvalidActivation, "Cannot enqueue message to invalid activation {0} : {1}", this.ToDetailedString(), message); return EnqueueMessageResult.ErrorInvalidActivation; } if (State == ActivationState.Deactivating) { var deactivatingTime = DateTime.UtcNow - deactivationStartTime; if (deactivatingTime > maxRequestProcessingTime) { logger.Error(ErrorCode.Dispatcher_StuckActivation, $"Current activation {ToDetailedString()} marked as Deactivating for {deactivatingTime}. Trying to enqueue {message}."); return EnqueueMessageResult.ErrorStuckActivation; } } if (Running != null) { var currentRequestActiveTime = DateTime.UtcNow - currentRequestStartTime; if (currentRequestActiveTime > maxRequestProcessingTime) { logger.Error(ErrorCode.Dispatcher_StuckActivation, $"Current request has been active for {currentRequestActiveTime} for activation {ToDetailedString()}. Currently executing {Running}. Trying to enqueue {message}."); return EnqueueMessageResult.ErrorStuckActivation; } // Consider: Handle long request detection for reentrant activations -- this logic only works for non-reentrant activations else if (currentRequestActiveTime > maxWarningRequestProcessingTime) { logger.Warn(ErrorCode.Dispatcher_ExtendedMessageProcessing, "Current request has been active for {0} for activation {1}. Currently executing {2}. Trying to enqueue {3}.", currentRequestActiveTime, this.ToDetailedString(), Running, message); } } waiting = waiting ?? new List<Message>(); waiting.Add(message); return EnqueueMessageResult.Success; } } /// <summary> /// Check whether this activation is overloaded. /// Returns LimitExceededException if overloaded, otherwise <c>null</c>c> /// </summary> /// <param name="log">Logger to use for reporting any overflow condition</param> /// <returns>Returns LimitExceededException if overloaded, otherwise <c>null</c>c></returns> public LimitExceededException CheckOverloaded(Logger log) { LimitValue limitValue = GetMaxEnqueuedRequestLimit(); int maxRequestsHardLimit = limitValue.HardLimitThreshold; int maxRequestsSoftLimit = limitValue.SoftLimitThreshold; if (maxRequestsHardLimit <= 0 && maxRequestsSoftLimit <= 0) return null; // No limits are set int count = GetRequestCount(); if (maxRequestsHardLimit > 0 && count > maxRequestsHardLimit) // Hard limit { log.Warn(ErrorCode.Catalog_Reject_ActivationTooManyRequests, String.Format("Overload - {0} enqueued requests for activation {1}, exceeding hard limit rejection threshold of {2}", count, this, maxRequestsHardLimit)); return new LimitExceededException(limitValue.Name, count, maxRequestsHardLimit, this.ToString()); } if (maxRequestsSoftLimit > 0 && count > maxRequestsSoftLimit) // Soft limit { log.Warn(ErrorCode.Catalog_Warn_ActivationTooManyRequests, String.Format("Hot - {0} enqueued requests for activation {1}, exceeding soft limit warning threshold of {2}", count, this, maxRequestsSoftLimit)); return null; } return null; } internal int GetRequestCount() { lock (this) { long numInDispatcher = EnqueuedOnDispatcherCount; long numActive = InFlightCount; long numWaiting = WaitingCount; return (int)(numInDispatcher + numActive + numWaiting); } } private LimitValue GetMaxEnqueuedRequestLimit() { if (maxEnqueuedRequestsLimit != null) return maxEnqueuedRequestsLimit; if (GrainInstanceType != null) { string limitName = CodeGeneration.GrainInterfaceUtils.IsStatelessWorker(GrainInstanceType.GetTypeInfo()) ? LimitNames.LIMIT_MAX_ENQUEUED_REQUESTS_STATELESS_WORKER : LimitNames.LIMIT_MAX_ENQUEUED_REQUESTS; maxEnqueuedRequestsLimit = nodeConfiguration.LimitManager.GetLimit(limitName); // Cache for next time return maxEnqueuedRequestsLimit; } return nodeConfiguration.LimitManager.GetLimit(LimitNames.LIMIT_MAX_ENQUEUED_REQUESTS); } public Message PeekNextWaitingMessage() { if (waiting != null && waiting.Count > 0) return waiting[0]; return null; } public void DequeueNextWaitingMessage() { if (waiting != null && waiting.Count > 0) waiting.RemoveAt(0); } internal List<Message> DequeueAllWaitingMessages() { lock (this) { if (waiting == null) return null; List<Message> tmp = waiting; waiting = null; return tmp; } } #endregion #region Activation collection public bool IsInactive { get { return !IsCurrentlyExecuting && (waiting == null || waiting.Count == 0); } } public bool IsCurrentlyExecuting { get { return numRunning > 0 ; } } /// <summary> /// Returns how long this activation has been idle. /// </summary> public TimeSpan GetIdleness(DateTime now) { if (now == default(DateTime)) throw new ArgumentException("default(DateTime) is not allowed; Use DateTime.UtcNow instead.", "now"); return now - becameIdle; } /// <summary> /// Returns whether this activation has been idle long enough to be collected. /// </summary> public bool IsStale(DateTime now) { return GetIdleness(now) >= CollectionAgeLimit; } private DateTime keepAliveUntil; public bool ShouldBeKeptAlive { get { return keepAliveUntil >= DateTime.UtcNow; } } public void DelayDeactivation(TimeSpan timespan) { if (timespan <= TimeSpan.Zero) { // reset any current keepAliveUntill ResetKeepAliveRequest(); } else if (timespan == TimeSpan.MaxValue) { // otherwise creates negative time. keepAliveUntil = DateTime.MaxValue; } else { keepAliveUntil = DateTime.UtcNow + timespan; } } public void ResetKeepAliveRequest() { keepAliveUntil = DateTime.MinValue; } public List<Action> OnInactive { get; set; } // ActivationData public void AddOnInactive(Action action) // ActivationData { lock (this) { if (OnInactive == null) { OnInactive = new List<Action>(); } OnInactive.Add(action); } } public void RunOnInactive() { lock (this) { if (OnInactive == null) return; var actions = OnInactive; OnInactive = null; foreach (var action in actions) { action(); } } } #endregion #region In-grain Timers internal void AddTimer(IGrainTimer timer) { lock(this) { if (timers == null) { timers = new HashSet<IGrainTimer>(); } timers.Add(timer); } } private void StopAllTimers() { lock (this) { if (timers == null) return; foreach (var timer in timers) { timer.Stop(); } } } public void OnTimerDisposed(IGrainTimer orleansTimerInsideGrain) { lock (this) // need to lock since dispose can be called on finalizer thread, outside garin context (not single threaded). { timers.Remove(orleansTimerInsideGrain); } } internal Task WaitForAllTimersToFinish() { lock(this) { if (timers == null) { return Task.CompletedTask; } var tasks = new List<Task>(); var timerCopy = timers.ToList(); // need to copy since OnTimerDisposed will change the timers set. foreach (var timer in timerCopy) { // first call dispose, then wait to finish. Utils.SafeExecute(timer.Dispose, logger, "timer.Dispose has thrown"); tasks.Add(timer.GetCurrentlyExecutingTickTask()); } return Task.WhenAll(tasks); } } #endregion #region Printing functions public string DumpStatus() { var sb = new StringBuilder(); lock (this) { sb.AppendFormat(" {0}", ToDetailedString()); if (Running != null) { sb.AppendFormat(" Processing message: {0}", Running); } if (waiting!=null && waiting.Count > 0) { sb.AppendFormat(" Messages queued within ActivationData: {0}", PrintWaitingQueue()); } } return sb.ToString(); } public override string ToString() { return String.Format("[Activation: {0}{1}{2}{3} State={4}]", Silo, Grain, ActivationId, GetActivationInfoString(), State); } internal string ToDetailedString(bool includeExtraDetails = false) { return String.Format( "[Activation: {0}{1}{2}{3} State={4} NonReentrancyQueueSize={5} EnqueuedOnDispatcher={6} InFlightCount={7} NumRunning={8} IdlenessTimeSpan={9} CollectionAgeLimit={10}{11}]", Silo.ToLongString(), Grain.ToDetailedString(), ActivationId, GetActivationInfoString(), State, // 4 WaitingCount, // 5 NonReentrancyQueueSize EnqueuedOnDispatcherCount, // 6 EnqueuedOnDispatcher InFlightCount, // 7 InFlightCount numRunning, // 8 NumRunning GetIdleness(DateTime.UtcNow), // 9 IdlenessTimeSpan CollectionAgeLimit, // 10 CollectionAgeLimit (includeExtraDetails && Running != null) ? " CurrentlyExecuting=" + Running : ""); // 11: Running } public string Name { get { return String.Format("[Activation: {0}{1}{2}{3}]", Silo, Grain, ActivationId, GetActivationInfoString()); } } /// <summary> /// Return string containing dump of the queue of waiting work items /// </summary> /// <returns></returns> /// <remarks>Note: Caller must be holding lock on this activation while calling this method.</remarks> internal string PrintWaitingQueue() { return Utils.EnumerableToString(waiting); } private string GetActivationInfoString() { var placement = PlacedUsing != null ? PlacedUsing.GetType().Name : String.Empty; return GrainInstanceType == null ? placement : String.Format(" #GrainType={0} Placement={1}", GrainInstanceType.FullName, placement); } #endregion public void Dispose() { IDisposable disposable = serviceScope; if (disposable != null) disposable.Dispose(); this.serviceScope = null; } } internal static class StreamResourceTestControl { internal static bool TestOnlySuppressStreamCleanupOnDeactivate; } }
mit
mikechernev/grumphp
spec/GrumPHP/Linter/Xml/XmlLintErrorSpec.php
831
<?php namespace spec\GrumPHP\Linter\Xml; use GrumPHP\Linter\LintError; use PhpSpec\ObjectBehavior; use Prophecy\Argument; class XmlLintErrorSpec extends ObjectBehavior { function let() { $this->beConstructedWith(LintError::TYPE_ERROR, 0, 'error', 'file.txt', 1, 1); } function it_is_initializable() { $this->shouldHaveType('GrumPHP\Linter\Xml\XmlLintError'); } function it_is_a_lint_error() { $this->shouldHaveType('GrumPHP\Linter\LintError'); } function it_has_an_error_code() { $this->getCode()->shouldBe(0); } function it_has_a_column_number() { $this->getColumn()->shouldBe(1); } function it_can_be_parsed_as_string() { $this->__toString()->shouldBe('[ERROR] file.txt: error (0) on line 1,1'); } }
mit
robertusengel/aoemod
network/TowncenterMessage.java
1753
package com.robert.aoemod.network; import com.robert.aoemod.blocks.towncentergui.TileEntityTowncenter; import io.netty.buffer.ByteBuf; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.util.math.BlockPos; import net.minecraftforge.fml.common.network.simpleimpl.IMessage; import net.minecraftforge.fml.common.network.simpleimpl.IMessageHandler; import net.minecraftforge.fml.common.network.simpleimpl.MessageContext; public class TowncenterMessage implements IMessage { int x,y,z; public TowncenterMessage() { } public TowncenterMessage(int x, int y, int z) { this.x = x; this.y = y; this.z = z; } @Override public void fromBytes(ByteBuf buf) { this.x = buf.readInt(); this.y = buf.readInt(); this.z = buf.readInt(); } @Override public void toBytes(ByteBuf buf) { buf.writeInt(this.x); buf.writeInt(this.y); buf.writeInt(this.z); } public static class TowncenterMessageHandler implements IMessageHandler<TowncenterMessage, IMessage> { // Do note that the default constructor is required, but implicitly defined in this case @Override public IMessage onMessage(TowncenterMessage message, MessageContext ctx) { // This is the player the packet was sent to the server from EntityPlayerMP serverPlayer = ctx.getServerHandler().player; // The value that was sent int x = message.x; int y = message.y; int z = message.z; TileEntityTowncenter te = (TileEntityTowncenter) serverPlayer.world.getTileEntity(new BlockPos(x, y, z)); // Execute the action on the main server thread by adding it as a scheduled task serverPlayer.getServerWorld().addScheduledTask(() -> { te.einlagern(serverPlayer); }); // No response packet return null; } } }
mit
demoiselle/generator-demoiselle
Utils/templates/backend/src/main/java/app/dao/_pojoDAO.java
558
package <%= package.lower %>.<%= project.lower %>.dao; import <%= package.lower %>.<%= project.lower %>.entity.<%= name.capital %>; import java.util.UUID; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import org.demoiselle.jee.crud.AbstractDAO; public class <%= name.capital %>DAO extends AbstractDAO< <%= name.capital %>, UUID> { @PersistenceContext(unitName = "<%= project.lower %>PU") protected EntityManager em; @Override protected EntityManager getEntityManager() { return em; } }
mit
aattsai/Pathway
pipeline/app/assets/javascripts/controllers/ProjectController.js
1452
'use strict' angular.module('pathwayApp') .controller('ProjectController', function ($scope, $http, $stateParams, $state) { $http({method: 'GET', url: '/api/pathways/' + $stateParams.pathway_id + '/projects/' + $stateParams.id }).success(function(data, status){ $scope.project = data }) $scope.projects = $http({method: 'GET', url: '/api/projects' }).success(function(data, status){ $scope.allProjects = data }) $scope.create = function() { $http({method: 'POST', url: '/api/projects', data: {project: $scope.project } }).success(function(data, status){ console.log("hello from create()") $state.go('home') }).error(function(data){ console.log(data) }) } var projects = 0 var currentPathway = 0 $scope.projectsAdded = [] $scope.addProject = function(project, donated_weight) { var projectObj = project $http({method: 'POST', url: '/api/pathways/' + $stateParams.id + '/projects', data: {projects: project, weight: donated_weight } }).success(function(data, status){ projects += 1 currentPathway = data.pathway_id $scope.projectsAdded.push(projectObj.name) if (projects == 10) {$state.go('showPathway', {'id': currentPathway })} }).error(function(data){ console.log("Error adding project") }) } $scope.nextPage = function() { $state.go('showPathway', {'id': $stateParams.id}) } });
mit
vbence86/fivenations
src/js/map/FogOfWar.js
4036
import Util from '../common/Util'; import FogOfWarMasks from './FogOfWarMasks'; import EventEmitter from '../sync/EventEmitter'; const FAKE_ROW = []; const FAKE_VALUE = 0; function addFakeRows(map) { for (let i = map.getWidth() - 1; i >= 0; i -= 1) { FAKE_ROW.push(FAKE_VALUE); } } class FogOfWar { constructor(map) { this.initMatrix(map); this.initEventListener(); addFakeRows(map); } /** * Generates the matrix to contain the visibility information of * each tiles on the given map * @param {object} map - Map instance */ initMatrix(map) { this.tiles = Util.matrix(map.getWidth(), map.getHeight()); this.tileWidth = map.getTileWidth(); this.map = map; this.updatedTiles = []; } /** * Creates a local event dispatcher */ initEventListener() { this.dispatcher = EventEmitter.getInstance().local; } /** * Reveals the tile based on the given coordinates * @param {number} x * @param {number} y */ visit(x, y) { if (x >= 0 && y >= 0 && y < this.tiles.length && x < this.tiles[0].length) { if (!this.tiles[y][x]) { this.tiles[y][x] = 1; // only sets dirty true if the revealing was on screen // otherwise we are not interested in refreshing the // fog of war layer if (this.map.isTileOnScreen(x, y)) { this.dirty = true; } this.updatedTiles.push({ x, y }); } } } /** * Reveals the tile based on the given coordinates * @param {number} x * @param {number} y */ forceVisit(x, y) { this.visit(x, y); if (this.dirty) { this.map.forceRefresh(); this.dirty = false; } } /** * Visits all the tiles that are inside the given entity's range * @param {object} entity - Entity instance */ visitTilesByEntityVisibility(entity) { const vision = Math.max(entity.getDataObject().getVision(), 1); const mask = FogOfWarMasks.getMaskBySize(vision); const offset = Math.floor(mask.length / 2); const tile = entity.getTile(); for (let i = 0; i < mask.length; i += 1) { for (let j = 0; j < mask[i].length; j += 1) { if (mask[i][j]) { const x = -offset + tile[0] + j; const y = -offset + tile[1] + i; this.visit(x, y); } } } } isVisible(x, y) { if (x >= 0 && y >= 0 && y < this.tiles.length && x < this.tiles[0].length) { return this.tiles[y][x]; } return false; } update(entityManager) { this.dirty = false; entityManager .entities(':user') .filter(entity => !entity.isHibernated()) .forEach((entity) => { this.visitTilesByEntityVisibility(entity); }); if (this.updatedTiles.length) { this.dispatcher.dispatch('fogofwar/change', this.updatedTiles); this.updatedTiles = []; } } getMatrix() { return this.tiles; } /** * Returns a chunk of the complete matrix according to the given parameter object * @param {object} chunk - chunk.x, chunk.y, chunk.width, chunk.height * @return {array} two dimensional array of the requested chunk */ getMatrixChunk(chunk) { const tmpArray = Util.deepClone(this.tiles); if (chunk.y === -1) { tmpArray.unshift(FAKE_ROW); } if (chunk.height >= tmpArray.length) { tmpArray.push(FAKE_ROW); } if (chunk.width >= tmpArray[0].length) { tmpArray.map(row => row.push(FAKE_VALUE)); } if (chunk.x === -1) { tmpArray.map(row => row.unshift(FAKE_VALUE)); } return tmpArray .map(rows => rows.filter((column, idx) => idx >= chunk.x && idx < chunk.x + chunk.width)) .filter((rows, idx) => idx >= chunk.y && idx < chunk.y + chunk.height); } /** * Returns the map instance * @return {object} */ getMap() { return this.map; } /** * Returns whether the FogOfWar must be updated through its renderer * @return {boolean} */ isDirty() { return this.dirty; } } export default FogOfWar;
mit
Grosloup/multisite3
src/ZPB/AdminBundle/Listener/Entities/GodparentListener.php
1867
<?php /** * Created by PhpStorm. * User: Nicolas Canfrere * Date: 14/08/2014 * Time: 23:53 */ /* ____________________ __ / ______ \ { \ ___/___ / } \ { / / # } | {/ ô ô ; __} | / \__} / \ /\ <=(_ __<==/ | /\___\ | \ (_ _( | | | | | / # (_ (_ | | | | | | (__< |mm_|mm_| |mm_|mm_| */ namespace ZPB\AdminBundle\Listener\Entities; use Doctrine\ORM\Event\LifecycleEventArgs; use Doctrine\ORM\Event\PreUpdateEventArgs; use Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface; use ZPB\AdminBundle\Entity\Godparent; class GodparentListener { private $encoder; public function __construct(EncoderFactoryInterface $encoder) { $this->encoder = $encoder; } public function prePersist(LifecycleEventArgs $args) { $entity = $args->getEntity(); if($entity instanceof Godparent){ $password = $this->handleEvent($entity); if($password){ $entity->setPassword($password); } } } public function preUpdate(PreUpdateEventArgs $args) { $entity = $args->getEntity(); if($entity instanceof Godparent){ if($args->hasChangedField('password')){ $password = $this->handleEvent($entity); if($password){ $args->setNewValue('password', $password); } } } } private function handleEvent(Godparent $user) { if(!$user->getPlainPassword()){ return false; } $encoder = $this->encoder->getEncoder($user); $password = $encoder->encodePassword($user->getPlainPassword(), $user->getSalt()); return $password; } }
mit
sharpninja/WorldBankBBS
WorldBankBBS.Data/IrcSystem.cs
827
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace WorldBankBBS.Data { using System; using System.Collections.Generic; public partial class IrcSystem { public System.Guid IrcSystemUID { get; set; } public string IrcSystemName { get; set; } public string IrcSystemHost { get; set; } public int IrcSystemPort { get; set; } public Nullable<int> IrcSystemDisplayIndex { get; set; } } }
mit
valyala/fastrpc
coarseTime.go
322
package fastrpc import ( "sync/atomic" "time" ) func coarseTimeNow() time.Time { tp := coarseTime.Load().(*time.Time) return *tp } func init() { t := time.Now() coarseTime.Store(&t) go func() { for { time.Sleep(time.Second) t := time.Now() coarseTime.Store(&t) } }() } var coarseTime atomic.Value
mit
google-code/banshee32
Banshee/Banshee.TrackView.Columns/Columns.cs
434
using System; using System.Collections.Generic; using System.Text; namespace Banshee.TrackView.Columns { public static class Columns { public enum PlaylistColumns { Track=0, Title, Artist, Album, Duration, Genre, LastPlayed, PlayCount, Rating, Uri } } }
mit
aroelke/deck-editor-java
src/main/java/editor/gui/generic/TristateCheckBox.java
5325
package editor.gui.generic; import java.awt.Color; import java.awt.Component; import java.awt.Graphics; import java.awt.event.ActionListener; import java.util.HashSet; import java.util.Set; import javax.swing.Icon; import javax.swing.JCheckBox; import javax.swing.UIManager; /** * This class represents a check box with three states: selected, unselected, * and intermediate. A state of intermediate should be used to indicate when the * box represents an aspect of several items and not all of those items have the * that aspect. * * @author Alec Roelke */ public class TristateCheckBox extends JCheckBox { /** * The three states a TristateCheckBox can have. */ public static enum State { SELECTED, INDETERMINATE, UNSELECTED } /** * Icon serving as the base for a TristateCheckBox. A square is drawn * over it if the box is in indeterminate state. */ private static final Icon BASE_ICON = UIManager.getIcon("CheckBox.icon"); /** * Amount of the image the square should fill. */ private static final double ICON_FILL = 2.0/3.0; /** * Icon for a TristateCheckBox. Draws a normal check box icon, but * overlays it with a square if the box is in indeterminate state. */ private class IndeterminateIcon implements Icon { /** * Color of the square to draw. */ private Color boxColor; /** * Create a new IndeterminateIcon that draws a square of the specified * color. * * @param color color of the square */ public IndeterminateIcon(Color color) { boxColor = color; } @Override public int getIconHeight() { return BASE_ICON.getIconHeight(); } @Override public int getIconWidth() { return BASE_ICON.getIconWidth(); } @Override public void paintIcon(Component c, Graphics g, int x, int y) { BASE_ICON.paintIcon(c, g, x, y); if (state == State.INDETERMINATE) { g.setColor(boxColor); g.fillRect((int)Math.floor(x + getIconWidth()*(1 - ICON_FILL)/2), (int)Math.floor(y + getIconHeight()*(1 - ICON_FILL)/2), (int)Math.ceil(getIconWidth()*ICON_FILL), (int)Math.ceil(getIconHeight()*ICON_FILL)); } } } /** * State of this TristateCheckBox. */ private State state; private Set<ActionListener> listeners; /** * Create a new TristateCheckBox with the specified text and state. * * @param text text to show next to the check box * @param s initial state of the check box */ public TristateCheckBox(String text, State s) { super(text, s == State.SELECTED); setState(s); listeners = new HashSet<>(); setIcon(new IndeterminateIcon(UIManager.getColor("CheckBox.foreground"))); setRolloverIcon(new IndeterminateIcon(UIManager.getColor("CheckBox.foreground"))); super.addActionListener((e) -> { setState(switch (state) { case SELECTED, INDETERMINATE -> State.UNSELECTED; case UNSELECTED -> State.SELECTED; }); for (ActionListener l : listeners) l.actionPerformed(e); }); } /** * Create a TristateCheckBox with the specified text in unselected state. * * @param text text to show next to the check box */ public TristateCheckBox(String text) { this(text, State.UNSELECTED); } /** * Create a TristateCheckBox with no text in unselected state. */ public TristateCheckBox() { this(""); } /** * @return The state of this TristateCheckBox. */ public State getState() { return state; } /** * Check whether or not this TristateCheckBox is indeterminate. * * @return <code>true</code> if this TristateCheckBox is indeterminate, * and <code>false</code> otherwise. */ public boolean isPartial() { return state == State.INDETERMINATE; } /** * @inheritDoc * * Also update the state to reflect whether or not the box is selected. * A state of indeterminate cannot be reached this way; to set it, use * #{@link #setState(State)}. */ @Override public void setSelected(boolean b) { setState(b ? State.SELECTED : State.UNSELECTED); } /** * Set the state of this TristateCheckBox. Also updates the selected * state. A state of indeterminate is considered unselected. */ public void setState(State s) { state = s; super.setSelected(state == State.SELECTED); } @Override public boolean isSelected() { return state == State.SELECTED; } @Override public void addActionListener(ActionListener l) { listeners.add(l); } @Override public void removeActionListener(ActionListener l) { listeners.remove(l); } @Override public ActionListener[] getActionListeners() { return listeners.toArray(new ActionListener[listeners.size()]); } }
mit
hegistva/angular-visual
src/ts/main.ts
279
/// <amd-dependency path="ngapp" /> /// <amd-dependency path="bootstrap" /> /// <reference path="../typings/tsd.d.ts" /> import angular = require('angular'); import ngapp = require('ngapp'); export function runApp() { angular.bootstrap(document,['demoApp']); }; runApp();
mit
Shahlal47/nits
lib/Cake/Console/Command/AclShell.php
19120
<?php /** * Acl Shell provides Acl access in the CLI environment * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyright notice. * * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @since CakePHP(tm) v 1.2.0.5012 * @license http://www.opensource.org/licenses/mit-license.php MIT License */ App::uses('AppShell', 'Console/Command'); App::uses('Controller', 'Controller'); App::uses('ComponentCollection', 'Controller'); App::uses('AclComponent', 'Controller/Component'); App::uses('DbAcl', 'Model'); App::uses('Hash', 'Utility'); /** * Shell for ACL management. This console is known to have issues with zend.ze1_compatibility_mode * being enabled. Be sure to turn it off when using this shell. * * @package Cake.Console.Command */ class AclShell extends AppShell { /** * Contains instance of AclComponent * * @var AclComponent */ public $Acl; /** * Contains arguments parsed from the command line. * * @var array */ public $args; /** * Contains database source to use * * @var string */ public $connection = 'default'; /** * Contains tasks to load and instantiate * * @var array */ public $tasks = array('DbConfig'); /** * Override startup of the Shell * * @return void */ public function startup() { parent::startup(); if (isset($this->params['connection'])) { $this->connection = $this->params['connection']; } $class = Configure::read('Acl.classname'); list($plugin, $class) = pluginSplit($class, true); App::uses($class, $plugin . 'Controller/Component/Acl'); if (!in_array($class, array('DbAcl', 'DB_ACL')) && !is_subclass_of($class, 'DbAcl')) { $out = "--------------------------------------------------\n"; $out .= __d('cake_console', 'Error: Your current CakePHP configuration is set to an ACL implementation other than DB.') . "\n"; $out .= __d('cake_console', 'Please change your core config to reflect your decision to use DbAcl before attempting to use this script') . "\n"; $out .= "--------------------------------------------------\n"; $out .= __d('cake_console', 'Current ACL Classname: %s', $class) . "\n"; $out .= "--------------------------------------------------\n"; $this->err($out); return $this->_stop(); } if ($this->command) { if (!config('database')) { $this->out(__d('cake_console', 'Your database configuration was not found. Take a moment to create one.')); $this->args = null; return $this->DbConfig->execute(); } require_once APP . 'Config' . DS . 'database.php'; if (!in_array($this->command, array('initdb'))) { $collection = new ComponentCollection(); $this->Acl = new AclComponent($collection); $controller = new Controller(); $this->Acl->startup($controller); } } } /** * Override main() for help message hook * * @return void */ public function main() { $this->out($this->OptionParser->help()); } /** * Creates an ARO/ACO node * * @return void */ public function create() { extract($this->_dataVars()); $class = ucfirst($this->args[0]); $parent = $this->parseIdentifier($this->args[1]); if (!empty($parent) && $parent !== '/' && $parent !== 'root') { $parent = $this->_getNodeId($class, $parent); } else { $parent = null; } $data = $this->parseIdentifier($this->args[2]); if (is_string($data) && $data !== '/') { $data = array('alias' => $data); } elseif (is_string($data)) { $this->error(__d('cake_console', '/ can not be used as an alias!') . __d('cake_console', " / is the root, please supply a sub alias")); } $data['parent_id'] = $parent; $this->Acl->{$class}->create(); if ($this->Acl->{$class}->save($data)) { $this->out(__d('cake_console', "<success>New %s</success> '%s' created.", $class, $this->args[2]), 2); } else { $this->err(__d('cake_console', "There was a problem creating a new %s '%s'.", $class, $this->args[2])); } } /** * Delete an ARO/ACO node. * * @return void */ public function delete() { extract($this->_dataVars()); $identifier = $this->parseIdentifier($this->args[1]); $nodeId = $this->_getNodeId($class, $identifier); if (!$this->Acl->{$class}->delete($nodeId)) { $this->error(__d('cake_console', 'Node Not Deleted') . __d('cake_console', 'There was an error deleting the %s. Check that the node exists.', $class) . "\n"); } $this->out(__d('cake_console', '<success>%s deleted.</success>', $class), 2); } /** * Set parent for an ARO/ACO node. * * @return void */ public function setParent() { extract($this->_dataVars()); $target = $this->parseIdentifier($this->args[1]); $parent = $this->parseIdentifier($this->args[2]); $data = array( $class => array( 'id' => $this->_getNodeId($class, $target), 'parent_id' => $this->_getNodeId($class, $parent) ) ); $this->Acl->{$class}->create(); if (!$this->Acl->{$class}->save($data)) { $this->out(__d('cake_console', 'Error in setting new parent. Please make sure the parent node exists, and is not a descendant of the node specified.')); } else { $this->out(__d('cake_console', 'Node parent set to %s', $this->args[2]) . "\n"); } } /** * Get path to specified ARO/ACO node. * * @return void */ public function getPath() { extract($this->_dataVars()); $identifier = $this->parseIdentifier($this->args[1]); $id = $this->_getNodeId($class, $identifier); $nodes = $this->Acl->{$class}->getPath($id); if (empty($nodes)) { $this->error( __d('cake_console', "Supplied Node '%s' not found", $this->args[1]), __d('cake_console', 'No tree returned.') ); } $this->out(__d('cake_console', 'Path:')); $this->hr(); for ($i = 0, $len = count($nodes); $i < $len; $i++) { $this->_outputNode($class, $nodes[$i], $i); } } /** * Outputs a single node, Either using the alias or Model.key * * @param string $class Class name that is being used. * @param array $node Array of node information. * @param integer $indent indent level. * @return void */ protected function _outputNode($class, $node, $indent) { $indent = str_repeat(' ', $indent); $data = $node[$class]; if ($data['alias']) { $this->out($indent . "[" . $data['id'] . "] " . $data['alias']); } else { $this->out($indent . "[" . $data['id'] . "] " . $data['model'] . '.' . $data['foreign_key']); } } /** * Check permission for a given ARO to a given ACO. * * @return void */ public function check() { extract($this->_getParams()); if ($this->Acl->check($aro, $aco, $action)) { $this->out(__d('cake_console', '%s is <success>allowed</success>.', $aroName)); } else { $this->out(__d('cake_console', '%s is <error>not allowed</error>.', $aroName)); } } /** * Grant permission for a given ARO to a given ACO. * * @return void */ public function grant() { extract($this->_getParams()); if ($this->Acl->allow($aro, $aco, $action)) { $this->out(__d('cake_console', 'Permission <success>granted</success>.')); } else { $this->out(__d('cake_console', 'Permission was <error>not granted</error>.')); } } /** * Deny access for an ARO to an ACO. * * @return void */ public function deny() { extract($this->_getParams()); if ($this->Acl->deny($aro, $aco, $action)) { $this->out(__d('cake_console', 'Permission denied.')); } else { $this->out(__d('cake_console', 'Permission was not denied.')); } } /** * Set an ARO to inherit permission to an ACO. * * @return void */ public function inherit() { extract($this->_getParams()); if ($this->Acl->inherit($aro, $aco, $action)) { $this->out(__d('cake_console', 'Permission inherited.')); } else { $this->out(__d('cake_console', 'Permission was not inherited.')); } } /** * Show a specific ARO/ACO node. * * @return void */ public function view() { extract($this->_dataVars()); if (isset($this->args[1])) { $identity = $this->parseIdentifier($this->args[1]); $topNode = $this->Acl->{$class}->find('first', array( 'conditions' => array($class . '.id' => $this->_getNodeId($class, $identity)) )); $nodes = $this->Acl->{$class}->find('all', array( 'conditions' => array( $class . '.lft >=' => $topNode[$class]['lft'], $class . '.lft <=' => $topNode[$class]['rght'] ), 'order' => $class . '.lft ASC' )); } else { $nodes = $this->Acl->{$class}->find('all', array('order' => $class . '.lft ASC')); } if (empty($nodes)) { if (isset($this->args[1])) { $this->error(__d('cake_console', '%s not found', $this->args[1]), __d('cake_console', 'No tree returned.')); } elseif (isset($this->args[0])) { $this->error(__d('cake_console', '%s not found', $this->args[0]), __d('cake_console', 'No tree returned.')); } } $this->out($class . ' tree:'); $this->hr(); $stack = array(); $last = null; foreach ($nodes as $n) { $stack[] = $n; if (!empty($last)) { $end = end($stack); if ($end[$class]['rght'] > $last) { foreach ($stack as $k => $v) { $end = end($stack); if ($v[$class]['rght'] < $end[$class]['rght']) { unset($stack[$k]); } } } } $last = $n[$class]['rght']; $count = count($stack); $this->_outputNode($class, $n, $count); } $this->hr(); } /** * Initialize ACL database. * * @return mixed */ public function initdb() { return $this->dispatchShell('schema create DbAcl'); } /** * Gets the option parser instance and configures it. * * @return ConsoleOptionParser */ public function getOptionParser() { $parser = parent::getOptionParser(); $type = array( 'choices' => array('aro', 'aco'), 'required' => true, 'help' => __d('cake_console', 'Type of node to create.') ); $parser->description( __d('cake_console', 'A console tool for managing the DbAcl') )->addSubcommand('create', array( 'help' => __d('cake_console', 'Create a new ACL node'), 'parser' => array( 'description' => __d('cake_console', 'Creates a new ACL object <node> under the parent'), 'epilog' => __d('cake_console', 'You can use `root` as the parent when creating nodes to create top level nodes.'), 'arguments' => array( 'type' => $type, 'parent' => array( 'help' => __d('cake_console', 'The node selector for the parent.'), 'required' => true ), 'alias' => array( 'help' => __d('cake_console', 'The alias to use for the newly created node.'), 'required' => true ) ) ) ))->addSubcommand('delete', array( 'help' => __d('cake_console', 'Deletes the ACL object with the given <node> reference'), 'parser' => array( 'description' => __d('cake_console', 'Delete an ACL node.'), 'arguments' => array( 'type' => $type, 'node' => array( 'help' => __d('cake_console', 'The node identifier to delete.'), 'required' => true, ) ) ) ))->addSubcommand('setparent', array( 'help' => __d('cake_console', 'Moves the ACL node under a new parent.'), 'parser' => array( 'description' => __d('cake_console', 'Moves the ACL object specified by <node> beneath <parent>'), 'arguments' => array( 'type' => $type, 'node' => array( 'help' => __d('cake_console', 'The node to move'), 'required' => true, ), 'parent' => array( 'help' => __d('cake_console', 'The new parent for <node>.'), 'required' => true ) ) ) ))->addSubcommand('getpath', array( 'help' => __d('cake_console', 'Print out the path to an ACL node.'), 'parser' => array( 'description' => array( __d('cake_console', "Returns the path to the ACL object specified by <node>."), __d('cake_console', "This command is useful in determining the inheritance of permissions for a certain object in the tree.") ), 'arguments' => array( 'type' => $type, 'node' => array( 'help' => __d('cake_console', 'The node to get the path of'), 'required' => true, ) ) ) ))->addSubcommand('check', array( 'help' => __d('cake_console', 'Check the permissions between an ACO and ARO.'), 'parser' => array( 'description' => array( __d('cake_console', 'Use this command to check ACL permissions.') ), 'arguments' => array( 'aro' => array('help' => __d('cake_console', 'ARO to check.'), 'required' => true), 'aco' => array('help' => __d('cake_console', 'ACO to check.'), 'required' => true), 'action' => array('help' => __d('cake_console', 'Action to check'), 'default' => 'all') ) ) ))->addSubcommand('grant', array( 'help' => __d('cake_console', 'Grant an ARO permissions to an ACO.'), 'parser' => array( 'description' => array( __d('cake_console', 'Use this command to grant ACL permissions. Once executed, the ARO specified (and its children, if any) will have ALLOW access to the specified ACO action (and the ACO\'s children, if any).') ), 'arguments' => array( 'aro' => array('help' => __d('cake_console', 'ARO to grant permission to.'), 'required' => true), 'aco' => array('help' => __d('cake_console', 'ACO to grant access to.'), 'required' => true), 'action' => array('help' => __d('cake_console', 'Action to grant'), 'default' => 'all') ) ) ))->addSubcommand('deny', array( 'help' => __d('cake_console', 'Deny an ARO permissions to an ACO.'), 'parser' => array( 'description' => array( __d('cake_console', 'Use this command to deny ACL permissions. Once executed, the ARO specified (and its children, if any) will have DENY access to the specified ACO action (and the ACO\'s children, if any).') ), 'arguments' => array( 'aro' => array('help' => __d('cake_console', 'ARO to deny.'), 'required' => true), 'aco' => array('help' => __d('cake_console', 'ACO to deny.'), 'required' => true), 'action' => array('help' => __d('cake_console', 'Action to deny'), 'default' => 'all') ) ) ))->addSubcommand('inherit', array( 'help' => __d('cake_console', 'Inherit an ARO\'s parent permissions.'), 'parser' => array( 'description' => array( __d('cake_console', "Use this command to force a child ARO object to inherit its permissions settings from its parent.") ), 'arguments' => array( 'aro' => array('help' => __d('cake_console', 'ARO to have permissions inherit.'), 'required' => true), 'aco' => array('help' => __d('cake_console', 'ACO to inherit permissions on.'), 'required' => true), 'action' => array('help' => __d('cake_console', 'Action to inherit'), 'default' => 'all') ) ) ))->addSubcommand('view', array( 'help' => __d('cake_console', 'View a tree or a single node\'s subtree.'), 'parser' => array( 'description' => array( __d('cake_console', "The view command will return the ARO or ACO tree."), __d('cake_console', "The optional node parameter allows you to return"), __d('cake_console', "only a portion of the requested tree.") ), 'arguments' => array( 'type' => $type, 'node' => array('help' => __d('cake_console', 'The optional node to view the subtree of.')) ) ) ))->addSubcommand('initdb', array( 'help' => __d('cake_console', 'Initialize the DbAcl tables. Uses this command : cake schema create DbAcl') ))->epilog(array( 'Node and parent arguments can be in one of the following formats:', '', ' - <model>.<id> - The node will be bound to a specific record of the given model.', '', ' - <alias> - The node will be given a string alias (or path, in the case of <parent>)', " i.e. 'John'. When used with <parent>, this takes the form of an alias path,", " i.e. <group>/<subgroup>/<parent>.", '', "To add a node at the root level, enter 'root' or '/' as the <parent> parameter." )); return $parser; } /** * Checks that given node exists * * @return boolean Success */ public function nodeExists() { if (!isset($this->args[0]) || !isset($this->args[1])) { return false; } $dataVars = $this->_dataVars($this->args[0]); extract($dataVars); $key = is_numeric($this->args[1]) ? $dataVars['secondary_id'] : 'alias'; $conditions = array($class . '.' . $key => $this->args[1]); $possibility = $this->Acl->{$class}->find('all', compact('conditions')); if (empty($possibility)) { $this->error(__d('cake_console', '%s not found', $this->args[1]), __d('cake_console', 'No tree returned.')); } return $possibility; } /** * Parse an identifier into Model.foreignKey or an alias. * Takes an identifier determines its type and returns the result as used by other methods. * * @param string $identifier Identifier to parse * @return mixed a string for aliases, and an array for model.foreignKey */ public function parseIdentifier($identifier) { if (preg_match('/^([\w]+)\.(.*)$/', $identifier, $matches)) { return array( 'model' => $matches[1], 'foreign_key' => $matches[2], ); } return $identifier; } /** * Get the node for a given identifier. $identifier can either be a string alias * or an array of properties to use in AcoNode::node() * * @param string $class Class type you want (Aro/Aco) * @param string|array $identifier A mixed identifier for finding the node. * @return integer Integer of NodeId. Will trigger an error if nothing is found. */ protected function _getNodeId($class, $identifier) { $node = $this->Acl->{$class}->node($identifier); if (empty($node)) { if (is_array($identifier)) { $identifier = var_export($identifier, true); } $this->error(__d('cake_console', 'Could not find node using reference "%s"', $identifier)); return; } return Hash::get($node, "0.{$class}.id"); } /** * get params for standard Acl methods * * @return array aro, aco, action */ protected function _getParams() { $aro = is_numeric($this->args[0]) ? intval($this->args[0]) : $this->args[0]; $aco = is_numeric($this->args[1]) ? intval($this->args[1]) : $this->args[1]; $aroName = $aro; $acoName = $aco; if (is_string($aro)) { $aro = $this->parseIdentifier($aro); } if (is_string($aco)) { $aco = $this->parseIdentifier($aco); } $action = '*'; if (isset($this->args[2]) && !in_array($this->args[2], array('', 'all'))) { $action = $this->args[2]; } return compact('aro', 'aco', 'action', 'aroName', 'acoName'); } /** * Build data parameters based on node type * * @param string $type Node type (ARO/ACO) * @return array Variables */ protected function _dataVars($type = null) { if (!$type) { $type = $this->args[0]; } $vars = array(); $class = ucwords($type); $vars['secondary_id'] = (strtolower($class) === 'aro') ? 'foreign_key' : 'object_id'; $vars['data_name'] = $type; $vars['table_name'] = $type . 's'; $vars['class'] = $class; return $vars; } }
mit
qodeboy/laravel-mailman
tests/ExampleTest.php
148
<?php class ExampleTest extends Orchestra\Testbench\TestCase { public function testTrueIsTrue() { $this->assertTrue(true); } }
mit
todorm85/TelerikAcademy
Projects/HikingPlanAndRescue/Source/Web/HikingPlanAndRescue.Web/App_Start/WebApiConfig.cs
616
namespace HikingPlanAndRescue.Web { using System; using System.Collections.Generic; using System.Linq; using System.Web.Http; public static class WebApiConfig { public static void Register(HttpConfiguration config) { // Web API configuration and services // Web API routes config.MapHttpAttributeRoutes(); config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new { id = RouteParameter.Optional } ); } } }
mit
CB9TOIIIA/MyJBZooStat
views/auhorsprofile/tmpl/default.php
32788
<?php /** @var $this MyjbzoostatViewAutors */ defined( '_JEXEC' ) or die; // No direct access // dump($_POST,0,'post'); /* add Class 'JFolder */ JLoader::register('JFile', JPATH_LIBRARIES . '/joomla/filesystem/file.php'); JLoader::register('JFolder', JPATH_LIBRARIES . '/joomla/filesystem/folder.php'); if (JFolder::exists(JPATH_ROOT . '/components/com_zoo')) { $checkJBZooSEF = JBModelConfig::model()->getGroup('config.sef'); $JBZooSEFenabled = $checkJBZooSEF->get('enabled'); $JBZooSEFfix_item = $checkJBZooSEF->get('fix_item'); $JBZooSEFitem_alias_id = $checkJBZooSEF->get('item_alias_id'); $JBZooSEFfix_category_id = $checkJBZooSEF->get('fix_category_id'); $JBZooSEFfix_category = $checkJBZooSEF->get('fix_category'); $JBZooSEFcategory_alias_id = $checkJBZooSEF->get('category_alias_id'); $JBZooSEFfix_feed = $checkJBZooSEF->get('fix_feed'); $JBZooSEFredirect = $checkJBZooSEF->get('redirect'); $JBZooSEFfix_canonical = $checkJBZooSEF->get('fix_canonical'); $JBZooSEFparse_priority = $checkJBZooSEF->get('parse_priority'); $JBZooSEFcanonical_redirect = $checkJBZooSEF->get('canonical_redirect'); $JBZooSEFzoo_route_caching = $checkJBZooSEF->get('zoo_route_caching'); } JHtml::_('jquery.framework'); ?> <script type="text/javascript"> jQuery(document).ready(function($) { jQuery('#mask-date-calendarstart').datepicker({ language: 'ru', autoClose: true, keyboardNav: true }); jQuery('#mask-date-calendarend').datepicker({ language: 'ru', autoClose: true, keyboardNav: true }); }); </script> <?php require_once JPATH_ADMINISTRATOR . '/components/com_myjbzoostat/elements/paramsetc.php'; $document->addStyleSheet(JUri::root().'administrator/components/com_myjbzoostat/assets/css/auhorsprofile.css'); $document->addScript(JUri::root().'administrator/components/com_myjbzoostat/assets/js/chart.js'); $document->addScript(JUri::root().'administrator/components/com_myjbzoostat/assets/js/datepicker.min.js'); $document->addStyleSheet(JUri::root().'administrator/components/com_myjbzoostat/assets/css/jquery.dataTables.min.css'); $document->addScript(JUri::root().'administrator/components/com_myjbzoostat/assets/js/jquery.dataTables.min.js'); $document->addStyleSheet(JUri::root().'administrator/components/com_myjbzoostat/assets/css/datepick.css'); //JUST DO IT $this->app ----> $app ?> <div class="item-page"> <?php if ($csshack == 'yes') { echo "<style>div#system-message-container {display:none;}</style>"; } echo "<script src='//yastatic.net/es5-shims/0.0.2/es5-shims.min.js'></script> <script type='text/javascript' src='//yastatic.net/share2/share.js'></script>"; if (!empty($disqusApiShort)) : echo "<script id='dsq-count-scr' src='//{$disqusApiShort}.disqus.com/count.js' async></script>"; endif; ?> <?php function rdate($param, $time=0) { if(intval($time)==0)$time=time(); $MonthNames=array("январь", "февраль", "март", "апрель", "май", "июнь", "июль", "август", "сентябрь", "октябрь", "ноябрь", "декабрь"); if(strpos($param,'M')===false) return date($param, $time); else return date(str_replace('M',$MonthNames[date('n',$time)-1],$param), $time); } if ((empty($TypeAuthors))) : $queryauthors = "SELECT created_by" ." FROM " . ZOO_TABLE_ITEM; $AuthorsNoType = count(array_unique($app->table->tag->database->queryResultArray($queryauthors))); $Arrayauthors = array_unique($app->table->tag->database->queryResultArray($queryauthors)); ksort($Arrayauthors); echo '<big class="mono">Всего авторов: <b>'.$AuthorsNoType.'</b></big>'; echo "<br>"; $querynameauth = $db->getQuery(true); $querynameauth = "SELECT created_by" ." FROM " . ZOO_TABLE_ITEM; $db->setQuery($querynameauth); //dump($itemIdsResultnameauth,1,'tagsArrayauthors'); $itemIdsResultnameauth = array_unique($app->table->tag->database->queryResultArray($querynameauth)); echo "<div class='formnameatu'>"; echo '<form action="/administrator/index.php?option=com_myjbzoostat&view=auhorsprofile" method="post" class="form-inline">'; echo "<input type='hidden' name='monthdate' value='".$monthdate."'>"; echo '<select class="" name="authorids">'; foreach ($itemIdsResultnameauth as $created_byas ) { $created_bycreated = $created_byas; $user = JFactory::getUser($created_bycreated); $valueid = $created_bycreated; if ($user->name !== NULL) { $bignameIn = $user->name; } if ($created_bycreated == $authorid) { if ($user->name !== NULL) { $bigname = $user->name; } echo $authcreatedx[] = '<option selected value="'.$created_bycreated.'">'.$bignameIn.'</option>'; } else { echo $authcreatedx[] = '<option value="'.$created_bycreated.'">'.$bignameIn.'</option>'; } // echo $itemIdsResultnameauth[] = '<option value="'.$created_by.'">'.$name.'</option>'; } echo '</select>'; echo '<input type="submit" class="btn" value="Поиск"></form>'; echo '</div>'; endif; if (!empty($TypeAuthors)) : $queryauthors = "SELECT created_by" ." FROM " . ZOO_TABLE_ITEM ." WHERE type = '".$TypeAuthors."'"; $Arrayauthorscount = count($app->table->tag->database->queryResultArray($queryauthors)); $Arrayauthors = array_unique($app->table->tag->database->queryResultArray($queryauthors)); ksort($Arrayauthors); $querynameauth = $db->getQuery(true); $querynameauth = "SELECT created_by, name" ." FROM " . ZOO_TABLE_ITEM ." WHERE type = '".$TypeAuthors."'"; $db->setQuery($querynameauth); $itemIdsResultnameauth = $db->loadObjectList(); //jbdump($itemIdsResultnameauth,1,'tagsArrayauthors'); echo "<div class='formnameatu'>"; echo '<form action="/administrator/index.php?option=com_myjbzoostat&view=auhorsprofile" method="post" class="form-inline">'; echo "<input type='hidden' name='monthdate' value='".$monthdate."'>"; echo '<select class="" name="authorids">'; foreach ($itemIdsResultnameauth as $created_byas ) { // jbdump($created_byas,1,'tagsArrayauthors'); $created_bycreated = $created_byas->created_by; $created_byname = $created_byas->name; if ($created_bycreated == $authorid) { echo $authcreatedx[] = '<option selected value="'.$created_bycreated.'">'.$created_byname.'</option>'; } else { echo $authcreatedx[] = '<option value="'.$created_bycreated.'">'.$created_byname.'</option>'; } // echo $itemIdsResultnameauth[] = '<option value="'.$created_by.'">'.$name.'</option>'; } echo '</select> <input type="submit" class="btn" value="Поиск"></form>'; echo '</div>'; echo '</div>'; $user = JFactory::getUser($authorid); $bigname = $user->name; echo "<div class='tagsstat'>"; echo "</div>"; endif; //jbdump($itemIdsResult,0,'Массив'); // if (empty($authorid)) { // $user = JFactory::getUser(); // $authorid = $user->id; // } $querys = $db->getQuery(true); $querys ->select($db->quoteName('publish_up')) ->from($db->quoteName(ZOO_TABLE_ITEM)) ->where($db->quoteName('created_by') . ' = ' . $db->quote($authorid)) ->order('publish_up DESC'); $db->setQuery($querys); $itemIdsResultsdate = $db->loadObjectList(); $itemIdsdate = array(); foreach ($itemIdsResultsdate as $itdate) { $itemIdsdate[] = date("m.Y", strtotime("+0 seconds", strtotime($itdate->publish_up))); } $datearraydate = array_count_values($itemIdsdate); $countarticlesauthor = count($itemIdsResultsdate); //fix count (1 articles = author) $countarticlesauthor = $countarticlesauthor - 1; $querystat = $db->getQuery(true); $querystat ->select($db->quoteName('id')) ->from($db->quoteName(ZOO_TABLE_ITEM)) ->where($db->quoteName('created_by') . ' = ' . $db->quote($authorid)); $db->setQuery($querystat); $itemIdsResult = $db->loadObjectList(); $itemIds = array(); foreach ($itemIdsResult as $it) { $itemIds[] = $it->id; } // $querystatmonth = "SELECT id,name,publish_up" // ." FROM " . ZOO_TABLE_ITEM // ." WHERE publish_up BETWEEN '".$monthdate."-01' AND '".$monthdate."-31' AND created_by = '".$authorid."' "; // // $Arrayquerymonth = array($app->table->tag->database->queryResultArray($querystatmonth)); // $querystatmonth = $db->getQuery(true); $querystatmonth ->select($db->quoteName('id')) ->from($db->quoteName(ZOO_TABLE_ITEM)) ->where($db->quoteName('publish_up') . ' BETWEEN "' .$monthdate.'-01 00:00:00' . '" AND "' .$monthdate.'-31 23:59:59"') ->where($db->quoteName('created_by') . ' = ' . $db->quote($authorid)); $db->setQuery($querystatmonth); $Arrayquerymonth = $db->loadObjectList(); $itemIdsmonth = array(); foreach ($Arrayquerymonth as $itmonth) { $itemIdsmonth[] = $itmonth->id; } // jbdump($itemIdsmonth,0,'Массив статей'); // $querymonth = "SELECT id" // ." FROM " . ZOO_TABLE_ITEM // ." WHERE publish_up BETWEEN '".$monthdate."-01' AND '".$monthdate."-31' // AND created_by = '".$authorid."'"; // // $querymonthcount = "SELECT COUNT(id)" // ." FROM " . ZOO_TABLE_ITEM // ." WHERE publish_up BETWEEN '".$monthdate."-01' AND '".$monthdate."-31' // AND created_by = '".$authorid."'"; $query = "SELECT name" ." FROM " . ZOO_TABLE_TAG ." WHERE item_id IN (" . implode(', ', $itemIds) . ")"; $tagsArraycounttags = array_count_values($app->table->tag->database->queryResultArray($query)); $tagsArrayztags = array_unique($app->table->tag->database->queryResultArray($query)); ksort($tagsArraycounttags); asort($tagsArrayztags); $currentTags = array(); $valtags = array(); if ($itemIdsmonth) { $querymonthtag = "SELECT name" ." FROM " . ZOO_TABLE_TAG ." WHERE item_id IN (" . implode(', ', $itemIdsmonth) . ")"; $tagsArraycounttagsmonthtag = array_count_values($app->table->tag->database->queryResultArray($querymonthtag)); $tagsArrayztagsquerymonthtag = array_unique($app->table->tag->database->queryResultArray($querymonthtag)); ksort($tagsArraycounttagsmonthtag); asort($tagsArrayztagsquerymonthtag); } // $querysautiidtop10 = "SELECT id,name" // ." FROM " . ZOO_TABLE_ITEM // ." WHERE (created_by = ".$authorid.")" // ." ORDER BY id DESC LIMIT 5"; // // $Arrayutiidtop10 = array($app->table->tag->database->queryResultArray($querysautiidtop10)); if ($countarticlesauthor != '0') : foreach ($datearraydate as $keynumdate => $valuedaten) { //jbdump($keynumdate,0,'Месяцы'); } foreach ($itemIdsResultsdate as $itdate) { $itemIdsdatemonth[] = date("Y-m", strtotime("+0 seconds", strtotime($itdate->publish_up))); } foreach ($itemIdsResultsdate as $itdate) { $itemIdsdatemonthrdate[] = rdate("m-Y", strtotime("+0 seconds", strtotime($itdate->publish_up))); } $querymonth = $db->getQuery(true); // $querymonth = "SELECT id" // ." FROM " . ZOO_TABLE_ITEM // ." WHERE publish_up > LAST_DAY(DATE_SUB(CURDATE(), INTERVAL 1 MONTH)) + INTERVAL 1 DAY AND `publish_up` < DATE_ADD(LAST_DAY(CURDATE() - INTERVAL 0 MONTH), INTERVAL 1 DAY) // AND created_by = ".$authorid.""; // jbdump($datearraydatemonthdate,0,'$itemIdsdatemonthrdate'); // jbdump($datearraydatemonthdate,0,'$itemIdsdatemonthrdate'); $datearraydatemonth = array_count_values($itemIdsdatemonth); $datearraydatemonthas = array_count_values($itemIdsdatemonthrdate); //jbdump($datearraydatemonthas,0,'$itemIdsdatemonthrdate'); //jbdump($datearraydatemonthas,0,'$datearraydatemonthas'); $calendstart = $input->get('calendstart', NULL, 'string'); $calendend = $input->get('calendend', NULL, 'string'); $needcalend = $input->get('needcalend', NULL, 'string'); $fb_fgc = $input->get('fb_fgc', NULL, 'string'); echo '<div class="monthdate">'; echo '<form action="/administrator/index.php?option=com_myjbzoostat&view=auhorsprofile" method="post" class="form-inline">'; echo "<input type='hidden' name='authorids' value='".$authorid."'>"; echo '<select class="month widdiapo" name="monthdate">'; foreach ($datearraydatemonth as $keytosqlmonth => $valmonthno) { $keytosqlmonthas = date("m.Y", strtotime("+0 seconds", strtotime($keytosqlmonth))); if ($keytosqlmonth == $monthdate) { echo $keytosqlmonthsd[] = '<option selected value="'.$keytosqlmonth.'">'.$keytosqlmonthas.'</option>'; } else { echo $keytosqlmonthsd[] = '<option value="'.$keytosqlmonth.'">'.$keytosqlmonthas.'</option>'; } } echo '</select>'; echo '<input type="checkbox" name="needcalend" value="yes" id="togglecalend"> <label for="togglecalend" class="checkbox" >Произвольный диапазон </label>'; echo '<label class="checkbox" >Попробовать получить FB счетчики <input type="checkbox" name="fb_fgc" value="yes" id="fb_fgc"> </label>'; echo "<div class='calendfixauhorsprofile'>"; echo '<input id="mask-date-calendarstart" type="text" name="calendstart" >'; echo '<input id="mask-date-calendarend" type="text" name="calendend" >'; echo '</div>'; echo '<input type="submit" class="btn ml15" value="Поиск по месяцам"></form>'; echo '</div>'; if (!empty($calendstart) && !empty($calendend)) { $date1calend = date('Y-m-d',strtotime($calendstart)); $date2calend = date('Y-m-d',strtotime($calendend)); } echo "<hr>"; echo '<h1>'.$bigname.'</h1>'; echo "<p class='countarticlesauthor'><big><big>Всего ".$StatOrProduct." автора: <b>".$countarticlesauthor."</big></big></b></p>"; //fix last day month if (empty($calendstart) && empty($calendend)) { $querymonth = "SELECT id" ." FROM " . ZOO_TABLE_ITEM ." WHERE type = '".$TypeArticleorProduct."' AND publish_up BETWEEN '".$monthdate."-01 00:00:00' AND '".$monthdate."-31 23:59:59' AND created_by = '".$authorid."'"; $querymonthcount = "SELECT COUNT(id)" ." FROM " . ZOO_TABLE_ITEM ." WHERE publish_up BETWEEN '".$monthdate."-01 00:00:00' AND '".$monthdate."-31 23:59:59' AND created_by = '".$authorid."'"; } if (!empty($calendstart) && !empty($calendend)) { $querymonth = "SELECT id" ." FROM " . ZOO_TABLE_ITEM ." WHERE type = '".$TypeArticleorProduct."' AND publish_up BETWEEN '".$date1calend." 00:00:00' AND '".$date2calend." 23:59:59' AND created_by = '".$authorid."'"; $querymonthcount = "SELECT COUNT(id)" ." FROM " . ZOO_TABLE_ITEM ." WHERE publish_up BETWEEN '".$date1calend." 00:00:00' AND '".$date2calend." 23:59:59' AND created_by = '".$authorid."'"; } $Arrayquerymonth = array($app->table->tag->database->queryResultArray($querymonth)); $Arrayquerymonthcccooount = array_count_values($app->table->tag->database->queryResultArray($querymonthcount)); $Arrayquerymonthcountv = array_count_values($app->table->tag->database->queryResultArray($querymonth)); foreach ($Arrayquerymonthcccooount as $keymonthcountv => $novamcount) { // jbdump($keymonthcountv,0,'Месяцы'); } foreach ($Arrayquerymonth as $keymoth => $valuenoth) { foreach ($valuenoth as $monthiteid ) { $monthitem = $app->table->item->get($monthiteid); $alipublish_up = $monthitem->publish_up; $alipublish_upformat = rdate("M", strtotime("+0 seconds", strtotime($alipublish_up))); } } if (!empty($valuenoth)) : echo "<hr>"; if (empty($calendstart) && empty($calendend)) { echo "<p><b><big>".$StatOrProduct." за <u>{$alipublish_upformat}</u> ({$keymonthcountv}): </big></b></p>"; } echo "<table id='myTable' class='zebratable'>"; echo "<thead>"; echo "<tr class='upper'>"; echo "<td>№ </td>"; echo "<td>ID</td>"; echo "<td>Дата</td>"; echo "<td>Название</td>"; echo "<td>Популярность (основана на данных share соц. сетей)</td>"; if (!empty($disqusApiShort)) : echo "<td>Комментариев</td>"; endif; echo "</tr>"; echo "</thead>"; echo "<tbody>"; $tablecount = '0'; foreach ($Arrayquerymonth as $monthitemarray ) { foreach ($monthitemarray as $monthiteid ) { $monthitem = $app->table->item->get($monthiteid); // jbdump($monthitem,0,'Месяцы'); if ($JBZooSEFenabled == 1 && $JBZooSEFfix_item == 1) { $myurltosite = JRoute::_($app->jbrouter->externalItem($monthitem, false), false, 2); $myurltosite = str_replace('/item/','/',$myurltosite); } else { $myurltosite = JRoute::_($app->jbrouter->externalItem($monthitem, false), false, 2); } // dump($myurltosite,0,'$myurltosite'); $aliasart = $monthitem->alias; $aliasartitem = 'item/'.$aliasart; $alipublish_up = $monthitem->publish_up; $alipublish_upformat = date("d.m.Y", strtotime("+0 seconds", strtotime($alipublish_up))); $aliname = $monthitem->name; $aliid = $monthitem->id; $tablecount++; // jbdump($monthitem,0,'$itemautinfo статей'); // jbdump($aliasart,0,'$itemUrl'); echo "<tr>"; echo "<td>".$tablecount."</td>"; echo "<td>".$aliid."</td>"; echo "<td>".$alipublish_upformat."</td>"; echo "<td><a target='_blank' href='{$myurltosite}'>".$aliname."</a></td>"; if ($fb_fgc == 'yes' && !empty($fb_app_token) && $more100social != 'yes') { #dev #$myurltosite = str_replace('site.local','site.com',$myurltosite); #enddev echo "<td>"; $app_fb_token = 'access_token='.$fb_app_token;; $fb_app_url = $myurltosite.'&'.$app_fb_token; $fb_app_url = urldecode($fb_app_url); $myfbcountrezerv = "https://graph.facebook.com/?id={$fb_app_url}"; //todofix $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $myfbcountrezerv); curl_setopt($ch, CURLOPT_POST, false); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Chrome/22.0.1216.0 Safari/537.2" ); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); $fbsharegetapi = curl_exec($ch); curl_close($ch); if (empty($fbsharegetapi)) { $fbsharegetapi = file_get_contents($myfbcountrezerv); } $myfbcountrezervdec = json_decode($fbsharegetapi, true); $myfbcount = $myfbcountrezervdec['share']['share_count']; // dump($myfbcountrezervdec,0,'$myfbcountrezervdec'); if (!empty($myfbcount)) { echo "<div class='fbminidiv'>"; echo '<img class=="fbimgmini" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAM1BMVEU7V5Y7V5g7WZc7WZg9WplOaaJnfq9sg7J1ird7j7qBlL2Wpsicq8udrMzAyt7P1ub///8xwDQLAAAAA3RSTlPGycoO3WmFAAAAR0lEQVQoz6XOORaAMAwDUYcYzCaY+5+WDuy0qPzFPNnUy5r1YR/4dioyXIASBAMcsHtuCDxFQzdIywsCgHWEuTbqsT/QKtgD7m8Fvl8KS70AAAAASUVORK5CYII="> '; echo $myfbcount; echo "</div>"; echo " <div class='ya-share2' data-services='vkontakte,odnoklassniki,moimir,gplus' data-url='{$myurltosite}' data-access-token:facebook='{$fb_app_token}' data-size='m' data-counter=''></div>"; } if (empty($myfbcount)) { echo $myfbcount = "<div class='fbminidiv'><a href='http://graph.facebook.com/?id={$myurltosite}' target='_blank'> Нет данных - FB <em class='icon-out-2'></em> </a> </div> <div class='ya-share2' data-services='vkontakte,odnoklassniki,moimir,gplus' data-url='{$myurltosite}' data-access-token:facebook='{$fb_app_token}' data-size='m' data-counter=''></div>"; } //usleep(10000); //need? echo "</td>"; } if ($more100social == 'yes') { echo "<td>Счетчики отключены (>100)</td>"; } if ($fb_fgc != 'yes' && $more100social != 'yes') { echo "<td><div class='ya-share2' data-services='vkontakte,facebook,odnoklassniki,moimir,gplus' data-url='{$myurltosite}' data-access-token:facebook='{$fb_app_token}' data-size='m' data-counter=''></div></td>"; } if (!empty($disqusApiShort)) : echo "<td><span class='disqus-comment-count' data-disqus-url='{$myurltosite}'></span></td>"; endif; echo "</tr>"; } } echo "</tbody>"; echo "</table>"; endif; if (empty($valuenoth)) : $monthdate = rdate("M", strtotime("+0 seconds", strtotime($monthdate))); echo "<p>Пожалуйста выберите период для отображения ".$StatOrProduct.", т.к. за <u>{$monthdate}</u> ".$StatOrProduct." нет. </p>"; endif; // echo "<hr>"; // echo "<p><b><big>Последние 5 статей автора: </big></b></p>"; // echo "<table class='zebratable'>"; // echo "<tr class='upper'>"; // echo "<td>ID</td>"; // echo "<td>Дата</td>"; // echo "<td>Название</td>"; // echo "<td>Популярность статьи</td>"; // echo "<td>Комментариев</td>"; // echo "</tr>"; // foreach ($Arrayutiidtop10 as $utiidtop10 ) { // foreach ($utiidtop10 as $utiidtop10arti) { // $newItem = $app->table->item->get($utiidtop10arti); // $myurltositesfd = JRoute::_($app->jbrouter->externalItem($newItem, false), false, 2); // // dump($myurltosite,0,'$myurltosite'); // $aliasart = $newItem->alias; // $aliasartitem = '/item/'.$aliasart; // $alipublish_up = $newItem->publish_up; // $alipublish_upformat = date("d.m.Y", strtotime("+0 seconds", strtotime($alipublish_up))); // $aliname = $newItem->name; // $aliid = $newItem->id; // // jbdump($newItem,0,'$itemautinfo статей'); // // jbdump($aliasart,0,'$itemUrl'); // echo "<tr>"; // echo "<td>".$aliid."</td>"; // echo "<td>".$alipublish_upformat."</td>"; // echo "<td><a target='_blank' href='{$myurltositesfd}'>".$aliname."</a></td>"; // echo "<td><div class='ya-share2' data-services='vkontakte,facebook,odnoklassniki,moimir,gplus' data-url='{$myurltositesfd}' data-size='m' data-counter=''></div></td>"; // echo "<td><span class='disqus-comment-count' data-disqus-url='{$myurltositesfd}'></span></td>"; // echo "</tr>"; // // } // } // // echo "</table>"; echo "<hr>"; if (!empty($tagsArrayztagsquerymonthtag) && empty($calendstart) && empty($calendend)) { echo "<h3>Теги за месяц: </h3>"; echo "<table id='myTable2' class='zebratable'>"; echo "<thead>"; echo "<tr class='upper'>"; echo "<td>№</td>"; echo "<td>Название тега</td>"; echo "<td>Кол-во</td>"; echo "</tr>"; echo "</thead>"; echo "<tbody>"; $mynumadd = 0; foreach ($tagsArraycounttagsmonthtag as $valtag => $value ) { //$valtags[] = '<a href="' . JRoute::_($app->route->tag($appId, $valtag)) . '">' . $valtag . '</a> - '. $value.', '; //echo $valtags[] = '<li>'.$valtag. ' - '. $value.'</li>'; $mynumadd++; $urlParams = [ 'e' => [ '_itemtag' => $valtag, '_itemauthor' => $authorid, ], 'order' => [ 'field' => 'corepublish_up', 'reverse' => '1', 'mode' => 's' ], 'logic' => 'and', 'exact' => '1', 'controller' => 'searchjbuniversal', 'task' => 'filter', 'type' => 'news', 'app_id' => '1', ]; $url = $app->jbrouter->addParamsToUrl('/', $urlParams); // echo $valtags[] = "<li> ()</li>"; echo "<tr>"; echo "<td>{$mynumadd}</td>"; echo $valtags[] = "<td><a target='_blank' href=\"{$url}\">{$valtag}</a></td>"; echo "<td>{$value}</td>"; echo "</tr>"; // echo $valtags[] = '<li><a target="_blank" href="/?e[_itemtag]='.$valtag.'&amp;e[_itemauthor]='.$authorid.'&amp;order[field]=corepublish_up&amp;order[reverse]=1&order[mode]=s&logic=and&amp;send-form=Искать&amp;exact=1&amp;controller=searchjbuniversal&amp;task=filter&amp;type=news&amp;app_id=1">'.$valtag. '</a> ('. $value.')</li>'; } echo "</tbody>"; echo "</table>"; echo "<br>";echo "<br>"; echo "</div>"; echo "<hr>"; } echo ' <script type="text/javascript"> jQuery(document).ready(function($) { $("#myTable").DataTable({language:{url:"/administrator/components/com_myjbzoostat/assets/js/Russian.json"}}); }); </script>'; echo ' <script type="text/javascript"> jQuery(document).ready(function($) { $("#myTable2").DataTable({language:{url:"/administrator/components/com_myjbzoostat/assets/js/Russian.json"}}); }); </script>'; echo ' <script type="text/javascript"> jQuery(document).ready(function($) { $("#myTable321").DataTable({language:{url:"/administrator/components/com_myjbzoostat/assets/js/Russian.json"}}); }); </script>'; echo ' <script type="text/javascript"> jQuery(document).ready(function($) { $("#myTable322").DataTable({language:{url:"/administrator/components/com_myjbzoostat/assets/js/Russian.json"}}); }); </script>'; echo "<div class='allinfoabout'>"; echo "<p><b><big>Статистика публикаций:</big></b> </p>"; echo "<table id='myTable321' class='zebratable'>"; echo "<thead>"; echo "<tr class='upper'>"; echo "<td>Дата <img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABmUlEQVQ4T6WTPUgcURDHZ2bX7w+0VLCwFPQu4e27AxvPpLIQrQWtBFNoZ2NiJxj7NFGsBC2vsNFC9JLO213Wvc7OQrRUBA3q2xlZYWEjZj3M697Mm9/M/OcNwn8eTMeXSiX76ub2lxCu17zqVto3WCzmLJHFsFqdSdv/AiilGgzSgyB8rbnu9+ShUqrnUeAUiToIaS1wj5cS35uAONggHYJwPyA1AYAIwrckQSbgOVjoiIF7iHAHAL8A8zYQTQnIcs3zVjMBecfZY5Zhy6IxBhhBgdXb66vm9q6uDQGcJoTRTMCg1n3E3Fvz/eOc1ksxwBZu9H0/yms9Gbpu+U0NErFeAB7rFrEuwAfHmTjxvF2llJ0eY95xChRF50EQXPyzgpzWn1HgAAA2zJ+7Bbul9T7+BxZixZhonyz6HbrueGYLea1XQGBZIthEC2YB5CezTBHQJYn5lFlB0mMCie8ifI9CZ0lwbKtLxI+Fwg9mmWfhG5t5IM5cl4jp5RhSqkzGrIRhGKTtOacwgyxz3Z1tI5VKxbw6xvds9hPRaxT6nhWaoAAAAABJRU5ErkJggg=='></td>"; echo "<td>Количество публикаций <img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABmUlEQVQ4T6WTPUgcURDHZ2bX7w+0VLCwFPQu4e27AxvPpLIQrQWtBFNoZ2NiJxj7NFGsBC2vsNFC9JLO213Wvc7OQrRUBA3q2xlZYWEjZj3M697Mm9/M/OcNwn8eTMeXSiX76ub2lxCu17zqVto3WCzmLJHFsFqdSdv/AiilGgzSgyB8rbnu9+ShUqrnUeAUiToIaS1wj5cS35uAONggHYJwPyA1AYAIwrckQSbgOVjoiIF7iHAHAL8A8zYQTQnIcs3zVjMBecfZY5Zhy6IxBhhBgdXb66vm9q6uDQGcJoTRTMCg1n3E3Fvz/eOc1ksxwBZu9H0/yms9Gbpu+U0NErFeAB7rFrEuwAfHmTjxvF2llJ0eY95xChRF50EQXPyzgpzWn1HgAAA2zJ+7Bbul9T7+BxZixZhonyz6HbrueGYLea1XQGBZIthEC2YB5CezTBHQJYn5lFlB0mMCie8ifI9CZ0lwbKtLxI+Fwg9mmWfhG5t5IM5cl4jp5RhSqkzGrIRhGKTtOacwgyxz3Z1tI5VKxbw6xvds9hPRaxT6nhWaoAAAAABJRU5ErkJggg=='></td>"; echo "</tr>"; echo "</thead>"; usort($datearraydate); foreach ($datearraydate as $valtagdate => $valuecount ) { $newdate = "01.".$valtagdate; $dateformat = date("Y-m-d", strtotime("+0 seconds", strtotime($newdate))); $dateformat2 = $dateformat.' 00:00'; $dateorder = strtotime($newdate); $datearraydate[] = '<li>'.$valtagdate. ' ('. $valuecount.')</li>'; echo "<tr>"; echo "<td data-order='{$dateorder}'>{$valtagdate}</td>"; echo "<td>{$valuecount}</td>"; echo "</tr>"; } echo "</table>"; echo "</div>"; // ksort($tagsArraycounttagsmonthtag); // asort($tagsArrayztagsquerymonthtag); // jbdump($tagsArraycounttagsmonthtag,0,'Месяцыфывфыв'); // jbdump($tagsArrayztagsquerymonthtag,0,'Месяцыы'); if (!empty($tagsArrayztags )) { echo "<hr>"; echo "<h3>".$bigname." использует следующие теги (весь период):</h3>"; echo "<table id='myTable322' class='zebratable'>"; echo "<thead>"; echo "<tr class='upper'>"; echo "<td>ID <img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABmUlEQVQ4T6WTPUgcURDHZ2bX7w+0VLCwFPQu4e27AxvPpLIQrQWtBFNoZ2NiJxj7NFGsBC2vsNFC9JLO213Wvc7OQrRUBA3q2xlZYWEjZj3M697Mm9/M/OcNwn8eTMeXSiX76ub2lxCu17zqVto3WCzmLJHFsFqdSdv/AiilGgzSgyB8rbnu9+ShUqrnUeAUiToIaS1wj5cS35uAONggHYJwPyA1AYAIwrckQSbgOVjoiIF7iHAHAL8A8zYQTQnIcs3zVjMBecfZY5Zhy6IxBhhBgdXb66vm9q6uDQGcJoTRTMCg1n3E3Fvz/eOc1ksxwBZu9H0/yms9Gbpu+U0NErFeAB7rFrEuwAfHmTjxvF2llJ0eY95xChRF50EQXPyzgpzWn1HgAAA2zJ+7Bbul9T7+BxZixZhonyz6HbrueGYLea1XQGBZIthEC2YB5CezTBHQJYn5lFlB0mMCie8ifI9CZ0lwbKtLxI+Fwg9mmWfhG5t5IM5cl4jp5RhSqkzGrIRhGKTtOacwgyxz3Z1tI5VKxbw6xvds9hPRaxT6nhWaoAAAAABJRU5ErkJggg=='></td>"; echo "<td>Тег <img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABmUlEQVQ4T6WTPUgcURDHZ2bX7w+0VLCwFPQu4e27AxvPpLIQrQWtBFNoZ2NiJxj7NFGsBC2vsNFC9JLO213Wvc7OQrRUBA3q2xlZYWEjZj3M697Mm9/M/OcNwn8eTMeXSiX76ub2lxCu17zqVto3WCzmLJHFsFqdSdv/AiilGgzSgyB8rbnu9+ShUqrnUeAUiToIaS1wj5cS35uAONggHYJwPyA1AYAIwrckQSbgOVjoiIF7iHAHAL8A8zYQTQnIcs3zVjMBecfZY5Zhy6IxBhhBgdXb66vm9q6uDQGcJoTRTMCg1n3E3Fvz/eOc1ksxwBZu9H0/yms9Gbpu+U0NErFeAB7rFrEuwAfHmTjxvF2llJ0eY95xChRF50EQXPyzgpzWn1HgAAA2zJ+7Bbul9T7+BxZixZhonyz6HbrueGYLea1XQGBZIthEC2YB5CezTBHQJYn5lFlB0mMCie8ifI9CZ0lwbKtLxI+Fwg9mmWfhG5t5IM5cl4jp5RhSqkzGrIRhGKTtOacwgyxz3Z1tI5VKxbw6xvds9hPRaxT6nhWaoAAAAABJRU5ErkJggg=='></td>"; echo "<td>Сколько раз употреблялся <img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABmUlEQVQ4T6WTPUgcURDHZ2bX7w+0VLCwFPQu4e27AxvPpLIQrQWtBFNoZ2NiJxj7NFGsBC2vsNFC9JLO213Wvc7OQrRUBA3q2xlZYWEjZj3M697Mm9/M/OcNwn8eTMeXSiX76ub2lxCu17zqVto3WCzmLJHFsFqdSdv/AiilGgzSgyB8rbnu9+ShUqrnUeAUiToIaS1wj5cS35uAONggHYJwPyA1AYAIwrckQSbgOVjoiIF7iHAHAL8A8zYQTQnIcs3zVjMBecfZY5Zhy6IxBhhBgdXb66vm9q6uDQGcJoTRTMCg1n3E3Fvz/eOc1ksxwBZu9H0/yms9Gbpu+U0NErFeAB7rFrEuwAfHmTjxvF2llJ0eY95xChRF50EQXPyzgpzWn1HgAAA2zJ+7Bbul9T7+BxZixZhonyz6HbrueGYLea1XQGBZIthEC2YB5CezTBHQJYn5lFlB0mMCie8ifI9CZ0lwbKtLxI+Fwg9mmWfhG5t5IM5cl4jp5RhSqkzGrIRhGKTtOacwgyxz3Z1tI5VKxbw6xvds9hPRaxT6nhWaoAAAAABJRU5ErkJggg=='></td>"; echo "</tr>"; echo "</thead>"; $idcount = 0; foreach ($tagsArraycounttags as $valtag => $value ) { //$valtags[] = '<a href="' . JRoute::_($app->route->tag($appId, $valtag)) . '">' . $valtag . '</a> - '. $value.', '; //echo $valtags[] = '<li>'.$valtag. ' - '. $value.'</li>'; $idcount++; $urlParams = [ 'e' => [ '_itemtag' => $valtag, '_itemauthor' => $authorid, ], 'order' => [ 'field' => 'corepublish_up', 'reverse' => '1', 'mode' => 's' ], 'logic' => 'and', 'exact' => '1', 'controller' => 'searchjbuniversal', 'task' => 'filter', 'type' => 'news', 'app_id' => '1', ]; $url = $app->jbrouter->addParamsToUrl('/', $urlParams); $valtags[] = "<li><a target='_blank' href=\"{$url}\">{$valtag}</a> ({$value})</li>"; echo "<tr>"; echo "<td>{$idcount}</td>"; echo "<td><a target='_blank' href=\"{$url}\">{$valtag}</a></td>"; echo "<td>{$value}</td>"; echo "</tr>"; // echo $valtags[] = '<li><a target="_blank" href="/?e[_itemtag]='.$valtag.'&amp;e[_itemauthor]='.$authorid.'&amp;order[field]=corepublish_up&amp;order[reverse]=1&order[mode]=s&logic=and&amp;send-form=Искать&amp;exact=1&amp;controller=searchjbuniversal&amp;task=filter&amp;type=news&amp;app_id=1">'.$valtag. '</a> ('. $value.')</li>'; } echo "</table>"; } endif; ?> </div>
mit
goto-bus-stop/deku-material-svg-icons
lib/communication/contacts.js
551
var Icon = require('../icon'); var element = require('magic-virtual-element'); var clone = require('../clone'); exports.render = function render(component) { var props = clone(component.props); delete props.children; return element( Icon, props, element('path', { d: 'M20 0H4v2h16V0zM4 24h16v-2H4v2zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 2.75c1.24 0 2.25 1.01 2.25 2.25s-1.01 2.25-2.25 2.25S9.75 10.24 9.75 9 10.76 6.75 12 6.75zM17 17H7v-1.5c0-1.67 3.33-2.5 5-2.5s5 .83 5 2.5V17z' }) ); };
mit
tensberg/atarist
atarist/UCE/MODULE/U_DO_EVN.C
528
/* do_evnt() wird von ne_multi() aufgerufen und verarbeitet eine AES-Message */ #define UCE_DO_EVNT 1 #include <stdio.h> #include <gemfast.h> #include <window.h> #include <uceinc.h> WORD do_evnt( e_multi) register E_MULTI *e_multi; { WORD not_done; register WORD *mbuf; mbuf = e_multi->mepbuff; not_done = nw_chkmesag( mbuf); if (!not_done) return; /* Message ausgefhrt */ if (mbuf[0] == MN_SELECTED) /* Menuepunkt gew„hlt */ me_domenu( mbuf[3], mbuf[4]); return 0; }
mit
loungcingzeon/library
src/index.js
326
<<<<<<< HEAD export default class sparrow{ constructor(){ this.name = "sparrow" } getname(){ return `Hello, ${this.name} !` } ======= export default class sparrow{ constructor(){ this.name = "sparrow" } getname(){ return `Hello, ${this.name} !`; } >>>>>>> 6ce8409a6ec931e47b2ef2df6878021b27abddf6 }
mit
hisuley/Durian
releases/v1.0/framework/i18n/data/cgg_ug.php
11092
<?php /** * Locale data for 'cgg_UG'. * * This file is automatically generated by yiic cldr command. * * Copyright © 1991-2007 Unicode, Inc. All rights reserved. * Distributed under the Terms of Use in http://www.unicode.org/copyright.html. * * Copyright © 2008-2011 Yii Software LLC (http://www.yiiframework.com/license/) */ return array ( 'version' => '5798', 'numberSymbols' => array ( 'alias' => '', 'decimal' => '.', 'group' => ',', 'list' => ';', 'percentSign' => '%', 'plusSign' => '+', 'minusSign' => '-', 'exponential' => 'E', 'perMille' => '‰', 'infinity' => '∞', 'nan' => 'NaN', ), 'decimalFormat' => '#,##0.###', 'scientificFormat' => '#E0', 'percentFormat' => '#,##0%', 'currencyFormat' => '¤#,##0.00;-#,##0.00¤', 'currencySymbols' => array ( 'AUD' => 'AU$', 'BRL' => 'R$', 'CAD' => 'CA$', 'CNY' => 'CN¥', 'EUR' => '€', 'GBP' => '£', 'HKD' => 'HK$', 'ILS' => '₪', 'INR' => '₹', 'JPY' => 'JP¥', 'KRW' => '₩', 'MXN' => 'MX$', 'NZD' => 'NZ$', 'THB' => '฿', 'TWD' => 'NT$', 'USD' => 'US$', 'VND' => '₫', 'XAF' => 'FCFA', 'XCD' => 'EC$', 'XOF' => 'CFA', 'XPF' => 'CFPF', 'UGX' => 'USh', ), 'monthNames' => array ( 'wide' => array ( 1 => 'Okwokubanza', 2 => 'Okwakabiri', 3 => 'Okwakashatu', 4 => 'Okwakana', 5 => 'Okwakataana', 6 => 'Okwamukaaga', 7 => 'Okwamushanju', 8 => 'Okwamunaana', 9 => 'Okwamwenda', 10 => 'Okwaikumi', 11 => 'Okwaikumi na kumwe', 12 => 'Okwaikumi na ibiri', ), 'abbreviated' => array ( 1 => 'KBZ', 2 => 'KBR', 3 => 'KST', 4 => 'KKN', 5 => 'KTN', 6 => 'KMK', 7 => 'KMS', 8 => 'KMN', 9 => 'KMW', 10 => 'KKM', 11 => 'KNK', 12 => 'KNB', ), ), 'monthNamesSA' => array ( 'narrow' => array ( 1 => 'J', 2 => 'F', 3 => 'M', 4 => 'A', 5 => 'M', 6 => 'J', 7 => 'J', 8 => 'A', 9 => 'S', 10 => 'O', 11 => 'N', 12 => 'D', ), ), 'weekDayNames' => array ( 'wide' => array ( 0 => 'Sande', 1 => 'Orwokubanza', 2 => 'Orwakabiri', 3 => 'Orwakashatu', 4 => 'Orwakana', 5 => 'Orwakataano', 6 => 'Orwamukaaga', ), 'abbreviated' => array ( 0 => 'SAN', 1 => 'ORK', 2 => 'OKB', 3 => 'OKS', 4 => 'OKN', 5 => 'OKT', 6 => 'OMK', ), ), 'weekDayNamesSA' => array ( 'narrow' => array ( 0 => 'S', 1 => 'K', 2 => 'R', 3 => 'S', 4 => 'N', 5 => 'T', 6 => 'M', ), ), 'eraNames' => array ( 'abbreviated' => array ( 0 => 'BC', 1 => 'AD', ), 'wide' => array ( 0 => 'Kurisito Atakaijire', 1 => 'Kurisito Yaijire', ), 'narrow' => array ( 0 => 'BC', 1 => 'AD', ), ), 'dateFormats' => array ( 'full' => 'EEEE, d MMMM y', 'long' => 'd MMMM y', 'medium' => 'd MMM y', 'short' => 'dd/MM/yyyy', ), 'timeFormats' => array ( 'full' => 'h:mm:ss a zzzz', 'long' => 'h:mm:ss a z', 'medium' => 'h:mm:ss a', 'short' => 'h:mm a', ), 'dateTimeFormat' => '{1} {0}', 'amName' => 'AM', 'pmName' => 'PM', 'orientation' => 'ltr', 'languages' => array ( 'ak' => 'Orukani', 'am' => 'Orumariki', 'ar' => 'Oruharabu', 'be' => 'Oruberarusi', 'bg' => 'Oruburugariya', 'bn' => 'Orubengari', 'cgg' => 'Rukiga', 'cs' => 'Oruceeki', 'de' => 'Orugirimaani', 'el' => 'Oruguriiki', 'en' => 'Orungyereza', 'es' => 'Orusupaani', 'fa' => 'Orupaasiya', 'fr' => 'Orufaransa', 'ha' => 'Oruhausa', 'hi' => 'Oruhindi', 'hu' => 'Oruhangare', 'id' => 'Oruindonezia', 'ig' => 'Oruibo', 'it' => 'Oruyitare', 'ja' => 'Orujapaani', 'jv' => 'Orujava', 'km' => 'Orukambodiya', 'ko' => 'Orukoreya', 'ms' => 'Orumalesiya', 'my' => 'Oruburuma', 'ne' => 'Orunepali', 'nl' => 'Orudaaki', 'pa' => 'Orupungyabi', 'pl' => 'Orupoori', 'pt' => 'Orupocugo', 'ro' => 'Oruromania', 'ru' => 'Orurrasha', 'rw' => 'Orunyarwanda', 'so' => 'Orusomaari', 'sv' => 'Oruswidi', 'ta' => 'Orutamiri', 'th' => 'Orutailandi', 'tr' => 'Orukuruki', 'uk' => 'Orukuraini', 'ur' => 'Oru-Urudu', 'vi' => 'Oruviyetinaamu', 'yo' => 'Oruyoruba', 'zh' => 'Oruchaina', 'zu' => 'Oruzuru', ), 'territories' => array ( 'ad' => 'Andora', 'ae' => 'Amahanga ga Buharabu ageeteereine', 'af' => 'Afuganistani', 'ag' => 'Angiguwa na Babuda', 'ai' => 'Angwira', 'al' => 'Arubania', 'am' => 'Arimeniya', 'an' => 'Antiri za Hoorandi', 'ao' => 'Angora', 'ar' => 'Arigentina', 'as' => 'Samowa ya Ameerika', 'at' => 'Osituria', 'au' => 'Ositureeriya', 'aw' => 'Aruba', 'az' => 'Azabagyani', 'ba' => 'Boziniya na Hezegovina', 'bb' => 'Babadosi', 'bd' => 'Bangaradeshi', 'be' => 'Bubirigi', 'bf' => 'Bokina Faso', 'bg' => 'Burugariya', 'bh' => 'Bahareni', 'bi' => 'Burundi', 'bj' => 'Benini', 'bm' => 'Berimuda', 'bn' => 'Burunei', 'bo' => 'Boriiviya', 'br' => 'Buraziiri', 'bs' => 'Bahama', 'bt' => 'Butani', 'bw' => 'Botswana', 'by' => 'Bararusi', 'bz' => 'Berize', 'ca' => 'Kanada', 'cd' => 'Demokoratika Ripaaburika ya Kongo', 'cf' => 'Eihanga rya Rwagati ya Afirika', 'cg' => 'Kongo', 'ch' => 'Swisi', 'ci' => 'Aivore Kositi', 'ck' => 'Ebizinga bya Kuuku', 'cl' => 'Chile', 'cm' => 'Kameruuni', 'cn' => 'China', 'co' => 'Korombiya', 'cr' => 'Kositarika', 'cs' => 'Saabiya na Monteneguro', 'cu' => 'Cuba', 'cv' => 'Ebizinga bya Kepuvade', 'cy' => 'Saipurasi', 'cz' => 'Ripaaburika ya Zeeki', 'de' => 'Bugirimaani', 'dj' => 'Gyibuti', 'dk' => 'Deenimaaka', 'dm' => 'Dominika', 'do' => 'Ripaaburika ya Dominica', 'dz' => 'Arigyeriya', 'ec' => 'Ikweda', 'ee' => 'Esitoniya', 'eg' => 'Misiri', 'er' => 'Eriteriya', 'es' => 'Sipeyini', 'et' => 'Ethiyopiya', 'fi' => 'Bufini', 'fj' => 'Figyi', 'fk' => 'Ebizinga bya Faakilanda', 'fm' => 'Mikironesiya', 'fr' => 'Bufaransa', 'ga' => 'Gabooni', 'gb' => 'Bungyereza', 'gd' => 'Gurenada', 'ge' => 'Gyogiya', 'gf' => 'Guyana ya Bufaransa', 'gh' => 'Gana', 'gi' => 'Giburaata', 'gl' => 'Guriinirandi', 'gm' => 'Gambiya', 'gn' => 'Gine', 'gp' => 'Gwaderupe', 'gq' => 'Guni', 'gr' => 'Guriisi', 'gt' => 'Gwatemara', 'gu' => 'Gwamu', 'gw' => 'Ginebisau', 'gy' => 'Guyana', 'hn' => 'Hondurasi', 'hr' => 'Korasiya', 'ht' => 'Haiti', 'hu' => 'Hangare', 'id' => 'Indoneeziya', 'ie' => 'Irerandi', 'il' => 'Isirairi', 'in' => 'Indiya', 'iq' => 'Iraaka', 'ir' => 'Iraani', 'is' => 'Aisilandi', 'it' => 'Itare', 'jm' => 'Gyamaika', 'jo' => 'Yorudaani', 'jp' => 'Gyapaani', 'ke' => 'Kenya', 'kg' => 'Kirigizistani', 'kh' => 'Kambodiya', 'ki' => 'Kiribati', 'km' => 'Koromo', 'kn' => 'Senti Kittis na Nevisi', 'kp' => 'Koreya Amatemba', 'kr' => 'Koreya Amashuuma', 'kw' => 'Kuweiti', 'ky' => 'Ebizinga bya Kayimani', 'kz' => 'Kazakisitani', 'la' => 'Layosi', 'lb' => 'Lebanoni', 'lc' => 'Senti Rusiya', 'li' => 'Lishenteni', 'lk' => 'Siriranka', 'lr' => 'Liberiya', 'ls' => 'Lesotho', 'lt' => 'Lithuania', 'lu' => 'Lakizembaaga', 'lv' => 'Latviya', 'ly' => 'Libya', 'ma' => 'Morocco', 'mc' => 'Monaco', 'md' => 'Moridova', 'mg' => 'Madagasika', 'mh' => 'Ebizinga bya Marshaa', 'mk' => 'Masedoonia', 'ml' => 'Mari', 'mm' => 'Myanamar', 'mn' => 'Mongoria', 'mp' => 'Ebizinga by\'amatemba ga Mariana', 'mq' => 'Martinique', 'mr' => 'Mauriteeniya', 'ms' => 'Montserrati', 'mt' => 'Marita', 'mu' => 'Maurishiasi', 'mv' => 'Maridives', 'mw' => 'Marawi', 'mx' => 'Mexico', 'my' => 'marayizia', 'mz' => 'Mozambique', 'na' => 'Namibiya', 'nc' => 'Niukaredonia', 'ne' => 'Naigya', 'nf' => 'Ekizinga Norifoko', 'ng' => 'Naigyeriya', 'ni' => 'Nikaragwa', 'nl' => 'Hoorandi', 'no' => 'Noorwe', 'np' => 'Nepo', 'nr' => 'Nauru', 'nu' => 'Niue', 'nz' => 'Niuzirandi', 'om' => 'Omaani', 'pa' => 'Panama', 'pe' => 'Peru', 'pf' => 'Polinesia ya Bufaransa', 'pg' => 'Papua', 'ph' => 'Firipino', 'pk' => 'Pakisitaani', 'pl' => 'Poorandi', 'pm' => 'Senti Piyerre na Mikweron', 'pn' => 'Pitkaini', 'pr' => 'Pwetoriko', 'pt' => 'Pocugo', 'pw' => 'Palaawu', 'py' => 'Paragwai', 'qa' => 'Kata', 're' => 'Riyuniyoni', 'ro' => 'Romaniya', 'ru' => 'Rrasha', 'rw' => 'Rwanda', 'sa' => 'Saudi Areebiya', 'sb' => 'Ebizinga bya Surimaani', 'sc' => 'Shesheresi', 'sd' => 'Sudani', 'se' => 'Swideni', 'sg' => 'Singapo', 'sh' => 'Senti Herena', 'si' => 'Sirovaaniya', 'sk' => 'Sirovaakiya', 'sl' => 'Sirra Riyooni', 'sm' => 'Samarino', 'sn' => 'Senego', 'so' => 'Somaariya', 'sr' => 'Surinaamu', 'st' => 'Sawo Tome na Purinsipo', 'sv' => 'Eri Salivado', 'sy' => 'Siriya', 'sz' => 'Swazirandi', 'tc' => 'Ebizinga bya Buturuki na Kaiko', 'td' => 'Chadi', 'tg' => 'Togo', 'th' => 'Tairandi', 'tj' => 'Tajikisitani', 'tk' => 'Tokerawu', 'tl' => 'Burugweizooba bwa Timori', 'tm' => 'Turukimenisitani', 'tn' => 'Tunizia', 'to' => 'Tonga', 'tr' => 'Buturuki /Take', 'tt' => 'Turinidad na Tobago', 'tv' => 'Tuvaru', 'tw' => 'Tayiwaani', 'tz' => 'Tanzania', 'ua' => 'Ukureini', 'ug' => 'Uganda', 'us' => 'Amerika', 'uy' => 'Urugwai', 'uz' => 'Uzibekisitani', 'va' => 'Vatikani', 'vc' => 'Senti Vinsent na Gurenadini', 've' => 'Venezuwera', 'vg' => 'Ebizinga bya Virigini ebya Bungyereza', 'vi' => 'Ebizinga bya Virigini ebya Amerika', 'vn' => 'Viyetinaamu', 'vu' => 'Vanuatu', 'wf' => 'Warris na Futuna', 'ws' => 'Samowa', 'ye' => 'Yemeni', 'yt' => 'Mayote', 'za' => 'Sausi Afirika', 'zm' => 'Zambia', 'zw' => 'Zimbabwe', ), 'pluralRules' => array ( 0 => 'n==1', 1 => 'true', ), );
mit
cjmarkham/param_check
lib/param_check/engine.rb
78
require 'rails' module ParamCheck class Engine < ::Rails::Engine end end
mit
calcinai/xero-php
src/XeroPHP/Models/Accounting/Receipt.php
9520
<?php namespace XeroPHP\Models\Accounting; use XeroPHP\Remote; use XeroPHP\Traits\HistoryTrait; use XeroPHP\Traits\AttachmentTrait; use XeroPHP\Models\Accounting\LineItem; class Receipt extends Remote\Model { use AttachmentTrait; use HistoryTrait; /** * Date of receipt – YYYY-MM-DD. * * @property \DateTimeInterface Date */ /** * See Contacts. * * @property Contact Contact */ /** * See LineItems. * * @property LineItem[] LineItems */ /** * The user in the organisation that the expense claim receipt is for. See Users. * * @property User User */ /** * Additional reference number. * * @property string Reference */ /** * See Line Amount Types. * * @property string LineAmountTypes */ /** * Total of receipt excluding taxes. * * @property float SubTotal */ /** * Total tax on receipt. * * @property float TotalTax */ /** * Total of receipt tax inclusive (i.e. SubTotal + TotalTax). * * @property float Total */ /** * Xero generated unique identifier for receipt. * * @property string ReceiptID */ /** * Current status of receipt – see status types. * * @property string Status */ /** * Xero generated sequence number for receipt in current claim for a given user. * * @property string ReceiptNumber */ /** * Last modified date UTC format. * * @property \DateTimeInterface UpdatedDateUTC */ /** * boolean to indicate if a receipt has an attachment. * * @property bool HasAttachments */ /** * URL link to a source document – shown as “Go to [appName]” in the Xero app. * * @property string Url */ const RECEIPT_STATUS_DRAFT = 'DRAFT'; const RECEIPT_STATUS_SUBMITTED = 'SUBMITTED'; const RECEIPT_STATUS_AUTHORISED = 'AUTHORISED'; const RECEIPT_STATUS_DECLINED = 'DECLINED'; /** * Get the resource uri of the class (Contacts) etc. * * @return string */ public static function getResourceURI() { return 'Receipts'; } /** * Get the root node name. Just the unqualified classname. * * @return string */ public static function getRootNodeName() { return 'Receipt'; } /** * Get the guid property. * * @return string */ public static function getGUIDProperty() { return 'ReceiptID'; } /** * Get the stem of the API (core.xro) etc. * * @return string */ public static function getAPIStem() { return Remote\URL::API_CORE; } /** * Get the supported methods. */ public static function getSupportedMethods() { return [ Remote\Request::METHOD_GET, Remote\Request::METHOD_PUT, Remote\Request::METHOD_POST, ]; } /** * Get the properties of the object. Indexed by constants * [0] - Mandatory * [1] - Type * [2] - PHP type * [3] - Is an Array * [4] - Saves directly. * * @return array */ public static function getProperties() { return [ 'Date' => [true, self::PROPERTY_TYPE_DATE, '\\DateTimeInterface', false, false], 'Contact' => [true, self::PROPERTY_TYPE_OBJECT, 'Accounting\\Contact', false, false], 'LineItems' => [true, self::PROPERTY_TYPE_OBJECT, 'Accounting\\LineItem', true, false], 'User' => [true, self::PROPERTY_TYPE_OBJECT, 'Accounting\\User', false, false], 'Reference' => [false, self::PROPERTY_TYPE_STRING, null, false, false], 'LineAmountTypes' => [false, self::PROPERTY_TYPE_ENUM, null, false, false], 'SubTotal' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false], 'TotalTax' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false], 'Total' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false], 'ReceiptID' => [false, self::PROPERTY_TYPE_STRING, null, false, false], 'Status' => [false, self::PROPERTY_TYPE_STRING, null, false, false], 'ReceiptNumber' => [false, self::PROPERTY_TYPE_STRING, null, false, false], 'UpdatedDateUTC' => [false, self::PROPERTY_TYPE_TIMESTAMP, '\\DateTimeInterface', false, false], 'HasAttachments' => [false, self::PROPERTY_TYPE_BOOLEAN, null, false, false], 'Url' => [false, self::PROPERTY_TYPE_STRING, null, false, false], ]; } public static function isPageable() { return false; } /** * @return \DateTimeInterface */ public function getDate() { return $this->_data['Date']; } /** * @param \DateTimeInterface $value * * @return Receipt */ public function setDate(\DateTimeInterface $value) { $this->propertyUpdated('Date', $value); $this->_data['Date'] = $value; return $this; } /** * @return Contact */ public function getContact() { return $this->_data['Contact']; } /** * @param Contact $value * * @return Receipt */ public function setContact(Contact $value) { $this->propertyUpdated('Contact', $value); $this->_data['Contact'] = $value; return $this; } /** * @return LineItem[]|Remote\Collection */ public function getLineItems() { return $this->_data['LineItems']; } /** * @param LineItem $value * * @return Receipt */ public function addLineItem(LineItem $value) { $this->propertyUpdated('LineItems', $value); if (! isset($this->_data['LineItems'])) { $this->_data['LineItems'] = new Remote\Collection(); } $this->_data['LineItems'][] = $value; return $this; } /** * @return User */ public function getUser() { return $this->_data['User']; } /** * @param User $value * * @return Receipt */ public function setUser(User $value) { $this->propertyUpdated('User', $value); $this->_data['User'] = $value; return $this; } /** * @return string */ public function getReference() { return $this->_data['Reference']; } /** * @param string $value * * @return Receipt */ public function setReference($value) { $this->propertyUpdated('Reference', $value); $this->_data['Reference'] = $value; return $this; } /** * @return string */ public function getLineAmountTypes() { return $this->_data['LineAmountTypes']; } /** * @param string $value * * @return Receipt */ public function setLineAmountType($value) { $this->propertyUpdated('LineAmountTypes', $value); $this->_data['LineAmountTypes'] = $value; return $this; } /** * @return float */ public function getSubTotal() { return $this->_data['SubTotal']; } /** * @param float $value * * @return Receipt */ public function setSubTotal($value) { $this->propertyUpdated('SubTotal', $value); $this->_data['SubTotal'] = $value; return $this; } /** * @return float */ public function getTotalTax() { return $this->_data['TotalTax']; } /** * @param float $value * * @return Receipt */ public function setTotalTax($value) { $this->propertyUpdated('TotalTax', $value); $this->_data['TotalTax'] = $value; return $this; } /** * @return float */ public function getTotal() { return $this->_data['Total']; } /** * @param float $value * * @return Receipt */ public function setTotal($value) { $this->propertyUpdated('Total', $value); $this->_data['Total'] = $value; return $this; } /** * @return string */ public function getReceiptID() { return $this->_data['ReceiptID']; } /** * @param string $value * * @return Receipt */ public function setReceiptID($value) { $this->propertyUpdated('ReceiptID', $value); $this->_data['ReceiptID'] = $value; return $this; } /** * @return string */ public function getStatus() { return $this->_data['Status']; } public function setStatus($value) { $this->propertyUpdated('Status', $value); $this->_data['Status'] = $value; return $this; } /** * @return string */ public function getReceiptNumber() { return $this->_data['ReceiptNumber']; } /** * @return \DateTimeInterface */ public function getUpdatedDateUTC() { return $this->_data['UpdatedDateUTC']; } /** * @return bool */ public function getHasAttachments() { return $this->_data['HasAttachments']; } /** * @return string */ public function getUrl() { return $this->_data['Url']; } }
mit
michael-reichenauer/GitMind
GitMind/ApplicationHandling/Private/WorkingFolderService.cs
2505
using System; using GitMind.Utils; using GitMind.Utils.Git; namespace GitMind.ApplicationHandling.Private { [SingleInstance] internal class WorkingFolderService : IWorkingFolderService { private readonly ICommandLine commandLine; private readonly Lazy<IGitInfoService> gitInfo; private string workingFolder; public WorkingFolderService( ICommandLine commandLine, Lazy<IGitInfoService> gitInfo) { this.commandLine = commandLine; this.gitInfo = gitInfo; } public bool IsValid { get; private set; } public event EventHandler OnChange; public string Path { get { if (workingFolder == null) { workingFolder = GetInitialWorkingFolder(); } return workingFolder; } } public bool TrySetPath(string path) { if (GetRootFolderPath(path).HasValue(out string rootFolder)) { if (workingFolder != rootFolder) { workingFolder = rootFolder; try { Log.Info($"Setting Environment.CurrentDirectory={workingFolder}"); Environment.CurrentDirectory = workingFolder; } catch (Exception e) { Log.Exception(e, $"Failed to set working folder: {workingFolder}"); } OnChange?.Invoke(this, EventArgs.Empty); } IsValid = true; return true; } else { return false; } } // Must be able to handle: // * Starting app from start menu or pinned (no parameters and unknown current dir) // * Starting on command line in some dir (no parameters but known dir) // * Starting as right click on folder (parameter "/d:<dir>" // * Starting on command line with some parameters (branch names) // * Starting with parameters "/test" private string GetInitialWorkingFolder() { R<string> rootFolder; if (commandLine.HasFolder) { // Call from e.g. Windows Explorer folder context menu rootFolder = GetRootFolderPath(commandLine.Folder); IsValid = rootFolder.IsOk; return rootFolder.IsOk ? rootFolder.Value : "Open"; } rootFolder = GetRootFolderPath(Environment.CurrentDirectory); IsValid = rootFolder.IsOk; if (rootFolder.IsOk) { return rootFolder.Value; } return "Open"; } private static string GetMyDocumentsPath() { return Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); } public R<string> GetRootFolderPath(string path) { if (path == null) { return R.From("No working folder"); } return gitInfo.Value.GetWorkingFolderRoot(path); } } }
mit
glipecki/watson
watson-rest/src/test/java/net/lipecki/watson/receipt/AddSameProductOnceTest.java
1912
package net.lipecki.watson.receipt; import net.lipecki.watson.event.Event; import net.lipecki.watson.product.AddProductData; import net.lipecki.watson.product.ProductAdded; import org.junit.Test; import java.util.ArrayList; import java.util.List; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.when; public class AddSameProductOnceTest extends AddReceiptWithDependenciesBaseTest { private static final String PRODUCT_NAME = "sample-product"; private static final String PRODUCT_UUID_1 = "product-uuid-1"; private static final String PRODUCT_UUID_2 = "product-uuid-2"; @Test public void shouldAddSameProductOnce() { // given final AddReceiptProductDto sameProduct = AddReceiptProductDto.builder().name(PRODUCT_NAME).build(); final List<AddReceiptItemDto> receiptItems = new ArrayList<>(); receiptItems.add(item(item -> item.product(sameProduct)).build()); receiptItems.add(item(item -> item.product(sameProduct)).build()); final AddProductData expectedAddProduct = AddProductData.builder().name(PRODUCT_NAME).categoryUuid(null).build(); final ProductAdded productAdded = ProductAdded.builder().name(PRODUCT_NAME).categoryUuid(null).build(); //noinspection unchecked when(addProductCommand.addProduct(expectedAddProduct)).thenReturn( Event.<ProductAdded>builder().streamId(PRODUCT_UUID_1).payload(productAdded).build(), Event.<ProductAdded>builder().streamId(PRODUCT_UUID_2).payload(productAdded).build() ); // when addReceipt(dto -> dto.items(receiptItems)); // then assertThat(receipt().getItems()) .extracting(AddReceiptItemData::getProduct) .extracting(AddReceiptItemProduct::getUuid) .containsExactly(PRODUCT_UUID_1, PRODUCT_UUID_1); } }
mit
vikkio88/mister
src/main/java/com/mister/lib/model/Coach.java
474
package com.mister.lib.model; import com.mister.lib.model.enums.Module; import com.mister.lib.model.enums.Nationality; import com.mister.lib.model.generic.Person; public class Coach extends Person { private Module module; public Coach(String name, String surname, int age, Nationality nationality, Module module) { super(name, surname, age, nationality); this.module = module; } public Module getModule() { return module; } }
mit
Git-Live/git-live
tests/Tests/GitLive/Command/SelfUpdateCommandTest.php
2199
<?php /** * This file is part of Git-Live * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. * * @category GitCommand * @package Git-Live * @subpackage Core * @author akito<akito-artisan@five-foxes.com> * @author suzunone<suzunone.eleven@gmail.com> * @copyright Project Git Live * @license MIT * @version GIT: $Id\$ * @link https://github.com/Git-Live/git-live * @see https://github.com/Git-Live/git-live */ namespace Tests\GitLive\Command; use App; use GitLive\Application\Application; use Tests\GitLive\Tester\CommandTestCase as TestCase; use Tests\GitLive\Tester\CommandTester; use Tests\GitLive\Tester\CommandTestTrait; use Tests\GitLive\Tester\MakeGitTestRepoTrait; /** * @internal * @coversNothing */ class SelfUpdateCommandTest extends TestCase { use CommandTestTrait; // use MakeGitTestRepoTrait; protected function setUp() { parent::setUp(); // TODO: Change the autogenerated stub @unlink(PROJECT_ROOT_DIR . '/storage/unit_testing/self_update'); } // use MakeGitTestRepoTrait; protected function tearDown() { parent::tearDown(); // TODO: Change the autogenerated stub @unlink(PROJECT_ROOT_DIR . '/storage/unit_testing/self_update'); } /** * @throws \Exception * @covers \GitLive\Command\SelfUpdateCommand */ public function testExecute() { $application = App::make(Application::class); $command = $application->find('self-update'); $commandTester = new CommandTester($command); $commandTester->execute([ 'command' => $command->getName(), // pass arguments to the helper 'save_path' => PROJECT_ROOT_DIR . '/storage/unit_testing/self_update', // prefix the key with two dashes when passing options, // e.g: '--some-option' => 'option_value', ]); $output = $commandTester->getDisplay(); dump($output); $this->assertIsReadable(PROJECT_ROOT_DIR . '/storage/unit_testing/self_update'); $this->assertContains('Connected...', $output); } }
mit
bshaffer/sfServiceContainerPlugin
lib/ServiceContainer/LoaderFileYaml.class.php
2990
<?php /* * This file is part of the symfony framework. * * (c) Fabien Potencier <fabien.potencier@symfony-project.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ /** * sfServiceContainerLoaderFileXml loads YAML files service definitions. * * The YAML format does not support anonymous services (cf. the XML loader). * * @package symfony * @subpackage dependency_injection * @author Fabien Potencier <fabien.potencier@symfony-project.com> * @version SVN: $Id: sfServiceContainerLoaderFileYaml.php 269 2009-03-26 20:39:16Z fabien $ */ class ServiceContainer_LoaderFileYaml extends sfServiceContainerLoaderFileYaml { protected function parseDefinition($service, $file) { $definition = $this->parentParseDefinition($service, $file, 'ServiceContainer_Definition'); if (is_string($definition)) { return $definition; } // adds support for "factory" option if (isset($service['factory'])) { $factory = array( is_array($service['factory']) ? $service['factory'][0] : $service['factory'], is_array($service['factory']) && isset($service['factory'][1]) ? $service['factory'][1] : null, isset($service['arguments']) ? $service['arguments'] : array(), ); $definition->setFactory($this->resolveServices($factory[0]), $factory[1], $factory[2]); } return $definition; } // we have to copy this method in its entirety from the parent so we can pass a new class for sfServiceDefinition protected function parentParseDefinition($service, $file, $definitionClass = 'sfServiceDefinition') { if (is_string($service) && 0 === strpos($service, '@')) { return substr($service, 1); } if (isset($service['factory']) && !isset($service['class'])) { $service['class'] = ''; // we do not need to declare the class } $definition = new $definitionClass($service['class']); if (isset($service['shared'])) { $definition->setShared($service['shared']); } if (isset($service['constructor'])) { $definition->setConstructor($service['constructor']); } if (isset($service['file'])) { $definition->setFile($service['file']); } if (isset($service['arguments'])) { $definition->setArguments($this->resolveServices($service['arguments'])); } if (isset($service['configurator'])) { if (is_string($service['configurator'])) { $definition->setConfigurator($service['configurator']); } else { $definition->setConfigurator(array($this->resolveServices($service['configurator'][0]), $service['configurator'][1])); } } if (isset($service['calls'])) { foreach ($service['calls'] as $call) { $definition->addMethodCall($call[0], $this->resolveServices($call[1])); } } return $definition; } }
mit
mvezer/aquaman
src/server/infrastructure/RestServer.js
1201
const restify = require('restify'); const path = require('path'); const ALLOWED_VERBS = ['del', 'get', 'head', 'opts', 'post', 'put', 'patch']; class RestServer { constructor(port, name) { this.port = port; this.name = name; this.server = restify.createServer({ name }); } init() { this.server.use(restify.plugins.acceptParser(this.server.acceptable)); this.server.use(restify.plugins.queryParser()); this.server.use(restify.plugins.bodyParser()); } start(callback) { this.init(); this.server.listen(this.port, callback || (() => { // eslint-disable-next-line no-console console.log(`${this.server.name} at ${this.server.url} is listening`); })); } addRoute(method, url, handler) { const sanitizedMethod = method.trim().toLowerCase(); if (!ALLOWED_VERBS.includes(sanitizedMethod)) { throw new Error(`Invalid verb used for adding route: ${sanitizedMethod}`); } this.server[sanitizedMethod](url, handler); } serveHtml(url, searchDir) { this.addRoute('GET', url, restify.plugins.serveStatic({ directory: path.join(searchDir), default: 'index.html', })); } } module.exports = RestServer;
mit
neophob/lwip
lib/ImagePrototypeInit.js
20463
(function(undefined) { var Image = require('./Image'), path = require('path'), fs = require('fs'), decree = require('decree'), defs = require('./defs'), util = require('./util'), encoder = require('../build/Release/lwip_encoder'), lwip_image = require('../build/Release/lwip_image'), normalizeColor = util.normalizeColor; var judges = { scale: decree(defs.args.scale), resize: decree(defs.args.resize), contain: decree(defs.args.contain), cover: decree(defs.args.cover), rotate: decree(defs.args.rotate), blur: decree(defs.args.blur), hslaAdjust: decree(defs.args.hslaAdjust), saturate: decree(defs.args.saturate), lighten: decree(defs.args.lighten), darken: decree(defs.args.darken), fade: decree(defs.args.fade), opacify: decree(defs.args.opacify), hue: decree(defs.args.hue), crop: decree(defs.args.crop), mirror: decree(defs.args.mirror), pad: decree(defs.args.pad), border: decree(defs.args.border), sharpen: decree(defs.args.sharpen), paste: decree(defs.args.paste), clone: decree(defs.args.clone), extract: decree(defs.args.extract), toBuffer: decree(defs.args.toBuffer), writeFile: decree(defs.args.writeFile), setPixel: decree(defs.args.setPixel), getPixel: decree(defs.args.getPixel) }; Image.prototype.__lock = function() { if (!this.__locked) this.__locked = true; else throw Error("Another image operation already in progress"); }; Image.prototype.__release = function() { this.__locked = false; }; Image.prototype.getMetadata = function() { return this.__metadata; }; Image.prototype.setMetadata = function(data) { if (typeof data != "string" && data != null) { throw Error("Metadata must be a string or null"); } this.__metadata = data; return data; }; Image.prototype.width = function() { return this.__lwip.width(); }; Image.prototype.height = function() { return this.__lwip.height(); }; Image.prototype.size = function() { return { width: this.__lwip.width(), height: this.__lwip.height() }; }; Image.prototype.getPixel = function() { var args = judges.getPixel(arguments), left = args[0], top = args[1]; if (left >= this.width() || top >= this.height()) throw Error("Coordinates exceed dimensions of image"); var rgba = this.__lwip.getPixel(left, top); return { r: rgba[0], g: rgba[1], b: rgba[2], a: rgba[3] }; }; Image.prototype.scale = function() { this.__lock(); var that = this; judges.scale( arguments, function(wRatio, hRatio, inter, callback) { hRatio = hRatio || wRatio; var width = +wRatio * that.width(), height = +hRatio * that.height(); that.__lwip.resize(width, height, defs.interpolations[inter], function(err) { that.__release(); callback(err, that); }); }, function(err) { that.__release(); throw err; } ); }; Image.prototype.resize = function() { this.__lock(); var that = this; judges.resize( arguments, function(width, height, inter, callback) { height = height || width; that.__lwip.resize(+width, +height, defs.interpolations[inter], function(err) { that.__release(); callback(err, that); }); }, function(err) { that.__release(); throw err; } ); }; Image.prototype.contain = function() { var that = this; judges.contain( arguments, function(width, height, color, inter, callback) { var s = Math.min(width / that.width(), height / that.height()); that.scale(s, s, inter, function(err){ if (err) return callback(err); var padX = (width - that.width()) / 2, padY = (height - that.height()) / 2; that.pad( Math.ceil(padX), Math.ceil(padY), Math.floor(padX), Math.floor(padY), color, callback ); }); } ); }; Image.prototype.cover = function() { var that = this; judges.cover( arguments, function(width, height, inter, callback) { var s = Math.max(width / that.width(), height / that.height()); that.scale(s, s, inter, function(err){ if (err) return callback(err); that.crop(width, height, callback); }); } ); }; Image.prototype.rotate = function() { this.__lock(); var that = this; judges.rotate( arguments, function(degs, color, callback) { color = normalizeColor(color); if (color.a < 100) that.__trans = true; that.__lwip.rotate(+degs, +color.r, +color.g, +color.b, +color.a, function(err) { that.__release(); callback(err, that); }); }, function(err) { that.__release(); throw err; } ); }; Image.prototype.blur = function() { this.__lock(); var that = this; judges.blur( arguments, function(sigma, callback) { that.__lwip.blur(+sigma, function(err) { that.__release(); callback(err, that); }); }, function(err) { that.__release(); throw err; } ); }; Image.prototype.hslaAdjust = function() { this.__lock(); var that = this; judges.hslaAdjust( arguments, function(hs, sd, ld, ad, callback) { that.__lwip.hslaAdj(+hs, +sd, +ld, +ad, function(err) { that.__release(); callback(err, that); }); }, function(err) { that.__release(); throw err; } ); }; Image.prototype.saturate = function() { this.__lock(); var that = this; judges.saturate( arguments, function(delta, callback) { that.__lwip.hslaAdj(0, +delta, 0, 0, function(err) { that.__release(); callback(err, that); }); }, function(err) { that.__release(); throw err; } ); }; Image.prototype.lighten = function() { this.__lock(); var that = this; judges.lighten( arguments, function(delta, callback) { that.__lwip.hslaAdj(0, 0, +delta, 0, function(err) { that.__release(); callback(err, that); }); }, function(err) { that.__release(); throw err; } ); }; Image.prototype.darken = function() { this.__lock(); var that = this; judges.darken( arguments, function(delta, callback) { that.__lwip.hslaAdj(0, 0, -delta, 0, function(err) { that.__release(); callback(err, that); }); }, function(err) { that.__release(); throw err; } ); }; Image.prototype.fade = function() { this.__lock(); var that = this; judges.fade( arguments, function(delta, callback) { that.__lwip.hslaAdj(0, 0, 0, -delta, function(err) { if (+delta > 0) that.__trans = true; that.__release(); callback(err, that); }); }, function(err) { that.__release(); throw err; } ); }; Image.prototype.opacify = function() { this.__lock(); var that = this; judges.opacify( arguments, function(callback) { that.__lwip.opacify(function(err) { that.__trans = false; that.__release(); callback(err, that); }); }, function(err) { that.__release(); throw err; } ); }; Image.prototype.hue = function() { this.__lock(); var that = this; judges.hue( arguments, function(shift, callback) { that.__lwip.hslaAdj(+shift, 0, 0, 0, function(err) { that.__release(); callback(err, that); }); }, function(err) { that.__release(); throw err; } ); }; Image.prototype.crop = function() { this.__lock(); var that = this; judges.crop( arguments, function(left, top, right, bottom, callback) { if (!right && !bottom) { var size = that.size(), width = left, height = top; left = 0 | (size.width - width) / 2; top = 0 | (size.height - height) / 2; right = left + width - 1; bottom = top + height - 1; } that.__lwip.crop(left, top, right, bottom, function(err) { that.__release(); callback(err, that); }); }, function(err) { that.__release(); throw err; } ); }; Image.prototype.mirror = function() { this.__lock(); var that = this; judges.mirror( arguments, function(axes, callback) { var xaxis = false, yaxis = false; if ('x' === axes) xaxis = true; if ('y' === axes) yaxis = true; if ('xy' === axes || 'yx' === axes) { xaxis = true; yaxis = true; } that.__lwip.mirror(xaxis, yaxis, function(err) { that.__release(); callback(err, that); }); }, function(err) { that.__release(); throw err; } ); }; // mirror alias: Image.prototype.flip = Image.prototype.mirror; Image.prototype.pad = function() { this.__lock(); var that = this; judges.pad( arguments, function(left, top, right, bottom, color, callback) { color = normalizeColor(color); if (color.a < 100) that.__trans = true; that.__lwip.pad(+left, +top, +right, +bottom, +color.r, +color.g, +color.b, +color.a, function(err) { that.__release(); callback(err, that); }); }, function(err) { that.__release(); throw err; } ); }; Image.prototype.border = function() { this.__lock(); var that = this; judges.border( arguments, function(width, color, callback) { color = normalizeColor(color); if (color.a < 100) that.__trans = true; // we can just use image.pad... that.__lwip.pad(+width, +width, +width, +width, +color.r, +color.g, +color.b, +color.a, function(err) { that.__release(); callback(err, that); }); }, function(err) { that.__release(); throw err; } ); }; Image.prototype.sharpen = function() { this.__lock(); var that = this; judges.sharpen( arguments, function(amplitude, callback) { that.__lwip.sharpen(+amplitude, function(err) { that.__release(); callback(err, that); }); }, function(err) { that.__release(); throw err; } ); }; Image.prototype.paste = function() { this.__lock(); var that = this; try{ judges.paste( arguments, function(left, top, img, callback) { // first we retrieve what we need (buffer, dimensions, ...) // synchronously so that the pasted image doesn't have a chance // to be changed var pixbuff = img.__lwip.buffer(), width = img.__lwip.width(), height = img.__lwip.height(); if (left + width > that.__lwip.width() || top + height > that.__lwip.height()) throw Error("Pasted image exceeds dimensions of base image"); that.__lwip.paste(+left, +top, pixbuff, +width, +height, function(err) { that.__release(); callback(err, that); }); } ); } catch(err){ that.__release(); throw err; } }; Image.prototype.setPixel = function() { this.__lock(); var that = this; try{ judges.setPixel( arguments, function(left, top, color, callback) { if (left >= that.width() || top >= that.height()) throw Error("Coordinates exceed dimensions of image"); color = normalizeColor(color); if (color.a < 100) that.__trans = true; that.__lwip.setPixel(+left, +top, +color.r, +color.g, +color.b, +color.a, function(err) { that.__release(); callback(err, that); }); } ); } catch(err){ that.__release(); throw err; } }; Image.prototype.clone = function() { // no need to lock the image. we don't modify the memory buffer. // just copy it. var that = this; judges.clone( arguments, function(callback) { // first we retrieve what we need (buffer, dimensions, ...) // synchronously so that the original image doesn't have a chance // to be changed (remember, we don't lock it); and only then call // the callback asynchronously. var pixbuff = that.__lwip.buffer(), width = that.__lwip.width(), height = that.__lwip.height(), trans = that.__trans; setImmediate(function() { callback(null, new Image(pixbuff, width, height, trans)); }); } ); }; Image.prototype.extract = function() { // no need to lock the image. we don't modify the memory buffer. // just copy it and then crop it. var that = this; judges.extract( arguments, function(left, top, right, bottom, callback) { // first we retrieve what we need (buffer, dimensions, ...) // synchronously so that the original image doesn't have a chance // to be changed (remember, we don't lock it); then we crop it and // only call the callback asynchronously. var pixbuff = that.__lwip.buffer(), width = that.__lwip.width(), height = that.__lwip.height(), trans = that.__trans, eximg = new Image(pixbuff, width, height, trans); eximg.__lwip.crop(left, top, right, bottom, function(err) { callback(err, eximg); }); } ); }; Image.prototype.toBuffer = function() { this.__lock(); var that = this; try{ judges.toBuffer( arguments, function(type, params, callback) { if (type === 'jpg' || type === 'jpeg') { util.normalizeJpegParams(params); return encoder.jpeg( that.__lwip.buffer(), that.__lwip.width(), that.__lwip.height(), params.quality, encoderCb ); } else if (type === 'png') { util.normalizePngParams(params); return encoder.png( that.__lwip.buffer(), that.__lwip.width(), that.__lwip.height(), params.compression, params.interlaced, params.transparency === 'auto' ? that.__trans : params.transparency, that.__metadata, encoderCb ); } else if (type === 'gif') { util.normalizeGifParams(params); return encoder.gif( that.__lwip.buffer(), that.__lwip.width(), that.__lwip.height(), util.getClosest2Exp(params.colors), params.colors, params.interlaced, params.transparency === 'auto' ? that.__trans : params.transparency, params.threshold, encoderCb ); } else if (type === 'raw') { var rawImg = { buffer: that.__lwip.buffer(), width: that.__lwip.width(), height: that.__lwip.height() }; encoderCb(null, rawImg); } else throw Error('Unknown type \'' + type + '\''); function encoderCb(err, buffer) { that.__release(); callback(err, buffer); } } ); } catch (err){ that.__release(); throw err; } }; Image.prototype.writeFile = function() { var that = this; judges.writeFile( arguments, function(outpath, type, params, callback) { type = type || path.extname(outpath).slice(1).toLowerCase(); that.toBuffer(type, params, function(err, buffer) { if (err) return callback(err); fs.writeFile(outpath, buffer, { encoding: 'binary' }, callback); }); } ); }; })(void 0);
mit
ringoteam/Og
src/Og/Bundle/AdminBundle/Entity/CustomerHasMediaRepository.php
284
<?php namespace Og\Bundle\AdminBundle\Entity; use Doctrine\ORM\EntityRepository; /** * CustomerHasMediaRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class CustomerHasMediaRepository extends EntityRepository { }
mit
dubeme/2048-from-scratch
index.js
4835
window.onload = function() { var gameBoard = [[0,0,0,0], [0,0,0,0], [0,0,0,0], [0,0,0,0]]; var htmlGameBoard = [[0,0,0,0], [0,0,0,0], [0,0,0,0], [0,0,0,0]]; var DIR_LEFT = 0; var DIR_RIGHT = 1; var DIR_UP = 2; var DIR_DOWN = 3; var maxDouble = 0; var score = 0; var freeSpaces = 16; var moved = false; var lastDirection = null; document.getElementById('start').onclick = function() { Game2048(); } document.getElementById('left').onclick = function() { move(DIR_LEFT); } document.getElementById('right').onclick = function() { move(DIR_RIGHT); } document.getElementById('up').onclick = function() { move(DIR_UP); } document.getElementById('down').onclick = function() { move(DIR_DOWN); } function Game2048() { setup(); generateNumber(); gameLoop(); } function setup() { for (var row = 0; row < 4; row++) { for (var col = 0; col < 4; col++) { gameBoard[row][col] = 0; }; }; var _board = document.getElementsByClassName('row'); for (var row = 0; row < 4; row++) { var children = _board[row].children; for (var col = 0; col < 4; col++) { htmlGameBoard[row][col] = children[col]; }; }; } function gameLoop() { if(moved) generateNumber(); for (var row = 0; row < 4; row++) { for (var col = 0; col < 4; col++) { htmlGameBoard[row][col].innerHTML = gameBoard[row][col]; }; }; requestAnimationFrame(gameLoop) } function generateNumber() { if (freeSpaces > 0) { var row = Math.floor(Math.random()*4); var col = Math.floor(Math.random()*4); while (gameBoard[row][col] !== 0){ row = Math.floor(Math.random()*4); col = Math.floor(Math.random()*4); } gameBoard[row][col] = (Math.random() <= 0.9) ? 2 : 4; freeSpaces--; return true; } return false; } function move(dir) { var lineBefore; var lineAfter; if (lastDirection === null || dir !== lastDirection) moved = true; else moved = false; for (var index = 0; index < 4; index++) { lineBefore = getLine(dir,index); lineAfter = solveLine(lineBefore); setLine(dir, index, lineAfter); } return move; } function getLine(dir, index) { if (dir === DIR_LEFT || dir === DIR_RIGHT) return getRow(dir, index); else if (dir === DIR_UP || dir === DIR_DOWN) return getCol(dir, index); return null; } function setLine(dir, index, temp) { if (dir === DIR_LEFT) { gameBoard[index][0] = temp[3]; gameBoard[index][1] = temp[2]; gameBoard[index][2] = temp[1]; gameBoard[index][3] = temp[0]; } else if (dir === DIR_RIGHT) { gameBoard[index][0] = temp[0]; gameBoard[index][1] = temp[1]; gameBoard[index][2] = temp[2]; gameBoard[index][3] = temp[3]; } else if (dir === DIR_UP) { gameBoard[0][index] = temp[3]; gameBoard[1][index] = temp[2]; gameBoard[2][index] = temp[1]; gameBoard[3][index] = temp[0]; } else if (dir === DIR_DOWN) { gameBoard[0][index] = temp[0]; gameBoard[1][index] = temp[1]; gameBoard[2][index] = temp[2]; gameBoard[3][index] = temp[3]; } } function getRow(dir, row) { var temp = [0,0,0,0]; var index = 3; if (dir === DIR_LEFT) { for (var col = 0; col < 4; col++) { if (gameBoard[row][col] !== 0) { temp[index] = gameBoard[row][col]; index--; }; }; } else if (dir === DIR_RIGHT) { for (var col = 3; col >= 0; col--) { if (gameBoard[row][col] !== 0) { temp[index] = gameBoard[row][col]; index--; }; }; } return temp; } function getCol(dir, col) { var temp = [0,0,0,0]; var index = 3; if (dir === DIR_UP) { for (var row = 0; row < 4; row++) { if (gameBoard[row][col] !== 0) { temp[index] = gameBoard[row][col]; index--; }; }; } else if (dir === DIR_DOWN) { for (var row = 3; row >= 0; row--) { if (gameBoard[row][col] !== 0) { temp[index] = gameBoard[row][col]; index--; }; }; } return temp; } function setCol(dir, col, temp) { if (dir === DIR_UP) { gameBoard[row][0] = temp[3]; gameBoard[row][1] = temp[2]; gameBoard[row][2] = temp[1]; gameBoard[row][3] = temp[0]; } else if (dir === DIR_DOWN) { gameBoard[row][0] = temp[0]; gameBoard[row][1] = temp[1]; gameBoard[row][2] = temp[2]; gameBoard[row][3] = temp[3]; } } function flushLine(line) { var temp = [0,0,0,0]; var index = 3; for (var _index = 3; _index >= 0; _index--) { if (line[_index] !== 0) { temp[index] = line[_index]; index--; }; }; return temp; } function solveLine(line) { for (var index = 3; index >= 1; index--) { try { if (line[index] === line[index - 1]) { line[index] *= 2; line[index - 1] = 0; score += line[index]; if (line[index] > maxDouble) maxDouble = line[index]; } line = flushLine(line); } catch (ex) {} } return line; } }
mit
alfu32/angular-mdl
src/badge/BadgeOverlap.js
883
angular.module("mdl") .directive("mdlBadgeOverlap",function mdlBadgeOverlap(mdl){ var stl=angular.element('<style id="mdlBadgeOverlap">\n\ </style>\n\ '); mdl.applyStyle(stl[0]); return { priority: 1, restrict: 'A', transclude:false, //class="material-icons mdl-badge mdl-badge--overlap" data-badge="1" compile:function(tElm,tAttrs,transclude){ //console.debug("BadgeOverlap-compile",tElm) return { pre:function(scope, elm, attrs,ctrl,transcludeFn){ //console.debug("BadgeOverlap-pre",elm); }, post:function(scope, elm, attrs,ctrl,transcludeFn){ //console.debug("BadgeOverlap-post",elm.attr("mdl-badge-overlap")); elm.addClass("mdl-badge"); elm.addClass("mdl-badge--overlap"); elm.attr("data-badge",elm.attr("mdl-badge-overlap")) componentHandler.upgradeElement(elm[0]); } } } } })
mit
pebble-dev/rebblestore-api
rebbleHandlers/routehandler.go
1703
package rebbleHandlers import ( "log" "net/http" "pebble-dev/rebblestore-api/db" ) // HandlerContext is our struct for storing the data we want to inject in to each handler // we can also add things like authorization level, user information, templates, etc. type HandlerContext struct { Database *db.Handler } // routeHandler is a struct that implements http.Handler, allowing us to inject a custom context // and handle things like authorization and errors in a single place // the handler should always return 2 variables, an integer, corrosponding to an HTTP status code // and an error object containing whatever error happened (or nil, if no error) type routeHandler struct { context *HandlerContext H func(*HandlerContext, http.ResponseWriter, *http.Request) (int, error) } // StoreUrl contains the URL of the frontend for the Access-Control-Allow-Origin header var StoreUrl string func (rh routeHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { // Write common headers // http://stackoverflow.com/a/24818638 w.Header().Add("Access-Control-Allow-Origin", StoreUrl) w.Header().Add("Access-Control-Allow-Methods", "GET,POST") // we can process user verification/auth token parsing and authorization here // call the handler function status, err := rh.H(rh.context, w, r) // if the handler function returns an error, we log the error and send the appropriate error message if err != nil { log.Printf("HTTP %d: %q", status, err) switch status { case http.StatusNotFound: http.NotFound(w, r) case http.StatusInternalServerError: http.Error(w, http.StatusText(status), status) default: http.Error(w, http.StatusText(status), status) } } }
mit
madumlao/oxAuth
Server/src/test/java/org/xdi/oxauth/uma/ws/rs/UmaScopeWSTest.java
1950
/* * oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. * * Copyright (c) 2014, Gluu */ package org.xdi.oxauth.uma.ws.rs; import static org.testng.Assert.assertEquals; import java.net.URI; import javax.ws.rs.client.Invocation.Builder; import javax.ws.rs.core.Response; import org.jboss.arquillian.test.api.ArquillianResource; import org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder; import org.testng.annotations.Parameters; import org.testng.annotations.Test; import org.xdi.oxauth.BaseTest; import org.xdi.oxauth.model.uma.UmaScopeDescription; import org.xdi.oxauth.model.uma.TUma; import org.xdi.oxauth.model.uma.UmaConstants; import org.xdi.oxauth.model.uma.UmaTestUtil; /** * @author Yuriy Zabrovarnyy * @version 0.9, 22/04/2013 */ public class UmaScopeWSTest extends BaseTest { @ArquillianResource private URI url; // private MetadataConfiguration m_configuration; // // @Parameters({"umaConfigurationPath"}) // @Test // public void init(final String umaConfigurationPath) { // m_configuration = TUma.requestConfiguration(this, umaConfigurationPath); // UmaTestUtil.assert_(m_configuration); // } @Parameters({ "umaScopePath" }) @Test public void scopePresence(final String umaScopePath) throws Exception { String path = umaScopePath + "/" + "modify"; System.out.println("Path: " + path); Builder request = ResteasyClientBuilder.newClient().target(url.toString() + path).request(); request.header("Accept", UmaConstants.JSON_MEDIA_TYPE); Response response = request.get(); String entity = response.readEntity(String.class); BaseTest.showResponse("UMA : UmaScopeWSTest.scopePresence() : ", response, entity); assertEquals(response.getStatus(), Response.Status.OK.getStatusCode(), "Unexpected response code."); final UmaScopeDescription scope = TUma.readJsonValue(entity, UmaScopeDescription.class); UmaTestUtil.assert_(scope); } }
mit
cjo9900/condition-checker-plugin
src/main/java/org/jenkinsci/plugins/conditionchecker/CheckCondition.java
3155
package org.jenkinsci.plugins.conditionchecker; /* The MIT License * * Copyright (c) 2011 Chris Johnson * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ import hudson.DescriptorExtensionList; import hudson.ExtensionPoint; import hudson.model.AbstractBuild; import hudson.model.AbstractProject; import hudson.model.Describable; import hudson.model.Descriptor; import hudson.Launcher; import hudson.model.Hudson; import hudson.model.BuildListener; import java.io.IOException; import java.util.ArrayList; import java.util.List; /** * Extension point for defining a check criteria * Before extending this in a separate plugin * consider forking this plugin and adding it to the common conditions * * @author Chris Johnson */ public abstract class CheckCondition implements ExtensionPoint, Describable<CheckCondition> { /** * Checks if the check criteria is met. * * @param build * @param launcher * @param listener * * @return * true if the condition is met, * false if condition is not met */ public abstract boolean isMet(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException ; public CheckConditionDescriptor getDescriptor() { return (CheckConditionDescriptor)Hudson.getInstance().getDescriptor(getClass()); } /** * Returns all the registered {@link CheckConditionDescriptor}s. */ public static DescriptorExtensionList<CheckCondition,CheckConditionDescriptor> all() { return Hudson.getInstance().<CheckCondition,CheckConditionDescriptor>getDescriptorList(CheckCondition.class); } /** * Returns a subset of {@link CheckConditionDescriptor}s that applies to the given project. */ public static List<CheckConditionDescriptor> getCheckConditionDescriptors(AbstractProject<?,?> p) { List<CheckConditionDescriptor> r = new ArrayList<CheckConditionDescriptor>(); for (CheckConditionDescriptor t : all()) { if(t.isApplicable(p)) r.add(t); } return r; } }
mit
quill18/MostlyCivilizedHexEngine
Assets/QPath/IQPathTile.cs
300
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace QPath { public interface IQPathTile { IQPathTile[] GetNeighbours(); float AggregateCostToEnter( float costSoFar, IQPathTile sourceTile, IQPathUnit theUnit ); } }
mit
verticalgrain/cookbook
config.rb
457
require 'susy' require 'compass/import-once/activate' # Require any additional compass plugins here. http_path = "/" css_dir = "stylesheets/css" sass_dir = "stylesheets/scss" images_dir = "images" javascripts_dir = "js" fonts_dir = "fonts" output_style = :expanded sourcemap = true relative_assets = true # To disable debugging comments that display the original location of your selectors. Uncomment: # line_comments = false preferred_syntax = :scss
mit
Pragmatists/atm-example-cucumber
src/test/java/pl/pragmatists/atm/support/dsl/CashDispenserDomainInterface.java
506
package pl.pragmatists.atm.support.dsl; import org.assertj.core.api.AssertionsForInterfaceTypes; import pl.pragmatists.atm.domain.CashDispenser; public class CashDispenserDomainInterface { private CashDispenser cashDispenser; public CashDispenserDomainInterface(CashDispenser cashDispenser) { this.cashDispenser = cashDispenser; } public void assertDispensed(int amount) { AssertionsForInterfaceTypes.assertThat(cashDispenser.getDispensed()).isEqualTo(amount); } }
mit
sstarcher/sensu-plugins-consul
bin/check-consul-leader.rb
2028
#! /usr/bin/env ruby # # check-consul-leader # # DESCRIPTION: # This plugin checks if consul is up and reachable. It then checks # the status/leader and ensures there is a current leader. # # OUTPUT: # plain text # # PLATFORMS: # Linux # # DEPENDENCIES: # gem: sensu-plugin # gem: rest-client # # USAGE: # #YELLOW # # NOTES: # # LICENSE: # Copyright 2015 Sonian, Inc. and contributors. <support@sensuapp.org> # Released under the same terms as Sensu (the MIT license); see LICENSE # for details. # require 'sensu-plugin/check/cli' require 'rest-client' require 'resolv' # # Consul Status # class ConsulStatus < Sensu::Plugin::Check::CLI option :server, description: 'consul server', short: '-s SERVER', long: '--server SERVER', default: '127.0.0.1' option :port, description: 'consul http port', short: '-p PORT', long: '--port PORT', default: '8500' def valid_ip(ip) case ip.to_s when Resolv::IPv4::Regex return true when Resolv::IPv6::Regex return true else return false end end def strip_ip(str) ipv4_regex = '(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])' ipv6_regex = '\[.*\]' if str =~ /^.*#{ipv4_regex}.*$/ return str.match(/#{ipv4_regex}/) elsif str =~ /^.*#{ipv6_regex}.*$/ return str[/#{ipv6_regex}/][1..-2] else return str end end def run # rubocop:disable all r = RestClient::Resource.new("http://#{config[:server]}:#{config[:port]}/v1/status/leader", timeout: 5).get if r.code == 200 if valid_ip(strip_ip(r.body)) ok 'Consul is UP and has a leader' else critical 'Consul is UP, but it has NO leader' end else critical 'Consul is not responding' end rescue Errno::ECONNREFUSED critical 'Consul is not responding' rescue RestClient::RequestTimeout critical 'Consul Connection timed out' end end
mit
jiadaizhao/LeetCode
0101-0200/0146-LRU Cache/0146-LRU Cache.cpp
1095
class LRUCache { public: LRUCache(int capacity) { this->capacity = capacity; } int get(int key) { if (cacheMap.find(key) == cacheMap.end()) { return -1; } cacheList.splice(cacheList.begin(), cacheList, cacheMap[key]); cacheMap[key] = cacheList.begin(); return cacheList.front().second; } void put(int key, int value) { if (get(key) == -1) { if (cacheList.size() == capacity) { cacheMap.erase(cacheList.back().first); cacheList.pop_back(); } cacheList.push_front({key, value}); cacheMap[key] = cacheList.begin(); } else { cacheList.begin()->second = value; } } private: int capacity; list<pair<int, int>> cacheList; unordered_map<int, list<pair<int, int>>::iterator> cacheMap; }; /** * Your LRUCache object will be instantiated and called as such: * LRUCache obj = new LRUCache(capacity); * int param_1 = obj.get(key); * obj.put(key,value); */
mit
Zefiros-Software/ZPM
src/common/github.lua
3585
--[[ @cond ___LICENSE___ -- Copyright (c) 2017 Zefiros Software. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -- copies of the Software, and to permit persons to whom the Software is -- furnished to do so, subject to the following conditions: -- -- The above copyright notice and this permission notice shall be included in -- all copies or substantial portions of the Software. -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -- THE SOFTWARE. -- -- @endcond --]] Github = newclass "Github" local function _getAssetsVersion(str) local verStr = string.match(str, ".*(%d+%.%d+%.%d+.*)") return zpm.semver(verStr) end function Github:init(loader) self.loader = loader end function Github:get(url) local token = self:_getToken() if token then token = { Authorization = "token " .. token } end return self.loader.http:get(url, token) end function Github:getUrl(prefix, organisation, repository, resource) local url = self.loader.config("github.apiHost") .. prefix .. "/" .. organisation .. "/" .. repository if resource then url = url .. "/" .. resource end return self:get(url) end function Github:getReleases(organisation, repository, pattern, options) pattern = iif(pattern ~= nil, pattern, ".*") options = iif(options ~= nil, options, {}) local response = json.decode(self:getUrl("repos", organisation, repository, "releases")) local releases = { } table.foreachi(response, function(value) local ok, vers = pcall(_getAssetsVersion, value["tag_name"]) local matches = true table.foreachi(options["match"], function(match) matches = matches and value["tag_name"]:match(match) end) local except = true table.foreachi(options["except"], function(except) except = except and not value["tag_name"]:match(except) end) if ok and (options and matches and except) then local assetTab = { } table.foreachi(value["assets"], function(asset) if asset.name:match(pattern) then table.insert(assetTab, { name = asset["name"], url = asset["browser_download_url"] } ) end end ) table.insert(releases, { version = vers, assets = assetTab, zip = value["zipball_url"] } ) end end ) table.sort(releases, function(t1, t2) return t1.version > t2.version end) return releases end function Github:_getToken() local gh = os.getenv("GH_TOKEN") if gh then return gh end gh = _OPTIONS["github-token"] if gh then return gh end local token = self.loader.config("github.token") return iif(token and token:len() > 0, token, nil) end
mit
lengthofrope/create-jsonld
src/Schema/ArtGallerySchema.php
1492
<?php /* * The MIT License * * Copyright 2016 LengthOfRope, Bas de Kort <bdekort@gmail.com>. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. **/ namespace LengthOfRope\JSONLD\Schema; /** * An art gallery. * * @author LengthOfRope, Bas de Kort <bdekort@gmail.com> **/ class ArtGallerySchema extends EntertainmentBusinessSchema { public static function factory() { return new ArtGallerySchema('http://schema.org/', 'ArtGallery'); } }
mit
JBZoo/Utils
tests/SerTest.php
5003
<?php /** * JBZoo Toolbox - Utils * * This file is part of the JBZoo Toolbox project. * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @package Utils * @license MIT * @copyright Copyright (C) JBZoo.com, All rights reserved. * @link https://github.com/JBZoo/Utils */ declare(strict_types=1); namespace JBZoo\PHPUnit; use JBZoo\Utils\Ser; /** * Class SerTest * * @package JBZoo\PHPUnit */ class SerTest extends PHPUnit { public function testMaybe(): void { $obj = new \stdClass(); $obj->prop1 = 'Hello'; $obj->prop2 = 'World'; is('This is a string', Ser::maybe('This is a string')); is(5.81, Ser::maybe(5.81)); is('a:0:{}', Ser::maybe([])); is('O:8:"stdClass":2:{s:5:"prop1";s:5:"Hello";s:5:"prop2";s:5:"World";}', Ser::maybe($obj)); is( 'a:4:{i:0;s:4:"test";i:1;s:4:"blah";s:5:"hello";s:5:"world";s:5:"array";' . 'O:8:"stdClass":2:{s:5:"prop1";s:5:"Hello";s:5:"prop2";s:5:"World";}}', Ser::maybe(['test', 'blah', 'hello' => 'world', 'array' => $obj]) ); } public function testMaybeUn(): void { $obj = new \stdClass(); $obj->prop1 = 'Hello'; $obj->prop2 = 'World'; isNull(Ser::maybeUn(serialize(null))); isFalse(Ser::maybeUn(serialize(false))); is('This is a string', Ser::maybeUn('This is a string')); is(5.81, Ser::maybeUn('5.81')); is([], Ser::maybeUn('a:0:{}')); is($obj, Ser::maybeUn('O:8:"stdClass":2:{s:5:"prop1";s:5:"Hello";s:5:"prop2";s:5:"World";}')); is( ['test', 'blah', 'hello' => 'world', 'array' => $obj], Ser::maybeUn('a:4:{i:0;s:4:"test";i:1;s:4:"blah";s:5:"hello";s:5:"world";s:5:"array";' . 'O:8:"stdClass":2:{s:5:"prop1";s:5:"Hello";s:5:"prop2";s:5:"World";}}') ); // Test a broken serialization. $expectedData = [ 'Normal', 'High-value Char: ' . chr(231) . 'a-va?', // High-value Char: ça-va? [in ISO-8859-1] ]; $brokenSerialization = 'a:2:{i:0;s:6:"Normal";i:1;s:23:"High-value Char: ▒a-va?";}'; $unserializeData = Ser::maybeUn($brokenSerialization); is($expectedData[0], $unserializeData[0], 'Did not properly fix the broken serialized data.'); is( substr($expectedData[1], 0, 10), substr($unserializeData[1], 0, 10), 'Did not properly fix the broken serialized data.' ); // Test unfixable serialization. $unFixableSerialization = 'a:2:{i:0;s:6:"Normal";}'; is( $unFixableSerialization, Ser::maybeUn($unFixableSerialization), 'Somehow the [previously?] impossible happened and utilphp' . ' thinks it has unserialized an unfixable serialization.' ); } public function testIs(): void { isFalse(Ser::is(1)); isFalse(Ser::is(null)); isFalse(Ser::is('s:4:"test;')); isFalse(Ser::is('a:0:{}!')); isFalse(Ser::is('a:0')); isFalse(Ser::is('This is a string')); isFalse(Ser::is('a string')); isFalse(Ser::is('z:0;')); isTrue(Ser::is('N;')); isTrue(Ser::is('b:1;')); isTrue(Ser::is('a:0:{}')); isTrue(Ser::is('O:8:"stdClass":2:{s:5:"prop1";s:5:"Hello";s:5:"prop2";s:5:"World";}')); } public function testFix(): void { $expectedData = [ 'Normal', 'High-value Char: ' . chr(231) . 'a-va?', // High-value Char: ça-va? [in ISO-8859-1] ]; $brokenSerialization = 'a:2:{i:0;s:6:"Normal";i:1;s:23:"High-value Char: ▒a-va?";}'; // Temporarily override error handling to ensure that this is, in fact, [still] a broken serialization. $expectedError = [ 'errno' => 8, 'errstr' => 'unserialize(): Error at offset 55 of 60 bytes', ]; $reportedError = []; set_error_handler(function ($errno, $errstr) use (&$reportedError) { $reportedError = compact('errno', 'errstr'); }); unserialize($brokenSerialization, []); is($expectedError['errno'], $reportedError['errno']); // Because HHVM's unserialize() error message does not contain enough info to properly test. if (!defined('HHVM_VERSION')) { is($expectedError['errstr'], $reportedError['errstr']); } restore_error_handler(); $fixedSerialization = Ser::fix($brokenSerialization); $unserializeData = unserialize($fixedSerialization, []); is($expectedData[0], $unserializeData[0], 'Did not properly fix the broken serialized data.'); is( substr($expectedData[1], 0, 10), substr($unserializeData[1], 0, 10), 'Did not properly fix the broken serialized data.' ); } }
mit
hpautonomy/java-aci-types
src/main/java/com/hp/autonomy/types/requests/Warnings.java
697
/* * Copyright 2015 Hewlett-Packard Development Company, L.P. * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. */ package com.hp.autonomy.types.requests; import lombok.AllArgsConstructor; import lombok.Data; import java.io.Serializable; import java.util.Set; /** * Warnings returned alongside IDOL/Hod responses. */ @Data @AllArgsConstructor public class Warnings implements Serializable { private static final long serialVersionUID = -1591490695879653571L; /** * @serial The list of databases sent in the query request which do not exist. */ private Set<? extends Serializable> invalidDatabases; }
mit
pincopallino93/QuokkaChallenge
app/src/main/java/it/scripto/quokkachallenge/model/User.java
5102
/* * The MIT License (MIT) * * Copyright (c) 2015 Claudio Pastorini * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package it.scripto.quokkachallenge.model; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; import java.util.List; public class User { @SerializedName("id") @Expose private Integer id; @SerializedName("email") @Expose private String email; @SerializedName("picture") @Expose private String picture; @SerializedName("friends") @Expose private List<Object> friends = new ArrayList<>(); @SerializedName("description") @Expose private String description; @SerializedName("registered") @Expose private String registered; @SerializedName("name") @Expose private List<Name> nameList = new ArrayList<>(); @SerializedName("age") @Expose private Integer age; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getPicture() { return picture; } public void setPicture(String picture) { this.picture = picture; } public List<Object> getFriends() { return friends; } public void setFriends(List<Object> friends) { this.friends = friends; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getRegistered() { return registered; } public void setRegistered(String registered) { this.registered = registered; } public String getName() { Name name = nameList.get(0); return String.format("%s %s", name.getFirstName(), name.getLastName()); } public String getFirstName() { Name name = nameList.get(0); return name.getFirstName(); } public void setFirstName(String firstName) { if (this.nameList.size() == 0) { Name name = new Name(); name.setFirstName(firstName); this.nameList.add(name); } else { this.nameList.get(0).setFirstName(firstName); } } public String getLastName() { Name name = nameList.get(0); return name.getLastName(); } public void setLastName(String lastName) { if (this.nameList.size() == 0) { Name name = new Name(); name.setLastName(lastName); this.nameList.add(name); } else { this.nameList.get(0).setLastName(lastName); } } public Integer getAge() { return age; } public void setAge(Integer age) { this.age = age; } @Override public String toString() { return "User{" + "id=" + id + ", email='" + email + '\'' + ", picture='" + picture + '\'' + ", friends=" + friends + ", description='" + description + '\'' + ", registered='" + registered + '\'' + ", nameList=" + nameList + ", age=" + age + '}'; } } class Name { @SerializedName("first") @Expose private String firstName; @SerializedName("last") @Expose private String lastName; public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } @Override public String toString() { return "Name{" + "firstName='" + firstName + '\'' + ", lastName='" + lastName + '\'' + '}'; } }
mit
mkaguilera/yesquel
src/server-splitter-nop.cpp
1862
// // server-splitter-nop.cpp // // Local dummy implementation of splits, when the local version of the server // that runs at the client. This implementation does not actually perform // the split. // /* Original code: Copyright (c) 2014 Microsoft Corporation Modified code: Copyright (c) 2015-2016 VMware, Inc All rights reserved. Written by Marcos K. Aguilera MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <assert.h> #include <limits.h> #include <sys/types.h> #include <sys/stat.h> #include <malloc.h> #include <list> #include <map> #include <set> #ifndef LOCALSTORAGE #define LOCALSTORAGE #endif #include "tmalloc.h" #include "util.h" #include "gaiatypes.h" int ServerDoSplit(COid coid, int where, void *dummy, Semaphore *towait){ return 0; }
mit
calvindcw/PetitionTemplater
application/logs/log-2013-12-13.php
190894
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?> DEBUG - 2013-12-13 08:51:35 --> Config Class Initialized DEBUG - 2013-12-13 08:51:35 --> Hooks Class Initialized DEBUG - 2013-12-13 08:51:35 --> Utf8 Class Initialized DEBUG - 2013-12-13 08:51:35 --> UTF-8 Support Enabled DEBUG - 2013-12-13 08:51:35 --> URI Class Initialized DEBUG - 2013-12-13 08:51:35 --> Router Class Initialized DEBUG - 2013-12-13 08:51:35 --> No URI present. Default controller set. DEBUG - 2013-12-13 08:51:35 --> Output Class Initialized DEBUG - 2013-12-13 08:51:35 --> Security Class Initialized DEBUG - 2013-12-13 08:51:35 --> Input Class Initialized DEBUG - 2013-12-13 08:51:35 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 08:51:35 --> Language Class Initialized DEBUG - 2013-12-13 08:51:35 --> Loader Class Initialized DEBUG - 2013-12-13 08:51:35 --> Controller Class Initialized DEBUG - 2013-12-13 08:51:35 --> Model Class Initialized DEBUG - 2013-12-13 08:51:35 --> Database Driver Class Initialized DEBUG - 2013-12-13 08:51:35 --> Helper loaded: html_helper DEBUG - 2013-12-13 08:51:35 --> Helper loaded: url_helper DEBUG - 2013-12-13 08:51:35 --> File loaded: application/views/header.php DEBUG - 2013-12-13 08:51:35 --> File loaded: application/views/home.php DEBUG - 2013-12-13 08:51:35 --> Final output sent to browser DEBUG - 2013-12-13 08:51:35 --> Total execution time: 0.3914 DEBUG - 2013-12-13 08:51:38 --> Config Class Initialized DEBUG - 2013-12-13 08:51:38 --> Hooks Class Initialized DEBUG - 2013-12-13 08:51:38 --> Utf8 Class Initialized DEBUG - 2013-12-13 08:51:38 --> UTF-8 Support Enabled DEBUG - 2013-12-13 08:51:38 --> URI Class Initialized DEBUG - 2013-12-13 08:51:38 --> Router Class Initialized DEBUG - 2013-12-13 08:51:38 --> Output Class Initialized DEBUG - 2013-12-13 08:51:38 --> Security Class Initialized DEBUG - 2013-12-13 08:51:38 --> Input Class Initialized DEBUG - 2013-12-13 08:51:38 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 08:51:38 --> Language Class Initialized DEBUG - 2013-12-13 08:51:38 --> Loader Class Initialized DEBUG - 2013-12-13 08:51:38 --> Controller Class Initialized DEBUG - 2013-12-13 08:51:38 --> Model Class Initialized DEBUG - 2013-12-13 08:51:38 --> Database Driver Class Initialized DEBUG - 2013-12-13 08:51:38 --> Helper loaded: html_helper DEBUG - 2013-12-13 08:51:38 --> Helper loaded: url_helper DEBUG - 2013-12-13 08:51:38 --> File loaded: application/views/header.php DEBUG - 2013-12-13 08:51:38 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 08:51:38 --> Final output sent to browser DEBUG - 2013-12-13 08:51:38 --> Total execution time: 0.0491 DEBUG - 2013-12-13 08:52:20 --> Config Class Initialized DEBUG - 2013-12-13 08:52:20 --> Hooks Class Initialized DEBUG - 2013-12-13 08:52:20 --> Utf8 Class Initialized DEBUG - 2013-12-13 08:52:20 --> UTF-8 Support Enabled DEBUG - 2013-12-13 08:52:20 --> URI Class Initialized DEBUG - 2013-12-13 08:52:20 --> Router Class Initialized DEBUG - 2013-12-13 08:52:20 --> Output Class Initialized DEBUG - 2013-12-13 08:52:20 --> Security Class Initialized DEBUG - 2013-12-13 08:52:20 --> Input Class Initialized DEBUG - 2013-12-13 08:52:20 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 08:52:20 --> Language Class Initialized DEBUG - 2013-12-13 08:52:20 --> Loader Class Initialized DEBUG - 2013-12-13 08:52:20 --> Controller Class Initialized DEBUG - 2013-12-13 08:52:20 --> Model Class Initialized DEBUG - 2013-12-13 08:52:20 --> Database Driver Class Initialized DEBUG - 2013-12-13 08:52:20 --> Helper loaded: html_helper DEBUG - 2013-12-13 08:52:20 --> Helper loaded: url_helper DEBUG - 2013-12-13 08:52:20 --> Final output sent to browser DEBUG - 2013-12-13 08:52:20 --> Total execution time: 0.0395 DEBUG - 2013-12-13 08:52:21 --> Config Class Initialized DEBUG - 2013-12-13 08:52:21 --> Hooks Class Initialized DEBUG - 2013-12-13 08:52:21 --> Utf8 Class Initialized DEBUG - 2013-12-13 08:52:21 --> UTF-8 Support Enabled DEBUG - 2013-12-13 08:52:21 --> URI Class Initialized DEBUG - 2013-12-13 08:52:21 --> Router Class Initialized DEBUG - 2013-12-13 08:52:21 --> Output Class Initialized DEBUG - 2013-12-13 08:52:21 --> Security Class Initialized DEBUG - 2013-12-13 08:52:21 --> Input Class Initialized DEBUG - 2013-12-13 08:52:21 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 08:52:21 --> Language Class Initialized DEBUG - 2013-12-13 08:52:21 --> Loader Class Initialized DEBUG - 2013-12-13 08:52:21 --> Controller Class Initialized DEBUG - 2013-12-13 08:52:21 --> Model Class Initialized DEBUG - 2013-12-13 08:52:21 --> Database Driver Class Initialized DEBUG - 2013-12-13 08:52:21 --> Helper loaded: html_helper DEBUG - 2013-12-13 08:52:21 --> Helper loaded: url_helper DEBUG - 2013-12-13 08:52:21 --> DB Transaction Failure ERROR - 2013-12-13 08:52:21 --> Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '=> "1"' at line 1 DEBUG - 2013-12-13 08:52:21 --> Language file loaded: language/english/db_lang.php DEBUG - 2013-12-13 08:59:03 --> Config Class Initialized DEBUG - 2013-12-13 08:59:03 --> Hooks Class Initialized DEBUG - 2013-12-13 08:59:03 --> Utf8 Class Initialized DEBUG - 2013-12-13 08:59:03 --> UTF-8 Support Enabled DEBUG - 2013-12-13 08:59:03 --> URI Class Initialized DEBUG - 2013-12-13 08:59:03 --> Router Class Initialized DEBUG - 2013-12-13 08:59:03 --> Output Class Initialized DEBUG - 2013-12-13 08:59:03 --> Security Class Initialized DEBUG - 2013-12-13 08:59:03 --> Input Class Initialized DEBUG - 2013-12-13 08:59:03 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 08:59:03 --> Language Class Initialized DEBUG - 2013-12-13 08:59:03 --> Loader Class Initialized DEBUG - 2013-12-13 08:59:03 --> Controller Class Initialized DEBUG - 2013-12-13 08:59:03 --> Model Class Initialized DEBUG - 2013-12-13 08:59:03 --> Database Driver Class Initialized DEBUG - 2013-12-13 08:59:03 --> Helper loaded: html_helper DEBUG - 2013-12-13 08:59:03 --> Helper loaded: url_helper DEBUG - 2013-12-13 08:59:03 --> File loaded: application/views/header.php DEBUG - 2013-12-13 08:59:03 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 08:59:03 --> Final output sent to browser DEBUG - 2013-12-13 08:59:03 --> Total execution time: 0.0402 DEBUG - 2013-12-13 08:59:05 --> Config Class Initialized DEBUG - 2013-12-13 08:59:05 --> Hooks Class Initialized DEBUG - 2013-12-13 08:59:05 --> Utf8 Class Initialized DEBUG - 2013-12-13 08:59:05 --> UTF-8 Support Enabled DEBUG - 2013-12-13 08:59:05 --> URI Class Initialized DEBUG - 2013-12-13 08:59:05 --> Router Class Initialized DEBUG - 2013-12-13 08:59:05 --> Output Class Initialized DEBUG - 2013-12-13 08:59:05 --> Security Class Initialized DEBUG - 2013-12-13 08:59:05 --> Input Class Initialized DEBUG - 2013-12-13 08:59:05 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 08:59:05 --> Language Class Initialized DEBUG - 2013-12-13 08:59:05 --> Loader Class Initialized DEBUG - 2013-12-13 08:59:05 --> Controller Class Initialized DEBUG - 2013-12-13 08:59:05 --> Model Class Initialized DEBUG - 2013-12-13 08:59:05 --> Database Driver Class Initialized DEBUG - 2013-12-13 08:59:05 --> Helper loaded: html_helper DEBUG - 2013-12-13 08:59:05 --> Helper loaded: url_helper DEBUG - 2013-12-13 08:59:05 --> Final output sent to browser DEBUG - 2013-12-13 08:59:05 --> Total execution time: 0.0464 DEBUG - 2013-12-13 08:59:05 --> Config Class Initialized DEBUG - 2013-12-13 08:59:05 --> Hooks Class Initialized DEBUG - 2013-12-13 08:59:05 --> Utf8 Class Initialized DEBUG - 2013-12-13 08:59:05 --> UTF-8 Support Enabled DEBUG - 2013-12-13 08:59:05 --> URI Class Initialized DEBUG - 2013-12-13 08:59:05 --> Router Class Initialized DEBUG - 2013-12-13 08:59:05 --> Output Class Initialized DEBUG - 2013-12-13 08:59:05 --> Security Class Initialized DEBUG - 2013-12-13 08:59:05 --> Input Class Initialized DEBUG - 2013-12-13 08:59:05 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 08:59:05 --> Language Class Initialized DEBUG - 2013-12-13 08:59:05 --> Loader Class Initialized DEBUG - 2013-12-13 08:59:05 --> Controller Class Initialized DEBUG - 2013-12-13 08:59:05 --> Model Class Initialized DEBUG - 2013-12-13 08:59:05 --> Database Driver Class Initialized DEBUG - 2013-12-13 08:59:05 --> Helper loaded: html_helper DEBUG - 2013-12-13 08:59:05 --> Helper loaded: url_helper DEBUG - 2013-12-13 08:59:05 --> Final output sent to browser DEBUG - 2013-12-13 08:59:05 --> Total execution time: 0.0348 DEBUG - 2013-12-13 08:59:12 --> Config Class Initialized DEBUG - 2013-12-13 08:59:12 --> Hooks Class Initialized DEBUG - 2013-12-13 08:59:12 --> Utf8 Class Initialized DEBUG - 2013-12-13 08:59:12 --> UTF-8 Support Enabled DEBUG - 2013-12-13 08:59:12 --> URI Class Initialized DEBUG - 2013-12-13 08:59:12 --> Router Class Initialized DEBUG - 2013-12-13 08:59:12 --> Output Class Initialized DEBUG - 2013-12-13 08:59:12 --> Security Class Initialized DEBUG - 2013-12-13 08:59:12 --> Input Class Initialized DEBUG - 2013-12-13 08:59:12 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 08:59:12 --> Language Class Initialized DEBUG - 2013-12-13 08:59:12 --> Loader Class Initialized DEBUG - 2013-12-13 08:59:12 --> Controller Class Initialized DEBUG - 2013-12-13 08:59:12 --> Model Class Initialized DEBUG - 2013-12-13 08:59:12 --> Database Driver Class Initialized DEBUG - 2013-12-13 08:59:12 --> Helper loaded: html_helper DEBUG - 2013-12-13 08:59:12 --> Helper loaded: url_helper DEBUG - 2013-12-13 08:59:12 --> File loaded: application/views/header.php DEBUG - 2013-12-13 08:59:12 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 08:59:12 --> Final output sent to browser DEBUG - 2013-12-13 08:59:12 --> Total execution time: 0.0397 DEBUG - 2013-12-13 08:59:14 --> Config Class Initialized DEBUG - 2013-12-13 08:59:14 --> Hooks Class Initialized DEBUG - 2013-12-13 08:59:14 --> Utf8 Class Initialized DEBUG - 2013-12-13 08:59:14 --> UTF-8 Support Enabled DEBUG - 2013-12-13 08:59:14 --> URI Class Initialized DEBUG - 2013-12-13 08:59:14 --> Router Class Initialized DEBUG - 2013-12-13 08:59:14 --> Output Class Initialized DEBUG - 2013-12-13 08:59:14 --> Security Class Initialized DEBUG - 2013-12-13 08:59:14 --> Input Class Initialized DEBUG - 2013-12-13 08:59:14 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 08:59:14 --> Language Class Initialized DEBUG - 2013-12-13 08:59:14 --> Loader Class Initialized DEBUG - 2013-12-13 08:59:14 --> Controller Class Initialized DEBUG - 2013-12-13 08:59:14 --> Model Class Initialized DEBUG - 2013-12-13 08:59:14 --> Database Driver Class Initialized DEBUG - 2013-12-13 08:59:14 --> Helper loaded: html_helper DEBUG - 2013-12-13 08:59:14 --> Helper loaded: url_helper DEBUG - 2013-12-13 08:59:14 --> Final output sent to browser DEBUG - 2013-12-13 08:59:14 --> Total execution time: 0.0537 DEBUG - 2013-12-13 08:59:14 --> Config Class Initialized DEBUG - 2013-12-13 08:59:14 --> Hooks Class Initialized DEBUG - 2013-12-13 08:59:14 --> Utf8 Class Initialized DEBUG - 2013-12-13 08:59:14 --> UTF-8 Support Enabled DEBUG - 2013-12-13 08:59:14 --> URI Class Initialized DEBUG - 2013-12-13 08:59:14 --> Router Class Initialized DEBUG - 2013-12-13 08:59:14 --> Output Class Initialized DEBUG - 2013-12-13 08:59:14 --> Security Class Initialized DEBUG - 2013-12-13 08:59:14 --> Input Class Initialized DEBUG - 2013-12-13 08:59:14 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 08:59:14 --> Language Class Initialized DEBUG - 2013-12-13 08:59:14 --> Loader Class Initialized DEBUG - 2013-12-13 08:59:14 --> Controller Class Initialized DEBUG - 2013-12-13 08:59:14 --> Model Class Initialized DEBUG - 2013-12-13 08:59:14 --> Database Driver Class Initialized DEBUG - 2013-12-13 08:59:14 --> Helper loaded: html_helper DEBUG - 2013-12-13 08:59:14 --> Helper loaded: url_helper DEBUG - 2013-12-13 08:59:14 --> Final output sent to browser DEBUG - 2013-12-13 08:59:14 --> Total execution time: 0.0330 DEBUG - 2013-12-13 08:59:19 --> Config Class Initialized DEBUG - 2013-12-13 08:59:19 --> Hooks Class Initialized DEBUG - 2013-12-13 08:59:19 --> Utf8 Class Initialized DEBUG - 2013-12-13 08:59:19 --> UTF-8 Support Enabled DEBUG - 2013-12-13 08:59:19 --> URI Class Initialized DEBUG - 2013-12-13 08:59:19 --> Router Class Initialized DEBUG - 2013-12-13 08:59:19 --> Output Class Initialized DEBUG - 2013-12-13 08:59:19 --> Security Class Initialized DEBUG - 2013-12-13 08:59:19 --> Input Class Initialized DEBUG - 2013-12-13 08:59:19 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 08:59:19 --> Language Class Initialized DEBUG - 2013-12-13 08:59:19 --> Loader Class Initialized DEBUG - 2013-12-13 08:59:19 --> Controller Class Initialized DEBUG - 2013-12-13 08:59:19 --> Model Class Initialized DEBUG - 2013-12-13 08:59:19 --> Database Driver Class Initialized DEBUG - 2013-12-13 08:59:19 --> Helper loaded: html_helper DEBUG - 2013-12-13 08:59:19 --> Helper loaded: url_helper DEBUG - 2013-12-13 08:59:19 --> File loaded: application/views/header.php DEBUG - 2013-12-13 08:59:19 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 08:59:19 --> Final output sent to browser DEBUG - 2013-12-13 08:59:19 --> Total execution time: 0.0478 DEBUG - 2013-12-13 08:59:21 --> Config Class Initialized DEBUG - 2013-12-13 08:59:21 --> Hooks Class Initialized DEBUG - 2013-12-13 08:59:21 --> Utf8 Class Initialized DEBUG - 2013-12-13 08:59:21 --> UTF-8 Support Enabled DEBUG - 2013-12-13 08:59:21 --> URI Class Initialized DEBUG - 2013-12-13 08:59:21 --> Router Class Initialized DEBUG - 2013-12-13 08:59:21 --> Output Class Initialized DEBUG - 2013-12-13 08:59:21 --> Security Class Initialized DEBUG - 2013-12-13 08:59:21 --> Input Class Initialized DEBUG - 2013-12-13 08:59:21 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 08:59:21 --> Language Class Initialized DEBUG - 2013-12-13 08:59:21 --> Loader Class Initialized DEBUG - 2013-12-13 08:59:21 --> Controller Class Initialized DEBUG - 2013-12-13 08:59:21 --> Model Class Initialized DEBUG - 2013-12-13 08:59:21 --> Database Driver Class Initialized DEBUG - 2013-12-13 08:59:21 --> Helper loaded: html_helper DEBUG - 2013-12-13 08:59:21 --> Helper loaded: url_helper DEBUG - 2013-12-13 08:59:21 --> Final output sent to browser DEBUG - 2013-12-13 08:59:21 --> Total execution time: 0.0435 DEBUG - 2013-12-13 08:59:21 --> Config Class Initialized DEBUG - 2013-12-13 08:59:21 --> Hooks Class Initialized DEBUG - 2013-12-13 08:59:21 --> Utf8 Class Initialized DEBUG - 2013-12-13 08:59:21 --> UTF-8 Support Enabled DEBUG - 2013-12-13 08:59:21 --> URI Class Initialized DEBUG - 2013-12-13 08:59:21 --> Router Class Initialized DEBUG - 2013-12-13 08:59:21 --> Output Class Initialized DEBUG - 2013-12-13 08:59:21 --> Security Class Initialized DEBUG - 2013-12-13 08:59:21 --> Input Class Initialized DEBUG - 2013-12-13 08:59:21 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 08:59:21 --> Language Class Initialized DEBUG - 2013-12-13 08:59:21 --> Loader Class Initialized DEBUG - 2013-12-13 08:59:21 --> Controller Class Initialized DEBUG - 2013-12-13 08:59:21 --> Model Class Initialized DEBUG - 2013-12-13 08:59:21 --> Database Driver Class Initialized DEBUG - 2013-12-13 08:59:21 --> Helper loaded: html_helper DEBUG - 2013-12-13 08:59:21 --> Helper loaded: url_helper DEBUG - 2013-12-13 08:59:21 --> DB Transaction Failure ERROR - 2013-12-13 08:59:21 --> Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '=> "1"' at line 1 DEBUG - 2013-12-13 08:59:21 --> Language file loaded: language/english/db_lang.php DEBUG - 2013-12-13 08:59:49 --> Config Class Initialized DEBUG - 2013-12-13 08:59:49 --> Hooks Class Initialized DEBUG - 2013-12-13 08:59:49 --> Utf8 Class Initialized DEBUG - 2013-12-13 08:59:49 --> UTF-8 Support Enabled DEBUG - 2013-12-13 08:59:49 --> URI Class Initialized DEBUG - 2013-12-13 08:59:49 --> Router Class Initialized DEBUG - 2013-12-13 08:59:49 --> Output Class Initialized DEBUG - 2013-12-13 08:59:49 --> Security Class Initialized DEBUG - 2013-12-13 08:59:49 --> Input Class Initialized DEBUG - 2013-12-13 08:59:49 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 08:59:49 --> Language Class Initialized DEBUG - 2013-12-13 08:59:49 --> Loader Class Initialized DEBUG - 2013-12-13 08:59:49 --> Controller Class Initialized DEBUG - 2013-12-13 08:59:49 --> Model Class Initialized DEBUG - 2013-12-13 08:59:49 --> Database Driver Class Initialized DEBUG - 2013-12-13 08:59:50 --> Helper loaded: html_helper DEBUG - 2013-12-13 08:59:50 --> Helper loaded: url_helper DEBUG - 2013-12-13 08:59:50 --> File loaded: application/views/header.php DEBUG - 2013-12-13 08:59:50 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 08:59:50 --> Final output sent to browser DEBUG - 2013-12-13 08:59:50 --> Total execution time: 0.0393 DEBUG - 2013-12-13 08:59:51 --> Config Class Initialized DEBUG - 2013-12-13 08:59:51 --> Hooks Class Initialized DEBUG - 2013-12-13 08:59:51 --> Utf8 Class Initialized DEBUG - 2013-12-13 08:59:51 --> UTF-8 Support Enabled DEBUG - 2013-12-13 08:59:51 --> URI Class Initialized DEBUG - 2013-12-13 08:59:51 --> Router Class Initialized DEBUG - 2013-12-13 08:59:51 --> Output Class Initialized DEBUG - 2013-12-13 08:59:51 --> Security Class Initialized DEBUG - 2013-12-13 08:59:51 --> Input Class Initialized DEBUG - 2013-12-13 08:59:51 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 08:59:51 --> Language Class Initialized DEBUG - 2013-12-13 08:59:51 --> Loader Class Initialized DEBUG - 2013-12-13 08:59:51 --> Controller Class Initialized DEBUG - 2013-12-13 08:59:51 --> Model Class Initialized DEBUG - 2013-12-13 08:59:51 --> Database Driver Class Initialized DEBUG - 2013-12-13 08:59:51 --> Helper loaded: html_helper DEBUG - 2013-12-13 08:59:51 --> Helper loaded: url_helper DEBUG - 2013-12-13 08:59:51 --> Final output sent to browser DEBUG - 2013-12-13 08:59:51 --> Total execution time: 0.0376 DEBUG - 2013-12-13 08:59:51 --> Config Class Initialized DEBUG - 2013-12-13 08:59:51 --> Hooks Class Initialized DEBUG - 2013-12-13 08:59:51 --> Utf8 Class Initialized DEBUG - 2013-12-13 08:59:51 --> UTF-8 Support Enabled DEBUG - 2013-12-13 08:59:51 --> URI Class Initialized DEBUG - 2013-12-13 08:59:51 --> Router Class Initialized DEBUG - 2013-12-13 08:59:51 --> Output Class Initialized DEBUG - 2013-12-13 08:59:51 --> Security Class Initialized DEBUG - 2013-12-13 08:59:51 --> Input Class Initialized DEBUG - 2013-12-13 08:59:51 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 08:59:51 --> Language Class Initialized DEBUG - 2013-12-13 08:59:51 --> Loader Class Initialized DEBUG - 2013-12-13 08:59:51 --> Controller Class Initialized DEBUG - 2013-12-13 08:59:51 --> Model Class Initialized DEBUG - 2013-12-13 08:59:51 --> Database Driver Class Initialized DEBUG - 2013-12-13 08:59:51 --> Helper loaded: html_helper DEBUG - 2013-12-13 08:59:51 --> Helper loaded: url_helper DEBUG - 2013-12-13 08:59:51 --> Final output sent to browser DEBUG - 2013-12-13 08:59:51 --> Total execution time: 0.0355 DEBUG - 2013-12-13 09:01:08 --> Config Class Initialized DEBUG - 2013-12-13 09:01:08 --> Hooks Class Initialized DEBUG - 2013-12-13 09:01:08 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:01:08 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:01:08 --> URI Class Initialized DEBUG - 2013-12-13 09:01:08 --> Router Class Initialized DEBUG - 2013-12-13 09:01:08 --> Output Class Initialized DEBUG - 2013-12-13 09:01:08 --> Security Class Initialized DEBUG - 2013-12-13 09:01:08 --> Input Class Initialized DEBUG - 2013-12-13 09:01:08 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:01:08 --> Language Class Initialized DEBUG - 2013-12-13 09:01:08 --> Loader Class Initialized DEBUG - 2013-12-13 09:01:08 --> Controller Class Initialized DEBUG - 2013-12-13 09:01:08 --> Model Class Initialized DEBUG - 2013-12-13 09:01:08 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:01:08 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:01:08 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:01:08 --> File loaded: application/views/header.php DEBUG - 2013-12-13 09:01:08 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 09:01:08 --> Final output sent to browser DEBUG - 2013-12-13 09:01:08 --> Total execution time: 0.0432 DEBUG - 2013-12-13 09:01:09 --> Config Class Initialized DEBUG - 2013-12-13 09:01:09 --> Hooks Class Initialized DEBUG - 2013-12-13 09:01:09 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:01:09 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:01:09 --> URI Class Initialized DEBUG - 2013-12-13 09:01:09 --> Router Class Initialized DEBUG - 2013-12-13 09:01:09 --> Output Class Initialized DEBUG - 2013-12-13 09:01:09 --> Security Class Initialized DEBUG - 2013-12-13 09:01:09 --> Input Class Initialized DEBUG - 2013-12-13 09:01:09 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:01:09 --> Language Class Initialized DEBUG - 2013-12-13 09:01:09 --> Loader Class Initialized DEBUG - 2013-12-13 09:01:09 --> Controller Class Initialized DEBUG - 2013-12-13 09:01:09 --> Model Class Initialized DEBUG - 2013-12-13 09:01:09 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:01:09 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:01:09 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:01:09 --> Final output sent to browser DEBUG - 2013-12-13 09:01:09 --> Total execution time: 0.0420 DEBUG - 2013-12-13 09:01:09 --> Config Class Initialized DEBUG - 2013-12-13 09:01:09 --> Hooks Class Initialized DEBUG - 2013-12-13 09:01:09 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:01:09 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:01:09 --> URI Class Initialized DEBUG - 2013-12-13 09:01:09 --> Router Class Initialized DEBUG - 2013-12-13 09:01:09 --> Output Class Initialized DEBUG - 2013-12-13 09:01:09 --> Security Class Initialized DEBUG - 2013-12-13 09:01:09 --> Input Class Initialized DEBUG - 2013-12-13 09:01:09 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:01:09 --> Language Class Initialized DEBUG - 2013-12-13 09:01:09 --> Loader Class Initialized DEBUG - 2013-12-13 09:01:09 --> Controller Class Initialized DEBUG - 2013-12-13 09:01:09 --> Model Class Initialized DEBUG - 2013-12-13 09:01:09 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:01:09 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:01:09 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:02:34 --> Config Class Initialized DEBUG - 2013-12-13 09:02:34 --> Hooks Class Initialized DEBUG - 2013-12-13 09:02:34 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:02:34 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:02:34 --> URI Class Initialized DEBUG - 2013-12-13 09:02:34 --> Router Class Initialized DEBUG - 2013-12-13 09:02:34 --> Output Class Initialized DEBUG - 2013-12-13 09:02:34 --> Security Class Initialized DEBUG - 2013-12-13 09:02:34 --> Input Class Initialized DEBUG - 2013-12-13 09:02:34 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:02:34 --> Language Class Initialized DEBUG - 2013-12-13 09:02:34 --> Loader Class Initialized DEBUG - 2013-12-13 09:02:34 --> Controller Class Initialized DEBUG - 2013-12-13 09:02:34 --> Model Class Initialized DEBUG - 2013-12-13 09:02:34 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:02:34 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:02:34 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:02:34 --> File loaded: application/views/header.php DEBUG - 2013-12-13 09:02:34 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 09:02:34 --> Final output sent to browser DEBUG - 2013-12-13 09:02:34 --> Total execution time: 0.0380 DEBUG - 2013-12-13 09:02:35 --> Config Class Initialized DEBUG - 2013-12-13 09:02:35 --> Hooks Class Initialized DEBUG - 2013-12-13 09:02:35 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:02:35 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:02:35 --> URI Class Initialized DEBUG - 2013-12-13 09:02:35 --> Router Class Initialized DEBUG - 2013-12-13 09:02:35 --> Output Class Initialized DEBUG - 2013-12-13 09:02:35 --> Security Class Initialized DEBUG - 2013-12-13 09:02:35 --> Input Class Initialized DEBUG - 2013-12-13 09:02:35 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:02:35 --> Language Class Initialized DEBUG - 2013-12-13 09:02:35 --> Loader Class Initialized DEBUG - 2013-12-13 09:02:35 --> Controller Class Initialized DEBUG - 2013-12-13 09:02:35 --> Model Class Initialized DEBUG - 2013-12-13 09:02:35 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:02:35 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:02:35 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:02:35 --> Final output sent to browser DEBUG - 2013-12-13 09:02:35 --> Total execution time: 0.0411 DEBUG - 2013-12-13 09:02:35 --> Config Class Initialized DEBUG - 2013-12-13 09:02:35 --> Hooks Class Initialized DEBUG - 2013-12-13 09:02:35 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:02:35 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:02:35 --> URI Class Initialized DEBUG - 2013-12-13 09:02:35 --> Router Class Initialized DEBUG - 2013-12-13 09:02:35 --> Output Class Initialized DEBUG - 2013-12-13 09:02:35 --> Security Class Initialized DEBUG - 2013-12-13 09:02:35 --> Input Class Initialized DEBUG - 2013-12-13 09:02:35 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:02:35 --> Language Class Initialized DEBUG - 2013-12-13 09:02:35 --> Loader Class Initialized DEBUG - 2013-12-13 09:02:35 --> Controller Class Initialized DEBUG - 2013-12-13 09:02:35 --> Model Class Initialized DEBUG - 2013-12-13 09:02:35 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:02:35 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:02:35 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:03:22 --> Config Class Initialized DEBUG - 2013-12-13 09:03:22 --> Hooks Class Initialized DEBUG - 2013-12-13 09:03:22 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:03:22 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:03:22 --> URI Class Initialized DEBUG - 2013-12-13 09:03:22 --> Router Class Initialized DEBUG - 2013-12-13 09:03:22 --> Output Class Initialized DEBUG - 2013-12-13 09:03:22 --> Security Class Initialized DEBUG - 2013-12-13 09:03:22 --> Input Class Initialized DEBUG - 2013-12-13 09:03:22 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:03:22 --> Language Class Initialized DEBUG - 2013-12-13 09:03:22 --> Loader Class Initialized DEBUG - 2013-12-13 09:03:22 --> Controller Class Initialized DEBUG - 2013-12-13 09:03:22 --> Model Class Initialized DEBUG - 2013-12-13 09:03:22 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:03:22 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:03:22 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:03:22 --> File loaded: application/views/header.php DEBUG - 2013-12-13 09:03:22 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 09:03:22 --> Final output sent to browser DEBUG - 2013-12-13 09:03:22 --> Total execution time: 0.0471 DEBUG - 2013-12-13 09:03:24 --> Config Class Initialized DEBUG - 2013-12-13 09:03:24 --> Hooks Class Initialized DEBUG - 2013-12-13 09:03:24 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:03:24 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:03:24 --> URI Class Initialized DEBUG - 2013-12-13 09:03:24 --> Router Class Initialized DEBUG - 2013-12-13 09:03:24 --> Output Class Initialized DEBUG - 2013-12-13 09:03:24 --> Security Class Initialized DEBUG - 2013-12-13 09:03:24 --> Input Class Initialized DEBUG - 2013-12-13 09:03:24 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:03:24 --> Language Class Initialized DEBUG - 2013-12-13 09:03:24 --> Loader Class Initialized DEBUG - 2013-12-13 09:03:24 --> Controller Class Initialized DEBUG - 2013-12-13 09:03:24 --> Model Class Initialized DEBUG - 2013-12-13 09:03:24 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:03:24 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:03:24 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:03:24 --> Final output sent to browser DEBUG - 2013-12-13 09:03:24 --> Total execution time: 0.0389 DEBUG - 2013-12-13 09:03:24 --> Config Class Initialized DEBUG - 2013-12-13 09:03:24 --> Hooks Class Initialized DEBUG - 2013-12-13 09:03:24 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:03:24 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:03:24 --> URI Class Initialized DEBUG - 2013-12-13 09:03:24 --> Router Class Initialized DEBUG - 2013-12-13 09:03:24 --> Output Class Initialized DEBUG - 2013-12-13 09:03:24 --> Security Class Initialized DEBUG - 2013-12-13 09:03:24 --> Input Class Initialized DEBUG - 2013-12-13 09:03:24 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:03:24 --> Language Class Initialized DEBUG - 2013-12-13 09:03:24 --> Loader Class Initialized DEBUG - 2013-12-13 09:03:24 --> Controller Class Initialized DEBUG - 2013-12-13 09:03:24 --> Model Class Initialized DEBUG - 2013-12-13 09:03:24 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:03:24 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:03:24 --> Helper loaded: url_helper ERROR - 2013-12-13 09:03:24 --> Severity: 4096 --> Object of class stdClass could not be converted to string /Users/calvin/Sites/Codeigniter/application/controllers/petitions.php 81 DEBUG - 2013-12-13 09:03:24 --> Final output sent to browser DEBUG - 2013-12-13 09:03:24 --> Total execution time: 0.0446 DEBUG - 2013-12-13 09:03:59 --> Config Class Initialized DEBUG - 2013-12-13 09:03:59 --> Hooks Class Initialized DEBUG - 2013-12-13 09:03:59 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:03:59 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:03:59 --> URI Class Initialized DEBUG - 2013-12-13 09:03:59 --> Router Class Initialized DEBUG - 2013-12-13 09:03:59 --> Output Class Initialized DEBUG - 2013-12-13 09:03:59 --> Security Class Initialized DEBUG - 2013-12-13 09:03:59 --> Input Class Initialized DEBUG - 2013-12-13 09:03:59 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:03:59 --> Language Class Initialized DEBUG - 2013-12-13 09:03:59 --> Loader Class Initialized DEBUG - 2013-12-13 09:03:59 --> Controller Class Initialized DEBUG - 2013-12-13 09:03:59 --> Model Class Initialized DEBUG - 2013-12-13 09:03:59 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:03:59 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:03:59 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:03:59 --> File loaded: application/views/header.php DEBUG - 2013-12-13 09:03:59 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 09:03:59 --> Final output sent to browser DEBUG - 2013-12-13 09:03:59 --> Total execution time: 0.0448 DEBUG - 2013-12-13 09:04:00 --> Config Class Initialized DEBUG - 2013-12-13 09:04:00 --> Hooks Class Initialized DEBUG - 2013-12-13 09:04:00 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:04:00 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:04:00 --> URI Class Initialized DEBUG - 2013-12-13 09:04:00 --> Router Class Initialized DEBUG - 2013-12-13 09:04:00 --> Output Class Initialized DEBUG - 2013-12-13 09:04:00 --> Security Class Initialized DEBUG - 2013-12-13 09:04:00 --> Input Class Initialized DEBUG - 2013-12-13 09:04:00 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:04:00 --> Language Class Initialized DEBUG - 2013-12-13 09:04:00 --> Loader Class Initialized DEBUG - 2013-12-13 09:04:00 --> Controller Class Initialized DEBUG - 2013-12-13 09:04:00 --> Model Class Initialized DEBUG - 2013-12-13 09:04:00 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:04:00 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:04:00 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:04:00 --> Final output sent to browser DEBUG - 2013-12-13 09:04:00 --> Total execution time: 0.0447 DEBUG - 2013-12-13 09:04:00 --> Config Class Initialized DEBUG - 2013-12-13 09:04:00 --> Hooks Class Initialized DEBUG - 2013-12-13 09:04:00 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:04:00 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:04:00 --> URI Class Initialized DEBUG - 2013-12-13 09:04:00 --> Router Class Initialized DEBUG - 2013-12-13 09:04:00 --> Output Class Initialized DEBUG - 2013-12-13 09:04:00 --> Security Class Initialized DEBUG - 2013-12-13 09:04:00 --> Input Class Initialized DEBUG - 2013-12-13 09:04:00 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:04:00 --> Language Class Initialized DEBUG - 2013-12-13 09:04:00 --> Loader Class Initialized DEBUG - 2013-12-13 09:04:00 --> Controller Class Initialized DEBUG - 2013-12-13 09:04:00 --> Model Class Initialized DEBUG - 2013-12-13 09:04:00 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:04:00 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:04:00 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:04:00 --> Final output sent to browser DEBUG - 2013-12-13 09:04:00 --> Total execution time: 0.0338 DEBUG - 2013-12-13 09:04:49 --> Config Class Initialized DEBUG - 2013-12-13 09:04:49 --> Hooks Class Initialized DEBUG - 2013-12-13 09:04:49 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:04:49 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:04:49 --> URI Class Initialized DEBUG - 2013-12-13 09:04:49 --> Router Class Initialized DEBUG - 2013-12-13 09:04:49 --> Output Class Initialized DEBUG - 2013-12-13 09:04:49 --> Security Class Initialized DEBUG - 2013-12-13 09:04:49 --> Input Class Initialized DEBUG - 2013-12-13 09:04:49 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:04:49 --> Language Class Initialized DEBUG - 2013-12-13 09:04:49 --> Loader Class Initialized DEBUG - 2013-12-13 09:04:49 --> Controller Class Initialized DEBUG - 2013-12-13 09:04:49 --> Model Class Initialized DEBUG - 2013-12-13 09:04:49 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:04:49 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:04:49 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:04:49 --> File loaded: application/views/header.php DEBUG - 2013-12-13 09:04:49 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 09:04:49 --> Final output sent to browser DEBUG - 2013-12-13 09:04:49 --> Total execution time: 0.0465 DEBUG - 2013-12-13 09:04:51 --> Config Class Initialized DEBUG - 2013-12-13 09:04:51 --> Hooks Class Initialized DEBUG - 2013-12-13 09:04:51 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:04:51 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:04:51 --> URI Class Initialized DEBUG - 2013-12-13 09:04:51 --> Router Class Initialized DEBUG - 2013-12-13 09:04:51 --> Output Class Initialized DEBUG - 2013-12-13 09:04:51 --> Security Class Initialized DEBUG - 2013-12-13 09:04:51 --> Input Class Initialized DEBUG - 2013-12-13 09:04:51 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:04:51 --> Language Class Initialized DEBUG - 2013-12-13 09:04:51 --> Loader Class Initialized DEBUG - 2013-12-13 09:04:51 --> Controller Class Initialized DEBUG - 2013-12-13 09:04:51 --> Model Class Initialized DEBUG - 2013-12-13 09:04:51 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:04:51 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:04:51 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:04:51 --> Final output sent to browser DEBUG - 2013-12-13 09:04:51 --> Total execution time: 0.0366 DEBUG - 2013-12-13 09:04:51 --> Config Class Initialized DEBUG - 2013-12-13 09:04:51 --> Hooks Class Initialized DEBUG - 2013-12-13 09:04:51 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:04:51 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:04:51 --> URI Class Initialized DEBUG - 2013-12-13 09:04:51 --> Router Class Initialized DEBUG - 2013-12-13 09:04:51 --> Output Class Initialized DEBUG - 2013-12-13 09:04:51 --> Security Class Initialized DEBUG - 2013-12-13 09:04:51 --> Input Class Initialized DEBUG - 2013-12-13 09:04:51 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:04:51 --> Language Class Initialized DEBUG - 2013-12-13 09:04:51 --> Loader Class Initialized DEBUG - 2013-12-13 09:04:51 --> Controller Class Initialized DEBUG - 2013-12-13 09:04:51 --> Model Class Initialized DEBUG - 2013-12-13 09:04:51 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:04:51 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:04:51 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:04:51 --> Final output sent to browser DEBUG - 2013-12-13 09:04:51 --> Total execution time: 0.0339 DEBUG - 2013-12-13 09:05:30 --> Config Class Initialized DEBUG - 2013-12-13 09:05:30 --> Hooks Class Initialized DEBUG - 2013-12-13 09:05:30 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:05:30 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:05:30 --> URI Class Initialized DEBUG - 2013-12-13 09:05:30 --> Router Class Initialized DEBUG - 2013-12-13 09:05:30 --> Output Class Initialized DEBUG - 2013-12-13 09:05:30 --> Security Class Initialized DEBUG - 2013-12-13 09:05:30 --> Input Class Initialized DEBUG - 2013-12-13 09:05:30 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:05:30 --> Language Class Initialized DEBUG - 2013-12-13 09:05:30 --> Loader Class Initialized DEBUG - 2013-12-13 09:05:30 --> Controller Class Initialized DEBUG - 2013-12-13 09:05:30 --> Model Class Initialized DEBUG - 2013-12-13 09:05:30 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:05:30 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:05:30 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:05:30 --> File loaded: application/views/header.php DEBUG - 2013-12-13 09:05:30 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 09:05:30 --> Final output sent to browser DEBUG - 2013-12-13 09:05:30 --> Total execution time: 0.0380 DEBUG - 2013-12-13 09:05:31 --> Config Class Initialized DEBUG - 2013-12-13 09:05:31 --> Hooks Class Initialized DEBUG - 2013-12-13 09:05:31 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:05:31 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:05:31 --> URI Class Initialized DEBUG - 2013-12-13 09:05:31 --> Router Class Initialized DEBUG - 2013-12-13 09:05:31 --> Output Class Initialized DEBUG - 2013-12-13 09:05:31 --> Security Class Initialized DEBUG - 2013-12-13 09:05:31 --> Input Class Initialized DEBUG - 2013-12-13 09:05:31 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:05:31 --> Language Class Initialized DEBUG - 2013-12-13 09:05:31 --> Loader Class Initialized DEBUG - 2013-12-13 09:05:31 --> Controller Class Initialized DEBUG - 2013-12-13 09:05:31 --> Model Class Initialized DEBUG - 2013-12-13 09:05:31 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:05:31 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:05:31 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:05:31 --> Final output sent to browser DEBUG - 2013-12-13 09:05:31 --> Total execution time: 0.0348 DEBUG - 2013-12-13 09:05:31 --> Config Class Initialized DEBUG - 2013-12-13 09:05:31 --> Hooks Class Initialized DEBUG - 2013-12-13 09:05:31 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:05:31 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:05:31 --> URI Class Initialized DEBUG - 2013-12-13 09:05:31 --> Router Class Initialized DEBUG - 2013-12-13 09:05:31 --> Output Class Initialized DEBUG - 2013-12-13 09:05:31 --> Security Class Initialized DEBUG - 2013-12-13 09:05:31 --> Input Class Initialized DEBUG - 2013-12-13 09:05:31 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:05:31 --> Language Class Initialized DEBUG - 2013-12-13 09:05:31 --> Loader Class Initialized DEBUG - 2013-12-13 09:05:31 --> Controller Class Initialized DEBUG - 2013-12-13 09:05:31 --> Model Class Initialized DEBUG - 2013-12-13 09:05:31 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:05:31 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:05:31 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:05:31 --> Final output sent to browser DEBUG - 2013-12-13 09:05:31 --> Total execution time: 0.0376 DEBUG - 2013-12-13 09:11:10 --> Config Class Initialized DEBUG - 2013-12-13 09:11:10 --> Hooks Class Initialized DEBUG - 2013-12-13 09:11:10 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:11:10 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:11:10 --> URI Class Initialized DEBUG - 2013-12-13 09:11:10 --> Router Class Initialized DEBUG - 2013-12-13 09:11:10 --> Output Class Initialized DEBUG - 2013-12-13 09:11:10 --> Security Class Initialized DEBUG - 2013-12-13 09:11:10 --> Input Class Initialized DEBUG - 2013-12-13 09:11:10 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:11:10 --> Language Class Initialized DEBUG - 2013-12-13 09:11:10 --> Loader Class Initialized DEBUG - 2013-12-13 09:11:10 --> Controller Class Initialized DEBUG - 2013-12-13 09:11:10 --> Model Class Initialized DEBUG - 2013-12-13 09:11:10 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:11:10 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:11:10 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:11:10 --> File loaded: application/views/header.php DEBUG - 2013-12-13 09:11:10 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 09:11:10 --> Final output sent to browser DEBUG - 2013-12-13 09:11:10 --> Total execution time: 0.0482 DEBUG - 2013-12-13 09:11:11 --> Config Class Initialized DEBUG - 2013-12-13 09:11:11 --> Hooks Class Initialized DEBUG - 2013-12-13 09:11:11 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:11:11 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:11:11 --> URI Class Initialized DEBUG - 2013-12-13 09:11:11 --> Router Class Initialized DEBUG - 2013-12-13 09:11:11 --> Output Class Initialized DEBUG - 2013-12-13 09:11:11 --> Security Class Initialized DEBUG - 2013-12-13 09:11:11 --> Input Class Initialized DEBUG - 2013-12-13 09:11:11 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:11:11 --> Language Class Initialized DEBUG - 2013-12-13 09:11:11 --> Loader Class Initialized DEBUG - 2013-12-13 09:11:11 --> Controller Class Initialized DEBUG - 2013-12-13 09:11:11 --> Model Class Initialized DEBUG - 2013-12-13 09:11:11 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:11:11 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:11:11 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:11:11 --> Final output sent to browser DEBUG - 2013-12-13 09:11:11 --> Total execution time: 0.0390 DEBUG - 2013-12-13 09:11:11 --> Config Class Initialized DEBUG - 2013-12-13 09:11:11 --> Hooks Class Initialized DEBUG - 2013-12-13 09:11:11 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:11:11 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:11:11 --> URI Class Initialized DEBUG - 2013-12-13 09:11:11 --> Router Class Initialized DEBUG - 2013-12-13 09:11:11 --> Output Class Initialized DEBUG - 2013-12-13 09:11:11 --> Security Class Initialized DEBUG - 2013-12-13 09:11:11 --> Input Class Initialized DEBUG - 2013-12-13 09:11:11 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:11:11 --> Language Class Initialized DEBUG - 2013-12-13 09:11:11 --> Loader Class Initialized DEBUG - 2013-12-13 09:11:11 --> Controller Class Initialized DEBUG - 2013-12-13 09:11:11 --> Model Class Initialized DEBUG - 2013-12-13 09:11:11 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:11:11 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:11:11 --> Helper loaded: url_helper ERROR - 2013-12-13 09:11:11 --> Severity: Warning --> file_put_contents(calvindcw:Hastings!1066@declaissedesigns.com/index.html) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: No such file or directory /Users/calvin/Sites/Codeigniter/application/models/Petition.php 204 DEBUG - 2013-12-13 09:11:11 --> Final output sent to browser DEBUG - 2013-12-13 09:11:11 --> Total execution time: 0.0363 DEBUG - 2013-12-13 09:13:14 --> Config Class Initialized DEBUG - 2013-12-13 09:13:14 --> Hooks Class Initialized DEBUG - 2013-12-13 09:13:14 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:13:14 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:13:14 --> URI Class Initialized DEBUG - 2013-12-13 09:13:14 --> Router Class Initialized DEBUG - 2013-12-13 09:13:14 --> Output Class Initialized DEBUG - 2013-12-13 09:13:14 --> Security Class Initialized DEBUG - 2013-12-13 09:13:14 --> Input Class Initialized DEBUG - 2013-12-13 09:13:14 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:13:14 --> Language Class Initialized DEBUG - 2013-12-13 09:13:14 --> Loader Class Initialized DEBUG - 2013-12-13 09:13:14 --> Controller Class Initialized DEBUG - 2013-12-13 09:13:14 --> Model Class Initialized DEBUG - 2013-12-13 09:13:14 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:13:14 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:13:14 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:13:14 --> File loaded: application/views/header.php DEBUG - 2013-12-13 09:13:14 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 09:13:14 --> Final output sent to browser DEBUG - 2013-12-13 09:13:14 --> Total execution time: 0.0506 DEBUG - 2013-12-13 09:13:15 --> Config Class Initialized DEBUG - 2013-12-13 09:13:15 --> Hooks Class Initialized DEBUG - 2013-12-13 09:13:15 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:13:15 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:13:15 --> URI Class Initialized DEBUG - 2013-12-13 09:13:15 --> Router Class Initialized DEBUG - 2013-12-13 09:13:15 --> Output Class Initialized DEBUG - 2013-12-13 09:13:15 --> Security Class Initialized DEBUG - 2013-12-13 09:13:15 --> Input Class Initialized DEBUG - 2013-12-13 09:13:15 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:13:15 --> Language Class Initialized DEBUG - 2013-12-13 09:13:15 --> Loader Class Initialized DEBUG - 2013-12-13 09:13:15 --> Controller Class Initialized DEBUG - 2013-12-13 09:13:15 --> Model Class Initialized DEBUG - 2013-12-13 09:13:15 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:13:15 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:13:15 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:13:15 --> Final output sent to browser DEBUG - 2013-12-13 09:13:15 --> Total execution time: 0.0363 DEBUG - 2013-12-13 09:13:15 --> Config Class Initialized DEBUG - 2013-12-13 09:13:15 --> Hooks Class Initialized DEBUG - 2013-12-13 09:13:15 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:13:15 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:13:15 --> URI Class Initialized DEBUG - 2013-12-13 09:13:15 --> Router Class Initialized DEBUG - 2013-12-13 09:13:15 --> Output Class Initialized DEBUG - 2013-12-13 09:13:15 --> Security Class Initialized DEBUG - 2013-12-13 09:13:15 --> Input Class Initialized DEBUG - 2013-12-13 09:13:15 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:13:15 --> Language Class Initialized DEBUG - 2013-12-13 09:13:15 --> Loader Class Initialized DEBUG - 2013-12-13 09:13:15 --> Controller Class Initialized DEBUG - 2013-12-13 09:13:15 --> Model Class Initialized DEBUG - 2013-12-13 09:13:15 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:13:15 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:13:15 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:13:16 --> Final output sent to browser DEBUG - 2013-12-13 09:13:16 --> Total execution time: 0.9128 DEBUG - 2013-12-13 09:15:48 --> Config Class Initialized DEBUG - 2013-12-13 09:15:48 --> Hooks Class Initialized DEBUG - 2013-12-13 09:15:48 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:15:48 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:15:48 --> URI Class Initialized DEBUG - 2013-12-13 09:15:48 --> Router Class Initialized DEBUG - 2013-12-13 09:15:48 --> Output Class Initialized DEBUG - 2013-12-13 09:15:48 --> Security Class Initialized DEBUG - 2013-12-13 09:15:48 --> Input Class Initialized DEBUG - 2013-12-13 09:15:48 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:15:48 --> Language Class Initialized DEBUG - 2013-12-13 09:15:48 --> Loader Class Initialized DEBUG - 2013-12-13 09:15:48 --> Controller Class Initialized DEBUG - 2013-12-13 09:15:48 --> Model Class Initialized DEBUG - 2013-12-13 09:15:48 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:15:48 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:15:48 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:15:48 --> File loaded: application/views/header.php DEBUG - 2013-12-13 09:15:48 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 09:15:48 --> Final output sent to browser DEBUG - 2013-12-13 09:15:48 --> Total execution time: 0.0440 DEBUG - 2013-12-13 09:16:18 --> Config Class Initialized DEBUG - 2013-12-13 09:16:18 --> Hooks Class Initialized DEBUG - 2013-12-13 09:16:18 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:16:18 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:16:18 --> URI Class Initialized DEBUG - 2013-12-13 09:16:18 --> Router Class Initialized DEBUG - 2013-12-13 09:16:18 --> Output Class Initialized DEBUG - 2013-12-13 09:16:18 --> Security Class Initialized DEBUG - 2013-12-13 09:16:18 --> Input Class Initialized DEBUG - 2013-12-13 09:16:18 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:16:18 --> Language Class Initialized DEBUG - 2013-12-13 09:16:18 --> Loader Class Initialized DEBUG - 2013-12-13 09:16:18 --> Controller Class Initialized DEBUG - 2013-12-13 09:16:18 --> Model Class Initialized DEBUG - 2013-12-13 09:16:18 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:16:18 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:16:18 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:16:18 --> File loaded: application/views/header.php DEBUG - 2013-12-13 09:16:18 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 09:16:18 --> Final output sent to browser DEBUG - 2013-12-13 09:16:18 --> Total execution time: 0.0449 DEBUG - 2013-12-13 09:16:20 --> Config Class Initialized DEBUG - 2013-12-13 09:16:20 --> Hooks Class Initialized DEBUG - 2013-12-13 09:16:20 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:16:20 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:16:20 --> URI Class Initialized DEBUG - 2013-12-13 09:16:20 --> Router Class Initialized DEBUG - 2013-12-13 09:16:20 --> Output Class Initialized DEBUG - 2013-12-13 09:16:20 --> Security Class Initialized DEBUG - 2013-12-13 09:16:20 --> Input Class Initialized DEBUG - 2013-12-13 09:16:20 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:16:20 --> Language Class Initialized DEBUG - 2013-12-13 09:16:20 --> Loader Class Initialized DEBUG - 2013-12-13 09:16:20 --> Controller Class Initialized DEBUG - 2013-12-13 09:16:20 --> Model Class Initialized DEBUG - 2013-12-13 09:16:20 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:16:20 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:16:20 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:16:20 --> Final output sent to browser DEBUG - 2013-12-13 09:16:20 --> Total execution time: 0.0411 DEBUG - 2013-12-13 09:16:20 --> Config Class Initialized DEBUG - 2013-12-13 09:16:20 --> Hooks Class Initialized DEBUG - 2013-12-13 09:16:20 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:16:20 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:16:20 --> URI Class Initialized DEBUG - 2013-12-13 09:16:20 --> Router Class Initialized DEBUG - 2013-12-13 09:16:20 --> Output Class Initialized DEBUG - 2013-12-13 09:16:20 --> Security Class Initialized DEBUG - 2013-12-13 09:16:20 --> Input Class Initialized DEBUG - 2013-12-13 09:16:20 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:16:20 --> Language Class Initialized DEBUG - 2013-12-13 09:16:20 --> Loader Class Initialized DEBUG - 2013-12-13 09:16:20 --> Controller Class Initialized DEBUG - 2013-12-13 09:16:20 --> Model Class Initialized DEBUG - 2013-12-13 09:16:20 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:16:20 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:16:20 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:16:20 --> Final output sent to browser DEBUG - 2013-12-13 09:16:20 --> Total execution time: 0.0356 DEBUG - 2013-12-13 09:20:20 --> Config Class Initialized DEBUG - 2013-12-13 09:20:20 --> Hooks Class Initialized DEBUG - 2013-12-13 09:20:20 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:20:20 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:20:20 --> URI Class Initialized DEBUG - 2013-12-13 09:20:20 --> Router Class Initialized DEBUG - 2013-12-13 09:20:20 --> Output Class Initialized DEBUG - 2013-12-13 09:20:20 --> Security Class Initialized DEBUG - 2013-12-13 09:20:20 --> Input Class Initialized DEBUG - 2013-12-13 09:20:20 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:20:20 --> Language Class Initialized DEBUG - 2013-12-13 09:20:20 --> Loader Class Initialized DEBUG - 2013-12-13 09:20:20 --> Controller Class Initialized DEBUG - 2013-12-13 09:20:20 --> Model Class Initialized DEBUG - 2013-12-13 09:20:20 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:20:20 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:20:20 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:20:20 --> File loaded: application/views/header.php DEBUG - 2013-12-13 09:20:20 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 09:20:20 --> Final output sent to browser DEBUG - 2013-12-13 09:20:20 --> Total execution time: 0.1626 DEBUG - 2013-12-13 09:20:21 --> Config Class Initialized DEBUG - 2013-12-13 09:20:21 --> Hooks Class Initialized DEBUG - 2013-12-13 09:20:21 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:20:21 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:20:21 --> URI Class Initialized DEBUG - 2013-12-13 09:20:21 --> Router Class Initialized DEBUG - 2013-12-13 09:20:21 --> Output Class Initialized DEBUG - 2013-12-13 09:20:21 --> Security Class Initialized DEBUG - 2013-12-13 09:20:21 --> Input Class Initialized DEBUG - 2013-12-13 09:20:22 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:20:22 --> Language Class Initialized DEBUG - 2013-12-13 09:20:22 --> Loader Class Initialized DEBUG - 2013-12-13 09:20:22 --> Controller Class Initialized DEBUG - 2013-12-13 09:20:22 --> Model Class Initialized DEBUG - 2013-12-13 09:20:22 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:20:22 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:20:22 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:20:22 --> Final output sent to browser DEBUG - 2013-12-13 09:20:22 --> Total execution time: 0.3469 DEBUG - 2013-12-13 09:20:22 --> Config Class Initialized DEBUG - 2013-12-13 09:20:22 --> Hooks Class Initialized DEBUG - 2013-12-13 09:20:22 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:20:22 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:20:22 --> URI Class Initialized DEBUG - 2013-12-13 09:20:22 --> Router Class Initialized DEBUG - 2013-12-13 09:20:22 --> Output Class Initialized DEBUG - 2013-12-13 09:20:22 --> Security Class Initialized DEBUG - 2013-12-13 09:20:22 --> Input Class Initialized DEBUG - 2013-12-13 09:20:22 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:20:22 --> Language Class Initialized DEBUG - 2013-12-13 09:20:22 --> Loader Class Initialized DEBUG - 2013-12-13 09:20:22 --> Controller Class Initialized DEBUG - 2013-12-13 09:20:22 --> Model Class Initialized DEBUG - 2013-12-13 09:20:22 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:20:22 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:20:22 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:20:22 --> Final output sent to browser DEBUG - 2013-12-13 09:20:22 --> Total execution time: 0.0978 DEBUG - 2013-12-13 09:25:56 --> Config Class Initialized DEBUG - 2013-12-13 09:25:56 --> Hooks Class Initialized DEBUG - 2013-12-13 09:25:56 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:25:56 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:25:56 --> URI Class Initialized DEBUG - 2013-12-13 09:25:56 --> Router Class Initialized DEBUG - 2013-12-13 09:25:56 --> Output Class Initialized DEBUG - 2013-12-13 09:25:56 --> Security Class Initialized DEBUG - 2013-12-13 09:25:56 --> Input Class Initialized DEBUG - 2013-12-13 09:25:56 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:25:56 --> Language Class Initialized DEBUG - 2013-12-13 09:25:56 --> Loader Class Initialized DEBUG - 2013-12-13 09:25:56 --> Controller Class Initialized DEBUG - 2013-12-13 09:25:56 --> Model Class Initialized DEBUG - 2013-12-13 09:25:56 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:25:56 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:25:56 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:25:56 --> File loaded: application/views/header.php DEBUG - 2013-12-13 09:25:56 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 09:25:56 --> Final output sent to browser DEBUG - 2013-12-13 09:25:56 --> Total execution time: 0.0508 DEBUG - 2013-12-13 09:25:58 --> Config Class Initialized DEBUG - 2013-12-13 09:25:58 --> Hooks Class Initialized DEBUG - 2013-12-13 09:25:58 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:25:58 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:25:58 --> URI Class Initialized DEBUG - 2013-12-13 09:25:58 --> Router Class Initialized DEBUG - 2013-12-13 09:25:58 --> Output Class Initialized DEBUG - 2013-12-13 09:25:58 --> Security Class Initialized DEBUG - 2013-12-13 09:25:58 --> Input Class Initialized DEBUG - 2013-12-13 09:25:58 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:25:58 --> Language Class Initialized DEBUG - 2013-12-13 09:25:58 --> Loader Class Initialized DEBUG - 2013-12-13 09:25:58 --> Controller Class Initialized DEBUG - 2013-12-13 09:25:58 --> Model Class Initialized DEBUG - 2013-12-13 09:25:58 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:25:58 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:25:58 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:25:58 --> Final output sent to browser DEBUG - 2013-12-13 09:25:58 --> Total execution time: 0.0391 DEBUG - 2013-12-13 09:25:58 --> Config Class Initialized DEBUG - 2013-12-13 09:25:58 --> Hooks Class Initialized DEBUG - 2013-12-13 09:25:58 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:25:58 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:25:58 --> URI Class Initialized DEBUG - 2013-12-13 09:25:58 --> Router Class Initialized DEBUG - 2013-12-13 09:25:58 --> Output Class Initialized DEBUG - 2013-12-13 09:25:58 --> Security Class Initialized DEBUG - 2013-12-13 09:25:58 --> Input Class Initialized DEBUG - 2013-12-13 09:25:58 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:25:58 --> Language Class Initialized DEBUG - 2013-12-13 09:25:58 --> Loader Class Initialized DEBUG - 2013-12-13 09:25:58 --> Controller Class Initialized DEBUG - 2013-12-13 09:25:58 --> Model Class Initialized DEBUG - 2013-12-13 09:25:58 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:25:58 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:25:58 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:25:58 --> Final output sent to browser DEBUG - 2013-12-13 09:25:58 --> Total execution time: 0.0382 DEBUG - 2013-12-13 09:31:43 --> Config Class Initialized DEBUG - 2013-12-13 09:31:43 --> Hooks Class Initialized DEBUG - 2013-12-13 09:31:43 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:31:43 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:31:43 --> URI Class Initialized DEBUG - 2013-12-13 09:31:43 --> Router Class Initialized DEBUG - 2013-12-13 09:31:43 --> Output Class Initialized DEBUG - 2013-12-13 09:31:43 --> Security Class Initialized DEBUG - 2013-12-13 09:31:43 --> Input Class Initialized DEBUG - 2013-12-13 09:31:43 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:31:43 --> Language Class Initialized DEBUG - 2013-12-13 09:31:43 --> Loader Class Initialized DEBUG - 2013-12-13 09:31:43 --> Controller Class Initialized DEBUG - 2013-12-13 09:31:43 --> Model Class Initialized DEBUG - 2013-12-13 09:31:43 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:31:43 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:31:43 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:31:43 --> File loaded: application/views/header.php DEBUG - 2013-12-13 09:31:43 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 09:31:43 --> Final output sent to browser DEBUG - 2013-12-13 09:31:43 --> Total execution time: 0.0477 DEBUG - 2013-12-13 09:32:26 --> Config Class Initialized DEBUG - 2013-12-13 09:32:26 --> Hooks Class Initialized DEBUG - 2013-12-13 09:32:26 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:32:26 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:32:26 --> URI Class Initialized DEBUG - 2013-12-13 09:32:26 --> Router Class Initialized DEBUG - 2013-12-13 09:32:26 --> Output Class Initialized DEBUG - 2013-12-13 09:32:26 --> Security Class Initialized DEBUG - 2013-12-13 09:32:26 --> Input Class Initialized DEBUG - 2013-12-13 09:32:26 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:32:26 --> Language Class Initialized DEBUG - 2013-12-13 09:32:26 --> Loader Class Initialized DEBUG - 2013-12-13 09:32:26 --> Controller Class Initialized DEBUG - 2013-12-13 09:32:27 --> Model Class Initialized DEBUG - 2013-12-13 09:32:27 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:32:27 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:32:27 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:32:27 --> File loaded: application/views/header.php DEBUG - 2013-12-13 09:32:27 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 09:32:27 --> Final output sent to browser DEBUG - 2013-12-13 09:32:27 --> Total execution time: 0.0446 DEBUG - 2013-12-13 09:36:56 --> Config Class Initialized DEBUG - 2013-12-13 09:36:56 --> Hooks Class Initialized DEBUG - 2013-12-13 09:36:56 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:36:56 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:36:56 --> URI Class Initialized DEBUG - 2013-12-13 09:36:56 --> Router Class Initialized DEBUG - 2013-12-13 09:36:56 --> Output Class Initialized DEBUG - 2013-12-13 09:36:56 --> Security Class Initialized DEBUG - 2013-12-13 09:36:56 --> Input Class Initialized DEBUG - 2013-12-13 09:36:56 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:36:56 --> Language Class Initialized DEBUG - 2013-12-13 09:36:56 --> Loader Class Initialized DEBUG - 2013-12-13 09:36:56 --> Controller Class Initialized DEBUG - 2013-12-13 09:36:56 --> Model Class Initialized DEBUG - 2013-12-13 09:36:56 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:36:56 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:36:56 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:36:56 --> File loaded: application/views/header.php DEBUG - 2013-12-13 09:36:56 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 09:36:56 --> Final output sent to browser DEBUG - 2013-12-13 09:36:56 --> Total execution time: 0.0502 DEBUG - 2013-12-13 09:37:02 --> Config Class Initialized DEBUG - 2013-12-13 09:37:02 --> Hooks Class Initialized DEBUG - 2013-12-13 09:37:02 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:37:02 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:37:02 --> URI Class Initialized DEBUG - 2013-12-13 09:37:02 --> Router Class Initialized DEBUG - 2013-12-13 09:37:02 --> Output Class Initialized DEBUG - 2013-12-13 09:37:02 --> Security Class Initialized DEBUG - 2013-12-13 09:37:02 --> Input Class Initialized DEBUG - 2013-12-13 09:37:02 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:37:02 --> Language Class Initialized DEBUG - 2013-12-13 09:37:02 --> Loader Class Initialized DEBUG - 2013-12-13 09:37:02 --> Controller Class Initialized DEBUG - 2013-12-13 09:37:02 --> Model Class Initialized DEBUG - 2013-12-13 09:37:02 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:37:02 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:37:02 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:37:02 --> Final output sent to browser DEBUG - 2013-12-13 09:37:02 --> Total execution time: 0.0432 DEBUG - 2013-12-13 09:37:02 --> Config Class Initialized DEBUG - 2013-12-13 09:37:02 --> Hooks Class Initialized DEBUG - 2013-12-13 09:37:02 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:37:02 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:37:02 --> URI Class Initialized DEBUG - 2013-12-13 09:37:02 --> Router Class Initialized DEBUG - 2013-12-13 09:37:02 --> Output Class Initialized DEBUG - 2013-12-13 09:37:02 --> Security Class Initialized DEBUG - 2013-12-13 09:37:02 --> Input Class Initialized DEBUG - 2013-12-13 09:37:02 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:37:02 --> Language Class Initialized DEBUG - 2013-12-13 09:37:02 --> Loader Class Initialized DEBUG - 2013-12-13 09:37:02 --> Controller Class Initialized DEBUG - 2013-12-13 09:37:02 --> Model Class Initialized DEBUG - 2013-12-13 09:37:02 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:37:02 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:37:02 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:37:02 --> Final output sent to browser DEBUG - 2013-12-13 09:37:02 --> Total execution time: 0.0360 DEBUG - 2013-12-13 09:38:16 --> Config Class Initialized DEBUG - 2013-12-13 09:38:16 --> Hooks Class Initialized DEBUG - 2013-12-13 09:38:16 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:38:16 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:38:16 --> URI Class Initialized DEBUG - 2013-12-13 09:38:16 --> Router Class Initialized DEBUG - 2013-12-13 09:38:16 --> Output Class Initialized DEBUG - 2013-12-13 09:38:16 --> Security Class Initialized DEBUG - 2013-12-13 09:38:16 --> Input Class Initialized DEBUG - 2013-12-13 09:38:16 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:38:16 --> Language Class Initialized DEBUG - 2013-12-13 09:38:16 --> Loader Class Initialized DEBUG - 2013-12-13 09:38:16 --> Controller Class Initialized DEBUG - 2013-12-13 09:38:16 --> Model Class Initialized DEBUG - 2013-12-13 09:38:16 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:38:16 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:38:16 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:38:16 --> File loaded: application/views/header.php DEBUG - 2013-12-13 09:38:16 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 09:38:16 --> Final output sent to browser DEBUG - 2013-12-13 09:38:16 --> Total execution time: 0.0504 DEBUG - 2013-12-13 09:38:22 --> Config Class Initialized DEBUG - 2013-12-13 09:38:22 --> Hooks Class Initialized DEBUG - 2013-12-13 09:38:22 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:38:22 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:38:22 --> URI Class Initialized DEBUG - 2013-12-13 09:38:22 --> Router Class Initialized DEBUG - 2013-12-13 09:38:22 --> Output Class Initialized DEBUG - 2013-12-13 09:38:22 --> Security Class Initialized DEBUG - 2013-12-13 09:38:22 --> Input Class Initialized DEBUG - 2013-12-13 09:38:22 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:38:22 --> Language Class Initialized DEBUG - 2013-12-13 09:38:22 --> Loader Class Initialized DEBUG - 2013-12-13 09:38:22 --> Controller Class Initialized DEBUG - 2013-12-13 09:38:23 --> Model Class Initialized DEBUG - 2013-12-13 09:38:23 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:38:23 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:38:23 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:38:23 --> Final output sent to browser DEBUG - 2013-12-13 09:38:23 --> Total execution time: 0.3519 DEBUG - 2013-12-13 09:38:23 --> Config Class Initialized DEBUG - 2013-12-13 09:38:23 --> Hooks Class Initialized DEBUG - 2013-12-13 09:38:23 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:38:23 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:38:23 --> URI Class Initialized DEBUG - 2013-12-13 09:38:23 --> Router Class Initialized DEBUG - 2013-12-13 09:38:23 --> Output Class Initialized DEBUG - 2013-12-13 09:38:23 --> Security Class Initialized DEBUG - 2013-12-13 09:38:23 --> Input Class Initialized DEBUG - 2013-12-13 09:38:23 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:38:23 --> Language Class Initialized DEBUG - 2013-12-13 09:38:23 --> Loader Class Initialized DEBUG - 2013-12-13 09:38:23 --> Controller Class Initialized DEBUG - 2013-12-13 09:38:23 --> Model Class Initialized DEBUG - 2013-12-13 09:38:23 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:38:23 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:38:23 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:38:23 --> Final output sent to browser DEBUG - 2013-12-13 09:38:23 --> Total execution time: 0.0341 DEBUG - 2013-12-13 09:41:19 --> Config Class Initialized DEBUG - 2013-12-13 09:41:19 --> Hooks Class Initialized DEBUG - 2013-12-13 09:41:19 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:41:19 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:41:19 --> URI Class Initialized DEBUG - 2013-12-13 09:41:19 --> Router Class Initialized DEBUG - 2013-12-13 09:41:19 --> Output Class Initialized DEBUG - 2013-12-13 09:41:19 --> Security Class Initialized DEBUG - 2013-12-13 09:41:19 --> Input Class Initialized DEBUG - 2013-12-13 09:41:19 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:41:19 --> Language Class Initialized DEBUG - 2013-12-13 09:41:19 --> Loader Class Initialized DEBUG - 2013-12-13 09:41:19 --> Controller Class Initialized DEBUG - 2013-12-13 09:41:19 --> Model Class Initialized DEBUG - 2013-12-13 09:41:19 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:41:19 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:41:19 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:41:19 --> File loaded: application/views/header.php DEBUG - 2013-12-13 09:41:19 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 09:41:19 --> Final output sent to browser DEBUG - 2013-12-13 09:41:19 --> Total execution time: 0.0443 DEBUG - 2013-12-13 09:41:24 --> Config Class Initialized DEBUG - 2013-12-13 09:41:24 --> Hooks Class Initialized DEBUG - 2013-12-13 09:41:24 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:41:24 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:41:24 --> URI Class Initialized DEBUG - 2013-12-13 09:41:24 --> Router Class Initialized DEBUG - 2013-12-13 09:41:24 --> Output Class Initialized DEBUG - 2013-12-13 09:41:24 --> Security Class Initialized DEBUG - 2013-12-13 09:41:24 --> Input Class Initialized DEBUG - 2013-12-13 09:41:24 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:41:24 --> Language Class Initialized DEBUG - 2013-12-13 09:41:24 --> Loader Class Initialized DEBUG - 2013-12-13 09:41:24 --> Controller Class Initialized DEBUG - 2013-12-13 09:41:24 --> Model Class Initialized DEBUG - 2013-12-13 09:41:24 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:41:24 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:41:24 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:41:24 --> Final output sent to browser DEBUG - 2013-12-13 09:41:24 --> Total execution time: 0.0481 DEBUG - 2013-12-13 09:41:24 --> Config Class Initialized DEBUG - 2013-12-13 09:41:24 --> Hooks Class Initialized DEBUG - 2013-12-13 09:41:24 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:41:24 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:41:24 --> URI Class Initialized DEBUG - 2013-12-13 09:41:24 --> Router Class Initialized DEBUG - 2013-12-13 09:41:24 --> Output Class Initialized DEBUG - 2013-12-13 09:41:24 --> Security Class Initialized DEBUG - 2013-12-13 09:41:24 --> Input Class Initialized DEBUG - 2013-12-13 09:41:24 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:41:24 --> Language Class Initialized DEBUG - 2013-12-13 09:41:24 --> Loader Class Initialized DEBUG - 2013-12-13 09:41:24 --> Controller Class Initialized DEBUG - 2013-12-13 09:41:24 --> Model Class Initialized DEBUG - 2013-12-13 09:41:24 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:41:24 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:41:24 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:41:25 --> Final output sent to browser DEBUG - 2013-12-13 09:41:25 --> Total execution time: 0.9479 DEBUG - 2013-12-13 09:43:15 --> Config Class Initialized DEBUG - 2013-12-13 09:43:15 --> Hooks Class Initialized DEBUG - 2013-12-13 09:43:15 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:43:15 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:43:15 --> URI Class Initialized DEBUG - 2013-12-13 09:43:15 --> Router Class Initialized DEBUG - 2013-12-13 09:43:15 --> Output Class Initialized DEBUG - 2013-12-13 09:43:15 --> Security Class Initialized DEBUG - 2013-12-13 09:43:15 --> Input Class Initialized DEBUG - 2013-12-13 09:43:15 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:43:15 --> Language Class Initialized DEBUG - 2013-12-13 09:43:15 --> Loader Class Initialized DEBUG - 2013-12-13 09:43:15 --> Controller Class Initialized DEBUG - 2013-12-13 09:43:15 --> Model Class Initialized DEBUG - 2013-12-13 09:43:15 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:43:15 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:43:15 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:43:15 --> File loaded: application/views/header.php DEBUG - 2013-12-13 09:43:15 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 09:43:15 --> Final output sent to browser DEBUG - 2013-12-13 09:43:15 --> Total execution time: 0.0497 DEBUG - 2013-12-13 09:43:17 --> Config Class Initialized DEBUG - 2013-12-13 09:43:17 --> Hooks Class Initialized DEBUG - 2013-12-13 09:43:17 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:43:17 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:43:17 --> URI Class Initialized DEBUG - 2013-12-13 09:43:17 --> Router Class Initialized DEBUG - 2013-12-13 09:43:17 --> Output Class Initialized DEBUG - 2013-12-13 09:43:17 --> Security Class Initialized DEBUG - 2013-12-13 09:43:17 --> Input Class Initialized DEBUG - 2013-12-13 09:43:17 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:43:17 --> Language Class Initialized DEBUG - 2013-12-13 09:43:17 --> Loader Class Initialized DEBUG - 2013-12-13 09:43:17 --> Controller Class Initialized DEBUG - 2013-12-13 09:43:17 --> Model Class Initialized DEBUG - 2013-12-13 09:43:17 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:43:17 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:43:17 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:43:17 --> Final output sent to browser DEBUG - 2013-12-13 09:43:17 --> Total execution time: 0.0439 DEBUG - 2013-12-13 09:43:17 --> Config Class Initialized DEBUG - 2013-12-13 09:43:17 --> Hooks Class Initialized DEBUG - 2013-12-13 09:43:17 --> Utf8 Class Initialized DEBUG - 2013-12-13 09:43:17 --> UTF-8 Support Enabled DEBUG - 2013-12-13 09:43:17 --> URI Class Initialized DEBUG - 2013-12-13 09:43:17 --> Router Class Initialized DEBUG - 2013-12-13 09:43:17 --> Output Class Initialized DEBUG - 2013-12-13 09:43:17 --> Security Class Initialized DEBUG - 2013-12-13 09:43:17 --> Input Class Initialized DEBUG - 2013-12-13 09:43:17 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 09:43:17 --> Language Class Initialized DEBUG - 2013-12-13 09:43:17 --> Loader Class Initialized DEBUG - 2013-12-13 09:43:17 --> Controller Class Initialized DEBUG - 2013-12-13 09:43:17 --> Model Class Initialized DEBUG - 2013-12-13 09:43:17 --> Database Driver Class Initialized DEBUG - 2013-12-13 09:43:17 --> Helper loaded: html_helper DEBUG - 2013-12-13 09:43:17 --> Helper loaded: url_helper DEBUG - 2013-12-13 09:43:18 --> Final output sent to browser DEBUG - 2013-12-13 09:43:18 --> Total execution time: 1.0245 DEBUG - 2013-12-13 10:56:31 --> Config Class Initialized DEBUG - 2013-12-13 10:56:31 --> Hooks Class Initialized DEBUG - 2013-12-13 10:56:31 --> Utf8 Class Initialized DEBUG - 2013-12-13 10:56:31 --> UTF-8 Support Enabled DEBUG - 2013-12-13 10:56:31 --> URI Class Initialized DEBUG - 2013-12-13 10:56:31 --> Router Class Initialized DEBUG - 2013-12-13 10:56:32 --> Output Class Initialized DEBUG - 2013-12-13 10:56:32 --> Security Class Initialized DEBUG - 2013-12-13 10:56:32 --> Input Class Initialized DEBUG - 2013-12-13 10:56:32 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 10:56:32 --> Language Class Initialized DEBUG - 2013-12-13 10:56:32 --> Loader Class Initialized DEBUG - 2013-12-13 10:56:32 --> Controller Class Initialized DEBUG - 2013-12-13 10:56:32 --> Model Class Initialized DEBUG - 2013-12-13 10:56:32 --> Database Driver Class Initialized DEBUG - 2013-12-13 10:56:32 --> Helper loaded: html_helper DEBUG - 2013-12-13 10:56:32 --> Helper loaded: url_helper DEBUG - 2013-12-13 10:56:32 --> File loaded: application/views/header.php DEBUG - 2013-12-13 10:56:32 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 10:56:32 --> Final output sent to browser DEBUG - 2013-12-13 10:56:32 --> Total execution time: 0.2305 DEBUG - 2013-12-13 10:56:33 --> Config Class Initialized DEBUG - 2013-12-13 10:56:33 --> Hooks Class Initialized DEBUG - 2013-12-13 10:56:33 --> Utf8 Class Initialized DEBUG - 2013-12-13 10:56:33 --> UTF-8 Support Enabled DEBUG - 2013-12-13 10:56:33 --> URI Class Initialized DEBUG - 2013-12-13 10:56:33 --> Router Class Initialized DEBUG - 2013-12-13 10:56:33 --> Output Class Initialized DEBUG - 2013-12-13 10:56:33 --> Security Class Initialized DEBUG - 2013-12-13 10:56:33 --> Input Class Initialized DEBUG - 2013-12-13 10:56:33 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 10:56:33 --> Language Class Initialized DEBUG - 2013-12-13 10:56:33 --> Loader Class Initialized DEBUG - 2013-12-13 10:56:33 --> Controller Class Initialized DEBUG - 2013-12-13 10:56:33 --> Model Class Initialized DEBUG - 2013-12-13 10:56:33 --> Database Driver Class Initialized DEBUG - 2013-12-13 10:56:33 --> Helper loaded: html_helper DEBUG - 2013-12-13 10:56:33 --> Helper loaded: url_helper DEBUG - 2013-12-13 10:56:33 --> Final output sent to browser DEBUG - 2013-12-13 10:56:33 --> Total execution time: 0.0698 DEBUG - 2013-12-13 10:56:33 --> Config Class Initialized DEBUG - 2013-12-13 10:56:33 --> Hooks Class Initialized DEBUG - 2013-12-13 10:56:33 --> Utf8 Class Initialized DEBUG - 2013-12-13 10:56:33 --> UTF-8 Support Enabled DEBUG - 2013-12-13 10:56:33 --> URI Class Initialized DEBUG - 2013-12-13 10:56:33 --> Router Class Initialized DEBUG - 2013-12-13 10:56:33 --> Output Class Initialized DEBUG - 2013-12-13 10:56:33 --> Security Class Initialized DEBUG - 2013-12-13 10:56:33 --> Input Class Initialized DEBUG - 2013-12-13 10:56:33 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 10:56:33 --> Language Class Initialized DEBUG - 2013-12-13 10:56:33 --> Loader Class Initialized DEBUG - 2013-12-13 10:56:33 --> Controller Class Initialized DEBUG - 2013-12-13 10:56:33 --> Model Class Initialized DEBUG - 2013-12-13 10:56:33 --> Database Driver Class Initialized DEBUG - 2013-12-13 10:56:33 --> Helper loaded: html_helper DEBUG - 2013-12-13 10:56:33 --> Helper loaded: url_helper DEBUG - 2013-12-13 10:56:34 --> Final output sent to browser DEBUG - 2013-12-13 10:56:34 --> Total execution time: 1.0928 DEBUG - 2013-12-13 10:59:28 --> Config Class Initialized DEBUG - 2013-12-13 10:59:28 --> Hooks Class Initialized DEBUG - 2013-12-13 10:59:28 --> Utf8 Class Initialized DEBUG - 2013-12-13 10:59:28 --> UTF-8 Support Enabled DEBUG - 2013-12-13 10:59:28 --> URI Class Initialized DEBUG - 2013-12-13 10:59:28 --> Router Class Initialized DEBUG - 2013-12-13 10:59:28 --> Output Class Initialized DEBUG - 2013-12-13 10:59:28 --> Security Class Initialized DEBUG - 2013-12-13 10:59:28 --> Input Class Initialized DEBUG - 2013-12-13 10:59:28 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 10:59:28 --> Language Class Initialized DEBUG - 2013-12-13 10:59:28 --> Loader Class Initialized DEBUG - 2013-12-13 10:59:28 --> Controller Class Initialized DEBUG - 2013-12-13 10:59:28 --> Model Class Initialized DEBUG - 2013-12-13 10:59:28 --> Database Driver Class Initialized DEBUG - 2013-12-13 10:59:28 --> Helper loaded: html_helper DEBUG - 2013-12-13 10:59:28 --> Helper loaded: url_helper DEBUG - 2013-12-13 10:59:28 --> File loaded: application/views/header.php DEBUG - 2013-12-13 10:59:28 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 10:59:28 --> Final output sent to browser DEBUG - 2013-12-13 10:59:28 --> Total execution time: 0.0907 DEBUG - 2013-12-13 10:59:29 --> Config Class Initialized DEBUG - 2013-12-13 10:59:29 --> Hooks Class Initialized DEBUG - 2013-12-13 10:59:29 --> Utf8 Class Initialized DEBUG - 2013-12-13 10:59:29 --> UTF-8 Support Enabled DEBUG - 2013-12-13 10:59:29 --> URI Class Initialized DEBUG - 2013-12-13 10:59:29 --> Router Class Initialized DEBUG - 2013-12-13 10:59:29 --> Output Class Initialized DEBUG - 2013-12-13 10:59:29 --> Security Class Initialized DEBUG - 2013-12-13 10:59:29 --> Input Class Initialized DEBUG - 2013-12-13 10:59:29 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 10:59:29 --> Language Class Initialized DEBUG - 2013-12-13 10:59:29 --> Loader Class Initialized DEBUG - 2013-12-13 10:59:29 --> Controller Class Initialized DEBUG - 2013-12-13 10:59:29 --> Model Class Initialized DEBUG - 2013-12-13 10:59:29 --> Database Driver Class Initialized DEBUG - 2013-12-13 10:59:29 --> Helper loaded: html_helper DEBUG - 2013-12-13 10:59:29 --> Helper loaded: url_helper DEBUG - 2013-12-13 10:59:29 --> Final output sent to browser DEBUG - 2013-12-13 10:59:29 --> Total execution time: 0.0484 DEBUG - 2013-12-13 10:59:30 --> Config Class Initialized DEBUG - 2013-12-13 10:59:30 --> Hooks Class Initialized DEBUG - 2013-12-13 10:59:30 --> Utf8 Class Initialized DEBUG - 2013-12-13 10:59:30 --> UTF-8 Support Enabled DEBUG - 2013-12-13 10:59:30 --> URI Class Initialized DEBUG - 2013-12-13 10:59:30 --> Router Class Initialized DEBUG - 2013-12-13 10:59:30 --> Output Class Initialized DEBUG - 2013-12-13 10:59:30 --> Security Class Initialized DEBUG - 2013-12-13 10:59:30 --> Input Class Initialized DEBUG - 2013-12-13 10:59:30 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 10:59:30 --> Language Class Initialized DEBUG - 2013-12-13 10:59:30 --> Loader Class Initialized DEBUG - 2013-12-13 10:59:30 --> Controller Class Initialized DEBUG - 2013-12-13 10:59:30 --> Model Class Initialized DEBUG - 2013-12-13 10:59:30 --> Database Driver Class Initialized DEBUG - 2013-12-13 10:59:30 --> Helper loaded: html_helper DEBUG - 2013-12-13 10:59:30 --> Helper loaded: url_helper DEBUG - 2013-12-13 10:59:31 --> Final output sent to browser DEBUG - 2013-12-13 10:59:31 --> Total execution time: 1.3322 DEBUG - 2013-12-13 11:00:43 --> Config Class Initialized DEBUG - 2013-12-13 11:00:43 --> Hooks Class Initialized DEBUG - 2013-12-13 11:00:43 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:00:43 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:00:43 --> URI Class Initialized DEBUG - 2013-12-13 11:00:43 --> Router Class Initialized DEBUG - 2013-12-13 11:00:43 --> Output Class Initialized DEBUG - 2013-12-13 11:00:43 --> Security Class Initialized DEBUG - 2013-12-13 11:00:43 --> Input Class Initialized DEBUG - 2013-12-13 11:00:43 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:00:43 --> Language Class Initialized DEBUG - 2013-12-13 11:00:43 --> Loader Class Initialized DEBUG - 2013-12-13 11:00:43 --> Controller Class Initialized DEBUG - 2013-12-13 11:00:43 --> Model Class Initialized DEBUG - 2013-12-13 11:00:43 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:00:43 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:00:43 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:00:43 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:00:43 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:00:43 --> Final output sent to browser DEBUG - 2013-12-13 11:00:43 --> Total execution time: 0.0484 DEBUG - 2013-12-13 11:00:45 --> Config Class Initialized DEBUG - 2013-12-13 11:00:45 --> Hooks Class Initialized DEBUG - 2013-12-13 11:00:45 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:00:45 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:00:45 --> URI Class Initialized DEBUG - 2013-12-13 11:00:45 --> Router Class Initialized DEBUG - 2013-12-13 11:00:45 --> Output Class Initialized DEBUG - 2013-12-13 11:00:45 --> Security Class Initialized DEBUG - 2013-12-13 11:00:45 --> Input Class Initialized DEBUG - 2013-12-13 11:00:45 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:00:45 --> Language Class Initialized DEBUG - 2013-12-13 11:00:45 --> Loader Class Initialized DEBUG - 2013-12-13 11:00:45 --> Controller Class Initialized DEBUG - 2013-12-13 11:00:45 --> Model Class Initialized DEBUG - 2013-12-13 11:00:45 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:00:45 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:00:45 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:00:45 --> Final output sent to browser DEBUG - 2013-12-13 11:00:45 --> Total execution time: 0.0451 DEBUG - 2013-12-13 11:00:45 --> Config Class Initialized DEBUG - 2013-12-13 11:00:45 --> Hooks Class Initialized DEBUG - 2013-12-13 11:00:45 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:00:45 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:00:45 --> URI Class Initialized DEBUG - 2013-12-13 11:00:45 --> Router Class Initialized DEBUG - 2013-12-13 11:00:45 --> Output Class Initialized DEBUG - 2013-12-13 11:00:45 --> Security Class Initialized DEBUG - 2013-12-13 11:00:45 --> Input Class Initialized DEBUG - 2013-12-13 11:00:45 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:00:45 --> Language Class Initialized DEBUG - 2013-12-13 11:00:45 --> Loader Class Initialized DEBUG - 2013-12-13 11:00:45 --> Controller Class Initialized DEBUG - 2013-12-13 11:00:45 --> Model Class Initialized DEBUG - 2013-12-13 11:00:45 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:00:45 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:00:45 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:00:46 --> Final output sent to browser DEBUG - 2013-12-13 11:00:46 --> Total execution time: 1.3222 DEBUG - 2013-12-13 11:09:51 --> Config Class Initialized DEBUG - 2013-12-13 11:09:51 --> Hooks Class Initialized DEBUG - 2013-12-13 11:09:51 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:09:51 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:09:51 --> URI Class Initialized DEBUG - 2013-12-13 11:09:51 --> Router Class Initialized DEBUG - 2013-12-13 11:09:51 --> Output Class Initialized DEBUG - 2013-12-13 11:09:51 --> Security Class Initialized DEBUG - 2013-12-13 11:09:51 --> Input Class Initialized DEBUG - 2013-12-13 11:09:51 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:09:51 --> Language Class Initialized DEBUG - 2013-12-13 11:09:51 --> Loader Class Initialized DEBUG - 2013-12-13 11:09:51 --> Controller Class Initialized DEBUG - 2013-12-13 11:09:51 --> Model Class Initialized DEBUG - 2013-12-13 11:09:51 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:09:51 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:09:51 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:09:51 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:09:51 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:09:51 --> Final output sent to browser DEBUG - 2013-12-13 11:09:51 --> Total execution time: 0.0463 DEBUG - 2013-12-13 11:09:52 --> Config Class Initialized DEBUG - 2013-12-13 11:09:52 --> Hooks Class Initialized DEBUG - 2013-12-13 11:09:52 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:09:52 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:09:52 --> URI Class Initialized DEBUG - 2013-12-13 11:09:52 --> Router Class Initialized DEBUG - 2013-12-13 11:09:52 --> Output Class Initialized DEBUG - 2013-12-13 11:09:52 --> Security Class Initialized DEBUG - 2013-12-13 11:09:52 --> Input Class Initialized DEBUG - 2013-12-13 11:09:52 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:09:52 --> Language Class Initialized DEBUG - 2013-12-13 11:09:52 --> Loader Class Initialized DEBUG - 2013-12-13 11:09:52 --> Controller Class Initialized DEBUG - 2013-12-13 11:09:52 --> Model Class Initialized DEBUG - 2013-12-13 11:09:52 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:09:52 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:09:52 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:09:52 --> Final output sent to browser DEBUG - 2013-12-13 11:09:52 --> Total execution time: 0.0502 DEBUG - 2013-12-13 11:09:52 --> Config Class Initialized DEBUG - 2013-12-13 11:09:52 --> Hooks Class Initialized DEBUG - 2013-12-13 11:09:52 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:09:52 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:09:52 --> URI Class Initialized DEBUG - 2013-12-13 11:09:52 --> Router Class Initialized DEBUG - 2013-12-13 11:09:53 --> Output Class Initialized DEBUG - 2013-12-13 11:09:53 --> Security Class Initialized DEBUG - 2013-12-13 11:09:53 --> Input Class Initialized DEBUG - 2013-12-13 11:09:53 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:09:53 --> Language Class Initialized DEBUG - 2013-12-13 11:09:53 --> Loader Class Initialized DEBUG - 2013-12-13 11:09:53 --> Controller Class Initialized DEBUG - 2013-12-13 11:09:53 --> Model Class Initialized DEBUG - 2013-12-13 11:09:53 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:09:53 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:09:53 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:10:10 --> Config Class Initialized DEBUG - 2013-12-13 11:10:10 --> Hooks Class Initialized DEBUG - 2013-12-13 11:10:10 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:10:10 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:10:10 --> URI Class Initialized DEBUG - 2013-12-13 11:10:10 --> Router Class Initialized DEBUG - 2013-12-13 11:10:10 --> Output Class Initialized DEBUG - 2013-12-13 11:10:10 --> Security Class Initialized DEBUG - 2013-12-13 11:10:10 --> Input Class Initialized DEBUG - 2013-12-13 11:10:10 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:10:10 --> Language Class Initialized DEBUG - 2013-12-13 11:10:10 --> Loader Class Initialized DEBUG - 2013-12-13 11:10:10 --> Controller Class Initialized DEBUG - 2013-12-13 11:10:10 --> Model Class Initialized DEBUG - 2013-12-13 11:10:10 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:10:10 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:10:10 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:10:10 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:10:10 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:10:10 --> Final output sent to browser DEBUG - 2013-12-13 11:10:10 --> Total execution time: 0.0395 DEBUG - 2013-12-13 11:10:11 --> Config Class Initialized DEBUG - 2013-12-13 11:10:11 --> Hooks Class Initialized DEBUG - 2013-12-13 11:10:11 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:10:11 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:10:11 --> URI Class Initialized DEBUG - 2013-12-13 11:10:11 --> Router Class Initialized DEBUG - 2013-12-13 11:10:11 --> Output Class Initialized DEBUG - 2013-12-13 11:10:11 --> Security Class Initialized DEBUG - 2013-12-13 11:10:11 --> Input Class Initialized DEBUG - 2013-12-13 11:10:11 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:10:11 --> Language Class Initialized DEBUG - 2013-12-13 11:10:11 --> Loader Class Initialized DEBUG - 2013-12-13 11:10:11 --> Controller Class Initialized DEBUG - 2013-12-13 11:10:11 --> Model Class Initialized DEBUG - 2013-12-13 11:10:11 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:10:11 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:10:11 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:10:11 --> Final output sent to browser DEBUG - 2013-12-13 11:10:11 --> Total execution time: 0.0408 DEBUG - 2013-12-13 11:10:11 --> Config Class Initialized DEBUG - 2013-12-13 11:10:11 --> Hooks Class Initialized DEBUG - 2013-12-13 11:10:11 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:10:11 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:10:11 --> URI Class Initialized DEBUG - 2013-12-13 11:10:11 --> Router Class Initialized DEBUG - 2013-12-13 11:10:11 --> Output Class Initialized DEBUG - 2013-12-13 11:10:11 --> Security Class Initialized DEBUG - 2013-12-13 11:10:11 --> Input Class Initialized DEBUG - 2013-12-13 11:10:11 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:10:11 --> Language Class Initialized DEBUG - 2013-12-13 11:10:11 --> Loader Class Initialized DEBUG - 2013-12-13 11:10:11 --> Controller Class Initialized DEBUG - 2013-12-13 11:10:11 --> Model Class Initialized DEBUG - 2013-12-13 11:10:11 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:10:11 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:10:11 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:10:54 --> Config Class Initialized DEBUG - 2013-12-13 11:10:54 --> Hooks Class Initialized DEBUG - 2013-12-13 11:10:54 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:10:54 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:10:54 --> URI Class Initialized DEBUG - 2013-12-13 11:10:54 --> Router Class Initialized DEBUG - 2013-12-13 11:10:54 --> Output Class Initialized DEBUG - 2013-12-13 11:10:54 --> Security Class Initialized DEBUG - 2013-12-13 11:10:54 --> Input Class Initialized DEBUG - 2013-12-13 11:10:54 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:10:54 --> Language Class Initialized DEBUG - 2013-12-13 11:10:54 --> Loader Class Initialized DEBUG - 2013-12-13 11:10:54 --> Controller Class Initialized DEBUG - 2013-12-13 11:10:54 --> Model Class Initialized DEBUG - 2013-12-13 11:10:54 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:10:54 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:10:54 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:10:54 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:10:54 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:10:54 --> Final output sent to browser DEBUG - 2013-12-13 11:10:54 --> Total execution time: 0.0404 DEBUG - 2013-12-13 11:10:56 --> Config Class Initialized DEBUG - 2013-12-13 11:10:56 --> Hooks Class Initialized DEBUG - 2013-12-13 11:10:56 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:10:56 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:10:56 --> URI Class Initialized DEBUG - 2013-12-13 11:10:56 --> Router Class Initialized DEBUG - 2013-12-13 11:10:56 --> Output Class Initialized DEBUG - 2013-12-13 11:10:56 --> Security Class Initialized DEBUG - 2013-12-13 11:10:56 --> Input Class Initialized DEBUG - 2013-12-13 11:10:56 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:10:56 --> Language Class Initialized DEBUG - 2013-12-13 11:10:56 --> Loader Class Initialized DEBUG - 2013-12-13 11:10:56 --> Controller Class Initialized DEBUG - 2013-12-13 11:10:56 --> Model Class Initialized DEBUG - 2013-12-13 11:10:56 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:10:56 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:10:56 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:10:56 --> Final output sent to browser DEBUG - 2013-12-13 11:10:56 --> Total execution time: 0.0415 DEBUG - 2013-12-13 11:10:56 --> Config Class Initialized DEBUG - 2013-12-13 11:10:56 --> Hooks Class Initialized DEBUG - 2013-12-13 11:10:56 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:10:56 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:10:56 --> URI Class Initialized DEBUG - 2013-12-13 11:10:56 --> Router Class Initialized DEBUG - 2013-12-13 11:10:56 --> Output Class Initialized DEBUG - 2013-12-13 11:10:56 --> Security Class Initialized DEBUG - 2013-12-13 11:10:56 --> Input Class Initialized DEBUG - 2013-12-13 11:10:56 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:10:56 --> Language Class Initialized DEBUG - 2013-12-13 11:10:56 --> Loader Class Initialized DEBUG - 2013-12-13 11:10:56 --> Controller Class Initialized DEBUG - 2013-12-13 11:10:56 --> Model Class Initialized DEBUG - 2013-12-13 11:10:56 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:10:56 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:10:56 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:10:57 --> Final output sent to browser DEBUG - 2013-12-13 11:10:57 --> Total execution time: 1.0244 DEBUG - 2013-12-13 11:11:51 --> Config Class Initialized DEBUG - 2013-12-13 11:11:51 --> Hooks Class Initialized DEBUG - 2013-12-13 11:11:51 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:11:51 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:11:51 --> URI Class Initialized DEBUG - 2013-12-13 11:11:51 --> Router Class Initialized DEBUG - 2013-12-13 11:11:51 --> Output Class Initialized DEBUG - 2013-12-13 11:11:51 --> Security Class Initialized DEBUG - 2013-12-13 11:11:51 --> Input Class Initialized DEBUG - 2013-12-13 11:11:51 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:11:51 --> Language Class Initialized DEBUG - 2013-12-13 11:11:51 --> Loader Class Initialized DEBUG - 2013-12-13 11:11:51 --> Controller Class Initialized DEBUG - 2013-12-13 11:11:51 --> Model Class Initialized DEBUG - 2013-12-13 11:11:51 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:11:51 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:11:51 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:11:51 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:11:51 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:11:51 --> Final output sent to browser DEBUG - 2013-12-13 11:11:51 --> Total execution time: 0.0447 DEBUG - 2013-12-13 11:11:53 --> Config Class Initialized DEBUG - 2013-12-13 11:11:53 --> Hooks Class Initialized DEBUG - 2013-12-13 11:11:53 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:11:53 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:11:53 --> URI Class Initialized DEBUG - 2013-12-13 11:11:53 --> Router Class Initialized DEBUG - 2013-12-13 11:11:53 --> Output Class Initialized DEBUG - 2013-12-13 11:11:53 --> Security Class Initialized DEBUG - 2013-12-13 11:11:53 --> Input Class Initialized DEBUG - 2013-12-13 11:11:53 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:11:53 --> Language Class Initialized DEBUG - 2013-12-13 11:11:53 --> Loader Class Initialized DEBUG - 2013-12-13 11:11:53 --> Controller Class Initialized DEBUG - 2013-12-13 11:11:53 --> Model Class Initialized DEBUG - 2013-12-13 11:11:53 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:11:53 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:11:53 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:11:53 --> Final output sent to browser DEBUG - 2013-12-13 11:11:53 --> Total execution time: 0.0571 DEBUG - 2013-12-13 11:11:53 --> Config Class Initialized DEBUG - 2013-12-13 11:11:53 --> Hooks Class Initialized DEBUG - 2013-12-13 11:11:53 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:11:53 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:11:53 --> URI Class Initialized DEBUG - 2013-12-13 11:11:53 --> Router Class Initialized DEBUG - 2013-12-13 11:11:53 --> Output Class Initialized DEBUG - 2013-12-13 11:11:53 --> Security Class Initialized DEBUG - 2013-12-13 11:11:53 --> Input Class Initialized DEBUG - 2013-12-13 11:11:53 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:11:53 --> Language Class Initialized DEBUG - 2013-12-13 11:11:53 --> Loader Class Initialized DEBUG - 2013-12-13 11:11:53 --> Controller Class Initialized DEBUG - 2013-12-13 11:11:53 --> Model Class Initialized DEBUG - 2013-12-13 11:11:53 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:11:53 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:11:53 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:12:06 --> Config Class Initialized DEBUG - 2013-12-13 11:12:06 --> Hooks Class Initialized DEBUG - 2013-12-13 11:12:06 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:12:06 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:12:06 --> URI Class Initialized DEBUG - 2013-12-13 11:12:06 --> Router Class Initialized DEBUG - 2013-12-13 11:12:06 --> Output Class Initialized DEBUG - 2013-12-13 11:12:06 --> Security Class Initialized DEBUG - 2013-12-13 11:12:06 --> Input Class Initialized DEBUG - 2013-12-13 11:12:06 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:12:06 --> Language Class Initialized DEBUG - 2013-12-13 11:12:06 --> Loader Class Initialized DEBUG - 2013-12-13 11:12:06 --> Controller Class Initialized DEBUG - 2013-12-13 11:12:06 --> Model Class Initialized DEBUG - 2013-12-13 11:12:06 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:12:06 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:12:06 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:12:06 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:12:06 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:12:06 --> Final output sent to browser DEBUG - 2013-12-13 11:12:06 --> Total execution time: 0.0406 DEBUG - 2013-12-13 11:12:07 --> Config Class Initialized DEBUG - 2013-12-13 11:12:07 --> Hooks Class Initialized DEBUG - 2013-12-13 11:12:07 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:12:07 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:12:07 --> URI Class Initialized DEBUG - 2013-12-13 11:12:07 --> Router Class Initialized DEBUG - 2013-12-13 11:12:07 --> Output Class Initialized DEBUG - 2013-12-13 11:12:07 --> Security Class Initialized DEBUG - 2013-12-13 11:12:07 --> Input Class Initialized DEBUG - 2013-12-13 11:12:07 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:12:07 --> Language Class Initialized DEBUG - 2013-12-13 11:12:07 --> Loader Class Initialized DEBUG - 2013-12-13 11:12:07 --> Controller Class Initialized DEBUG - 2013-12-13 11:12:07 --> Model Class Initialized DEBUG - 2013-12-13 11:12:07 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:12:07 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:12:07 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:12:07 --> Final output sent to browser DEBUG - 2013-12-13 11:12:07 --> Total execution time: 0.0378 DEBUG - 2013-12-13 11:12:07 --> Config Class Initialized DEBUG - 2013-12-13 11:12:07 --> Hooks Class Initialized DEBUG - 2013-12-13 11:12:07 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:12:07 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:12:07 --> URI Class Initialized DEBUG - 2013-12-13 11:12:07 --> Router Class Initialized DEBUG - 2013-12-13 11:12:07 --> Output Class Initialized DEBUG - 2013-12-13 11:12:07 --> Security Class Initialized DEBUG - 2013-12-13 11:12:07 --> Input Class Initialized DEBUG - 2013-12-13 11:12:07 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:12:07 --> Language Class Initialized DEBUG - 2013-12-13 11:12:07 --> Loader Class Initialized DEBUG - 2013-12-13 11:12:07 --> Controller Class Initialized DEBUG - 2013-12-13 11:12:07 --> Model Class Initialized DEBUG - 2013-12-13 11:12:07 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:12:07 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:12:07 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:12:30 --> Config Class Initialized DEBUG - 2013-12-13 11:12:30 --> Hooks Class Initialized DEBUG - 2013-12-13 11:12:30 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:12:30 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:12:30 --> URI Class Initialized DEBUG - 2013-12-13 11:12:30 --> Router Class Initialized DEBUG - 2013-12-13 11:12:30 --> Output Class Initialized DEBUG - 2013-12-13 11:12:30 --> Security Class Initialized DEBUG - 2013-12-13 11:12:30 --> Input Class Initialized DEBUG - 2013-12-13 11:12:30 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:12:30 --> Language Class Initialized DEBUG - 2013-12-13 11:12:30 --> Loader Class Initialized DEBUG - 2013-12-13 11:12:30 --> Controller Class Initialized DEBUG - 2013-12-13 11:12:30 --> Model Class Initialized DEBUG - 2013-12-13 11:12:30 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:12:30 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:12:30 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:12:30 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:12:30 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:12:30 --> Final output sent to browser DEBUG - 2013-12-13 11:12:30 --> Total execution time: 0.0463 DEBUG - 2013-12-13 11:12:31 --> Config Class Initialized DEBUG - 2013-12-13 11:12:31 --> Hooks Class Initialized DEBUG - 2013-12-13 11:12:32 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:12:32 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:12:32 --> URI Class Initialized DEBUG - 2013-12-13 11:12:32 --> Router Class Initialized DEBUG - 2013-12-13 11:12:32 --> Output Class Initialized DEBUG - 2013-12-13 11:12:32 --> Security Class Initialized DEBUG - 2013-12-13 11:12:32 --> Input Class Initialized DEBUG - 2013-12-13 11:12:32 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:12:32 --> Language Class Initialized DEBUG - 2013-12-13 11:12:32 --> Loader Class Initialized DEBUG - 2013-12-13 11:12:32 --> Controller Class Initialized DEBUG - 2013-12-13 11:12:32 --> Model Class Initialized DEBUG - 2013-12-13 11:12:32 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:12:32 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:12:32 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:12:32 --> Final output sent to browser DEBUG - 2013-12-13 11:12:32 --> Total execution time: 0.2530 DEBUG - 2013-12-13 11:12:32 --> Config Class Initialized DEBUG - 2013-12-13 11:12:32 --> Hooks Class Initialized DEBUG - 2013-12-13 11:12:32 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:12:32 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:12:32 --> URI Class Initialized DEBUG - 2013-12-13 11:12:32 --> Router Class Initialized DEBUG - 2013-12-13 11:12:32 --> Output Class Initialized DEBUG - 2013-12-13 11:12:32 --> Security Class Initialized DEBUG - 2013-12-13 11:12:32 --> Input Class Initialized DEBUG - 2013-12-13 11:12:32 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:12:32 --> Language Class Initialized DEBUG - 2013-12-13 11:12:32 --> Loader Class Initialized DEBUG - 2013-12-13 11:12:32 --> Controller Class Initialized DEBUG - 2013-12-13 11:12:32 --> Model Class Initialized DEBUG - 2013-12-13 11:12:32 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:12:32 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:12:32 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:13:13 --> Config Class Initialized DEBUG - 2013-12-13 11:13:13 --> Hooks Class Initialized DEBUG - 2013-12-13 11:13:13 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:13:13 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:13:13 --> URI Class Initialized DEBUG - 2013-12-13 11:13:13 --> Router Class Initialized DEBUG - 2013-12-13 11:13:13 --> Output Class Initialized DEBUG - 2013-12-13 11:13:13 --> Security Class Initialized DEBUG - 2013-12-13 11:13:13 --> Input Class Initialized DEBUG - 2013-12-13 11:13:13 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:13:13 --> Language Class Initialized DEBUG - 2013-12-13 11:13:13 --> Loader Class Initialized DEBUG - 2013-12-13 11:13:13 --> Controller Class Initialized DEBUG - 2013-12-13 11:13:13 --> Model Class Initialized DEBUG - 2013-12-13 11:13:13 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:13:13 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:13:13 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:13:13 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:13:13 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:13:13 --> Final output sent to browser DEBUG - 2013-12-13 11:13:13 --> Total execution time: 0.0433 DEBUG - 2013-12-13 11:13:14 --> Config Class Initialized DEBUG - 2013-12-13 11:13:14 --> Hooks Class Initialized DEBUG - 2013-12-13 11:13:14 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:13:14 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:13:14 --> URI Class Initialized DEBUG - 2013-12-13 11:13:14 --> Router Class Initialized DEBUG - 2013-12-13 11:13:14 --> Output Class Initialized DEBUG - 2013-12-13 11:13:14 --> Security Class Initialized DEBUG - 2013-12-13 11:13:14 --> Input Class Initialized DEBUG - 2013-12-13 11:13:14 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:13:14 --> Language Class Initialized DEBUG - 2013-12-13 11:13:14 --> Loader Class Initialized DEBUG - 2013-12-13 11:13:14 --> Controller Class Initialized DEBUG - 2013-12-13 11:13:14 --> Model Class Initialized DEBUG - 2013-12-13 11:13:14 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:13:14 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:13:14 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:13:14 --> Final output sent to browser DEBUG - 2013-12-13 11:13:14 --> Total execution time: 0.0386 DEBUG - 2013-12-13 11:13:14 --> Config Class Initialized DEBUG - 2013-12-13 11:13:14 --> Hooks Class Initialized DEBUG - 2013-12-13 11:13:14 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:13:14 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:13:14 --> URI Class Initialized DEBUG - 2013-12-13 11:13:14 --> Router Class Initialized DEBUG - 2013-12-13 11:13:14 --> Output Class Initialized DEBUG - 2013-12-13 11:13:14 --> Security Class Initialized DEBUG - 2013-12-13 11:13:14 --> Input Class Initialized DEBUG - 2013-12-13 11:13:14 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:13:14 --> Language Class Initialized DEBUG - 2013-12-13 11:13:14 --> Loader Class Initialized DEBUG - 2013-12-13 11:13:14 --> Controller Class Initialized DEBUG - 2013-12-13 11:13:14 --> Model Class Initialized DEBUG - 2013-12-13 11:13:14 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:13:14 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:13:14 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:13:15 --> Final output sent to browser DEBUG - 2013-12-13 11:13:15 --> Total execution time: 1.0267 DEBUG - 2013-12-13 11:13:59 --> Config Class Initialized DEBUG - 2013-12-13 11:13:59 --> Hooks Class Initialized DEBUG - 2013-12-13 11:13:59 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:13:59 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:13:59 --> URI Class Initialized DEBUG - 2013-12-13 11:13:59 --> Router Class Initialized DEBUG - 2013-12-13 11:13:59 --> Output Class Initialized DEBUG - 2013-12-13 11:13:59 --> Security Class Initialized DEBUG - 2013-12-13 11:13:59 --> Input Class Initialized DEBUG - 2013-12-13 11:13:59 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:13:59 --> Language Class Initialized DEBUG - 2013-12-13 11:13:59 --> Loader Class Initialized DEBUG - 2013-12-13 11:13:59 --> Controller Class Initialized DEBUG - 2013-12-13 11:13:59 --> Model Class Initialized DEBUG - 2013-12-13 11:13:59 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:13:59 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:13:59 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:13:59 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:13:59 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:13:59 --> Final output sent to browser DEBUG - 2013-12-13 11:13:59 --> Total execution time: 0.0656 DEBUG - 2013-12-13 11:14:00 --> Config Class Initialized DEBUG - 2013-12-13 11:14:00 --> Hooks Class Initialized DEBUG - 2013-12-13 11:14:00 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:14:00 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:14:00 --> URI Class Initialized DEBUG - 2013-12-13 11:14:00 --> Router Class Initialized DEBUG - 2013-12-13 11:14:00 --> Output Class Initialized DEBUG - 2013-12-13 11:14:00 --> Security Class Initialized DEBUG - 2013-12-13 11:14:00 --> Input Class Initialized DEBUG - 2013-12-13 11:14:00 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:14:00 --> Language Class Initialized DEBUG - 2013-12-13 11:14:00 --> Loader Class Initialized DEBUG - 2013-12-13 11:14:00 --> Controller Class Initialized DEBUG - 2013-12-13 11:14:00 --> Model Class Initialized DEBUG - 2013-12-13 11:14:00 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:14:00 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:14:00 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:14:00 --> Final output sent to browser DEBUG - 2013-12-13 11:14:00 --> Total execution time: 0.0422 DEBUG - 2013-12-13 11:14:00 --> Config Class Initialized DEBUG - 2013-12-13 11:14:00 --> Hooks Class Initialized DEBUG - 2013-12-13 11:14:00 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:14:00 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:14:00 --> URI Class Initialized DEBUG - 2013-12-13 11:14:00 --> Router Class Initialized DEBUG - 2013-12-13 11:14:00 --> Output Class Initialized DEBUG - 2013-12-13 11:14:00 --> Security Class Initialized DEBUG - 2013-12-13 11:14:00 --> Input Class Initialized DEBUG - 2013-12-13 11:14:00 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:14:00 --> Language Class Initialized DEBUG - 2013-12-13 11:14:00 --> Loader Class Initialized DEBUG - 2013-12-13 11:14:00 --> Controller Class Initialized DEBUG - 2013-12-13 11:14:00 --> Model Class Initialized DEBUG - 2013-12-13 11:14:00 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:14:00 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:14:00 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:14:58 --> Config Class Initialized DEBUG - 2013-12-13 11:14:58 --> Hooks Class Initialized DEBUG - 2013-12-13 11:14:58 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:14:58 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:14:58 --> URI Class Initialized DEBUG - 2013-12-13 11:14:58 --> Router Class Initialized DEBUG - 2013-12-13 11:14:58 --> Output Class Initialized DEBUG - 2013-12-13 11:14:58 --> Security Class Initialized DEBUG - 2013-12-13 11:14:58 --> Input Class Initialized DEBUG - 2013-12-13 11:14:58 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:14:58 --> Language Class Initialized DEBUG - 2013-12-13 11:14:58 --> Loader Class Initialized DEBUG - 2013-12-13 11:14:58 --> Controller Class Initialized DEBUG - 2013-12-13 11:14:58 --> Model Class Initialized DEBUG - 2013-12-13 11:14:58 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:14:58 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:14:58 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:14:58 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:14:58 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:14:58 --> Final output sent to browser DEBUG - 2013-12-13 11:14:58 --> Total execution time: 0.0642 DEBUG - 2013-12-13 11:14:59 --> Config Class Initialized DEBUG - 2013-12-13 11:14:59 --> Hooks Class Initialized DEBUG - 2013-12-13 11:14:59 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:14:59 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:14:59 --> URI Class Initialized DEBUG - 2013-12-13 11:14:59 --> Router Class Initialized DEBUG - 2013-12-13 11:14:59 --> Output Class Initialized DEBUG - 2013-12-13 11:14:59 --> Security Class Initialized DEBUG - 2013-12-13 11:14:59 --> Input Class Initialized DEBUG - 2013-12-13 11:14:59 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:14:59 --> Language Class Initialized DEBUG - 2013-12-13 11:14:59 --> Loader Class Initialized DEBUG - 2013-12-13 11:14:59 --> Controller Class Initialized DEBUG - 2013-12-13 11:14:59 --> Model Class Initialized DEBUG - 2013-12-13 11:14:59 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:14:59 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:14:59 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:14:59 --> Final output sent to browser DEBUG - 2013-12-13 11:14:59 --> Total execution time: 0.0418 DEBUG - 2013-12-13 11:15:00 --> Config Class Initialized DEBUG - 2013-12-13 11:15:00 --> Hooks Class Initialized DEBUG - 2013-12-13 11:15:00 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:15:00 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:15:00 --> URI Class Initialized DEBUG - 2013-12-13 11:15:00 --> Router Class Initialized DEBUG - 2013-12-13 11:15:00 --> Output Class Initialized DEBUG - 2013-12-13 11:15:00 --> Security Class Initialized DEBUG - 2013-12-13 11:15:00 --> Input Class Initialized DEBUG - 2013-12-13 11:15:00 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:15:00 --> Language Class Initialized DEBUG - 2013-12-13 11:15:00 --> Loader Class Initialized DEBUG - 2013-12-13 11:15:00 --> Controller Class Initialized DEBUG - 2013-12-13 11:15:00 --> Model Class Initialized DEBUG - 2013-12-13 11:15:00 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:15:00 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:15:00 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:15:00 --> Final output sent to browser DEBUG - 2013-12-13 11:15:00 --> Total execution time: 0.9787 DEBUG - 2013-12-13 11:15:36 --> Config Class Initialized DEBUG - 2013-12-13 11:15:36 --> Hooks Class Initialized DEBUG - 2013-12-13 11:15:36 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:15:36 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:15:36 --> URI Class Initialized DEBUG - 2013-12-13 11:15:36 --> Router Class Initialized DEBUG - 2013-12-13 11:15:36 --> Output Class Initialized DEBUG - 2013-12-13 11:15:36 --> Security Class Initialized DEBUG - 2013-12-13 11:15:36 --> Input Class Initialized DEBUG - 2013-12-13 11:15:36 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:15:36 --> Language Class Initialized DEBUG - 2013-12-13 11:15:36 --> Loader Class Initialized DEBUG - 2013-12-13 11:15:36 --> Controller Class Initialized DEBUG - 2013-12-13 11:15:36 --> Model Class Initialized DEBUG - 2013-12-13 11:15:36 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:15:36 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:15:36 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:15:36 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:15:36 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:15:36 --> Final output sent to browser DEBUG - 2013-12-13 11:15:36 --> Total execution time: 0.0474 DEBUG - 2013-12-13 11:15:38 --> Config Class Initialized DEBUG - 2013-12-13 11:15:38 --> Hooks Class Initialized DEBUG - 2013-12-13 11:15:38 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:15:38 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:15:38 --> URI Class Initialized DEBUG - 2013-12-13 11:15:38 --> Router Class Initialized DEBUG - 2013-12-13 11:15:38 --> Output Class Initialized DEBUG - 2013-12-13 11:15:38 --> Security Class Initialized DEBUG - 2013-12-13 11:15:38 --> Input Class Initialized DEBUG - 2013-12-13 11:15:38 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:15:38 --> Language Class Initialized DEBUG - 2013-12-13 11:15:38 --> Loader Class Initialized DEBUG - 2013-12-13 11:15:38 --> Controller Class Initialized DEBUG - 2013-12-13 11:15:38 --> Model Class Initialized DEBUG - 2013-12-13 11:15:38 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:15:38 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:15:38 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:15:38 --> Final output sent to browser DEBUG - 2013-12-13 11:15:38 --> Total execution time: 0.0443 DEBUG - 2013-12-13 11:15:38 --> Config Class Initialized DEBUG - 2013-12-13 11:15:38 --> Hooks Class Initialized DEBUG - 2013-12-13 11:15:38 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:15:38 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:15:38 --> URI Class Initialized DEBUG - 2013-12-13 11:15:38 --> Router Class Initialized DEBUG - 2013-12-13 11:15:38 --> Output Class Initialized DEBUG - 2013-12-13 11:15:38 --> Security Class Initialized DEBUG - 2013-12-13 11:15:38 --> Input Class Initialized DEBUG - 2013-12-13 11:15:38 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:15:38 --> Language Class Initialized DEBUG - 2013-12-13 11:15:38 --> Loader Class Initialized DEBUG - 2013-12-13 11:15:38 --> Controller Class Initialized DEBUG - 2013-12-13 11:15:38 --> Model Class Initialized DEBUG - 2013-12-13 11:15:38 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:15:38 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:15:38 --> Helper loaded: url_helper ERROR - 2013-12-13 11:15:39 --> Severity: Warning --> file_get_contents(template3//css/style.css) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory /Users/calvin/Sites/Codeigniter/application/models/Petition.php 240 DEBUG - 2013-12-13 11:15:39 --> Final output sent to browser DEBUG - 2013-12-13 11:15:39 --> Total execution time: 0.9076 DEBUG - 2013-12-13 11:15:49 --> Config Class Initialized DEBUG - 2013-12-13 11:15:49 --> Hooks Class Initialized DEBUG - 2013-12-13 11:15:49 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:15:49 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:15:49 --> URI Class Initialized DEBUG - 2013-12-13 11:15:49 --> Router Class Initialized DEBUG - 2013-12-13 11:15:49 --> Output Class Initialized DEBUG - 2013-12-13 11:15:49 --> Security Class Initialized DEBUG - 2013-12-13 11:15:49 --> Input Class Initialized DEBUG - 2013-12-13 11:15:49 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:15:49 --> Language Class Initialized DEBUG - 2013-12-13 11:15:49 --> Loader Class Initialized DEBUG - 2013-12-13 11:15:49 --> Controller Class Initialized DEBUG - 2013-12-13 11:15:49 --> Model Class Initialized DEBUG - 2013-12-13 11:15:49 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:15:49 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:15:49 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:15:49 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:15:49 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:15:49 --> Final output sent to browser DEBUG - 2013-12-13 11:15:49 --> Total execution time: 0.0468 DEBUG - 2013-12-13 11:15:50 --> Config Class Initialized DEBUG - 2013-12-13 11:15:50 --> Hooks Class Initialized DEBUG - 2013-12-13 11:15:50 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:15:50 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:15:50 --> URI Class Initialized DEBUG - 2013-12-13 11:15:50 --> Router Class Initialized DEBUG - 2013-12-13 11:15:50 --> Output Class Initialized DEBUG - 2013-12-13 11:15:50 --> Security Class Initialized DEBUG - 2013-12-13 11:15:50 --> Input Class Initialized DEBUG - 2013-12-13 11:15:50 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:15:50 --> Language Class Initialized DEBUG - 2013-12-13 11:15:50 --> Loader Class Initialized DEBUG - 2013-12-13 11:15:50 --> Controller Class Initialized DEBUG - 2013-12-13 11:15:50 --> Model Class Initialized DEBUG - 2013-12-13 11:15:50 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:15:50 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:15:50 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:15:50 --> Final output sent to browser DEBUG - 2013-12-13 11:15:50 --> Total execution time: 0.0364 DEBUG - 2013-12-13 11:15:50 --> Config Class Initialized DEBUG - 2013-12-13 11:15:50 --> Hooks Class Initialized DEBUG - 2013-12-13 11:15:50 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:15:50 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:15:50 --> URI Class Initialized DEBUG - 2013-12-13 11:15:50 --> Router Class Initialized DEBUG - 2013-12-13 11:15:50 --> Output Class Initialized DEBUG - 2013-12-13 11:15:50 --> Security Class Initialized DEBUG - 2013-12-13 11:15:50 --> Input Class Initialized DEBUG - 2013-12-13 11:15:50 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:15:50 --> Language Class Initialized DEBUG - 2013-12-13 11:15:50 --> Loader Class Initialized DEBUG - 2013-12-13 11:15:50 --> Controller Class Initialized DEBUG - 2013-12-13 11:15:50 --> Model Class Initialized DEBUG - 2013-12-13 11:15:50 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:15:50 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:15:50 --> Helper loaded: url_helper ERROR - 2013-12-13 11:15:53 --> Severity: Warning --> file_get_contents(template3/css/style.css) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory /Users/calvin/Sites/Codeigniter/application/models/Petition.php 240 DEBUG - 2013-12-13 11:15:53 --> Final output sent to browser DEBUG - 2013-12-13 11:15:53 --> Total execution time: 2.9181 DEBUG - 2013-12-13 11:16:48 --> Config Class Initialized DEBUG - 2013-12-13 11:16:48 --> Hooks Class Initialized DEBUG - 2013-12-13 11:16:48 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:16:48 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:16:48 --> URI Class Initialized DEBUG - 2013-12-13 11:16:48 --> Router Class Initialized DEBUG - 2013-12-13 11:16:48 --> Output Class Initialized DEBUG - 2013-12-13 11:16:48 --> Security Class Initialized DEBUG - 2013-12-13 11:16:48 --> Input Class Initialized DEBUG - 2013-12-13 11:16:48 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:16:48 --> Language Class Initialized DEBUG - 2013-12-13 11:16:48 --> Loader Class Initialized DEBUG - 2013-12-13 11:16:48 --> Controller Class Initialized DEBUG - 2013-12-13 11:16:48 --> Model Class Initialized DEBUG - 2013-12-13 11:16:48 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:16:48 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:16:48 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:16:48 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:16:48 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:16:48 --> Final output sent to browser DEBUG - 2013-12-13 11:16:48 --> Total execution time: 0.0465 DEBUG - 2013-12-13 11:16:50 --> Config Class Initialized DEBUG - 2013-12-13 11:16:50 --> Hooks Class Initialized DEBUG - 2013-12-13 11:16:50 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:16:50 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:16:50 --> URI Class Initialized DEBUG - 2013-12-13 11:16:50 --> Router Class Initialized DEBUG - 2013-12-13 11:16:50 --> Output Class Initialized DEBUG - 2013-12-13 11:16:50 --> Security Class Initialized DEBUG - 2013-12-13 11:16:50 --> Input Class Initialized DEBUG - 2013-12-13 11:16:50 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:16:50 --> Language Class Initialized DEBUG - 2013-12-13 11:16:50 --> Loader Class Initialized DEBUG - 2013-12-13 11:16:50 --> Controller Class Initialized DEBUG - 2013-12-13 11:16:50 --> Model Class Initialized DEBUG - 2013-12-13 11:16:50 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:16:50 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:16:50 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:16:50 --> Final output sent to browser DEBUG - 2013-12-13 11:16:50 --> Total execution time: 0.0381 DEBUG - 2013-12-13 11:16:50 --> Config Class Initialized DEBUG - 2013-12-13 11:16:50 --> Hooks Class Initialized DEBUG - 2013-12-13 11:16:50 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:16:50 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:16:50 --> URI Class Initialized DEBUG - 2013-12-13 11:16:50 --> Router Class Initialized DEBUG - 2013-12-13 11:16:50 --> Output Class Initialized DEBUG - 2013-12-13 11:16:50 --> Security Class Initialized DEBUG - 2013-12-13 11:16:50 --> Input Class Initialized DEBUG - 2013-12-13 11:16:50 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:16:50 --> Language Class Initialized DEBUG - 2013-12-13 11:16:50 --> Loader Class Initialized DEBUG - 2013-12-13 11:16:50 --> Controller Class Initialized DEBUG - 2013-12-13 11:16:50 --> Model Class Initialized DEBUG - 2013-12-13 11:16:50 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:16:50 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:16:50 --> Helper loaded: url_helper ERROR - 2013-12-13 11:16:51 --> Severity: Warning --> file_get_contents(http://localhost/CodeIgniter/template3/css/style.css) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found /Users/calvin/Sites/Codeigniter/application/models/Petition.php 240 DEBUG - 2013-12-13 11:16:51 --> Final output sent to browser DEBUG - 2013-12-13 11:16:51 --> Total execution time: 0.9995 DEBUG - 2013-12-13 11:17:18 --> Config Class Initialized DEBUG - 2013-12-13 11:17:18 --> Hooks Class Initialized DEBUG - 2013-12-13 11:17:18 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:17:18 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:17:18 --> URI Class Initialized DEBUG - 2013-12-13 11:17:18 --> Router Class Initialized DEBUG - 2013-12-13 11:17:18 --> Output Class Initialized DEBUG - 2013-12-13 11:17:18 --> Security Class Initialized DEBUG - 2013-12-13 11:17:18 --> Input Class Initialized DEBUG - 2013-12-13 11:17:18 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:17:18 --> Language Class Initialized DEBUG - 2013-12-13 11:17:18 --> Loader Class Initialized DEBUG - 2013-12-13 11:17:18 --> Controller Class Initialized DEBUG - 2013-12-13 11:17:18 --> Model Class Initialized DEBUG - 2013-12-13 11:17:18 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:17:18 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:17:18 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:17:18 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:17:18 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:17:18 --> Final output sent to browser DEBUG - 2013-12-13 11:17:18 --> Total execution time: 0.0421 DEBUG - 2013-12-13 11:17:19 --> Config Class Initialized DEBUG - 2013-12-13 11:17:19 --> Hooks Class Initialized DEBUG - 2013-12-13 11:17:19 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:17:19 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:17:19 --> URI Class Initialized DEBUG - 2013-12-13 11:17:19 --> Router Class Initialized DEBUG - 2013-12-13 11:17:19 --> Output Class Initialized DEBUG - 2013-12-13 11:17:19 --> Security Class Initialized DEBUG - 2013-12-13 11:17:19 --> Input Class Initialized DEBUG - 2013-12-13 11:17:19 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:17:19 --> Language Class Initialized DEBUG - 2013-12-13 11:17:19 --> Loader Class Initialized DEBUG - 2013-12-13 11:17:19 --> Controller Class Initialized DEBUG - 2013-12-13 11:17:19 --> Model Class Initialized DEBUG - 2013-12-13 11:17:19 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:17:19 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:17:19 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:17:19 --> Final output sent to browser DEBUG - 2013-12-13 11:17:19 --> Total execution time: 0.0413 DEBUG - 2013-12-13 11:17:19 --> Config Class Initialized DEBUG - 2013-12-13 11:17:19 --> Hooks Class Initialized DEBUG - 2013-12-13 11:17:19 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:17:19 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:17:19 --> URI Class Initialized DEBUG - 2013-12-13 11:17:19 --> Router Class Initialized DEBUG - 2013-12-13 11:17:19 --> Output Class Initialized DEBUG - 2013-12-13 11:17:19 --> Security Class Initialized DEBUG - 2013-12-13 11:17:19 --> Input Class Initialized DEBUG - 2013-12-13 11:17:19 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:17:19 --> Language Class Initialized DEBUG - 2013-12-13 11:17:19 --> Loader Class Initialized DEBUG - 2013-12-13 11:17:19 --> Controller Class Initialized DEBUG - 2013-12-13 11:17:19 --> Model Class Initialized DEBUG - 2013-12-13 11:17:19 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:17:19 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:17:19 --> Helper loaded: url_helper ERROR - 2013-12-13 11:17:21 --> Severity: Warning --> file_get_contents(http://localhost/CodeIgniter/template3/css/layout.css) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found /Users/calvin/Sites/Codeigniter/application/models/Petition.php 240 DEBUG - 2013-12-13 11:17:21 --> Final output sent to browser DEBUG - 2013-12-13 11:17:21 --> Total execution time: 1.6630 DEBUG - 2013-12-13 11:18:20 --> Config Class Initialized DEBUG - 2013-12-13 11:18:20 --> Hooks Class Initialized DEBUG - 2013-12-13 11:18:20 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:18:20 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:18:20 --> URI Class Initialized DEBUG - 2013-12-13 11:18:20 --> Router Class Initialized DEBUG - 2013-12-13 11:18:20 --> Output Class Initialized DEBUG - 2013-12-13 11:18:20 --> Security Class Initialized DEBUG - 2013-12-13 11:18:20 --> Input Class Initialized DEBUG - 2013-12-13 11:18:20 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:18:20 --> Language Class Initialized DEBUG - 2013-12-13 11:18:20 --> Loader Class Initialized DEBUG - 2013-12-13 11:18:20 --> Controller Class Initialized DEBUG - 2013-12-13 11:18:20 --> Model Class Initialized DEBUG - 2013-12-13 11:18:20 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:18:20 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:18:20 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:18:20 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:18:20 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:18:20 --> Final output sent to browser DEBUG - 2013-12-13 11:18:20 --> Total execution time: 0.0380 DEBUG - 2013-12-13 11:18:21 --> Config Class Initialized DEBUG - 2013-12-13 11:18:21 --> Hooks Class Initialized DEBUG - 2013-12-13 11:18:21 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:18:21 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:18:21 --> URI Class Initialized DEBUG - 2013-12-13 11:18:21 --> Router Class Initialized DEBUG - 2013-12-13 11:18:21 --> Output Class Initialized DEBUG - 2013-12-13 11:18:21 --> Security Class Initialized DEBUG - 2013-12-13 11:18:21 --> Input Class Initialized DEBUG - 2013-12-13 11:18:21 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:18:21 --> Language Class Initialized DEBUG - 2013-12-13 11:18:21 --> Loader Class Initialized DEBUG - 2013-12-13 11:18:21 --> Controller Class Initialized DEBUG - 2013-12-13 11:18:21 --> Model Class Initialized DEBUG - 2013-12-13 11:18:21 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:18:21 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:18:21 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:18:21 --> Final output sent to browser DEBUG - 2013-12-13 11:18:21 --> Total execution time: 0.0825 DEBUG - 2013-12-13 11:18:21 --> Config Class Initialized DEBUG - 2013-12-13 11:18:21 --> Hooks Class Initialized DEBUG - 2013-12-13 11:18:21 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:18:21 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:18:21 --> URI Class Initialized DEBUG - 2013-12-13 11:18:21 --> Router Class Initialized DEBUG - 2013-12-13 11:18:21 --> Output Class Initialized DEBUG - 2013-12-13 11:18:21 --> Security Class Initialized DEBUG - 2013-12-13 11:18:21 --> Input Class Initialized DEBUG - 2013-12-13 11:18:21 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:18:21 --> Language Class Initialized DEBUG - 2013-12-13 11:18:21 --> Loader Class Initialized DEBUG - 2013-12-13 11:18:21 --> Controller Class Initialized DEBUG - 2013-12-13 11:18:21 --> Model Class Initialized DEBUG - 2013-12-13 11:18:21 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:18:21 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:18:21 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:18:29 --> Final output sent to browser DEBUG - 2013-12-13 11:18:29 --> Total execution time: 7.6211 DEBUG - 2013-12-13 11:18:52 --> Config Class Initialized DEBUG - 2013-12-13 11:18:52 --> Hooks Class Initialized DEBUG - 2013-12-13 11:18:52 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:18:52 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:18:52 --> URI Class Initialized DEBUG - 2013-12-13 11:18:52 --> Router Class Initialized DEBUG - 2013-12-13 11:18:52 --> Output Class Initialized DEBUG - 2013-12-13 11:18:52 --> Security Class Initialized DEBUG - 2013-12-13 11:18:52 --> Input Class Initialized DEBUG - 2013-12-13 11:18:52 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:18:52 --> Language Class Initialized DEBUG - 2013-12-13 11:18:52 --> Loader Class Initialized DEBUG - 2013-12-13 11:18:52 --> Controller Class Initialized DEBUG - 2013-12-13 11:18:52 --> Model Class Initialized DEBUG - 2013-12-13 11:18:52 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:18:52 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:18:52 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:18:52 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:18:52 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:18:52 --> Final output sent to browser DEBUG - 2013-12-13 11:18:52 --> Total execution time: 0.0462 DEBUG - 2013-12-13 11:18:59 --> Config Class Initialized DEBUG - 2013-12-13 11:18:59 --> Hooks Class Initialized DEBUG - 2013-12-13 11:18:59 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:18:59 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:18:59 --> URI Class Initialized DEBUG - 2013-12-13 11:18:59 --> Router Class Initialized DEBUG - 2013-12-13 11:18:59 --> Output Class Initialized DEBUG - 2013-12-13 11:18:59 --> Security Class Initialized DEBUG - 2013-12-13 11:18:59 --> Input Class Initialized DEBUG - 2013-12-13 11:18:59 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:19:00 --> Language Class Initialized DEBUG - 2013-12-13 11:19:00 --> Loader Class Initialized DEBUG - 2013-12-13 11:19:00 --> Controller Class Initialized DEBUG - 2013-12-13 11:19:00 --> Model Class Initialized DEBUG - 2013-12-13 11:19:00 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:19:00 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:19:00 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:19:00 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:19:00 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:19:00 --> Final output sent to browser DEBUG - 2013-12-13 11:19:00 --> Total execution time: 0.5449 DEBUG - 2013-12-13 11:19:01 --> Config Class Initialized DEBUG - 2013-12-13 11:19:01 --> Hooks Class Initialized DEBUG - 2013-12-13 11:19:01 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:19:01 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:19:01 --> URI Class Initialized DEBUG - 2013-12-13 11:19:01 --> Router Class Initialized DEBUG - 2013-12-13 11:19:01 --> Output Class Initialized DEBUG - 2013-12-13 11:19:01 --> Security Class Initialized DEBUG - 2013-12-13 11:19:01 --> Input Class Initialized DEBUG - 2013-12-13 11:19:01 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:19:01 --> Language Class Initialized DEBUG - 2013-12-13 11:19:01 --> Loader Class Initialized DEBUG - 2013-12-13 11:19:01 --> Controller Class Initialized DEBUG - 2013-12-13 11:19:01 --> Model Class Initialized DEBUG - 2013-12-13 11:19:01 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:19:01 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:19:01 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:19:01 --> Final output sent to browser DEBUG - 2013-12-13 11:19:01 --> Total execution time: 0.4277 DEBUG - 2013-12-13 11:19:01 --> Config Class Initialized DEBUG - 2013-12-13 11:19:01 --> Hooks Class Initialized DEBUG - 2013-12-13 11:19:02 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:19:02 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:19:02 --> URI Class Initialized DEBUG - 2013-12-13 11:19:02 --> Router Class Initialized DEBUG - 2013-12-13 11:19:02 --> Output Class Initialized DEBUG - 2013-12-13 11:19:02 --> Security Class Initialized DEBUG - 2013-12-13 11:19:02 --> Input Class Initialized DEBUG - 2013-12-13 11:19:02 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:19:02 --> Language Class Initialized DEBUG - 2013-12-13 11:19:02 --> Loader Class Initialized DEBUG - 2013-12-13 11:19:02 --> Controller Class Initialized DEBUG - 2013-12-13 11:19:02 --> Model Class Initialized DEBUG - 2013-12-13 11:19:02 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:19:02 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:19:02 --> Helper loaded: url_helper ERROR - 2013-12-13 11:19:04 --> Severity: Warning --> file_put_contents(ftp://...@declaissedesigns.com/test/index.html/css/layout.css) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: FTP server reports 553 Can't open that file: Not a directory /Users/calvin/Sites/Codeigniter/application/models/Petition.php 247 DEBUG - 2013-12-13 11:19:04 --> Final output sent to browser DEBUG - 2013-12-13 11:19:04 --> Total execution time: 2.2479 DEBUG - 2013-12-13 11:19:51 --> Config Class Initialized DEBUG - 2013-12-13 11:19:51 --> Hooks Class Initialized DEBUG - 2013-12-13 11:19:51 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:19:51 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:19:51 --> URI Class Initialized DEBUG - 2013-12-13 11:19:51 --> Router Class Initialized DEBUG - 2013-12-13 11:19:51 --> Output Class Initialized DEBUG - 2013-12-13 11:19:51 --> Security Class Initialized DEBUG - 2013-12-13 11:19:51 --> Input Class Initialized DEBUG - 2013-12-13 11:19:51 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:19:51 --> Language Class Initialized DEBUG - 2013-12-13 11:19:51 --> Loader Class Initialized DEBUG - 2013-12-13 11:19:51 --> Controller Class Initialized DEBUG - 2013-12-13 11:19:51 --> Model Class Initialized DEBUG - 2013-12-13 11:19:51 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:19:51 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:19:51 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:19:51 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:19:51 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:19:51 --> Final output sent to browser DEBUG - 2013-12-13 11:19:51 --> Total execution time: 0.0447 DEBUG - 2013-12-13 11:19:53 --> Config Class Initialized DEBUG - 2013-12-13 11:19:53 --> Hooks Class Initialized DEBUG - 2013-12-13 11:19:53 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:19:53 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:19:53 --> URI Class Initialized DEBUG - 2013-12-13 11:19:53 --> Router Class Initialized DEBUG - 2013-12-13 11:19:53 --> Output Class Initialized DEBUG - 2013-12-13 11:19:53 --> Security Class Initialized DEBUG - 2013-12-13 11:19:53 --> Input Class Initialized DEBUG - 2013-12-13 11:19:53 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:19:53 --> Language Class Initialized DEBUG - 2013-12-13 11:19:53 --> Loader Class Initialized DEBUG - 2013-12-13 11:19:53 --> Controller Class Initialized DEBUG - 2013-12-13 11:19:53 --> Model Class Initialized DEBUG - 2013-12-13 11:19:53 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:19:53 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:19:53 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:19:53 --> Final output sent to browser DEBUG - 2013-12-13 11:19:53 --> Total execution time: 0.0481 DEBUG - 2013-12-13 11:19:53 --> Config Class Initialized DEBUG - 2013-12-13 11:19:53 --> Hooks Class Initialized DEBUG - 2013-12-13 11:19:53 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:19:53 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:19:53 --> URI Class Initialized DEBUG - 2013-12-13 11:19:53 --> Router Class Initialized DEBUG - 2013-12-13 11:19:53 --> Output Class Initialized DEBUG - 2013-12-13 11:19:53 --> Security Class Initialized DEBUG - 2013-12-13 11:19:53 --> Input Class Initialized DEBUG - 2013-12-13 11:19:53 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:19:53 --> Language Class Initialized DEBUG - 2013-12-13 11:19:53 --> Loader Class Initialized DEBUG - 2013-12-13 11:19:53 --> Controller Class Initialized DEBUG - 2013-12-13 11:19:53 --> Model Class Initialized DEBUG - 2013-12-13 11:19:53 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:19:53 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:19:53 --> Helper loaded: url_helper ERROR - 2013-12-13 11:19:56 --> Severity: Warning --> file_put_contents(ftp://...@declaissedesigns.com/test//css/layout.css) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: FTP server reports 553 Can't open that file: No such file or directory /Users/calvin/Sites/Codeigniter/application/models/Petition.php 247 DEBUG - 2013-12-13 11:19:56 --> Final output sent to browser DEBUG - 2013-12-13 11:19:56 --> Total execution time: 2.8992 DEBUG - 2013-12-13 11:20:17 --> Config Class Initialized DEBUG - 2013-12-13 11:20:17 --> Hooks Class Initialized DEBUG - 2013-12-13 11:20:17 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:20:17 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:20:17 --> URI Class Initialized DEBUG - 2013-12-13 11:20:17 --> Router Class Initialized DEBUG - 2013-12-13 11:20:17 --> Output Class Initialized DEBUG - 2013-12-13 11:20:17 --> Security Class Initialized DEBUG - 2013-12-13 11:20:17 --> Input Class Initialized DEBUG - 2013-12-13 11:20:17 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:20:17 --> Language Class Initialized DEBUG - 2013-12-13 11:20:17 --> Loader Class Initialized DEBUG - 2013-12-13 11:20:17 --> Controller Class Initialized DEBUG - 2013-12-13 11:20:17 --> Model Class Initialized DEBUG - 2013-12-13 11:20:17 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:20:17 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:20:17 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:20:17 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:20:17 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:20:17 --> Final output sent to browser DEBUG - 2013-12-13 11:20:17 --> Total execution time: 0.0513 DEBUG - 2013-12-13 11:20:19 --> Config Class Initialized DEBUG - 2013-12-13 11:20:19 --> Hooks Class Initialized DEBUG - 2013-12-13 11:20:19 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:20:19 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:20:19 --> URI Class Initialized DEBUG - 2013-12-13 11:20:19 --> Router Class Initialized DEBUG - 2013-12-13 11:20:19 --> Output Class Initialized DEBUG - 2013-12-13 11:20:19 --> Security Class Initialized DEBUG - 2013-12-13 11:20:19 --> Input Class Initialized DEBUG - 2013-12-13 11:20:19 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:20:19 --> Language Class Initialized DEBUG - 2013-12-13 11:20:19 --> Loader Class Initialized DEBUG - 2013-12-13 11:20:19 --> Controller Class Initialized DEBUG - 2013-12-13 11:20:19 --> Model Class Initialized DEBUG - 2013-12-13 11:20:19 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:20:19 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:20:19 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:20:19 --> Final output sent to browser DEBUG - 2013-12-13 11:20:19 --> Total execution time: 0.0499 DEBUG - 2013-12-13 11:20:19 --> Config Class Initialized DEBUG - 2013-12-13 11:20:19 --> Hooks Class Initialized DEBUG - 2013-12-13 11:20:19 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:20:19 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:20:19 --> URI Class Initialized DEBUG - 2013-12-13 11:20:19 --> Router Class Initialized DEBUG - 2013-12-13 11:20:19 --> Output Class Initialized DEBUG - 2013-12-13 11:20:19 --> Security Class Initialized DEBUG - 2013-12-13 11:20:19 --> Input Class Initialized DEBUG - 2013-12-13 11:20:19 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:20:19 --> Language Class Initialized DEBUG - 2013-12-13 11:20:19 --> Loader Class Initialized DEBUG - 2013-12-13 11:20:19 --> Controller Class Initialized DEBUG - 2013-12-13 11:20:19 --> Model Class Initialized DEBUG - 2013-12-13 11:20:19 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:20:19 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:20:19 --> Helper loaded: url_helper ERROR - 2013-12-13 11:20:20 --> Severity: Warning --> file_put_contents(ftp://...@declaissedesigns.com/test/css/layout.css) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: FTP server reports 553 Can't open that file: No such file or directory /Users/calvin/Sites/Codeigniter/application/models/Petition.php 247 DEBUG - 2013-12-13 11:20:20 --> Final output sent to browser DEBUG - 2013-12-13 11:20:20 --> Total execution time: 1.7078 DEBUG - 2013-12-13 11:27:11 --> Config Class Initialized DEBUG - 2013-12-13 11:27:11 --> Hooks Class Initialized DEBUG - 2013-12-13 11:27:11 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:27:11 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:27:11 --> URI Class Initialized DEBUG - 2013-12-13 11:27:11 --> Router Class Initialized DEBUG - 2013-12-13 11:27:11 --> Output Class Initialized DEBUG - 2013-12-13 11:27:11 --> Security Class Initialized DEBUG - 2013-12-13 11:27:11 --> Input Class Initialized DEBUG - 2013-12-13 11:27:11 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:27:11 --> Language Class Initialized DEBUG - 2013-12-13 11:27:11 --> Loader Class Initialized DEBUG - 2013-12-13 11:27:11 --> Controller Class Initialized DEBUG - 2013-12-13 11:27:11 --> Model Class Initialized DEBUG - 2013-12-13 11:27:11 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:27:11 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:27:11 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:27:11 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:27:11 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:27:11 --> Final output sent to browser DEBUG - 2013-12-13 11:27:11 --> Total execution time: 0.0495 DEBUG - 2013-12-13 11:27:12 --> Config Class Initialized DEBUG - 2013-12-13 11:27:12 --> Hooks Class Initialized DEBUG - 2013-12-13 11:27:12 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:27:12 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:27:12 --> URI Class Initialized DEBUG - 2013-12-13 11:27:12 --> Router Class Initialized DEBUG - 2013-12-13 11:27:12 --> Output Class Initialized DEBUG - 2013-12-13 11:27:12 --> Security Class Initialized DEBUG - 2013-12-13 11:27:12 --> Input Class Initialized DEBUG - 2013-12-13 11:27:12 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:27:12 --> Language Class Initialized DEBUG - 2013-12-13 11:27:12 --> Loader Class Initialized DEBUG - 2013-12-13 11:27:12 --> Controller Class Initialized DEBUG - 2013-12-13 11:27:12 --> Model Class Initialized DEBUG - 2013-12-13 11:27:13 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:27:13 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:27:13 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:27:13 --> Final output sent to browser DEBUG - 2013-12-13 11:27:13 --> Total execution time: 0.0435 DEBUG - 2013-12-13 11:27:13 --> Config Class Initialized DEBUG - 2013-12-13 11:27:13 --> Hooks Class Initialized DEBUG - 2013-12-13 11:27:13 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:27:13 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:27:13 --> URI Class Initialized DEBUG - 2013-12-13 11:27:13 --> Router Class Initialized DEBUG - 2013-12-13 11:27:13 --> Output Class Initialized DEBUG - 2013-12-13 11:27:13 --> Security Class Initialized DEBUG - 2013-12-13 11:27:13 --> Input Class Initialized DEBUG - 2013-12-13 11:27:13 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:27:13 --> Language Class Initialized DEBUG - 2013-12-13 11:27:13 --> Loader Class Initialized DEBUG - 2013-12-13 11:27:13 --> Controller Class Initialized DEBUG - 2013-12-13 11:27:13 --> Model Class Initialized DEBUG - 2013-12-13 11:27:13 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:27:13 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:27:13 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:27:16 --> Final output sent to browser DEBUG - 2013-12-13 11:27:16 --> Total execution time: 3.0217 DEBUG - 2013-12-13 11:28:03 --> Config Class Initialized DEBUG - 2013-12-13 11:28:03 --> Hooks Class Initialized DEBUG - 2013-12-13 11:28:03 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:28:03 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:28:03 --> URI Class Initialized DEBUG - 2013-12-13 11:28:03 --> Router Class Initialized DEBUG - 2013-12-13 11:28:03 --> Output Class Initialized DEBUG - 2013-12-13 11:28:03 --> Security Class Initialized DEBUG - 2013-12-13 11:28:03 --> Input Class Initialized DEBUG - 2013-12-13 11:28:03 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:28:03 --> Language Class Initialized DEBUG - 2013-12-13 11:28:03 --> Loader Class Initialized DEBUG - 2013-12-13 11:28:03 --> Controller Class Initialized DEBUG - 2013-12-13 11:28:03 --> Model Class Initialized DEBUG - 2013-12-13 11:28:03 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:28:03 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:28:03 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:28:03 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:28:03 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:28:03 --> Final output sent to browser DEBUG - 2013-12-13 11:28:03 --> Total execution time: 0.1534 DEBUG - 2013-12-13 11:28:05 --> Config Class Initialized DEBUG - 2013-12-13 11:28:05 --> Hooks Class Initialized DEBUG - 2013-12-13 11:28:05 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:28:05 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:28:05 --> URI Class Initialized DEBUG - 2013-12-13 11:28:05 --> Router Class Initialized DEBUG - 2013-12-13 11:28:05 --> Output Class Initialized DEBUG - 2013-12-13 11:28:05 --> Security Class Initialized DEBUG - 2013-12-13 11:28:05 --> Input Class Initialized DEBUG - 2013-12-13 11:28:05 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:28:05 --> Language Class Initialized DEBUG - 2013-12-13 11:28:05 --> Loader Class Initialized DEBUG - 2013-12-13 11:28:05 --> Controller Class Initialized DEBUG - 2013-12-13 11:28:05 --> Model Class Initialized DEBUG - 2013-12-13 11:28:05 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:28:05 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:28:05 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:28:05 --> Final output sent to browser DEBUG - 2013-12-13 11:28:05 --> Total execution time: 0.0505 DEBUG - 2013-12-13 11:28:05 --> Config Class Initialized DEBUG - 2013-12-13 11:28:05 --> Hooks Class Initialized DEBUG - 2013-12-13 11:28:05 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:28:05 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:28:05 --> URI Class Initialized DEBUG - 2013-12-13 11:28:05 --> Router Class Initialized DEBUG - 2013-12-13 11:28:05 --> Output Class Initialized DEBUG - 2013-12-13 11:28:05 --> Security Class Initialized DEBUG - 2013-12-13 11:28:05 --> Input Class Initialized DEBUG - 2013-12-13 11:28:05 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:28:05 --> Language Class Initialized DEBUG - 2013-12-13 11:28:05 --> Loader Class Initialized DEBUG - 2013-12-13 11:28:05 --> Controller Class Initialized DEBUG - 2013-12-13 11:28:05 --> Model Class Initialized DEBUG - 2013-12-13 11:28:05 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:28:05 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:28:05 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:28:09 --> Final output sent to browser DEBUG - 2013-12-13 11:28:09 --> Total execution time: 4.5543 DEBUG - 2013-12-13 11:29:37 --> Config Class Initialized DEBUG - 2013-12-13 11:29:37 --> Hooks Class Initialized DEBUG - 2013-12-13 11:29:37 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:29:37 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:29:37 --> URI Class Initialized DEBUG - 2013-12-13 11:29:37 --> Router Class Initialized DEBUG - 2013-12-13 11:29:37 --> Output Class Initialized DEBUG - 2013-12-13 11:29:37 --> Security Class Initialized DEBUG - 2013-12-13 11:29:37 --> Input Class Initialized DEBUG - 2013-12-13 11:29:37 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:29:37 --> Language Class Initialized DEBUG - 2013-12-13 11:29:37 --> Loader Class Initialized DEBUG - 2013-12-13 11:29:37 --> Controller Class Initialized DEBUG - 2013-12-13 11:29:37 --> Model Class Initialized DEBUG - 2013-12-13 11:29:37 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:29:37 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:29:37 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:29:37 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:29:37 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:29:37 --> Final output sent to browser DEBUG - 2013-12-13 11:29:37 --> Total execution time: 0.0453 DEBUG - 2013-12-13 11:29:39 --> Config Class Initialized DEBUG - 2013-12-13 11:29:39 --> Hooks Class Initialized DEBUG - 2013-12-13 11:29:39 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:29:39 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:29:39 --> URI Class Initialized DEBUG - 2013-12-13 11:29:39 --> Router Class Initialized DEBUG - 2013-12-13 11:29:39 --> Output Class Initialized DEBUG - 2013-12-13 11:29:39 --> Security Class Initialized DEBUG - 2013-12-13 11:29:39 --> Input Class Initialized DEBUG - 2013-12-13 11:29:39 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:29:39 --> Language Class Initialized DEBUG - 2013-12-13 11:29:39 --> Loader Class Initialized DEBUG - 2013-12-13 11:29:39 --> Controller Class Initialized DEBUG - 2013-12-13 11:29:39 --> Model Class Initialized DEBUG - 2013-12-13 11:29:39 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:29:39 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:29:39 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:29:39 --> Final output sent to browser DEBUG - 2013-12-13 11:29:39 --> Total execution time: 0.0638 DEBUG - 2013-12-13 11:29:39 --> Config Class Initialized DEBUG - 2013-12-13 11:29:39 --> Hooks Class Initialized DEBUG - 2013-12-13 11:29:39 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:29:39 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:29:39 --> URI Class Initialized DEBUG - 2013-12-13 11:29:39 --> Router Class Initialized DEBUG - 2013-12-13 11:29:39 --> Output Class Initialized DEBUG - 2013-12-13 11:29:39 --> Security Class Initialized DEBUG - 2013-12-13 11:29:39 --> Input Class Initialized DEBUG - 2013-12-13 11:29:39 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:29:39 --> Language Class Initialized DEBUG - 2013-12-13 11:29:39 --> Loader Class Initialized DEBUG - 2013-12-13 11:29:39 --> Controller Class Initialized DEBUG - 2013-12-13 11:29:39 --> Model Class Initialized DEBUG - 2013-12-13 11:29:39 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:29:39 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:29:39 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:29:43 --> Final output sent to browser DEBUG - 2013-12-13 11:29:43 --> Total execution time: 4.5444 DEBUG - 2013-12-13 11:40:39 --> Config Class Initialized DEBUG - 2013-12-13 11:40:39 --> Hooks Class Initialized DEBUG - 2013-12-13 11:40:39 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:40:39 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:40:39 --> URI Class Initialized DEBUG - 2013-12-13 11:40:39 --> Router Class Initialized DEBUG - 2013-12-13 11:40:39 --> Output Class Initialized DEBUG - 2013-12-13 11:40:39 --> Security Class Initialized DEBUG - 2013-12-13 11:40:39 --> Input Class Initialized DEBUG - 2013-12-13 11:40:39 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:40:39 --> Language Class Initialized DEBUG - 2013-12-13 11:40:39 --> Loader Class Initialized DEBUG - 2013-12-13 11:40:39 --> Controller Class Initialized DEBUG - 2013-12-13 11:40:39 --> Model Class Initialized DEBUG - 2013-12-13 11:40:39 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:40:39 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:40:39 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:40:39 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:40:39 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:40:39 --> Final output sent to browser DEBUG - 2013-12-13 11:40:39 --> Total execution time: 0.2886 DEBUG - 2013-12-13 11:40:41 --> Config Class Initialized DEBUG - 2013-12-13 11:40:41 --> Hooks Class Initialized DEBUG - 2013-12-13 11:40:41 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:40:41 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:40:41 --> URI Class Initialized DEBUG - 2013-12-13 11:40:41 --> Router Class Initialized DEBUG - 2013-12-13 11:40:41 --> Output Class Initialized DEBUG - 2013-12-13 11:40:41 --> Security Class Initialized DEBUG - 2013-12-13 11:40:41 --> Input Class Initialized DEBUG - 2013-12-13 11:40:41 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:40:41 --> Language Class Initialized DEBUG - 2013-12-13 11:40:41 --> Loader Class Initialized DEBUG - 2013-12-13 11:40:41 --> Controller Class Initialized DEBUG - 2013-12-13 11:40:41 --> Model Class Initialized DEBUG - 2013-12-13 11:40:41 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:40:41 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:40:41 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:40:41 --> Final output sent to browser DEBUG - 2013-12-13 11:40:41 --> Total execution time: 0.0478 DEBUG - 2013-12-13 11:40:41 --> Config Class Initialized DEBUG - 2013-12-13 11:40:41 --> Hooks Class Initialized DEBUG - 2013-12-13 11:40:41 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:40:41 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:40:41 --> URI Class Initialized DEBUG - 2013-12-13 11:40:41 --> Router Class Initialized DEBUG - 2013-12-13 11:40:41 --> Output Class Initialized DEBUG - 2013-12-13 11:40:41 --> Security Class Initialized DEBUG - 2013-12-13 11:40:41 --> Input Class Initialized DEBUG - 2013-12-13 11:40:41 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:40:41 --> Language Class Initialized DEBUG - 2013-12-13 11:40:41 --> Loader Class Initialized DEBUG - 2013-12-13 11:40:41 --> Controller Class Initialized DEBUG - 2013-12-13 11:40:41 --> Model Class Initialized DEBUG - 2013-12-13 11:40:41 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:40:41 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:40:41 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:40:42 --> Final output sent to browser DEBUG - 2013-12-13 11:40:42 --> Total execution time: 1.2172 DEBUG - 2013-12-13 11:40:49 --> Config Class Initialized DEBUG - 2013-12-13 11:40:49 --> Hooks Class Initialized DEBUG - 2013-12-13 11:40:49 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:40:49 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:40:49 --> URI Class Initialized DEBUG - 2013-12-13 11:40:49 --> Router Class Initialized DEBUG - 2013-12-13 11:40:49 --> Output Class Initialized DEBUG - 2013-12-13 11:40:49 --> Security Class Initialized DEBUG - 2013-12-13 11:40:49 --> Input Class Initialized DEBUG - 2013-12-13 11:40:49 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:40:49 --> Language Class Initialized DEBUG - 2013-12-13 11:40:49 --> Loader Class Initialized DEBUG - 2013-12-13 11:40:49 --> Controller Class Initialized DEBUG - 2013-12-13 11:40:49 --> Model Class Initialized DEBUG - 2013-12-13 11:40:49 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:40:49 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:40:49 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:40:49 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:40:49 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:40:49 --> Final output sent to browser DEBUG - 2013-12-13 11:40:49 --> Total execution time: 0.0614 DEBUG - 2013-12-13 11:40:50 --> Config Class Initialized DEBUG - 2013-12-13 11:40:50 --> Hooks Class Initialized DEBUG - 2013-12-13 11:40:50 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:40:50 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:40:50 --> URI Class Initialized DEBUG - 2013-12-13 11:40:50 --> Router Class Initialized DEBUG - 2013-12-13 11:40:50 --> Output Class Initialized DEBUG - 2013-12-13 11:40:50 --> Security Class Initialized DEBUG - 2013-12-13 11:40:50 --> Input Class Initialized DEBUG - 2013-12-13 11:40:50 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:40:50 --> Language Class Initialized DEBUG - 2013-12-13 11:40:50 --> Loader Class Initialized DEBUG - 2013-12-13 11:40:50 --> Controller Class Initialized DEBUG - 2013-12-13 11:40:50 --> Model Class Initialized DEBUG - 2013-12-13 11:40:50 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:40:50 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:40:50 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:40:50 --> Final output sent to browser DEBUG - 2013-12-13 11:40:50 --> Total execution time: 0.0393 DEBUG - 2013-12-13 11:40:50 --> Config Class Initialized DEBUG - 2013-12-13 11:40:50 --> Hooks Class Initialized DEBUG - 2013-12-13 11:40:50 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:40:50 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:40:50 --> URI Class Initialized DEBUG - 2013-12-13 11:40:50 --> Router Class Initialized DEBUG - 2013-12-13 11:40:50 --> Output Class Initialized DEBUG - 2013-12-13 11:40:50 --> Security Class Initialized DEBUG - 2013-12-13 11:40:50 --> Input Class Initialized DEBUG - 2013-12-13 11:40:50 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:40:50 --> Language Class Initialized DEBUG - 2013-12-13 11:40:50 --> Loader Class Initialized DEBUG - 2013-12-13 11:40:50 --> Controller Class Initialized DEBUG - 2013-12-13 11:40:50 --> Model Class Initialized DEBUG - 2013-12-13 11:40:50 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:40:50 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:40:50 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:40:51 --> Final output sent to browser DEBUG - 2013-12-13 11:40:51 --> Total execution time: 1.0442 DEBUG - 2013-12-13 11:41:11 --> Config Class Initialized DEBUG - 2013-12-13 11:41:11 --> Hooks Class Initialized DEBUG - 2013-12-13 11:41:11 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:41:11 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:41:11 --> URI Class Initialized DEBUG - 2013-12-13 11:41:11 --> Router Class Initialized DEBUG - 2013-12-13 11:41:11 --> Output Class Initialized DEBUG - 2013-12-13 11:41:11 --> Security Class Initialized DEBUG - 2013-12-13 11:41:11 --> Input Class Initialized DEBUG - 2013-12-13 11:41:11 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:41:11 --> Language Class Initialized DEBUG - 2013-12-13 11:41:11 --> Loader Class Initialized DEBUG - 2013-12-13 11:41:11 --> Controller Class Initialized DEBUG - 2013-12-13 11:41:11 --> Model Class Initialized DEBUG - 2013-12-13 11:41:11 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:41:11 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:41:11 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:41:11 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:41:11 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:41:11 --> Final output sent to browser DEBUG - 2013-12-13 11:41:11 --> Total execution time: 0.0432 DEBUG - 2013-12-13 11:41:12 --> Config Class Initialized DEBUG - 2013-12-13 11:41:12 --> Hooks Class Initialized DEBUG - 2013-12-13 11:41:12 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:41:12 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:41:12 --> URI Class Initialized DEBUG - 2013-12-13 11:41:12 --> Router Class Initialized DEBUG - 2013-12-13 11:41:12 --> Output Class Initialized DEBUG - 2013-12-13 11:41:12 --> Security Class Initialized DEBUG - 2013-12-13 11:41:12 --> Input Class Initialized DEBUG - 2013-12-13 11:41:12 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:41:12 --> Language Class Initialized DEBUG - 2013-12-13 11:41:12 --> Loader Class Initialized DEBUG - 2013-12-13 11:41:12 --> Controller Class Initialized DEBUG - 2013-12-13 11:41:12 --> Model Class Initialized DEBUG - 2013-12-13 11:41:12 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:41:12 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:41:12 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:41:12 --> Final output sent to browser DEBUG - 2013-12-13 11:41:12 --> Total execution time: 0.0356 DEBUG - 2013-12-13 11:41:12 --> Config Class Initialized DEBUG - 2013-12-13 11:41:12 --> Hooks Class Initialized DEBUG - 2013-12-13 11:41:12 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:41:12 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:41:12 --> URI Class Initialized DEBUG - 2013-12-13 11:41:12 --> Router Class Initialized DEBUG - 2013-12-13 11:41:12 --> Output Class Initialized DEBUG - 2013-12-13 11:41:12 --> Security Class Initialized DEBUG - 2013-12-13 11:41:12 --> Input Class Initialized DEBUG - 2013-12-13 11:41:12 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:41:12 --> Language Class Initialized DEBUG - 2013-12-13 11:41:12 --> Loader Class Initialized DEBUG - 2013-12-13 11:41:12 --> Controller Class Initialized DEBUG - 2013-12-13 11:41:12 --> Model Class Initialized DEBUG - 2013-12-13 11:41:12 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:41:12 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:41:12 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:41:17 --> Final output sent to browser DEBUG - 2013-12-13 11:41:17 --> Total execution time: 5.3145 DEBUG - 2013-12-13 11:41:31 --> Config Class Initialized DEBUG - 2013-12-13 11:41:31 --> Hooks Class Initialized DEBUG - 2013-12-13 11:41:31 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:41:31 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:41:31 --> URI Class Initialized DEBUG - 2013-12-13 11:41:31 --> Router Class Initialized DEBUG - 2013-12-13 11:41:31 --> Output Class Initialized DEBUG - 2013-12-13 11:41:31 --> Security Class Initialized DEBUG - 2013-12-13 11:41:31 --> Input Class Initialized DEBUG - 2013-12-13 11:41:31 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:41:31 --> Language Class Initialized DEBUG - 2013-12-13 11:41:31 --> Loader Class Initialized DEBUG - 2013-12-13 11:41:31 --> Controller Class Initialized DEBUG - 2013-12-13 11:41:31 --> Model Class Initialized DEBUG - 2013-12-13 11:41:31 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:41:31 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:41:31 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:41:31 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:41:31 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:41:31 --> Final output sent to browser DEBUG - 2013-12-13 11:41:31 --> Total execution time: 0.0558 DEBUG - 2013-12-13 11:41:33 --> Config Class Initialized DEBUG - 2013-12-13 11:41:33 --> Hooks Class Initialized DEBUG - 2013-12-13 11:41:33 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:41:33 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:41:33 --> URI Class Initialized DEBUG - 2013-12-13 11:41:33 --> Router Class Initialized DEBUG - 2013-12-13 11:41:33 --> Output Class Initialized DEBUG - 2013-12-13 11:41:33 --> Security Class Initialized DEBUG - 2013-12-13 11:41:33 --> Input Class Initialized DEBUG - 2013-12-13 11:41:33 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:41:33 --> Language Class Initialized DEBUG - 2013-12-13 11:41:33 --> Loader Class Initialized DEBUG - 2013-12-13 11:41:33 --> Controller Class Initialized DEBUG - 2013-12-13 11:41:33 --> Model Class Initialized DEBUG - 2013-12-13 11:41:33 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:41:33 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:41:33 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:41:33 --> Final output sent to browser DEBUG - 2013-12-13 11:41:33 --> Total execution time: 0.0414 DEBUG - 2013-12-13 11:41:33 --> Config Class Initialized DEBUG - 2013-12-13 11:41:33 --> Hooks Class Initialized DEBUG - 2013-12-13 11:41:33 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:41:33 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:41:33 --> URI Class Initialized DEBUG - 2013-12-13 11:41:33 --> Router Class Initialized DEBUG - 2013-12-13 11:41:33 --> Output Class Initialized DEBUG - 2013-12-13 11:41:33 --> Security Class Initialized DEBUG - 2013-12-13 11:41:33 --> Input Class Initialized DEBUG - 2013-12-13 11:41:33 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:41:33 --> Language Class Initialized DEBUG - 2013-12-13 11:41:33 --> Loader Class Initialized DEBUG - 2013-12-13 11:41:33 --> Controller Class Initialized DEBUG - 2013-12-13 11:41:33 --> Model Class Initialized DEBUG - 2013-12-13 11:41:33 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:41:33 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:41:33 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:41:34 --> Final output sent to browser DEBUG - 2013-12-13 11:41:34 --> Total execution time: 0.9445 DEBUG - 2013-12-13 11:41:52 --> Config Class Initialized DEBUG - 2013-12-13 11:41:52 --> Hooks Class Initialized DEBUG - 2013-12-13 11:41:52 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:41:52 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:41:52 --> URI Class Initialized DEBUG - 2013-12-13 11:41:52 --> Router Class Initialized DEBUG - 2013-12-13 11:41:52 --> Output Class Initialized DEBUG - 2013-12-13 11:41:52 --> Security Class Initialized DEBUG - 2013-12-13 11:41:52 --> Input Class Initialized DEBUG - 2013-12-13 11:41:52 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:41:52 --> Language Class Initialized DEBUG - 2013-12-13 11:41:52 --> Loader Class Initialized DEBUG - 2013-12-13 11:41:52 --> Controller Class Initialized DEBUG - 2013-12-13 11:41:52 --> Model Class Initialized DEBUG - 2013-12-13 11:41:52 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:41:52 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:41:52 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:41:52 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:41:52 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:41:52 --> Final output sent to browser DEBUG - 2013-12-13 11:41:52 --> Total execution time: 0.0459 DEBUG - 2013-12-13 11:41:53 --> Config Class Initialized DEBUG - 2013-12-13 11:41:53 --> Hooks Class Initialized DEBUG - 2013-12-13 11:41:53 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:41:53 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:41:53 --> URI Class Initialized DEBUG - 2013-12-13 11:41:53 --> Router Class Initialized DEBUG - 2013-12-13 11:41:53 --> Output Class Initialized DEBUG - 2013-12-13 11:41:53 --> Security Class Initialized DEBUG - 2013-12-13 11:41:53 --> Input Class Initialized DEBUG - 2013-12-13 11:41:53 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:41:53 --> Language Class Initialized DEBUG - 2013-12-13 11:41:53 --> Loader Class Initialized DEBUG - 2013-12-13 11:41:53 --> Controller Class Initialized DEBUG - 2013-12-13 11:41:53 --> Model Class Initialized DEBUG - 2013-12-13 11:41:53 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:41:53 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:41:53 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:41:53 --> Final output sent to browser DEBUG - 2013-12-13 11:41:53 --> Total execution time: 0.0411 DEBUG - 2013-12-13 11:41:53 --> Config Class Initialized DEBUG - 2013-12-13 11:41:53 --> Hooks Class Initialized DEBUG - 2013-12-13 11:41:53 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:41:53 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:41:53 --> URI Class Initialized DEBUG - 2013-12-13 11:41:53 --> Router Class Initialized DEBUG - 2013-12-13 11:41:53 --> Output Class Initialized DEBUG - 2013-12-13 11:41:53 --> Security Class Initialized DEBUG - 2013-12-13 11:41:53 --> Input Class Initialized DEBUG - 2013-12-13 11:41:53 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:41:53 --> Language Class Initialized DEBUG - 2013-12-13 11:41:53 --> Loader Class Initialized DEBUG - 2013-12-13 11:41:53 --> Controller Class Initialized DEBUG - 2013-12-13 11:41:53 --> Model Class Initialized DEBUG - 2013-12-13 11:41:53 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:41:53 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:41:53 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:41:54 --> Final output sent to browser DEBUG - 2013-12-13 11:41:54 --> Total execution time: 1.1696 DEBUG - 2013-12-13 11:47:06 --> Config Class Initialized DEBUG - 2013-12-13 11:47:06 --> Hooks Class Initialized DEBUG - 2013-12-13 11:47:06 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:47:06 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:47:06 --> URI Class Initialized DEBUG - 2013-12-13 11:47:06 --> Router Class Initialized DEBUG - 2013-12-13 11:47:06 --> Output Class Initialized DEBUG - 2013-12-13 11:47:06 --> Security Class Initialized DEBUG - 2013-12-13 11:47:06 --> Input Class Initialized DEBUG - 2013-12-13 11:47:06 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:47:06 --> Language Class Initialized DEBUG - 2013-12-13 11:47:06 --> Loader Class Initialized DEBUG - 2013-12-13 11:47:06 --> Controller Class Initialized DEBUG - 2013-12-13 11:47:06 --> Model Class Initialized DEBUG - 2013-12-13 11:47:06 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:47:06 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:47:06 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:47:07 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:47:07 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:47:07 --> Final output sent to browser DEBUG - 2013-12-13 11:47:07 --> Total execution time: 0.2761 DEBUG - 2013-12-13 11:47:08 --> Config Class Initialized DEBUG - 2013-12-13 11:47:08 --> Hooks Class Initialized DEBUG - 2013-12-13 11:47:08 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:47:08 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:47:08 --> URI Class Initialized DEBUG - 2013-12-13 11:47:08 --> Router Class Initialized DEBUG - 2013-12-13 11:47:08 --> Output Class Initialized DEBUG - 2013-12-13 11:47:08 --> Security Class Initialized DEBUG - 2013-12-13 11:47:08 --> Input Class Initialized DEBUG - 2013-12-13 11:47:08 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:47:08 --> Language Class Initialized DEBUG - 2013-12-13 11:47:08 --> Loader Class Initialized DEBUG - 2013-12-13 11:47:08 --> Controller Class Initialized DEBUG - 2013-12-13 11:47:08 --> Model Class Initialized DEBUG - 2013-12-13 11:47:08 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:47:08 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:47:08 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:47:08 --> Final output sent to browser DEBUG - 2013-12-13 11:47:08 --> Total execution time: 0.0499 DEBUG - 2013-12-13 11:47:08 --> Config Class Initialized DEBUG - 2013-12-13 11:47:08 --> Hooks Class Initialized DEBUG - 2013-12-13 11:47:08 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:47:08 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:47:08 --> URI Class Initialized DEBUG - 2013-12-13 11:47:08 --> Router Class Initialized DEBUG - 2013-12-13 11:47:08 --> Output Class Initialized DEBUG - 2013-12-13 11:47:08 --> Security Class Initialized DEBUG - 2013-12-13 11:47:08 --> Input Class Initialized DEBUG - 2013-12-13 11:47:08 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:47:08 --> Language Class Initialized DEBUG - 2013-12-13 11:47:08 --> Loader Class Initialized DEBUG - 2013-12-13 11:47:08 --> Controller Class Initialized DEBUG - 2013-12-13 11:47:08 --> Model Class Initialized DEBUG - 2013-12-13 11:47:08 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:47:08 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:47:08 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:47:11 --> Final output sent to browser DEBUG - 2013-12-13 11:47:11 --> Total execution time: 2.7638 DEBUG - 2013-12-13 11:48:21 --> Config Class Initialized DEBUG - 2013-12-13 11:48:21 --> Hooks Class Initialized DEBUG - 2013-12-13 11:48:21 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:48:21 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:48:21 --> URI Class Initialized DEBUG - 2013-12-13 11:48:21 --> Router Class Initialized DEBUG - 2013-12-13 11:48:21 --> Output Class Initialized DEBUG - 2013-12-13 11:48:21 --> Security Class Initialized DEBUG - 2013-12-13 11:48:21 --> Input Class Initialized DEBUG - 2013-12-13 11:48:21 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:48:21 --> Language Class Initialized DEBUG - 2013-12-13 11:48:21 --> Loader Class Initialized DEBUG - 2013-12-13 11:48:21 --> Controller Class Initialized DEBUG - 2013-12-13 11:48:21 --> Model Class Initialized DEBUG - 2013-12-13 11:48:21 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:48:21 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:48:21 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:48:21 --> File loaded: application/views/header.php DEBUG - 2013-12-13 11:48:21 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 11:48:21 --> Final output sent to browser DEBUG - 2013-12-13 11:48:21 --> Total execution time: 0.0656 DEBUG - 2013-12-13 11:48:23 --> Config Class Initialized DEBUG - 2013-12-13 11:48:23 --> Hooks Class Initialized DEBUG - 2013-12-13 11:48:23 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:48:23 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:48:23 --> URI Class Initialized DEBUG - 2013-12-13 11:48:23 --> Router Class Initialized DEBUG - 2013-12-13 11:48:23 --> Output Class Initialized DEBUG - 2013-12-13 11:48:23 --> Security Class Initialized DEBUG - 2013-12-13 11:48:23 --> Input Class Initialized DEBUG - 2013-12-13 11:48:23 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:48:23 --> Language Class Initialized DEBUG - 2013-12-13 11:48:23 --> Loader Class Initialized DEBUG - 2013-12-13 11:48:23 --> Controller Class Initialized DEBUG - 2013-12-13 11:48:23 --> Model Class Initialized DEBUG - 2013-12-13 11:48:23 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:48:23 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:48:23 --> Helper loaded: url_helper DEBUG - 2013-12-13 11:48:23 --> Final output sent to browser DEBUG - 2013-12-13 11:48:23 --> Total execution time: 0.0376 DEBUG - 2013-12-13 11:48:23 --> Config Class Initialized DEBUG - 2013-12-13 11:48:23 --> Hooks Class Initialized DEBUG - 2013-12-13 11:48:23 --> Utf8 Class Initialized DEBUG - 2013-12-13 11:48:23 --> UTF-8 Support Enabled DEBUG - 2013-12-13 11:48:23 --> URI Class Initialized DEBUG - 2013-12-13 11:48:23 --> Router Class Initialized DEBUG - 2013-12-13 11:48:23 --> Output Class Initialized DEBUG - 2013-12-13 11:48:23 --> Security Class Initialized DEBUG - 2013-12-13 11:48:23 --> Input Class Initialized DEBUG - 2013-12-13 11:48:23 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 11:48:23 --> Language Class Initialized DEBUG - 2013-12-13 11:48:23 --> Loader Class Initialized DEBUG - 2013-12-13 11:48:23 --> Controller Class Initialized DEBUG - 2013-12-13 11:48:23 --> Model Class Initialized DEBUG - 2013-12-13 11:48:23 --> Database Driver Class Initialized DEBUG - 2013-12-13 11:48:23 --> Helper loaded: html_helper DEBUG - 2013-12-13 11:48:23 --> Helper loaded: url_helper ERROR - 2013-12-13 11:49:55 --> Severity: Warning --> ftp_put() [<a href='function.ftp-put'>function.ftp-put</a>]: PORT command successful /Users/calvin/Sites/Codeigniter/application/models/Petition.php 242 ERROR - 2013-12-13 11:51:25 --> Severity: Warning --> ftp_put() [<a href='function.ftp-put'>function.ftp-put</a>]: PORT command successful /Users/calvin/Sites/Codeigniter/application/models/Petition.php 242 DEBUG - 2013-12-13 11:51:25 --> Final output sent to browser DEBUG - 2013-12-13 11:51:25 --> Total execution time: 182.5392 DEBUG - 2013-12-13 12:06:18 --> Config Class Initialized DEBUG - 2013-12-13 12:06:18 --> Hooks Class Initialized DEBUG - 2013-12-13 12:06:18 --> Utf8 Class Initialized DEBUG - 2013-12-13 12:06:18 --> UTF-8 Support Enabled DEBUG - 2013-12-13 12:06:18 --> URI Class Initialized DEBUG - 2013-12-13 12:06:18 --> Router Class Initialized DEBUG - 2013-12-13 12:06:18 --> Output Class Initialized DEBUG - 2013-12-13 12:06:18 --> Security Class Initialized DEBUG - 2013-12-13 12:06:18 --> Input Class Initialized DEBUG - 2013-12-13 12:06:18 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 12:06:18 --> Language Class Initialized DEBUG - 2013-12-13 12:06:18 --> Loader Class Initialized DEBUG - 2013-12-13 12:06:18 --> Controller Class Initialized DEBUG - 2013-12-13 12:06:18 --> Model Class Initialized DEBUG - 2013-12-13 12:06:19 --> Database Driver Class Initialized DEBUG - 2013-12-13 12:06:19 --> Helper loaded: html_helper DEBUG - 2013-12-13 12:06:19 --> Helper loaded: url_helper DEBUG - 2013-12-13 12:06:19 --> File loaded: application/views/header.php DEBUG - 2013-12-13 12:06:19 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 12:06:19 --> Final output sent to browser DEBUG - 2013-12-13 12:06:19 --> Total execution time: 0.2861 DEBUG - 2013-12-13 12:06:20 --> Config Class Initialized DEBUG - 2013-12-13 12:06:20 --> Hooks Class Initialized DEBUG - 2013-12-13 12:06:20 --> Utf8 Class Initialized DEBUG - 2013-12-13 12:06:20 --> UTF-8 Support Enabled DEBUG - 2013-12-13 12:06:20 --> URI Class Initialized DEBUG - 2013-12-13 12:06:20 --> Router Class Initialized DEBUG - 2013-12-13 12:06:20 --> Output Class Initialized DEBUG - 2013-12-13 12:06:20 --> Security Class Initialized DEBUG - 2013-12-13 12:06:20 --> Input Class Initialized DEBUG - 2013-12-13 12:06:20 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 12:06:20 --> Language Class Initialized DEBUG - 2013-12-13 12:06:20 --> Loader Class Initialized DEBUG - 2013-12-13 12:06:20 --> Controller Class Initialized DEBUG - 2013-12-13 12:06:20 --> Model Class Initialized DEBUG - 2013-12-13 12:06:20 --> Database Driver Class Initialized DEBUG - 2013-12-13 12:06:20 --> Helper loaded: html_helper DEBUG - 2013-12-13 12:06:20 --> Helper loaded: url_helper DEBUG - 2013-12-13 12:06:20 --> Final output sent to browser DEBUG - 2013-12-13 12:06:20 --> Total execution time: 0.2612 DEBUG - 2013-12-13 12:06:20 --> Config Class Initialized DEBUG - 2013-12-13 12:06:20 --> Hooks Class Initialized DEBUG - 2013-12-13 12:06:20 --> Utf8 Class Initialized DEBUG - 2013-12-13 12:06:20 --> UTF-8 Support Enabled DEBUG - 2013-12-13 12:06:20 --> URI Class Initialized DEBUG - 2013-12-13 12:06:20 --> Router Class Initialized DEBUG - 2013-12-13 12:06:20 --> Output Class Initialized DEBUG - 2013-12-13 12:06:20 --> Security Class Initialized DEBUG - 2013-12-13 12:06:20 --> Input Class Initialized DEBUG - 2013-12-13 12:06:20 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 12:06:20 --> Language Class Initialized DEBUG - 2013-12-13 12:06:20 --> Loader Class Initialized DEBUG - 2013-12-13 12:06:20 --> Controller Class Initialized DEBUG - 2013-12-13 12:06:20 --> Model Class Initialized DEBUG - 2013-12-13 12:06:20 --> Database Driver Class Initialized DEBUG - 2013-12-13 12:06:20 --> Helper loaded: html_helper DEBUG - 2013-12-13 12:06:20 --> Helper loaded: url_helper ERROR - 2013-12-13 12:07:52 --> Severity: Warning --> ftp_put() [<a href='function.ftp-put'>function.ftp-put</a>]: PORT command successful /Users/calvin/Sites/Codeigniter/application/models/Petition.php 244 ERROR - 2013-12-13 12:09:22 --> Severity: Warning --> ftp_put() [<a href='function.ftp-put'>function.ftp-put</a>]: PORT command successful /Users/calvin/Sites/Codeigniter/application/models/Petition.php 244 DEBUG - 2013-12-13 12:09:22 --> Final output sent to browser DEBUG - 2013-12-13 12:09:22 --> Total execution time: 181.7090 DEBUG - 2013-12-13 12:12:07 --> Config Class Initialized DEBUG - 2013-12-13 12:12:07 --> Hooks Class Initialized DEBUG - 2013-12-13 12:12:07 --> Utf8 Class Initialized DEBUG - 2013-12-13 12:12:07 --> UTF-8 Support Enabled DEBUG - 2013-12-13 12:12:07 --> URI Class Initialized DEBUG - 2013-12-13 12:12:07 --> Router Class Initialized DEBUG - 2013-12-13 12:12:07 --> Output Class Initialized DEBUG - 2013-12-13 12:12:07 --> Security Class Initialized DEBUG - 2013-12-13 12:12:07 --> Input Class Initialized DEBUG - 2013-12-13 12:12:07 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 12:12:07 --> Language Class Initialized DEBUG - 2013-12-13 12:12:07 --> Loader Class Initialized DEBUG - 2013-12-13 12:12:07 --> Controller Class Initialized DEBUG - 2013-12-13 12:12:07 --> Model Class Initialized DEBUG - 2013-12-13 12:12:07 --> Database Driver Class Initialized DEBUG - 2013-12-13 12:12:07 --> Helper loaded: html_helper DEBUG - 2013-12-13 12:12:07 --> Helper loaded: url_helper DEBUG - 2013-12-13 12:12:07 --> File loaded: application/views/header.php DEBUG - 2013-12-13 12:12:07 --> File loaded: application/views/editor.php DEBUG - 2013-12-13 12:12:07 --> Final output sent to browser DEBUG - 2013-12-13 12:12:07 --> Total execution time: 0.0476 DEBUG - 2013-12-13 12:12:10 --> Config Class Initialized DEBUG - 2013-12-13 12:12:10 --> Hooks Class Initialized DEBUG - 2013-12-13 12:12:10 --> Utf8 Class Initialized DEBUG - 2013-12-13 12:12:10 --> UTF-8 Support Enabled DEBUG - 2013-12-13 12:12:10 --> URI Class Initialized DEBUG - 2013-12-13 12:12:10 --> Router Class Initialized DEBUG - 2013-12-13 12:12:10 --> Output Class Initialized DEBUG - 2013-12-13 12:12:10 --> Security Class Initialized DEBUG - 2013-12-13 12:12:10 --> Input Class Initialized DEBUG - 2013-12-13 12:12:10 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 12:12:10 --> Language Class Initialized DEBUG - 2013-12-13 12:12:10 --> Loader Class Initialized DEBUG - 2013-12-13 12:12:10 --> Controller Class Initialized DEBUG - 2013-12-13 12:12:10 --> Model Class Initialized DEBUG - 2013-12-13 12:12:10 --> Database Driver Class Initialized DEBUG - 2013-12-13 12:12:10 --> Helper loaded: html_helper DEBUG - 2013-12-13 12:12:10 --> Helper loaded: url_helper DEBUG - 2013-12-13 12:12:10 --> Final output sent to browser DEBUG - 2013-12-13 12:12:10 --> Total execution time: 0.0468 DEBUG - 2013-12-13 12:12:10 --> Config Class Initialized DEBUG - 2013-12-13 12:12:10 --> Hooks Class Initialized DEBUG - 2013-12-13 12:12:10 --> Utf8 Class Initialized DEBUG - 2013-12-13 12:12:10 --> UTF-8 Support Enabled DEBUG - 2013-12-13 12:12:10 --> URI Class Initialized DEBUG - 2013-12-13 12:12:10 --> Router Class Initialized DEBUG - 2013-12-13 12:12:10 --> Output Class Initialized DEBUG - 2013-12-13 12:12:10 --> Security Class Initialized DEBUG - 2013-12-13 12:12:10 --> Input Class Initialized DEBUG - 2013-12-13 12:12:10 --> Global POST and COOKIE data sanitized DEBUG - 2013-12-13 12:12:10 --> Language Class Initialized DEBUG - 2013-12-13 12:12:10 --> Loader Class Initialized DEBUG - 2013-12-13 12:12:10 --> Controller Class Initialized DEBUG - 2013-12-13 12:12:10 --> Model Class Initialized DEBUG - 2013-12-13 12:12:10 --> Database Driver Class Initialized DEBUG - 2013-12-13 12:12:10 --> Helper loaded: html_helper DEBUG - 2013-12-13 12:12:10 --> Helper loaded: url_helper DEBUG - 2013-12-13 12:12:14 --> Final output sent to browser DEBUG - 2013-12-13 12:12:14 --> Total execution time: 4.4075
mit
edubega0707/Calendar-v1
public/js/script.js
2273
/* ======================================================================== * Site Javascript * * ======================================================================== * Copyright 2016 Bootbites.com (unless otherwise stated) * For license information see: http://bootbites.com/license * ======================================================================== */ // ================================================== // Heading // ================================================== $(document).ready(function() { // Smooth scrolling // ------------------------ $(function() { $('a[href*="#"]:not([href="#"])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); if (target.length) { $('html, body').animate({ scrollTop: target.offset().top }, 1000); return false; } } }); }); // Counting numbers // ------------------------ $('[data-toggle="counter-up"]').counterUp({ delay: 10, time: 1000 }); // Tooltip & popovers // ------------------------ $('[data-toggle="tooltip"]').tooltip(); $('[data-toggle="popover"]').popover(); // Background image via data tag // ------------------------ $('[data-block-bg-img]').each(function() { // @todo - invoke backstretch plugin if multiple images var $this = $(this), bgImg = $this.data('block-bg-img'); $this.css('backgroundImage','url('+ bgImg + ')').addClass('block-bg-img'); }); // jQuery counterUp // ------------------------ if(jQuery().counterUp) { $('[data-counter-up]').counterUp({ delay: 20, }); } //Scroll Top link // ------------------------ $(window).scroll(function(){ if ($(this).scrollTop() > 100) { $('.scrolltop').fadeIn(); } else { $('.scrolltop').fadeOut(); } }); $('.scrolltop, .navbar-brand').click(function(){ $("html, body").animate({ scrollTop: 0 }, 600); return false; }); // Fixes navbar when reaches top // ------------------------ $.lockfixed("#nav",{offset: {top: 0}}); });
mit
degica/barcelona
db/migrate/20150925074004_rename_value_to_encrypted_value.rb
169
class RenameValueToEncryptedValue < ActiveRecord::Migration def change remove_column :env_vars, :value add_column :env_vars, :encrypted_value, :text end end
mit
tapomayukh/projects_in_python
sandbox_tapo/src/refs/Python Examples_Pygame/Python Examples/move_with_walls_example.py
4201
# Sample Python/Pygame Programs # Simpson College Computer Science # http://cs.simpson.edu import pygame black = (0,0,0) white = (255,255,255) blue = (0,0,255) # This class represents the bar at the bottom that the player controls class Wall(pygame.sprite.Sprite): # Constructor function def __init__(self,x,y,width,height): # Call the parent's constructor pygame.sprite.Sprite.__init__(self) # Make a blue wall, of the size specified in the parameters self.image = pygame.Surface([width, height]) self.image.fill(blue) # Make our top-left corner the passed-in location. self.rect = self.image.get_rect() self.rect.top = y self.rect.left = x # This class represents the bar at the bottom that the player controls class Player(pygame.sprite.Sprite): # Set speed vector change_x=0 change_y=0 # Constructor function def __init__(self,x,y): # Call the parent's constructor pygame.sprite.Sprite.__init__(self) # Set height, width self.image = pygame.Surface([15, 15]) self.image.fill(white) # Make our top-left corner the passed-in location. self.rect = self.image.get_rect() self.rect.top = y self.rect.left = x # Change the speed of the player def changespeed(self,x,y): self.change_x+=x self.change_y+=y # Find a new position for the player def update(self,walls): # Get the old position, in case we need to go back to it old_x=self.rect.left new_x=old_x+self.change_x self.rect.left = new_x # Did this update cause us to hit a wall? collide = pygame.sprite.spritecollide(self, walls, False) if collide: # Whoops, hit a wall. Go back to the old position self.rect.left=old_x old_y=self.rect.top new_y=old_y+self.change_y self.rect.top = new_y # Did this update cause us to hit a wall? collide = pygame.sprite.spritecollide(self, walls, False) if collide: # Whoops, hit a wall. Go back to the old position self.rect.top=old_y score = 0 # Call this function so the Pygame library can initialize itself pygame.init() # Create an 800x600 sized screen screen = pygame.display.set_mode([800, 600]) # Set the title of the window pygame.display.set_caption('Test') # Create a surface we can draw on background = pygame.Surface(screen.get_size()) # Used for converting color maps and such background = background.convert() # Fill the screen with a black background background.fill(black) # Create the player paddle object player = Player( 50,50 ) movingsprites = pygame.sprite.RenderPlain() movingsprites.add(player) # Make the walls. (x_pos, y_pos, width, height) wall_list=pygame.sprite.RenderPlain() wall=Wall(0,0,10,600) wall_list.add(wall) wall=Wall(10,0,790,10) wall_list.add(wall) wall=Wall(10,200,100,10) wall_list.add(wall) clock = pygame.time.Clock() done = False while done == False: for event in pygame.event.get(): if event.type == pygame.QUIT: done=True if event.type == pygame.KEYDOWN: if event.key == pygame.K_LEFT: player.changespeed(-3,0) if event.key == pygame.K_RIGHT: player.changespeed(3,0) if event.key == pygame.K_UP: player.changespeed(0,-3) if event.key == pygame.K_DOWN: player.changespeed(0,3) if event.type == pygame.KEYUP: if event.key == pygame.K_LEFT: player.changespeed(3,0) if event.key == pygame.K_RIGHT: player.changespeed(-3,0) if event.key == pygame.K_UP: player.changespeed(0,3) if event.key == pygame.K_DOWN: player.changespeed(0,-3) player.update(wall_list) screen.fill(black) movingsprites.draw(screen) wall_list.draw(screen) pygame.display.flip() clock.tick(40) pygame.quit()
mit
husainaloos/ranker
config/db.js
69
const url = 'mongodb://localhost/ranker'; module.exports.url = url;
mit
ignatandrei/stankins
stankinsV1/Transformers/TransformRowRemainsKeys.cs
1327
using StankinsInterfaces; using System.Linq; using System.Threading.Tasks; namespace Transformers { public class TransformRowRemainsProperties : ITransform { public TransformRowRemainsProperties(params string[] properties) { Properties = properties; string all = ""; if((properties?.Length??0)>0) all = string.Join(",", properties); Name = $"remain just {all}, removing all others"; } public IRow[] valuesRead { get; set; } public IRow[] valuesTransformed { get; set; } public string Name { get; set; } public string[] Properties { get; set; } public async Task Run() { bool mustTransform = Properties?.Length > 0; if (mustTransform) { foreach (var item in valuesRead) { var keys = item.Values.Keys.ToArray(); var diff = keys.Except(Properties).ToArray(); if (diff?.Length < 1) continue; foreach (var key in diff) { item.Values.Remove(key); } } } valuesTransformed = valuesRead; } } }
mit
wmira/react-icons-kit
src/md/ic_local_movies.js
331
export const ic_local_movies = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"},"children":[]}]};
mit
DimitarSD/Telerik-Academy
03. Software Technologies/02. Web Services and Cloud/01. Introduction To ASP.NET Web API/Student System/StudentSystem.Web/App_Start/BundleConfig.cs
1130
namespace StudentSystem.Web { using System.Web; using System.Web.Optimization; public class BundleConfig { // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/Scripts/bootstrap.js", "~/Scripts/respond.js")); bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/bootstrap.css", "~/Content/site.css")); } } }
mit
iwillspeak/IronRure
test/IronRureTests/RegexTests.cs
8593
using System; using System.Linq; using System.Threading.Tasks; using Xunit; using System.Globalization; using IronRure; namespace IronRureTests { public class RegexTests { [Fact] public void Regex_CreateWithEmptyPattern_Succeeds() { var regex = new Regex(""); } [Fact] public void Regex_AsIDsiposable_ImplementsInterface() { var reg = new Regex(".*"); var dispo = reg as IDisposable; Assert.NotNull(dispo); } [Fact] public void Regex_CreateWithOptions_Succeeds() { using (var reg = new Regex(@"\w+", new Options().WithSize(512).WithDfaSize(512))) { Assert.True(reg.IsMatch("hello")); Assert.False(reg.IsMatch("!@£$")); } } [Fact] public void Regex_CreateWithFlags_Succeeds() { using (var reg = new Regex("", new Options(), Regex.DefaultFlags)) { Assert.True(reg.IsMatch("")); } } [Fact] public void Regex_CreateWithFlagsOnly_Succeeds() { using (var reg = new Regex(@"Δ", RureFlags.Unicode | RureFlags.Casei)) { Assert.True(reg.IsMatch("δ")); } } [Fact] public void Regex_CreateWithInvalidPattern_ThrowsException() { Assert.Throws<RegexCompilationException>(() => new Regex(")")); } [Fact] public void Regex_IsMatch_ReturnsTrueWhenPatternMatches() { var reg = new Regex("(abb)|c"); Assert.False(reg.IsMatch("world")); Assert.True(reg.IsMatch("circle")); Assert.True(reg.IsMatch("abb circle")); Assert.True(reg.IsMatch("an abb")); } [Fact] public void Regex_IsMatchWithOffset_RespectsAnchors() { var reg = new Regex("(^hello)|(world)"); Assert.True(reg.IsMatch("hello there", 0)); Assert.False(reg.IsMatch("hello there", 1)); Assert.False(reg.IsMatch("xxxhello", 3)); Assert.True(reg.IsMatch("hello world", 6)); } [Fact] public void Regex_Find_ReturnsValidMatchInfo() { var reg = new Regex(@"\d{2,4}"); { var match = reg.Find("300"); Assert.True(match.Matched); Assert.Equal(0U, match.Start); Assert.Equal(3U, match.End); } { var match = reg.Find("this 1 has 3 numbers in 32 chars"); Assert.True(match.Matched); Assert.Equal(24U, match.Start); Assert.Equal(26U, match.End); } } [Fact] public void Regex_FindAll_ReturnsIteratorOfMatches() { var reg = new Regex(@"\d+"); var matches = reg.FindAll("").ToArray(); Assert.Empty(matches); matches = reg.FindAll("4 + 8 = 12").ToArray(); Assert.Equal(3, matches.Length); Assert.Equal(0U, matches[0].Start); Assert.Equal(1U, matches[0].End); Assert.Equal(4U, matches[1].Start); Assert.Equal(5U, matches[1].End); Assert.Equal(8U, matches[2].Start); Assert.Equal(10U, matches[2].End); } [Fact] public void Regex_FindAllWithEmptuRegex() { var reg = new Regex(""); var matches = reg.FindAll("hello").ToArray(); Assert.Equal(6, matches.Length); } [Fact] public void Regex_CaptureAll_RetursIteratorOfCaptures() { var reg = new Regex(@"(\d) [+=*/\-] (\d)"); var caps = reg.CaptureAll("2 * 8 - 9 = 7").ToArray(); Assert.Equal(2, caps.Length); { var cap = caps[0]; Assert.Equal("2 * 8", cap[0].ExtractedString); } { var cap = caps[1]; Assert.Equal("9", cap[1].ExtractedString); Assert.Equal("7", cap[2].ExtractedString); } } [Fact] public void Regex_WhenNotAlCapturesAreCaptured_IndividualMatchIsCorrect() { var reg = new Regex(@"\b(\w)(\d)?(\w)\b"); using (var captures = reg.Captures("this is a test")) { Assert.True(captures.Matched); Assert.True(captures[0].Matched); Assert.True(captures[1].Matched); Assert.False(captures[2].Matched); Assert.True(captures[3].Matched); } } [Fact] public void Regex_GetCaptureName_ReturnsCorrectCapturesIndex() { var reg = new Regex(@"(?P<foo>[a](?P<bar>\d))(4)(?P<baz>(.{2}))(?:b)(?P<t>7)"); Assert.Equal(1, reg["foo"]); Assert.Equal(2, reg["bar"]); Assert.Equal(4, reg["baz"]); Assert.Equal(6, reg["t"]); } [Fact] public void Regex_CaptureNamesIter_ReturnsCorrectNames() { var regex = new Regex(@"(?P<foo>[a](?P<bar>\d))(4)(?P<baz>(.{2}))(?:b)(?P<t>7)"); var names = regex.CaptureNames().ToArray(); Assert.Contains("foo", names); Assert.Contains("bar", names); Assert.Contains("baz", names); Assert.Contains("t", names); Assert.Equal(4, names.Length); } [Fact] public void Regex_IndexIntoCaptureWithGroupName_ReturnsCorrectMatch() { var reg = new Regex(@"(?P<h>hello) (?P<w>world)"); var caps = reg.Captures("hello world"); Assert.Equal("hello", caps["h"].ExtractedString); Assert.Equal("world", caps["w"].ExtractedString); } [Fact] public void Regex_FindWithCaptures_ReturnsValidCaptureInfo() { var dates = new Regex(@"(\d{2})/(\d{2})/(\d{4})"); using (var captures = dates.Captures("hello on 14/05/2017!")) { Assert.True(captures.Matched); var match = captures[0]; Assert.True(captures.Matched); Assert.Equal(4, captures.Length); Assert.Equal(9U, match.Start); Assert.Equal(19U, match.End); Assert.True(captures[1].Matched); Assert.True(captures[2].Matched); Assert.True(captures[3].Matched); } } [Fact] public void Regex_DateWithNamedCaptures_ExtractsExpectedValues() { var dates = new Regex(@"(?P<day>\d{2})/(?P<month>\d{2})/(?P<year>\d{4})"); var haystack = "The first satellite was launched on 04/10/1961"; var caps = dates.Captures(haystack); Assert.True(caps.Matched); Assert.Equal("04", caps[dates["day"]].ExtractedString); Assert.Equal("10", caps[dates["month"]].ExtractedString); Assert.Equal("1961", caps[dates["year"]].ExtractedString); } [Fact] public void Regex_ReplaceWithLiteralString_ReplacesFirstMatch() { var numbers = new Regex(@"\d+"); var haystack = "7 ate 9 because it wanted 3 square meals"; Assert.Equal("* ate 9 because it wanted 3 square meals", numbers.Replace(haystack, "*")); } [Fact] public void Regex_ReplaceAllWithLiteralString_ReplacesAllMatches() { var numbers = new Regex(@"\d+"); var haystack = "1, 2, 3 and 4"; Assert.Equal("#, #, # and #", numbers.ReplaceAll(haystack, "#")); } [Fact] public void Regex_ReplaceWithCount_ReplacesOnlyRequestedMatches() { var words = new Regex(@"\b\w+\b"); var haystack = "super six 4, this is super six four."; Assert.Equal("$ $ $, this is super six four.", words.Replacen(haystack, "$", 3)); } [Fact] public void Regex_ReplaceWithComputedReplacement_InsertsCorrectReplacement() { var longWords = new Regex(@"\b\w{1,5}\b"); var haystack = "hello replacing world!"; Assert.Equal("##### replacing #####!", longWords.ReplaceAll(haystack, m => new String('#', (int)(m.End - m.Start)))); } } }
mit
ratimid/SoftUni
C#/ProgrammingBasicsAugust2016/05.SimpleLoops/06.MinNumber/Properties/AssemblyInfo.cs
1436
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("06.MinNumber")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("06.MinNumber")] [assembly: AssemblyCopyright("Copyright © 2016")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("b3086899-e693-4572-8115-62526ead3860")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
mit
HendricksK/geoblocking-angular
server/server.js
502
var app = require('express')(); var http = require('http').Server(app); var io = require('socket.io')(http); io.on('connection', (socket) => { console.log('User Connected'); socket.on('disconnect', () => { console.log('User Disconnected...'); }); socket.on('add-message', (message, username) => { io.emit('message', {type: 'new-message', text: message, username: username }); }); }); http.listen(8000, () => { console.log('server running on port 8000'); });
mit
frangucc/chicago_ideas
db/migrate/20130221014955_add_projected_members_and_max_members_to_member_types.rb
241
class AddProjectedMembersAndMaxMembersToMemberTypes < ActiveRecord::Migration def change add_column :member_types, :projected_members, :integer, default: 0 add_column :member_types, :maximum_members, :integer, default: 0 end end
mit
borwahs/natalieandrob.com
server/server.js
414
var Hapi = require("hapi"); var Joi = require("joi"); var Config = require("./config"); var Routes = require("./routes"); var server = Hapi.createServer(Config.host, Config.port); // register all the routes server.route(Routes.endpoints); server.start(function() { console.log("Hapi server started:", server.info.uri); console.log("Configuration:", Config); console.log("Directory:", process.cwd()); });
mit
codeactual/sinon-doublist-fs
test/lib/co-fs.js
506
/* eslint func-names: 0 */ 'use strict'; require('..'); const T = require('../t'); T.sinonDoublist(T.sinon, 'mocha'); T.sinonDoublistFs('mocha'); describe('co-fs compatibility', function() { it('should include #writeFile and #readFile', function *() { const fs = require('co-fs'); this.stubFile(this.paths[0]).make(); yield fs.writeFile(this.paths[0], this.strings[0]); const written = yield fs.readFile(this.paths[0]); written.toString().should.equal(this.strings[0]); }); });
mit
Jheysoon/lcis
application/views/edp/preview.php
8685
<!DOCTYPE html> <html lang="en" class="no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Leyte Colleges Information System</title> <link rel="icon" type="image/jpg" href="<?php echo base_url('assets/images/LC Logo.jpg'); ?>"> <link rel="shortcut icon" type="image/jpg" href="<?php echo base_url('assets/images/LC logo.jpg'); ?>"> <link rel="stylesheet" type="text/css" href="/assets/css/normalize.css"> <link rel="stylesheet" type="text/css" href="/assets/css/print.css"> </head> <body> <!-- <div class="col-md-12"> --> <div class="center-block"> <table border="1" style="width:90%;margin:0px auto;"> <caption> <br/> Schedule for Room : <?php echo $room_name; ?> Location: <?php echo $location; ?> </caption> <tr> <th>Time \ Day</th> <th>Monday</th> <th>Tuesday</th> <th>Wednesday</th> <th>Thursday</th> <th>Friday</th> <th>Saturday</th> <th>Sunday</th> </tr> <?php // get all time periods $time1 = $this->db->get('tbl_time')->result_array(); $time = array(); foreach($time1 as $t) { $time[] = $t['time']; } //get all the days $day1 = $this->db->get('tbl_day')->result_array(); $day = array(); foreach($day1 as $d) { $day[] = $d['id']; } $class = $this->edp_classallocation->allocByRoom($roomId); $monday = array(); $tuesday = array(); $wednesday = array(); $thursday = array(); $friday = array(); $saturday = array(); $sunday = array(); $color = array('#0050EF','#1BA1E2', '#AA00FF','#FA6800', '#76608A','#6D8764', '#F0A30A','#6A00FF', '#00ABA9','#008A00', '#87794E','#E3C800'); $ctr = 0; foreach($class as $cl) { $cc_count = $this->edp_classallocation->countDayPer($cl['id'],$roomId); if($cc_count > 0) { //determine the color of the subject $dd = $this->edp_classallocation->getDayPeriod($cl['id'],$roomId); foreach ($dd as $per) { if($per['day'] == 1) { $from = $per['from_time']; $to = $per['to_time']; $span = $to-$from; $tt = $to - 1; $s = $this->subject->find($cl['subject']); $cc = $this->edp_classallocation->getCourseShort($cl['coursemajor']); for($i = $from;$i <= $tt;$i++) { if($i == $from) { $monday[$i] = array('day' => 'Monday', 'rowspan' => $span, 'subject' => $s['code'], 'course' => $cc, 'color' => $color[$ctr]); } else { $monday[$i] = array('day'=>'Monday'); } } } elseif($per['day'] == 2) { $from = $per['from_time']; $to = $per['to_time']; $span = $to-$from; $tt = $to - 1; $s = $this->subject->find($cl['subject']); $cc = $this->edp_classallocation->getCourseShort($cl['coursemajor']); for($i = $from;$i <= $tt;$i++) { if($i == $from) { $tuesday[$i] = array('day' => 'Tuesday', 'rowspan' => $span, 'subject' => $s['code'], 'course' => $cc, 'color' => $color[$ctr]); } else { $tuesday[$i] = array('day'=>'Tuesday'); } } } elseif ($per['day'] == 3) { $from = $per['from_time']; $to = $per['to_time']; $span = $to-$from; $tt = $to - 1; $s = $this->subject->find($cl['subject']); $cc = $this->edp_classallocation->getCourseShort($cl['coursemajor']); for($i = $from;$i <= $tt;$i++) { if($i == $from) { $wednesday[$i] = array('day' => 'Wednesday', 'rowspan' => $span, 'subject' => $s['code'], 'course' => $cc, 'color' => $color[$ctr]); } else { $wednesday[$i] = array('day'=>'Wednesday'); } } } elseif ($per['day'] == 4) { $from = $per['from_time']; $to = $per['to_time']; $span = $to-$from; $tt = $to - 1; $s = $this->subject->find($cl['subject']); $cc = $this->edp_classallocation->getCourseShort($cl['coursemajor']); for($i = $from;$i <= $tt;$i++) { if($i == $from) { $thursday[$i] = array('day' => 'Thursday', 'rowspan' => $span, 'subject' => $s['code'], 'course' => $cc, 'color' => $color[$ctr]); } else { $thursday[$i] = array('day'=>'Thursday'); } } } elseif ($per['day'] == 5) { $from = $per['from_time']; $to = $per['to_time']; $span = $to-$from; $tt = $to - 1; $s = $this->subject->find($cl['subject']); $cc = $this->edp_classallocation->getCourseShort($cl['coursemajor']); for($i = $from;$i <= $tt;$i++) { if($i == $from) { $friday[$i] = array('day' => 'Friday', 'rowspan' => $span, 'subject' => $s['code'], 'course' => $cc, 'color' => $color[$ctr]); } else { $friday[$i] = array('day'=>'Friday'); } } } elseif ($per['day'] == 6) { $from = $per['from_time']; $to = $per['to_time']; $span = $to-$from; $tt = $to - 1; $s = $this->subject->find($cl['subject']); $cc = $this->edp_classallocation->getCourseShort($cl['coursemajor']); for($i = $from;$i <= $tt;$i++) { if($i == $from) { $saturday[$i] = array('day' => 'Saturday', 'rowspan' => $span, 'subject' => $s['code'], 'course' => $cc, 'color' => $color[$ctr]); } else { $saturday[$i] = array('day'=>'Saturday'); } } } elseif ($per['day'] == 7) { $from = $per['from_time']; $to = $per['to_time']; $span = $to-$from; $tt = $to - 1; $s = $this->subject->find($cl['subject']); $cc = $this->edp_classallocation->getCourseShort($cl['coursemajor']); for($i = $from;$i <= $tt;$i++) { if($i == $from) { $sunday[$i] = array('day' => 'Sunday', 'rowspan' => $span, 'subject' => $s['code'], 'course' => $cc, 'color' => $color[$ctr]); } else { $sunday[$i] = array('day'=>'Sunday'); } } } } $ctr++; } } $table_day['1'] = $monday; $table_day['2'] = $tuesday; $table_day['3'] = $wednesday; $table_day['4'] = $thursday; $table_day['5'] = $friday; $table_day['6'] = $saturday; $table_day['7'] = $sunday; for($i = 0;$i < 26;$i++) { ?> <tr> <td style="text-align:center;"><strong><?php echo $time[$i].' - '.$time[$i+1]; ?></strong></td> <?php if($time[$i] != '12:00' AND $time[$i+1] != '1:00') { foreach($day as $d) { //checks if there is scheduled subject if(!empty($table_day[$d][$i+1])) { if(!empty($table_day[$d][$i+1]['rowspan'])) { ?> <td rowspan="<?php echo $table_day[$d][$i+1]['rowspan']; ?>" class="colspan" style="background-color:<?php echo $table_day[$d][$i+1]['color']; ?>;"> <span> <?php echo $table_day[$d][$i+1]['subject']; ?> <br/> <?php echo $table_day[$d][$i+1]['course']; ?> </span> </td> <?php } } else { ?> <td style="height:5px;">&nbsp;</td> <?php } } } else { echo '<td colspan="7" style="text-align:center;">LUNCH BREAK</td>'; } ?> </tr> <?php } ?> </table> <!-- </div> </div> --> </div>
mit
fjpavm/ChilliSource
Projects/Tools/CSFontBuilder/src/com/chilliworks/chillisource/csfontbuilder/fontfromglyphsbuilder/GlyphsReader.java
6588
/** * GlyphsReader.java * Chilli Source * Created by Ian Copland on 21/10/2014. * * The MIT License (MIT) * * Copyright (c) 2014 Tag Games Limited * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package com.chilliworks.chillisource.csfontbuilder.fontfromglyphsbuilder; import java.io.File; import java.util.ArrayList; import java.util.List; import org.json.JSONObject; import com.chilliworks.chillisource.coreutils.CSException; import com.chilliworks.chillisource.coreutils.FileUtils; import com.chilliworks.chillisource.coreutils.Logging; import com.chilliworks.chillisource.coreutils.StringUtils; /** * Provides a series of methods for reading bitmap font glyphs to file. * * @author Ian Copland */ public final class GlyphsReader { private static final String FONT_INFO_FILE_PATH = "FontInfo.csfontinfo"; /** * Reads bitmap glyph files and the Font Info file from the given * directory. * * @author Ian Copland * * @param in_inputDirectoryPath - The input directory containing the * bitmap glyphs and font info file. * * @return The glyphs container. This will never be null. * * @throws CSException - An exception which provides a message describing * the error which has occurred. */ public static Glyphs read(String in_inputDirectoryPath) throws CSException { String[] glyphFilePaths = findImageFilesInDirectory(in_inputDirectoryPath); char[] glyphCharacters = getCharacterForFilePaths(glyphFilePaths); return buildGlyphs(glyphCharacters, glyphFilePaths, in_inputDirectoryPath); } /** * Retrieves the path to all files in the given directory. * * @author Ian Copland * * @param in_directoryPath - The directory to search for images in. * * @return The array of file paths. The path will include the input * directory path. This will never be null. * * @throws CSException - An exception which provides a message describing * the error which has occurred. */ private static String[] findImageFilesInDirectory(String in_directoryPath) throws CSException { File directory = new File(in_directoryPath); if (directory.exists() == false) { throw new CSException("Glyphs directory doesn't exist: " + in_directoryPath); } List<String> imageFilePaths = new ArrayList<>(); String[] contents = directory.list(); for (String itemPath : contents) { File item = new File(directory, itemPath); if (item.isFile() == true && itemPath.toLowerCase().endsWith(".png") == true) { imageFilePaths.add(item.getPath()); } } return imageFilePaths.toArray(new String[0]); } /** * Gets the character each image at the given file paths represents. This * is parsed from the image file names, which is the unicode for the * character. * * @author Ian Copland * * @param in_glyphFilePaths - The file paths of all the glyph images. * * @return The array of characters. This will never be null. */ private static char[] getCharacterForFilePaths(String[] in_glyphFilePaths) { char[] characters = new char[in_glyphFilePaths.length]; for (int i = 0; i < in_glyphFilePaths.length; ++i) { String glyphFilePath = in_glyphFilePaths[i]; String glyphFileName = StringUtils.getFileName(glyphFilePath); String glyphFileRoot = StringUtils.removeExtension(glyphFileName); characters[i] = (char) Integer.parseInt(glyphFileRoot, 16); } return characters; } /** * Builds the glyphs from the given data and the contents of the Font * Info file in the given directory. * * @author Ian Copland * * @param in_characters - The list of glyph characters. * @param in_filePaths - The list of glyph bitmap image file paths. * @param in_inputDirectoryPath - The directory path that contains the * font info file. * * @return A 4-tuple containing the font size, line height, descent and * effect padding of the font. This will never be null. * * @throws CSException - An exception which provides a message describing * the error which has occurred. */ private static Glyphs buildGlyphs(char[] in_characters, String[] in_filePaths, String in_inputDirectoryPath) throws CSException { assert (in_characters.length == in_filePaths.length) : "Cannot build glyphs with different sized character and file path arrays."; String filePath = in_inputDirectoryPath + FONT_INFO_FILE_PATH; try { String fileContents = FileUtils.readFile(filePath); if (fileContents.length() == 0) { return null; } JSONObject jsonRoot = new JSONObject(fileContents); int fontSize = jsonRoot.getInt("FontSize"); int lineHeight = jsonRoot.getInt("LineHeight"); int descent = jsonRoot.getInt("Descent"); int spaceAdvance = jsonRoot.getInt("SpaceAdvance"); int verticalPadding = jsonRoot.getInt("VerticalPadding"); JSONObject jsonGlyphs = jsonRoot.getJSONObject("Glyphs"); Glyph[] glyphs = new Glyph[in_characters.length]; for (int i = 0; i < in_characters.length; ++i) { char character = in_characters[i]; JSONObject jsonGlyph = jsonGlyphs.getJSONObject("" + character); int origin = jsonGlyph.getInt("Origin"); int advance = jsonGlyph.getInt("Advance"); glyphs[i] = new Glyph(character, in_filePaths[i], origin, advance); } return new Glyphs(glyphs, fontSize, lineHeight, descent, spaceAdvance, verticalPadding); } catch (Exception e) { Logging.logVerbose(StringUtils.convertExceptionToString(e)); throw new CSException("Could not read the font info file: " + filePath, e); } } }
mit
catalinmiron/hackathon-granditude
app/stores/posts.js
2930
import request from "superagent"; var geocoder = require('google-geocoder'); var geo = geocoder({ key: 'AIzaSyBR0Vq80nxm-dwOueLvaw2wUmSC0vGFmHU' }); let _currentUserPosts = null; let _post = []; let _myPosts=null; let _publicPosts = null; let _postByProfileId = [] let _changeListeners = []; let _initCalled = false; const PostStore = { init: function() { console.log('init!!!') this.getCurrentUserPosts(); this.getAllPosts(); }, addPost: function(data, done) { // console.log('-----------------------------'); console.log(data); geo.find(data.location, function(eroareaVietii, resource) { data.realLocation = data.location; data.location = [resource[0].location.lat, resource[0].location.lng]; request.post("/api/posts/new") .set("Accept", "application/json") .set("Content-Type", "application/json") .send(data) .end(function(err, res) { if (!err && res.body) { _post = res.body; /* eslint-disable no-use-before-define */ PostStore.notifyChange(); /* eslint-enable no-use-before-define */ } if (done) { done(err, _post); } }); }); }, getPostByProfileId: function(id) { _postByProfileId = null; request.get('/api/profile/' + id) .set("Accept", "application/json") .set("Content-Type", "application/json") .end(function(err, res) { if (!err && res.body) { console.log(res.body); _postByProfileId = res.body; PostStore.notifyChange(); } }); }, getCurrentUserPosts: function() { request.get('/api/me') .set("Accept", "application/json") .set("Content-Type", "application/json") .end(function(err, res) { if (!err && res.body) { console.log(res.body); _myPosts = res.body; PostStore.notifyChange(); } }); }, getAllPosts: function() { request.get('/api/posts/public') .set("Accept", "application/json") .set("Content-Type", "application/json") .end(function(err, res) { console.log(res.body); if (!err && res.body) { _publicPosts = res.body; PostStore.notifyChange(); } }); }, notifyChange: function() { console.log(';notify change') _changeListeners.forEach(function(listener) { listener(); }); }, addChangeListener: function(listener) { _changeListeners.push(listener); }, removeChangeListener: function(listener) { _changeListeners = _changeListeners.filter(function(l) { return listener !== l; }); }, getMyPosts: function() { return _myPosts; }, getProfilePosts: function() { return _postByProfileId; }, getPosts: function() { console.log(_publicPosts) return _publicPosts; } }; export default PostStore;
mit
Syafiqq/spk.edu
application/config/config.php
18507
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically this will be your base URL, | WITH a trailing slash: | | http://example.com/ | | WARNING: You MUST set this value! | | If it is not set, then CodeIgniter will try guess the protocol and path | your installation, but due to security concerns the hostname will be set | to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise. | The auto-detection mechanism exists only for convenience during | development and MUST NOT be used in production! | | If you need to allow multiple domains, remember that this file is still | a PHP script and you can easily do that on your own. | */ $config['base_url'] = ''; /* |-------------------------------------------------------------------------- | Index File |-------------------------------------------------------------------------- | | Typically this will be your index.php file, unless you've renamed it to | something else. If you are using mod_rewrite to remove the page set this | variable so that it is blank. | */ $config['index_page'] = 'index.php'; /* |-------------------------------------------------------------------------- | URI PROTOCOL |-------------------------------------------------------------------------- | | This item determines which server global should be used to retrieve the | URI string. The default setting of 'REQUEST_URI' works for most servers. | If your links do not seem to work, try one of the other delicious flavors: | | 'REQUEST_URI' Uses $_SERVER['REQUEST_URI'] | 'QUERY_STRING' Uses $_SERVER['QUERY_STRING'] | 'PATH_INFO' Uses $_SERVER['PATH_INFO'] | | WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded! */ $config['uri_protocol'] = 'REQUEST_URI'; /* |-------------------------------------------------------------------------- | URL suffix |-------------------------------------------------------------------------- | | This option allows you to add a suffix to all URLs generated by CodeIgniter. | For more information please see the user guide: | | http://codeigniter.com/user_guide/general/urls.html */ $config['url_suffix'] = ''; /* |-------------------------------------------------------------------------- | Default Language |-------------------------------------------------------------------------- | | This determines which set of language files should be used. Make sure | there is an available translation if you intend to use something other | than english. | */ $config['language'] = 'english'; /* |-------------------------------------------------------------------------- | Default Character Set |-------------------------------------------------------------------------- | | This determines which character set is used by default in various methods | that require a character set to be provided. | | See http://php.net/htmlspecialchars for a list of supported charsets. | */ $config['charset'] = 'UTF-8'; /* |-------------------------------------------------------------------------- | Enable/Disable System Hooks |-------------------------------------------------------------------------- | | If you would like to use the 'hooks' feature you must enable it by | setting this variable to TRUE (boolean). See the user guide for details. | */ $config['enable_hooks'] = FALSE; /* |-------------------------------------------------------------------------- | Class Extension Prefix |-------------------------------------------------------------------------- | | This item allows you to set the filename/classname prefix when extending | native libraries. For more information please see the user guide: | | http://codeigniter.com/user_guide/general/core_classes.html | http://codeigniter.com/user_guide/general/creating_libraries.html | */ $config['subclass_prefix'] = 'MY_'; /* |-------------------------------------------------------------------------- | Composer auto-loading |-------------------------------------------------------------------------- | | Enabling this setting will tell CodeIgniter to look for a Composer | package auto-loader script in application/vendor/autoload.php. | | $config['composer_autoload'] = TRUE; | | Or if you have your vendor/ directory located somewhere else, you | can opt to set a specific path as well: | | $config['composer_autoload'] = '/path/to/vendor/autoload.php'; | | For more information about Composer, please visit http://getcomposer.org/ | | Note: This will NOT disable or override the CodeIgniter-specific | autoloading (application/config/autoload.php) */ //$config['composer_autoload'] = FALSE; $config['composer_autoload'] = FCPATH.'vendor/autoload.php';; require_once FCPATH.'vendor/autoload.php'; /* |-------------------------------------------------------------------------- | Allowed URL Characters |-------------------------------------------------------------------------- | | This lets you specify which characters are permitted within your URLs. | When someone tries to submit a URL with disallowed characters they will | get a warning message. | | As a security measure you are STRONGLY encouraged to restrict URLs to | as few characters as possible. By default only these are allowed: a-z 0-9~%.:_- | | Leave blank to allow all characters -- but only if you are insane. | | The configured value is actually a regular expression character group | and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i | | DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!! | */ $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; /* |-------------------------------------------------------------------------- | Enable Query Strings |-------------------------------------------------------------------------- | | By default CodeIgniter uses search-engine friendly segment based URLs: | example.com/who/what/where/ | | By default CodeIgniter enables access to the $_GET array. If for some | reason you would like to disable it, set 'allow_get_array' to FALSE. | | You can optionally enable standard query string based URLs: | example.com?who=me&what=something&where=here | | Options are: TRUE or FALSE (boolean) | | The other items let you set the query string 'words' that will | invoke your controllers and its functions: | example.com/index.php?c=controller&m=function | | Please note that some of the helpers won't work as expected when | this feature is enabled, since CodeIgniter is designed primarily to | use segment based URLs. | */ $config['allow_get_array'] = TRUE; $config['enable_query_strings'] = FALSE; $config['controller_trigger'] = 'c'; $config['function_trigger'] = 'm'; $config['directory_trigger'] = 'd'; /* |-------------------------------------------------------------------------- | Error Logging Threshold |-------------------------------------------------------------------------- | | You can enable error logging by setting a threshold over zero. The | threshold determines what gets logged. Threshold options are: | | 0 = Disables logging, Error logging TURNED OFF | 1 = Error Messages (including PHP errors) | 2 = Debug Messages | 3 = Informational Messages | 4 = All Messages | | You can also pass an array with threshold levels to show individual error types | | array(2) = Debug Messages, without Error Messages | | For a live site you'll usually only enable Errors (1) to be logged otherwise | your log files will fill up very fast. | */ $config['log_threshold'] = 1; /* |-------------------------------------------------------------------------- | Error Logging Directory Path |-------------------------------------------------------------------------- | | Leave this BLANK unless you would like to set something other than the default | application/logs/ directory. Use a full server path with trailing slash. | */ $config['log_path'] = ''; /* |-------------------------------------------------------------------------- | Log File Extension |-------------------------------------------------------------------------- | | The default filename extension for log files. The default 'php' allows for | protecting the log files via basic scripting, when they are to be stored | under a publicly accessible directory. | | Note: Leaving it blank will default to 'php'. | */ $config['log_file_extension'] = ''; /* |-------------------------------------------------------------------------- | Log File Permissions |-------------------------------------------------------------------------- | | The file system permissions to be applied on newly created log files. | | IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal | integer notation (i.e. 0700, 0644, etc.) */ $config['log_file_permissions'] = 0644; /* |-------------------------------------------------------------------------- | Date Format for Logs |-------------------------------------------------------------------------- | | Each item that is logged has an associated date. You can use PHP date | codes to set your own date formatting | */ $config['log_date_format'] = 'Y-m-d H:i:s'; /* |-------------------------------------------------------------------------- | Error Views Directory Path |-------------------------------------------------------------------------- | | Leave this BLANK unless you would like to set something other than the default | application/views/errors/ directory. Use a full server path with trailing slash. | */ $config['error_views_path'] = ''; /* |-------------------------------------------------------------------------- | Cache Directory Path |-------------------------------------------------------------------------- | | Leave this BLANK unless you would like to set something other than the default | application/cache/ directory. Use a full server path with trailing slash. | */ $config['cache_path'] = ''; /* |-------------------------------------------------------------------------- | Cache Include Query String |-------------------------------------------------------------------------- | | Whether to take the URL query string into consideration when generating | output cache files. Valid options are: | | FALSE = Disabled | TRUE = Enabled, take all query parameters into account. | Please be aware that this may result in numerous cache | files generated for the same page over and over again. | array('q') = Enabled, but only take into account the specified list | of query parameters. | */ $config['cache_query_string'] = FALSE; /* |-------------------------------------------------------------------------- | Encryption Key |-------------------------------------------------------------------------- | | If you use the Encryption class, you must set an encryption key. | See the user guide for more info. | | http://codeigniter.com/user_guide/libraries/encryption.html | */ $config['encryption_key'] = ''; /* |-------------------------------------------------------------------------- | Session Variables |-------------------------------------------------------------------------- | | 'sess_driver' | | The storage driver to use: files, database, redis, memcached | | 'sess_cookie_name' | | The session cookie name, must contain only [0-9a-z_-] characters | | 'sess_expiration' | | The number of SECONDS you want the session to last. | Setting to 0 (zero) means expire when the browser is closed. | | 'sess_save_path' | | The location to save sessions to, driver dependent. | | For the 'files' driver, it's a path to a writable directory. | WARNING: Only absolute paths are supported! | | For the 'database' driver, it's a table name. | Please read up the manual for the format with other session drivers. | | IMPORTANT: You are REQUIRED to set a valid save path! | | 'sess_match_ip' | | Whether to match the user's IP address when reading the session data. | | WARNING: If you're using the database driver, don't forget to update | your session table's PRIMARY KEY when changing this setting. | | 'sess_time_to_update' | | How many seconds between CI regenerating the session ID. | | 'sess_regenerate_destroy' | | Whether to destroy session data associated with the old session ID | when auto-regenerating the session ID. When set to FALSE, the data | will be later deleted by the garbage collector. | | Other session cookie settings are shared with the rest of the application, | except for 'cookie_prefix' and 'cookie_httponly', which are ignored here. | */ $config['sess_driver'] = 'database'; $config['sess_cookie_name'] = 'ci_session'; $config['sess_save_path'] = 'ci_sessions'; $config['sess_expiration'] = 0; $config['sess_match_ip'] = FALSE; $config['sess_time_to_update'] = 0; $config['sess_regenerate_destroy'] = FALSE; /* $config['sess_driver'] = 'files'; $config['sess_cookie_name'] = 'ci_session'; $config['sess_expiration'] = 7200; $config['sess_save_path'] = NULL; $config['sess_match_ip'] = FALSE; $config['sess_time_to_update'] = 300; $config['sess_regenerate_destroy'] = FALSE; */ /* |-------------------------------------------------------------------------- | Cookie Related Variables |-------------------------------------------------------------------------- | | 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions | 'cookie_domain' = Set to .your-domain.com for site-wide cookies | 'cookie_path' = Typically will be a forward slash | 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists. | 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript) | | Note: These settings (with the exception of 'cookie_prefix' and | 'cookie_httponly') will also affect sessions. | */ $config['cookie_prefix'] = ''; $config['cookie_domain'] = ''; $config['cookie_path'] = '/'; $config['cookie_secure'] = FALSE; $config['cookie_httponly'] = FALSE; /* |-------------------------------------------------------------------------- | Standardize newlines |-------------------------------------------------------------------------- | | Determines whether to standardize newline characters in input data, | meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value. | | This is particularly useful for portability between UNIX-based OSes, | (usually \n) and Windows (\r\n). | */ $config['standardize_newlines'] = FALSE; /* |-------------------------------------------------------------------------- | Global XSS Filtering |-------------------------------------------------------------------------- | | Determines whether the XSS filter is always active when GET, POST or | COOKIE data is encountered | | WARNING: This feature is DEPRECATED and currently available only | for backwards compatibility purposes! | */ $config['global_xss_filtering'] = FALSE; /* |-------------------------------------------------------------------------- | Cross Site Request Forgery |-------------------------------------------------------------------------- | Enables a CSRF cookie token to be set. When set to TRUE, token will be | checked on a submitted form. If you are accepting user data, it is strongly | recommended CSRF protection be enabled. | | 'csrf_token_name' = The token name | 'csrf_cookie_name' = The cookie name | 'csrf_expire' = The number in seconds the token should expire. | 'csrf_regenerate' = Regenerate token on every submission | 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks */ $config['csrf_protection'] = FALSE; $config['csrf_token_name'] = 'csrf_test_name'; $config['csrf_cookie_name'] = 'csrf_cookie_name'; $config['csrf_expire'] = 7200; $config['csrf_regenerate'] = TRUE; $config['csrf_exclude_uris'] = array(); /* |-------------------------------------------------------------------------- | Output Compression |-------------------------------------------------------------------------- | | Enables Gzip output compression for faster page loads. When enabled, | the output class will test whether your server supports Gzip. | Even if it does, however, not all browsers support compression | so enable only if you are reasonably sure your visitors can handle it. | | Only used if zlib.output_compression is turned off in your php.ini. | Please do not use it together with httpd-level output compression. | | VERY IMPORTANT: If you are getting a blank page when compression is enabled it | means you are prematurely outputting something to your browser. It could | even be a line of whitespace at the end of one of your scripts. For | compression to work, nothing can be sent before the output buffer is called | by the output class. Do not 'echo' any values with compression enabled. | */ $config['compress_output'] = FALSE; /* |-------------------------------------------------------------------------- | Master Time Reference |-------------------------------------------------------------------------- | | Options are 'local' or any PHP supported timezone. This preference tells | the system whether to use your server's local time as the master 'now' | reference, or convert it to the configured one timezone. See the 'date | helper' page of the user guide for information regarding date handling. | */ $config['time_reference'] = 'local'; /* |-------------------------------------------------------------------------- | Rewrite PHP Short Tags |-------------------------------------------------------------------------- | | If your PHP installation does not have short tag support enabled CI | can rewrite the tags on-the-fly, enabling you to utilize that syntax | in your view files. Options are TRUE or FALSE (boolean) | | Note: You need to have eval() enabled for this to work. | */ $config['rewrite_short_tags'] = FALSE; /* |-------------------------------------------------------------------------- | Reverse Proxy IPs |-------------------------------------------------------------------------- | | If your server is behind a reverse proxy, you must whitelist the proxy | IP addresses from which CodeIgniter should trust headers such as | HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify | the visitor's IP address. | | You can use both an array or a comma-separated list of proxy addresses, | as well as specifying whole subnets. Here are a few examples: | | Comma-separated: '10.0.1.200,192.168.5.0/24' | Array: array('10.0.1.200', '192.168.5.0/24') */ $config['proxy_ips'] = '';
mit
jonguan/cmpe273-project1
SimpleProxyServer.js
1548
var httpProxy = require('http-proxy') var proxy = httpProxy.createProxy(); var http = require('http'); var connect = require('connect'); var gzip = require('connect-gzip'); var compression = require('compression'); var app = connect() app.use(gzip.gzip()); //app.use(compression()) app.use( function(req, res) { var options = require('./options'); var latency = require('./latency'); //var options = { "foo.com": "http://google.com","www.facebook.com": "http://facebook.com", "www.google.com": "http://google.com", "www.google.co.in":"http://google.com", "bar.com": "http://www.google.com","tanishq.co.in":"tanishq.co.in","http://stackoverflow.com":"http://stackoverflow.com"}; console.log(req.headers.host); console.log(options); console.log(options[req.headers.host]); //res.write(options); proxy.on('error', function (err) { console.log(err.message); res.end(err.message); } ); var delay = latency[req.headers.host]; console.log(latency[req.headers.host]); if (delay == null) { delay = 0; } console.log("delay = " + delay); setTimeout(function () { proxy.web(req, res, { target: options[req.headers.host] }); }, 1000 * delay); delete require.cache[require.resolve('./options')] } ); var server = http.createServer(app).listen(8000); console.log('Server running at http://127.0.0.1:8000/');
mit
kibiluzbad/aria4net
src/Aria4net/Common/Aria2cInfo.cs
193
namespace Aria4net.Common { // ReSharper disable InconsistentNaming public class Aria2cInfo // ReSharper restore InconsistentNaming { public string Name { get; set; } } }
mit
garymabin/YGOMobile
apache-async-http-HC4/src/org/apache/http/HC4/client/protocol/RequestDefaultHeaders.java
3080
/* * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */ package org.apache.http.HC4.client.protocol; import java.io.IOException; import java.util.Collection; import org.apache.http.HC4.Header; import org.apache.http.HC4.HttpException; import org.apache.http.HC4.HttpRequest; import org.apache.http.HC4.HttpRequestInterceptor; import org.apache.http.HC4.annotation.Immutable; import org.apache.http.HC4.util.Args; import org.apache.http.HC4.client.params.ClientPNames; import org.apache.http.HC4.protocol.HttpContext; /** * Request interceptor that adds default request headers. * * @since 4.0 */ @SuppressWarnings("deprecation") @Immutable public class RequestDefaultHeaders implements HttpRequestInterceptor { private final Collection<? extends Header> defaultHeaders; /** * @since 4.3 */ public RequestDefaultHeaders(final Collection<? extends Header> defaultHeaders) { super(); this.defaultHeaders = defaultHeaders; } public RequestDefaultHeaders() { this(null); } @Override public void process(final HttpRequest request, final HttpContext context) throws HttpException, IOException { Args.notNull(request, "HTTP request"); final String method = request.getRequestLine().getMethod(); if (method.equalsIgnoreCase("CONNECT")) { return; } // Add default headers @SuppressWarnings("unchecked") Collection<? extends Header> defHeaders = (Collection<? extends Header>) request.getParams().getParameter(ClientPNames.DEFAULT_HEADERS); if (defHeaders == null) { defHeaders = this.defaultHeaders; } if (defHeaders != null) { for (final Header defHeader : defHeaders) { request.addHeader(defHeader); } } } }
mit
enzor/couch_talk
vendor/gems/simply_stored-0.3.6/test/vendor/dhaka-2.2.1/test/arithmetic_precedence/arithmetic_precedence_grammar.rb
648
class ArithmeticPrecedenceGrammar < Dhaka::Grammar precedences do left %w| + - | left %w| * / | nonassoc %w| ^ | end for_symbol(Dhaka::START_SYMBOL_NAME) do expression %w| E | end for_symbol('E') do addition %w| E + E | subtraction %w| E - E | multiplication %w| E * E | division %w| E / E | power %w| E ^ E | literal %w| n | parenthetized_expression %w| ( E ) | negated_expression %w| - E |, :prec => '*' end end
mit
mrpau/kolibri
kolibri/core/content/urls.py
583
from django.conf.urls import url from .views import ContentPermalinkRedirect from .views import DownloadContentView from .views import ZipContentView urlpatterns = [ url( r"^zipcontent/(?P<zipped_filename>[^/]+)/(?P<embedded_filepath>.*)", ZipContentView.as_view(), {}, "zipcontent", ), url( r"^downloadcontent/(?P<filename>[^/]+)/(?P<new_filename>.*)", DownloadContentView.as_view(), {}, "downloadcontent", ), url(r"^viewcontent$", ContentPermalinkRedirect.as_view(), name="contentpermalink"), ]
mit
nebulab/lita-pulsar
lib/lita-pulsar.rb
251
require "lita" Lita.load_locales Dir[File.expand_path( File.join("..", "..", "locales", "*.yml"), __FILE__ )] require "lita/handlers/pulsar" Lita::Handlers::Pulsar.template_root File.expand_path( File.join("..", "..", "templates"), __FILE__ )
mit
jtorresfabra/osgjs
sources/osg/Object.js
1154
import utils from 'osg/utils'; /** * Object class * @class Object */ var Object = function() { this._name = undefined; this._userdata = undefined; this._instanceID = Object.getInstanceID(); }; /** @lends Object.prototype */ utils.createPrototypeObject( Object, { // this method works only if constructor is set correctly // see issue https://github.com/cedricpinson/osgjs/issues/494 cloneType: function() { var Constructor = this.constructor; return new Constructor(); }, getInstanceID: function() { return this._instanceID; }, setName: function(name) { this._name = name; }, getName: function() { return this._name; }, setUserData: function(data) { this._userdata = data; }, getUserData: function() { return this._userdata; } }, 'osg', 'Object' ); // get an instanceID for each object var instanceID = 0; Object.getInstanceID = function() { instanceID += 1; return instanceID; }; export default Object;
mit
lfuelling/gtasa-savegame-editor
savegame-editor/src/main/java/nl/paulinternet/gtasaveedit/view/selectable/SelectableItems.java
1373
package nl.paulinternet.gtasaveedit.view.selectable; import nl.paulinternet.gtasaveedit.model.SavegameModel; import nl.paulinternet.gtasaveedit.event.ReportableEvent; import java.util.List; public class SelectableItems<T extends SelectableItem> { private List<T> items; private SelectedItems<T> selectedItems; private ReportableEvent onSelectionChange; private ReportableEvent onDataChange; public SelectableItems(List<T> items) { this.items = items; selectedItems = new SelectedItems<T>(items); onSelectionChange = new ReportableEvent(); onDataChange = new ReportableEvent(); SavegameModel.gameLoaded.addHandler(onDataChange); } public List<T> getItems() { return items; } public SelectedItems<T> getSelectedItems() { return selectedItems; } /** * Gets the selection change event. * The event is fired by the class SelectableItemComponent. * * @return an instance of ReportableEvent */ public ReportableEvent onSelectionChange() { return onSelectionChange; } /** * Gets the event that is fired when data might have changed. * * @return an instance of ReportableEvent */ public ReportableEvent onDataChange() { return onDataChange; } }
mit
PaulBGD/MiniMiniGames
src/main/java/me/paulbgd/mmgames/items/ItemListener.java
1837
package me.paulbgd.mmgames.items; import me.paulbgd.mmgames.events.MMListener; import me.paulbgd.mmgames.kits.Kits.Click; import me.paulbgd.mmgames.player.MMPlayer; import me.paulbgd.mmgames.utils.Particles; import org.bukkit.event.block.Action; import org.bukkit.inventory.ItemStack; public class ItemListener extends MMListener { public ItemListener() { super(ListenerType.RIGHT_CLICK); } @Override public boolean onEvent(Object[] data) { MMPlayer player = (MMPlayer) data[0]; Action action = (Action) data[1]; ItemStack itemstack = player.getPlayer().getItemInHand(); if (itemstack == null) { return false; } for (AbilityItem item : AbilityItems.getRawItems()) { if (item.getItem().isItem(itemstack)) { if (item.onClick(player)) { Particles.displayIconCrack(player.getPlayer().getLocation(), itemstack.getTypeId(), 0.0f, 0.0f, 0.0f, 0.5f, 1, player.getPlayer()); if (itemstack.getAmount() == 1) { player.getPlayer().setItemInHand(null); } else { itemstack.setAmount(itemstack.getAmount() - 1); player.getPlayer().setItemInHand(itemstack); } player.getPlayer().updateInventory(); } return true; } } // else check his kit if (player.hasKit()) { if (player.getKit().onClick(new Click(player, action))) { if (itemstack.getAmount() == 1) { player.getPlayer().setItemInHand(null); } else { itemstack.setAmount(itemstack.getAmount() - 1); player.getPlayer().setItemInHand(itemstack); } player.getPlayer().updateInventory(); } } return true; } }
mit
JacobFischer/CS6604-HW2
utils.js
936
function randomInt(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; }; function DefaultNumber(num, def) { return typeof(num) === "number" && !isNaN(num) ? num : def; }; var seed = 123896; function random() { var x = Math.sin(seed++) * 10000; return x - Math.floor(x); } Array.prototype.randomElement = function() { return this[Math.floor(random()*this.length)]; }; Array.prototype.removeElement = function(item) { var index = this.indexOf(item); if(index > -1) { this.splice(index, 1); } }; $print = undefined; function print(str) { if($print) { $print.append( $("<li>").html(str) ); } }; function clearPrint() { if($print) { $print.html(""); $selectedInfo.html(""); } }; function formatInfo(info) { return String("<h2>" + info.title + "</h2><pre>" + JSON.stringify(info.data, null, 4) + "</pre>"); };
mit
ReactiveX/IxJS
jest.config.js
1682
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. module.exports = { "verbose": false, "testEnvironment": "node", "globals": { "ts-jest": { "diagnostics": false, "tsConfig": "spec/tsconfig.json" } }, "rootDir": "./", "roots": [ "<rootDir>/spec/" ], "moduleFileExtensions": [ "js", "ts", "tsx" ], "coverageReporters": [ "lcov" ], "coveragePathIgnorePatterns": [ "spec\\/.*\\.(ts|tsx|js)$", "/node_modules/" ], "transform": { "^.+\\.jsx?$": "ts-jest", "^.+\\.tsx?$": "ts-jest" }, "transformIgnorePatterns": [ "/(es5|es2015|esnext)/umd/", "/node_modules/(?!web-stream-tools).+\\.js$" ], "testRegex": "(.*(-|\\.)(test|spec)s?)\\.(ts|tsx|js)$", "preset": "ts-jest", "testMatch": null, "moduleNameMapper": { "^ix(.*)": "<rootDir>/src/$1.js" } };
mit
demo-cards-trading-game/game
src/extra/rain.java
3979
package extra; import javax.swing.*; import java.awt.*; import java.awt.geom.Ellipse2D; import java.awt.geom.Line2D; import java.util.ArrayList; import java.util.Iterator; import java.util.Random; public class rain extends JPanel{ private float mGravity = 9.8f; private int mRepaintTimeMS = 20; private double mDdropInitialVelocity = 5; private Color mColor=Color.white; private ArrayList<Rain> rainV; private ArrayList<Drop> dropV; public rain() { rainV = new ArrayList<>(); dropV = new ArrayList<>(); UpdateThread mUpdateThread = new UpdateThread(); mUpdateThread.start(); } public void stop() { UpdateThread mUpdateThread = null; mUpdateThread.stopped=true; } public int getHeight() { return this.getSize().height; } public int getWidth() { return this.getSize().width; } private class UpdateThread extends Thread { public volatile boolean stopped=false; @Override public void run() { while (!stopped) { rain.this.repaint(); try { Thread.sleep(mRepaintTimeMS); } catch (InterruptedException e) { e.printStackTrace(); } } } } @Override public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2 = (Graphics2D) g; float mRainWidth = 0.5f; g2.setStroke(new BasicStroke(mRainWidth)); g2.setColor(mColor); Iterator<Drop> iterator2 = dropV.iterator(); while (iterator2.hasNext()) { Drop drop = iterator2.next(); drop.update(); drop.draw(g2); if (drop.y >= getHeight()) { iterator2.remove(); } } Iterator<Rain> iterator = rainV.iterator(); while (iterator.hasNext()) { Rain rain = iterator.next(); rain.update(); rain.draw(g2); if (rain.y >= getHeight()) { long dropCount = 1 + Math.round(Math.random() * 4); for (int i = 0; i < dropCount; i++) { dropV.add(new Drop(rain.x, getHeight())); } iterator.remove(); } } double mRainChance = 0.99; if (Math.random() < mRainChance) { rainV.add(new Rain()); } } class Rain { float x; float y; float prevX; float prevY; public Rain() { Random r = new Random(); x = r.nextInt(getWidth()); y = 0; } public void update() { float mWind = 2.05f; prevX = x; prevY = y; x += mWind; y += mGravity; } public void draw(Graphics2D g2) { Line2D line = new Line2D.Double(x, y, prevX, prevY); g2.draw(line); } } private class Drop { double x0; double y0; double v0; double t; double angle; double x; double y; public Drop(double x0, double y0) { super(); this.x0 = x0; this.y0 = y0; v0 = mDdropInitialVelocity; angle = Math.toRadians(Math.round(Math.random() * 180)); } private void update() { t += mRepaintTimeMS / 100f; x = x0 + v0 * t * Math.cos(angle); y = y0 - (v0 * t * Math.sin(angle) - mGravity * t * t / 2); } public void draw(Graphics2D g2) { double mDropDiam = 4; Ellipse2D.Double circle = new Ellipse2D.Double(x, y, mDropDiam, mDropDiam); g2.fill(circle); } } }
mit
marneborn/cook-http
common/tcp.js
121
/* * Common package to send and receive over TCP. */ 'use strict'; let net = require('net'); let Q = require('q');
mit
fdzjuancarlos/Physicorum
src/PlayState.cpp
19771
#include "PlayState.h" #include "PauseState.h" #include "Shapes/OgreBulletCollisionsTrimeshShape.h" #include "Shapes/OgreBulletCollisionsSphereShape.h" #include "Utils/OgreBulletCollisionsMeshToShapeConverter.h" using namespace Ogre; template<> PlayState* Ogre::Singleton<PlayState>::msSingleton = 0; bool inAbsoluteRange(float checkedFloat, float maximum){ return checkedFloat < maximum && checkedFloat > -maximum; } bool inAbsoluteRange(btVector3 playerVelocityVector, float maximum){ return inAbsoluteRange(playerVelocityVector.x(),maximum) && inAbsoluteRange(playerVelocityVector.y(),maximum) && inAbsoluteRange(playerVelocityVector.z(),maximum); } void scaleMesh(const Ogre::Entity *_ent, const Ogre::Vector3 &_scale) { bool added_shared = false; Ogre::Mesh* mesh = _ent->getMesh().getPointer(); Ogre::Vector3 Minimum=mesh->getBounds().getMaximum(); Ogre::Vector3 Maximum=mesh->getBounds().getMinimum(); // Run through the submeshes, modifying the data for(int i = 0;i < mesh->getNumSubMeshes();i++) { Ogre::SubMesh* submesh = mesh->getSubMesh(i); Ogre::VertexData* vertex_data = submesh->useSharedVertices ? mesh->sharedVertexData : submesh->vertexData; if((!submesh->useSharedVertices)||(submesh->useSharedVertices && !added_shared)) { if(submesh->useSharedVertices) { added_shared = true; } const Ogre::VertexElement* posElem = vertex_data->vertexDeclaration->findElementBySemantic(Ogre::VES_POSITION); Ogre::HardwareVertexBufferSharedPtr vbuf = vertex_data->vertexBufferBinding->getBuffer(posElem->getSource()); // lock buffer for read and write access unsigned char* vertex = static_cast<unsigned char*>(vbuf->lock(Ogre::HardwareBuffer::HBL_NORMAL)); Ogre::Real* pReal; for(size_t j = 0; j < vertex_data->vertexCount; ++j, vertex += vbuf->getVertexSize()) { posElem->baseVertexPointerToElement(vertex, &pReal); // modify x coord (*pReal) *= _scale.x; ++pReal; // modify y coord (*pReal) *= _scale.y; ++pReal; // modify z coord (*pReal) *= _scale.z; pReal-=2; Minimum.x=Minimum.x<(*pReal)?Minimum.x:(*pReal); Maximum.x=Maximum.x>(*pReal)?Maximum.x:(*pReal); ++pReal; Minimum.y=Minimum.y<(*pReal)?Minimum.y:(*pReal); Maximum.y=Maximum.y>(*pReal)?Maximum.y:(*pReal); ++pReal; Minimum.z=Minimum.z<(*pReal)?Minimum.z:(*pReal); Maximum.z=Maximum.z>(*pReal)?Maximum.z:(*pReal); } vbuf->unlock(); } } mesh->_setBounds(Ogre::AxisAlignedBox(Minimum,Maximum),false); } void PlayState::enter () { _root = Ogre::Root::getSingletonPtr(); // Se recupera el gestor de escena y la cámara. _sceneMgr = _root->getSceneManager("SceneManager"); _camera = _sceneMgr->getCamera("IntroCamera"); _viewport = _root->getAutoCreatedWindow()->addViewport(_camera); //Camera configuration _camera->setNearClipDistance(0.1); _camera->setFarClipDistance(10); // Nuevo background colour. _viewport->setBackgroundColour(Ogre::ColourValue(0.0, 0.0, 0.0)); //Ground and Lights initialization _sceneMgr->setShadowTechnique(Ogre::SHADOWTYPE_STENCIL_ADDITIVE); _sceneMgr->setShadowColour(Ogre::ColourValue(0.5, 0.5, 0.5) ); _sceneMgr->setAmbientLight(Ogre::ColourValue(0.9, 0.9, 0.9)); _sceneMgr->setShadowTextureCount(2); _sceneMgr->setShadowTextureSize(512); Ogre::Light* light = _sceneMgr->createLight("Light1"); light->setPosition(-5,12,2); light->setType(Ogre::Light::LT_SPOTLIGHT); light->setDirection(Ogre::Vector3(1,-1,0)); light->setSpotlightInnerAngle(Ogre::Degree(25.0f)); light->setSpotlightOuterAngle(Ogre::Degree(60.0f)); light->setSpotlightFalloff(5.0f); light->setCastShadows(true); Ogre::Light* light2 = _sceneMgr->createLight("Light2"); light2->setPosition(3,12,3); light2->setDiffuseColour(0.2,0.2,0.2); light2->setType(Ogre::Light::LT_SPOTLIGHT); light2->setDirection(Ogre::Vector3(-0.3,-1,0)); light2->setSpotlightInnerAngle(Ogre::Degree(25.0f)); light2->setSpotlightOuterAngle(Ogre::Degree(60.0f)); light2->setSpotlightFalloff(10.0f); light2->setCastShadows(true); _changes = 0; _exitGame = false; //=============PHYSICS===========// // Creacion del mundo (definicion de los limites y la gravedad) --- AxisAlignedBox worldBounds = AxisAlignedBox ( Vector3 (-10000, -10000, -10000), Vector3 (10000, 10000, 10000)); Vector3 gravity = Vector3(0, -9.8, 0); _world = new OgreBulletDynamics::DynamicsWorld(_sceneMgr, worldBounds, gravity); _world->setShowDebugShapes (true); // Muestra los collision shapes // Creacion de los elementos iniciales del mundo // Creacion del track -------------------------------------------------- Entity *entity = _sceneMgr->createEntity("Level1Mesh.mesh"); SceneNode *trackNode = _sceneMgr->createSceneNode("track"); scaleMesh(entity,Vector3(2,2,2)); trackNode->attachObject(entity); _sceneMgr->getRootSceneNode()->addChild(trackNode); OgreBulletCollisions::StaticMeshToShapeConverter *trimeshConverter = new OgreBulletCollisions::StaticMeshToShapeConverter(entity); OgreBulletCollisions::TriangleMeshCollisionShape *trackTrimesh = trimeshConverter->createTrimesh(); OgreBulletDynamics::RigidBody *rigidTrack = new OgreBulletDynamics::RigidBody("track", _world); rigidTrack->setShape(trackNode, trackTrimesh, 0.8, 0.95, 0, Vector3(20,-49.5,85), Quaternion(-180,0,-180,1)); delete trimeshConverter; // Creacion de la entidad y del SceneNode ------------------------ Plane plane1(Vector3(0,1,0), -50); // Normal y distancia MeshManager::getSingleton().createPlane("plane1", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, plane1, 200, 200, 1, 1, true, 1, 20, 20, Vector3::UNIT_Z); SceneNode* node = _sceneMgr->createSceneNode("ground"); Entity* groundEnt = _sceneMgr->createEntity("planeEnt", "plane1"); groundEnt->setMaterialName("Ground"); node->attachObject(groundEnt); _sceneMgr->getRootSceneNode()->addChild(node); // Creamos forma de colision para el plano ----------------------- OgreBulletCollisions::CollisionShape *Shape; Shape = new OgreBulletCollisions::StaticPlaneCollisionShape (Ogre::Vector3(0,1,0), -50); // Vector normal y distancia OgreBulletDynamics::RigidBody *rigidBodyPlane = new OgreBulletDynamics::RigidBody("rigidBodyPlane", _world); // Creamos la forma estatica (forma, Restitucion, Friccion) ------ rigidBodyPlane->setStaticShape(Shape, 0.1, 0.8); //Player Initialization Ogre::Entity* ent1 = _sceneMgr->createEntity("Robotillo", "RobotilloMesh.mesh"); ent1->setQueryFlags(PLAYER); std::shared_ptr<SceneNode> player(_sceneMgr->createSceneNode("Player")); _player = player; _player->attachObject(ent1); _sceneMgr->getRootSceneNode()->addChild(_player.get()); _player->setScale(1,1,1); _player->setPosition(0,-69,-40); //DEBUG ONLY Coordinator Situate Ogre::Entity* ent2 = _sceneMgr->createEntity("DEBUG SEE", "RobotilloMesh.mesh"); std::shared_ptr<SceneNode> visor(_sceneMgr->createSceneNode("DEBUG")); _coordVisor = visor; _coordVisor->attachObject(ent2); _sceneMgr->getRootSceneNode()->addChild(_coordVisor.get()); _coordVisor->setScale(1,1,1); _coordVisor->setPosition(0,-40,0); //NOT DEBUG OgreBulletCollisions::BoxCollisionShape *boxShape = new OgreBulletCollisions::BoxCollisionShape(Vector3(2,2,2)); // and the Bullet rigid body rigidBoxPlayer = new OgreBulletDynamics::RigidBody("rrigidBoxPlayer" + StringConverter::toString(2), _world); rigidBoxPlayer->setShape(_player.get(), boxShape, 0.6 /* Restitucion */, 0.6 /* Friccion */, 5.0 /* Masa */, Vector3(0,-40,0)/* Posicion inicial */, Quaternion(0,0,-180,1) /* Orientacion */); rigidBoxPlayer->getBulletRigidBody()->setLinearFactor(btVector3(1,1,1)); rigidBoxPlayer->getBulletRigidBody()->setAngularFactor(btVector3(0,1,0)); //Robot Animation //_animBlender = new AnimationBlender(_sceneMgr->getEntity("Robotillo")); _animationUpdater = std::make_shared<AnimationUpdater>(_player); _inputHandler = std::make_shared<InputHandler>(_camera,_player); // Anadimos los objetos Shape y RigidBody ------------------------ // _shapes.push_back(Shape); _bodies.push_back(rigidBodyPlane); _forward = false; _back = false; _left = false; _right = false; _ball = false; _firstperson = false; _leftShooting = false; _win = false; _cameraZoom = 0; _newtons = 0; } void PlayState::exit () { _sceneMgr->clearScene(); _root->getAutoCreatedWindow()->removeAllViewports(); } void PlayState::pause() { } void PlayState::resume() { // Se restaura el background colour. _viewport->setBackgroundColour(Ogre::ColourValue(0.0, 0.0, 1.0)); } bool PlayState::frameStarted (const Ogre::FrameEvent& evt) { //_animBlender->addTime(evt.timeSinceLastFrame); _lastTime= evt.timeSinceLastFrame; _world->stepSimulation(_lastTime); // Actualizar simulacion Bullet //Win Logic if(2 > _player->getPosition().distance(Vector3(-95,-28,31))){ _win = true; std::cout << "Win Condition!" << std::endl; } //Movement Logic btVector3 playerVelocity = rigidBoxPlayer->getBulletRigidBody()->getLinearVelocity(); Quaternion prueba = _camera->getOrientation(); if (_forward) { rigidBoxPlayer->disableDeactivation(); Vector3 destiny; if(!_ball) destiny = _player->convertLocalToWorldPosition(Vector3(0,0,-1)); else{ if(_firstperson){ Vector3 direction = _camera->getDirection(); direction.y = 0; destiny = _player->getPosition() + direction * 10; }else{ destiny = _player->getPosition() - Vector3(0,0,10); } } Vector3 delta = destiny - _player->getPosition(); Vector3 normalisedDelta = delta.normalisedCopy(); if(inAbsoluteRange(playerVelocity,7) || _ball){ rigidBoxPlayer->getBulletRigidBody()-> applyCentralForce(btVector3(normalisedDelta.x,normalisedDelta.y,normalisedDelta.z)*8000*_lastTime); } } if (_back) { rigidBoxPlayer->disableDeactivation(); Vector3 destiny; if(!_ball) destiny = _player->convertLocalToWorldPosition(Vector3(0,0,1)); else{ if(_firstperson){ Vector3 direction = _camera->getDirection(); direction.y = 0; destiny = _player->getPosition() - direction * 10; }else{ destiny = _player->getPosition() - Vector3(0,0,-10); } } Vector3 delta = destiny - _player->getPosition(); Vector3 normalisedDelta = delta.normalisedCopy(); if(inAbsoluteRange(playerVelocity,7) || _ball){ rigidBoxPlayer->getBulletRigidBody()-> applyCentralForce(btVector3(normalisedDelta.x,-normalisedDelta.y,normalisedDelta.z)*8000*_lastTime); } } float maxAngular = 0.5; if (_left) { rigidBoxPlayer->disableDeactivation(); if(!_ball){ float velocity = rigidBoxPlayer->getBulletRigidBody()->getAngularVelocity().y(); if(velocity < maxAngular){ rigidBoxPlayer->getBulletRigidBody()-> applyTorque(btVector3(0,200,0)); } }else{ Vector3 destiny; if(_firstperson){ Vector3 direction = _camera->getDirection(); direction.y = 0; destiny = _player->getPosition() - Quaternion(Degree(-90),Vector3::UNIT_Y) * direction * 10; }else{ destiny = _player->getPosition() - Vector3(10,0,0); } Vector3 delta = destiny - _player->getPosition(); Vector3 normalisedDelta = delta.normalisedCopy(); if(inAbsoluteRange(playerVelocity,7) || _ball){ rigidBoxPlayer->getBulletRigidBody()-> applyCentralForce(btVector3(normalisedDelta.x,-normalisedDelta.y,normalisedDelta.z)*8000*_lastTime); } } } if (_right) { if(!_ball){ rigidBoxPlayer->disableDeactivation(); float velocity = rigidBoxPlayer->getBulletRigidBody()->getAngularVelocity().y(); if(velocity > -maxAngular){ rigidBoxPlayer->getBulletRigidBody()-> applyTorque(btVector3(0,-200,0)); } }else{ Vector3 destiny; if(_firstperson){ Vector3 direction = _camera->getDirection(); direction.y = 0; destiny = _player->getPosition() - Quaternion(Degree(90),Vector3::UNIT_Y) * direction * 10; }else{ destiny = _player->getPosition() - Vector3(-10,0,0); } Vector3 delta = destiny - _player->getPosition(); Vector3 normalisedDelta = delta.normalisedCopy(); if(inAbsoluteRange(playerVelocity,7) || _ball){ rigidBoxPlayer->getBulletRigidBody()-> applyCentralForce(btVector3(normalisedDelta.x,-normalisedDelta.y,normalisedDelta.z)*8000*_lastTime); } } } // Shoot Logic if(_ball && _firstperson && _leftShooting){ _newtons += evt.timeSinceLastFrame * 2; std::cout << _newtons << std::endl; } if(_ball && _firstperson && !_leftShooting && _newtons != 0){ rigidBoxPlayer->disableDeactivation(); Vector3 destiny; Vector3 direction = _camera->getDirection(); destiny = _player->getPosition() + direction * 10; Vector3 delta = destiny - _player->getPosition(); Vector3 normalisedDelta = delta.normalisedCopy(); if(inAbsoluteRange(playerVelocity,7) || _ball){ rigidBoxPlayer->getBulletRigidBody()-> applyCentralForce(btVector3(normalisedDelta.x,normalisedDelta.y,normalisedDelta.z) *18000*_newtons); } _newtons = 0; } _animationUpdater->update(evt); _inputHandler->update(evt,_player->getPosition(),_ball, _firstperson, _cameraZoom); return true; } bool PlayState::frameEnded (const Ogre::FrameEvent& evt) { if (_exitGame) return false; Real deltaT = evt.timeSinceLastFrame; _world->stepSimulation(deltaT); // Actualizar simulacion Bullet return true; } void PlayState::keyPressed (const OIS::KeyEvent &e) { // Tecla p --> PauseState. if (e.key == OIS::KC_P) { pushState(PauseState::getSingletonPtr()); _exitGame = true; } if (e.key == OIS::KC_W) { _forward = true; } if (e.key == OIS::KC_S) { _back = true; } if (e.key == OIS::KC_A) { _left = true; } if (e.key == OIS::KC_D) { _right = true; } if (e.key == OIS::KC_E) { _ball = !_ball; if(_ball){ OgreBulletCollisions::CollisionShape *ballShape = new OgreBulletCollisions::SphereCollisionShape(1.5); Vector3 samePosition = rigidBoxPlayer->getSceneNode()->getPosition(); _changes++; rigidBoxPlayer = new OgreBulletDynamics::RigidBody("rigidBoxPlayer" + StringConverter::toString(_changes), _world); rigidBoxPlayer->setShape(_player.get(), ballShape, 0.6 /* Restitucion */, 0.6 /* Friccion */, 5.0 /* Masa */, samePosition/* Posicion inicial */, Quaternion(0,0,-180,1) /* Orientacion */); }else{ _firstperson = false; OgreBulletCollisions::BoxCollisionShape *boxShape = new OgreBulletCollisions::BoxCollisionShape(Vector3(2,2,2)); Vector3 samePosition = rigidBoxPlayer->getSceneNode()->getPosition(); samePosition += Vector3(0,4,0); _changes++; rigidBoxPlayer = new OgreBulletDynamics::RigidBody("rigidBox" + StringConverter::toString(_changes), _world); rigidBoxPlayer->setShape(_player.get(), boxShape, 0.6 /* Restitucion */, 0.6 /* Friccion */, 5.0 /* Masa */, samePosition/* Posicion inicial */, Quaternion(0,0,-180,1) /* Orientacion */); // rigidBoxPlayer->getBulletRigidBody()->setLinearFactor(btVector3(1,1,1)); // rigidBoxPlayer->getBulletRigidBody()->setAngularFactor(btVector3(0,1,0)); } } if (e.key == OIS::KC_Q) { std::cout << "heh"<< std::endl; if(!_firstperson && _ball){ _firstperson = true; _player->setVisible(false); std::cout << "false"<< std::endl; }else if(_firstperson && _ball){ _firstperson = false; _player->setVisible(true); } } if (e.key == OIS::KC_UP) { _cameraZoom += 1; } if (e.key == OIS::KC_DOWN) { _cameraZoom -= 1; } // === DEBUG === // if (e.key == OIS::KC_NUMPAD1) { _coordVisor->translate(Vector3(1,0,0)); } if (e.key == OIS::KC_NUMPAD2) { _coordVisor->translate(Vector3(-1,0,0)); } if (e.key == OIS::KC_NUMPAD4) { _coordVisor->translate(Vector3(0,1,0)); } if (e.key == OIS::KC_NUMPAD5) { _coordVisor->translate(Vector3(0,-1,0)); } if (e.key == OIS::KC_NUMPAD7) { _coordVisor->translate(Vector3(0,0,1)); } if (e.key == OIS::KC_NUMPAD8) { _coordVisor->translate(Vector3(0,0,-1)); } if (e.key == OIS::KC_NUMPAD0) { Vector3 position = _coordVisor->getPosition(); std::cout << "X: " << position.x << std::endl << "Y: " << position.y << std::endl << "Z: " << position.z << std::endl; } _animationUpdater->keyPressed(e); // _inputHandler->keyPressed(e); } void PlayState::keyReleased (const OIS::KeyEvent &e) { if (e.key == OIS::KC_ESCAPE) { // _exitGame = true; Vector3 size = Vector3::ZERO; // size of the box // starting position of the box Vector3 position = (_camera->getDerivedPosition() + _camera->getDerivedDirection().normalisedCopy() * 10); Entity *entity = _sceneMgr->createEntity("Box" + StringConverter::toString(2), "cube.mesh"); entity->setMaterialName("cube"); SceneNode *node = _sceneMgr->getRootSceneNode()-> createChildSceneNode(); node->attachObject(entity); // Obtenemos la bounding box de la entidad creada... ------------ AxisAlignedBox boundingB = entity->getBoundingBox(); size = boundingB.getSize(); size /= 2.0f; // El tamano en Bullet se indica desde el centro // after that create the Bullet shape with the calculated size OgreBulletCollisions::BoxCollisionShape *boxShape = new OgreBulletCollisions::BoxCollisionShape(size); // and the Bullet rigid body OgreBulletDynamics::RigidBody *rigidBox = new OgreBulletDynamics::RigidBody("rigidBox" + StringConverter::toString(2), _world); rigidBox->setShape(node, boxShape, 0.6 /* Restitucion */, 0.6 /* Friccion */, 5.0 /* Masa */, position /* Posicion inicial */, Quaternion(0,0,0,1) /* Orientacion */); /* rigidBox->setLinearVelocity( _camera->getDerivedDirection().normalisedCopy() * 7.0); */ // Anadimos los objetos a las deques // _bodies.push_back(rigidBox); } if (e.key == OIS::KC_W) { _forward = false; } if (e.key == OIS::KC_S) { _back = false; } if (e.key == OIS::KC_A) { _left = false; } if (e.key == OIS::KC_D) { _right = false; } _animationUpdater->keyReleased(e); _inputHandler->keyReleased(e); } void PlayState::mouseMoved (const OIS::MouseEvent &e) { _inputHandler->mouseMoved(e); } void PlayState::mousePressed (const OIS::MouseEvent &e, OIS::MouseButtonID id) { if (id == OIS::MB_Left) { _leftShooting = true; } } void PlayState::mouseReleased (const OIS::MouseEvent &e, OIS::MouseButtonID id) { if (id == OIS::MB_Left) { _leftShooting = false; } } PlayState* PlayState::getSingletonPtr () { return msSingleton; } PlayState& PlayState::getSingleton () { assert(msSingleton); return *msSingleton; } double PlayState::getTimeSinceLastTime(){ return _lastTime; }
mit
dnguyen0304/tuxedo-mask
tuxedo_mask/utilities.py
3479
# -*- coding: utf-8 -*- import logging import sys import time class StackTraceFilter(logging.Filter): def filter(self, record): """ Filter log records with stack traces. Multi-line messages must be processed differently than those of standard application logs. Parameters ---------- record : logging.LogRecord Log record. Returns ------- int If the handler should include the log record, 1 is returned. If the handler should exclude the log record, 0 is returned. """ if record.exc_info: is_included = 0 else: is_included = 1 return is_included # This object relies on sys._getframe() to collect runtime data. While # a protected function, numerous modules from the standard library such # as inspect, logging, and traceback all ultimately rely it as well. A # handful of top-rated Stack Overflow answers concur [1]. # sys._getframe() as such is idiomatic, stable, and arguably canonical. # # See Also # -------- # inspect.stack() # logging.Logger.findCaller() # traceback.format_stack() # # References # ---------- # .. [1] Albert Vonpupp, "How to get a function name as a string in # Python?", http://stackoverflow.com/a/13514318/6754214 class Tracer: def __init__(self, next_frame_name): """ Context manager for collecting runtime data. See the README section on Examples for more details. Parameters ---------- next_frame_name : str This generally refers to the name of the method or function being called within the context manager. """ self._next_frame_name = next_frame_name # A depth of 0 returns the frame at the top of the call stack. # An offset is therefore required to account for calling the # Tracer itself. self._current_frame = sys._getframe(1) self._previous_frame = sys._getframe(2) self._start_time = None self._stop_time = None @property def message(self): message = 'Traced the call from {current_frame_name} to {next_frame_name}.' return message.format(**self.to_json()) def to_json(self): """ Convert the object into a serializable primitive. Returns ------- dict """ data = { 'next_frame_name': self._next_frame_name, 'current_frame_file_path': self._current_frame.f_code.co_filename, 'current_frame_line_number': self._current_frame.f_lineno, 'current_frame_name': self._current_frame.f_code.co_name, 'previous_frame_file_path': self._previous_frame.f_code.co_filename, 'previous_frame_line_number': self._previous_frame.f_lineno, 'previous_frame_name': self._previous_frame.f_code.co_name, 'start_time': self._start_time, 'stop_time': self._stop_time} return data def __enter__(self): self._start_time = time.time() return self # Upon exiting the context, this method is passed the exception # type, value, and stacktrace if they exist. def __exit__(self, *args, **kwargs): self._stop_time = time.time() def __repr__(self): repr_ = '{}(next_frame_name="{}")' return repr_.format(self.__class__.__name__, self._next_frame_name)
mit
lolleko/donkey
app/src/PackageManager.js
2194
const path = require('path') const fs = require('fs') const Package = require('./Package') const ipc = require('electron').ipcRenderer class PackageManager { constructor () { this.packages = {} this.appData = require('electron').remote.app.getPath('userData') // ensure packages directory exists try { fs.statSync(this.packagesDir).isDirectory() } catch (e) { fs.mkdirSync(this.packagesDir) } // TODO move this somewhere else var customElementDir = fs.readdirSync(path.join(__dirname, 'custom-elements')) for (var i = 0; i < customElementDir.length; i++) { var elementPath = './' + path.join('custom-elements', customElementDir[i]) require(elementPath) } var commandsDir = fs.readdirSync(path.join(__dirname, 'commands')) for (i = 0; i < commandsDir.length; i++) { var commandPath = './' + path.join('commands', commandsDir[i]) require(commandPath) } var parserDir = fs.readdirSync(path.join(__dirname, 'parser')) for (i = 0; i < parserDir.length; i++) { var parserPath = './' + path.join('parser', parserDir[i]) require(parserPath) } this.load() } get packagesDir () { return path.join(this.appData, 'packages') } get (name) { return this.packages[name] } load () { this.loadDirectory(path.join(__dirname, 'packages')) this.loadDirectory(this.packagesDir) } loadDirectory (dir) { var packages = fs.readdirSync(dir) for (var j = 0; j < packages.length; j++) { var packDir = path.join(dir, packages[j]) try { fs.statSync(path.join(packDir, 'package.json')).isFile() try { this.packages[packDir] = new Package(packDir) } catch (e) { console.log('Could not load package\'' + packDir + '\'!') console.error(e) } } catch (e) { console.log('Missing package.json in \'' + packDir + '\' please create the file see: https://docs.npmjs.com/files/package.json for more information.') } } } addMenu (packageName, menuTemplate) { ipc.send('donkey-add-package-menu', packageName, menuTemplate) } } module.exports = PackageManager
mit
imbo/imboclient-java
src/test/java/io/imbo/client/Images/QueryTest.java
4210
/** * This file is part of the imboclient-java package * * (c) Espen Hovlandsdal <espen@hovlandsdal.com> * * For the full copyright and license information, please view the LICENSE file that was * distributed with this source code. */ package io.imbo.client.Images; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import java.util.Date; import java.util.HashMap; import org.json.JSONException; import org.junit.After; import org.junit.Before; import org.junit.Test; /** * Test the query class * * @author Espen Hovlandsdal <espen@hovlandsdal.com> */ public class QueryTest { private Query query; @Before public void setUp() { query = new Query(); } @After public void tearDown() { query = null; } /** * The default page value must be 1 */ @Test public void testSetsADefaultPageValueOf1() { assertEquals(1, query.page()); } /** * The default limit must be 20 */ @Test public void testSetsADefaultLimitValueOf20() { assertEquals(20, query.limit()); } /** * By default we should not return meta data */ @Test public void testSetsADefaultReturnmetadataValueOfFalse() { assertFalse(query.returnMetadata()); } /** * By default, no "from" date should be set */ @Test public void testSetsADefaultFromValueOfNull() { assertNull(query.from()); } /** * By default, no "to" date should be set */ @Test public void testSetsADefaultToValueOfNull() { assertNull(query.to()); } /** * The query instance must be able to set and get the page value */ @Test public void testCanSetAndGetThePageValue() { assertEquals(query, query.page(2)); assertEquals(2, query.page()); } /** * The query instance must be able to set and get the limit value */ @Test public void testCanSetAndGetTheLimitValue() { assertEquals(query, query.limit(30)); assertEquals(30, query.limit()); } /** * The query instance must be able to set and get whether to return meta data */ @Test public void testCanSetAndGetTheReturnmetadataValue() { assertEquals(query, query.returnMetadata(true)); assertTrue(query.returnMetadata()); } /** * The query instance must be able to set and get the "from" date */ @Test public void testCanSetAndGetTheFromValue() { Date value = new Date(); assertEquals(query, query.from(value)); assertEquals(value, query.from()); } /** * The query instance must be able to set and get the "to" date */ @Test public void testCanSetAndGetTheToValue() { Date value = new Date(); assertEquals(query, query.to(value)); assertEquals(value, query.to()); } /** * The query instance must be able to convert set values to * a hashmap when all values have been specified * * @throws JSONException */ @Test public void testCanConvertToHashMapWithValues() throws JSONException { Date from = new Date(); Date to = new Date(); query.from(from); query.limit(5); query.page(3); query.returnMetadata(true); query.to(to); HashMap<String, String> map = query.toHashMap(); assertEquals(Long.toString(from.getTime()), map.get("from")); assertEquals("5", map.get("limit")); assertEquals("3", map.get("page")); assertEquals("1", map.get("metadata")); assertEquals(Long.toString(to.getTime()), map.get("to")); } /** * The query instance must be able to return a blank hashmap * if no values have been set * * @throws JSONException */ @Test public void testCanConvertToHashMapWithNoValues() throws JSONException { query.limit(0); query.page(0); HashMap<String, String> map = query.toHashMap(); assertTrue(map.isEmpty()); } }
mit
yoggy/mqtt_tiny_clock_pub
mqtt_tiny_clock_pub.rb
1211
#!/usr/bin/ruby # # mqtt_tiny_clock_pub.rb - publish the local time using the MQTT. # # $ sudo gem install mqtt # $ sudo gem install pit # require 'rubygems' require 'mqtt' require 'json' require 'time' require 'pit' $stdout.sync = true $config = Pit.get("mqtt_tiny_clock_pub", :require => { "remote_host" => "mqtt.example.com", "remote_port" => 1883, "use_auth" => false, "username" => "username", "password" => "password", "topic" => "topic", }) $conn_opts = { remote_host: $config["remote_host"], remote_port: $config["remote_port"].to_i, } if $config["use_auth"] == true $conn_opts["username"] = $config["username"] $conn_opts["password"] = $config["password"] end $old_t = Time.now $now_t = Time.now $topic = $config["topic"] if ARGV.size > 0 $topic = ARGV[0] end def publish(c, t) message = "segd" + t.strftime("%H%M") puts "publish to topic=#{$config["topic"]} : #{message}" c.publish($topic, message) end MQTT::Client.connect($conn_opts) do |c| puts "connected!" loop do $now_t = Time.now diff = $now_t.to_f - $old_t.to_f if diff > 1.0 publish(c, $now_t) $old_t = $now_t end sleep 0.1 end end
mit
automatizo/huckleberry
db/migrate/3_create_huckleberry_fats.rb
605
class CreateHuckleberryFats < ActiveRecord::Migration def change create_table :huckleberry_fats do |t| t.string :nutrient_databank_number, null: false, index: true t.float :total_fat t.float :saturated_fat t.float :monounsaturated_fat t.float :polyunsaturated_fat t.float :omega_3_ala t.float :omega_3_epa t.float :omega_3_dpa t.float :omega_3_dha t.float :omega_3_other t.float :trans_fat t.float :omega_6_1 t.float :omega_6_2 t.float :omega_6_3 t.float :omega_6_4 t.float :omega_6_5 end end end
mit
chanzuckerberg/idseq-web
db/migrate/20171130180955_add_level_concordance_to_taxon_counts.rb
340
class AddLevelConcordanceToTaxonCounts < ActiveRecord::Migration[5.1] def change add_column :taxon_counts, :percent_concordant, :float add_column :taxon_counts, :species_total_concordant, :float add_column :taxon_counts, :genus_total_concordant, :float add_column :taxon_counts, :family_total_concordant, :float end end
mit
koofr/csharp-koofr
Koofr.SDK/Api.V2.Resources/Version.cs
317
using Newtonsoft.Json; namespace Koofr.Sdk.Api.V2.Resources { public class Version { [JsonProperty("version")] public string VersionInfo { get; set; } public bool CanUpdate { get; set; } public bool ShouldUpdate { get; set; } public bool Outdated { get; set; } } }
mit
errorstudio/contentful_model
lib/contentful_model/migrations/errors.rb
106
module ContentfulModel module Migrations class InvalidFieldTypeError < StandardError; end end end
mit
enriquedacostacambio/iotake-suller
iotake-sullerj/src/test/java/com/iotake/suller/sullerj/binder/value/BigDecimalValueConverterFactoryTest.java
1046
package com.iotake.suller.sullerj.binder.value; import static org.junit.Assert.assertThat; import java.math.BigDecimal; import org.hamcrest.CoreMatchers; import org.junit.Test; import com.iotake.suller.sullerj.binder.util.TestDocument; import com.iotake.suller.sullerj.binder.value.BigDecimalValueConverterFactory; import com.iotake.suller.sullerj.binder.value.ValueConverter; import com.iotake.suller.sullerj.binder.value.BigDecimalValueConverterFactory.BigDecimalValueConverter; public class BigDecimalValueConverterFactoryTest extends ValueConverterFactoryAbstractTest { @Override protected BigDecimalValueConverterFactory createInstance() { return new BigDecimalValueConverterFactory(); } @Test public void doCreate() { BigDecimalValueConverterFactory factory = createInstance(); ValueConverter converter = factory.doCreate(BigDecimal.class, TestDocument.class, TestDocument.ID_FIELD, "path__to__field", "__"); assertThat(converter, CoreMatchers.instanceOf(BigDecimalValueConverter.class)); } }
mit
DarvinStudio/DarvinImageBundle
Validation/Constraints/DarvinImageValidator.php
1399
<?php declare(strict_types=1); /** * @author Igor Nikolaev <igor.sv.n@gmail.com> * @copyright Copyright (c) 2017-2020, Darvin Studio * @link https://www.darvin-studio.ru * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Darvin\ImageBundle\Validation\Constraints; use Darvin\Utils\Strings\StringsUtil; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\Constraints\Image; use Symfony\Component\Validator\Constraints\ImageValidator; /** * Darvin image constraint validator */ class DarvinImageValidator extends ImageValidator { /** * @var array */ private $options; /** * @param array $options Options * @param int $uploadMaxSizeMb Max upload size in MB */ public function __construct(array $options, int $uploadMaxSizeMb) { $this->options = []; foreach ($options as $key => $value) { $this->options[lcfirst(StringsUtil::toCamelCase($key))] = $value; } if (!isset($this->options['maxSize'])) { $this->options['maxSize'] = sprintf('%dMi', $uploadMaxSizeMb); } } /** * {@inheritDoc} */ public function validate($value, Constraint $constraint): void { parent::validate($value, new Image($this->options)); } }
mit
skipmumba/betgame
application/config/autoload.php
4105
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | AUTO-LOADER | ------------------------------------------------------------------- | This file specifies which systems should be loaded by default. | | In order to keep the framework as light-weight as possible only the | absolute minimal resources are loaded by default. For example, | the database is not connected to automatically since no assumption | is made regarding whether you intend to use it. This file lets | you globally define which systems you would like loaded with every | request. | | ------------------------------------------------------------------- | Instructions | ------------------------------------------------------------------- | | These are the things you can load automatically: | | 1. Packages | 2. Libraries | 3. Drivers | 4. Helper files | 5. Custom config files | 6. Language files | 7. Models | */ /* | ------------------------------------------------------------------- | Auto-load Packages | ------------------------------------------------------------------- | Prototype: | | $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared'); | */ $autoload['packages'] = array(); /* | ------------------------------------------------------------------- | Auto-load Libraries | ------------------------------------------------------------------- | These are the classes located in system/libraries/ or your | application/libraries/ directory, with the addition of the | 'database' library, which is somewhat of a special case. | | Prototype: | | $autoload['libraries'] = array('database', 'email', 'session'); | | You can also supply an alternative library name to be assigned | in the controller: | | $autoload['libraries'] = array('user_agent' => 'ua'); */ $autoload['libraries'] = array('database','encryption','encrypt'); /* | ------------------------------------------------------------------- | Auto-load Drivers | ------------------------------------------------------------------- | These classes are located in system/libraries/ or in your | application/libraries/ directory, but are also placed inside their | own subdirectory and they extend the CI_Driver_Library class. They | offer multiple interchangeable driver options. | | Prototype: | | $autoload['drivers'] = array('cache'); | | You can also supply an alternative property name to be assigned in | the controller: | | $autoload['drivers'] = array('cache' => 'cch'); | */ $autoload['drivers'] = array(); /* | ------------------------------------------------------------------- | Auto-load Helper Files | ------------------------------------------------------------------- | Prototype: | | $autoload['helper'] = array('url', 'file'); */ $autoload['helper'] = array('url','file','date'); /* | ------------------------------------------------------------------- | Auto-load Config files | ------------------------------------------------------------------- | Prototype: | | $autoload['config'] = array('config1', 'config2'); | | NOTE: This item is intended for use ONLY if you have created custom | config files. Otherwise, leave it blank. | */ $autoload['config'] = array(); /* | ------------------------------------------------------------------- | Auto-load Language files | ------------------------------------------------------------------- | Prototype: | | $autoload['language'] = array('lang1', 'lang2'); | | NOTE: Do not include the "_lang" part of your file. For example | "codeigniter_lang.php" would be referenced as array('codeigniter'); | */ $autoload['language'] = array(); /* | ------------------------------------------------------------------- | Auto-load Models | ------------------------------------------------------------------- | Prototype: | | $autoload['model'] = array('first_model', 'second_model'); | | You can also supply an alternative model name to be assigned | in the controller: | | $autoload['model'] = array('first_model' => 'first'); */ $autoload['model'] = array('ipuser','jwtservice','game');
mit
jgsmith/wlc
db/migrate/006_create_transition_defs.rb
312
class CreateTransitionDefs < ActiveRecord::Migration def self.up create_table :transition_defs do |t| t.references :from_state t.references :to_state t.text :process_fn t.text :validate_fn t.timestamps end end def self.down drop_table :transition_defs end end
mit
uramonk/OxyPlotSample
OxyPlotSample/OxyPlotSample/MainViewModel.cs
1528
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using OxyPlot; using System.ComponentModel; namespace OxyPlotSample { public class MainViewModel : INotifyPropertyChanged { private string title; private IList<DataPoint> points; public MainViewModel() { this.Title = "OxyPlotSample"; this.Points = new List<DataPoint> { new DataPoint(0, 4), new DataPoint(10, 13), new DataPoint(20, 15), new DataPoint(30, 16), new DataPoint(40, 12), new DataPoint(50, 12) }; } public string Title { get { return title; } set { title = value; this.NotifyPropertyChanged("Title"); } } public IList<DataPoint> Points { get { return points; } set { points = value; this.NotifyPropertyChanged("Points"); } } public event PropertyChangedEventHandler PropertyChanged; private void NotifyPropertyChanged(string name) { if(PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(name)); } } } }
mit
robn/jmap-rs
src/types.rs
1366
use std::collections::BTreeMap; use std::string::ToString; use std::default::Default; use std::ops::Deref; use rustc_serialize::json::{Json,ToJson}; use chrono::{DateTime,UTC,NaiveDateTime}; use parse::*; // subtypes shared across record types make_prop_type!(File, "File", blob_id: String => "blobId", typ: Option<String> => "type", name: Option<String> => "name", size: Option<u64> => "size" ); #[derive(Clone, PartialEq, Debug)] pub struct Date(pub DateTime<UTC>); impl Deref for Date { type Target = DateTime<UTC>; fn deref<'a>(&'a self) -> &'a Self::Target { &self.0 } } impl Default for Date { fn default() -> Date { Date(DateTime::<UTC>::from_utc(NaiveDateTime::from_timestamp(0, 0), UTC)) } } impl ToJson for Date { fn to_json(&self) -> Json { Json::String(self.format("%Y-%m-%dT%H:%M:%SZ").to_string()) } } impl FromJson for Date { fn from_json(json: &Json) -> Result<Date,ParseError> { match *json { Json::String(ref v) => { match v.parse::<DateTime<UTC>>() { Ok(dt) => Ok(Date(dt)), _ => Err(ParseError::InvalidStructure("Date".to_string())), } }, _ => Err(ParseError::InvalidJsonType("Date".to_string())), } } }
mit
vCaesar/gitea
integrations/release_test.go
4018
// Copyright 2017 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package integrations import ( "fmt" "net/http" "testing" "time" "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/test" "github.com/stretchr/testify/assert" "github.com/unknwon/i18n" ) func createNewRelease(t *testing.T, session *TestSession, repoURL, tag, title string, preRelease, draft bool) { req := NewRequest(t, "GET", repoURL+"/releases/new") resp := session.MakeRequest(t, req, http.StatusOK) htmlDoc := NewHTMLParser(t, resp.Body) link, exists := htmlDoc.doc.Find("form.ui.form").Attr("action") assert.True(t, exists, "The template has changed") postData := map[string]string{ "_csrf": htmlDoc.GetCSRF(), "tag_name": tag, "tag_target": "master", "title": title, "content": "", } if preRelease { postData["prerelease"] = "on" } if draft { postData["draft"] = "Save Draft" } req = NewRequestWithValues(t, "POST", link, postData) resp = session.MakeRequest(t, req, http.StatusFound) test.RedirectURL(resp) // check that redirect URL exists } func checkLatestReleaseAndCount(t *testing.T, session *TestSession, repoURL, version, label string, count int) { req := NewRequest(t, "GET", repoURL+"/releases") resp := session.MakeRequest(t, req, http.StatusOK) htmlDoc := NewHTMLParser(t, resp.Body) labelText := htmlDoc.doc.Find("#release-list > li .meta .label").First().Text() assert.EqualValues(t, label, labelText) titleText := htmlDoc.doc.Find("#release-list > li .detail h3 a").First().Text() assert.EqualValues(t, version, titleText) releaseList := htmlDoc.doc.Find("#release-list > li") assert.EqualValues(t, count, releaseList.Length()) } func TestViewReleases(t *testing.T) { defer prepareTestEnv(t)() session := loginUser(t, "user2") req := NewRequest(t, "GET", "/user2/repo1/releases") session.MakeRequest(t, req, http.StatusOK) // if CI is to slow this test fail, so lets wait a bit time.Sleep(time.Millisecond * 100) } func TestViewReleasesNoLogin(t *testing.T) { defer prepareTestEnv(t)() req := NewRequest(t, "GET", "/user2/repo1/releases") MakeRequest(t, req, http.StatusOK) } func TestCreateRelease(t *testing.T) { defer prepareTestEnv(t)() session := loginUser(t, "user2") createNewRelease(t, session, "/user2/repo1", "v0.0.1", "v0.0.1", false, false) checkLatestReleaseAndCount(t, session, "/user2/repo1", "v0.0.1", i18n.Tr("en", "repo.release.stable"), 2) } func TestCreateReleasePreRelease(t *testing.T) { defer prepareTestEnv(t)() session := loginUser(t, "user2") createNewRelease(t, session, "/user2/repo1", "v0.0.1", "v0.0.1", true, false) checkLatestReleaseAndCount(t, session, "/user2/repo1", "v0.0.1", i18n.Tr("en", "repo.release.prerelease"), 2) } func TestCreateReleaseDraft(t *testing.T) { defer prepareTestEnv(t)() session := loginUser(t, "user2") createNewRelease(t, session, "/user2/repo1", "v0.0.1", "v0.0.1", false, true) checkLatestReleaseAndCount(t, session, "/user2/repo1", "v0.0.1", i18n.Tr("en", "repo.release.draft"), 2) } func TestCreateReleasePaging(t *testing.T) { defer prepareTestEnv(t)() oldAPIDefaultNum := setting.API.DefaultPagingNum defer func() { setting.API.DefaultPagingNum = oldAPIDefaultNum }() setting.API.DefaultPagingNum = 10 session := loginUser(t, "user2") // Create enaugh releases to have paging for i := 0; i < 12; i++ { version := fmt.Sprintf("v0.0.%d", i) createNewRelease(t, session, "/user2/repo1", version, version, false, false) } createNewRelease(t, session, "/user2/repo1", "v0.0.12", "v0.0.12", false, true) checkLatestReleaseAndCount(t, session, "/user2/repo1", "v0.0.12", i18n.Tr("en", "repo.release.draft"), 10) // Check that user4 does not see draft and still see 10 latest releases session2 := loginUser(t, "user4") checkLatestReleaseAndCount(t, session2, "/user2/repo1", "v0.0.11", i18n.Tr("en", "repo.release.stable"), 10) }
mit
hansarnevartdal/CacheUpFront
CacheUpFront.Autofac/AppBuilderExtensions.cs
551
using Autofac; using CacheUpFront.Models; using CacheUpFront.Services; using Microsoft.AspNetCore.Builder; namespace CacheUpFront.Autofac { public static class AppBuilderExtensions { public static IApplicationBuilder UseEntityCache<TEntity>(this IApplicationBuilder app, IContainer container) where TEntity : IEntity { var localCacheService = container.Resolve<ILocalCacheService<TEntity>>(); localCacheService.LoadAndSubscribe().GetAwaiter().GetResult(); return app; } } }
mit
SpongePowered/Sponge
src/main/java/org/spongepowered/common/command/brigadier/tree/SpongePermissionWrappedLiteralCommandNode.java
2484
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package org.spongepowered.common.command.brigadier.tree; import com.mojang.brigadier.Command; import com.mojang.brigadier.builder.LiteralArgumentBuilder; import com.mojang.brigadier.tree.CommandNode; import net.minecraft.commands.CommandSourceStack; import org.checkerframework.checker.nullness.qual.Nullable; /** * Used as a marker to indicate that this root node is not Sponge native. */ public final class SpongePermissionWrappedLiteralCommandNode extends SpongeLiteralCommandNode { private @Nullable Command<CommandSourceStack> executor; public SpongePermissionWrappedLiteralCommandNode( final LiteralArgumentBuilder<CommandSourceStack> builder) { super(builder); for (final CommandNode<CommandSourceStack> argument : builder.getArguments()) { this.addChild(argument); } } @Override public void forceExecutor(final Command<CommandSourceStack> forcedExecutor) { this.executor = forcedExecutor; } @Override public Command<CommandSourceStack> getCommand() { final Command<CommandSourceStack> command = super.getCommand(); if (command != null) { return command; } return this.executor; } }
mit
quchunguang/test
testpy3/test_more.py
594
""" Created on 2012-12-11 @author: qcg """ def get_error(): return (2, 'error message') errno, errmsg = get_error() print(errno, errmsg) a, *b = [1, 2, 3, 4, 5] print(b) a = 1 b = 2 a, b = b, a print(a, b) if True: print('HI') points = [{'x': 2, 'y': 3}, {'x': 4, 'y': 1}] points.sort(key=lambda i: i['y']) print(points) mylist = ['item'] assert len(mylist) >= 1 mylist.pop() # assert len(mylist) >= 1 print(len("光da")) print(b'abcd\x65') a_byte = "各国abc".encode(encoding='gbk') print(len(a_byte)) print(a_byte.decode(encoding='gbk')) val = 'aa' print(isinstance(val, int))
mit
renber/SecondaryTaskbarClock
CalendarWeekView/Windows/SettingsWindow.Designer.cs
17362
namespace CalendarWeekView.Windows { partial class SettingsWindow { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.btnOk = new System.Windows.Forms.Button(); this.btnCancel = new System.Windows.Forms.Button(); this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabPage1 = new System.Windows.Forms.TabPage(); this.comboPlacement = new System.Windows.Forms.ComboBox(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.listboxDisplays = new System.Windows.Forms.CheckedListBox(); this.cbShowInTaskbars = new System.Windows.Forms.CheckBox(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.tabPage2 = new System.Windows.Forms.TabPage(); this.comboWeekRule = new System.Windows.Forms.ComboBox(); this.label7 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.txtDisplayFormat = new System.Windows.Forms.TextBox(); this.panelFontColor = new System.Windows.Forms.Panel(); this.label5 = new System.Windows.Forms.Label(); this.lblFontSample = new System.Windows.Forms.Label(); this.btnChangeFont = new System.Windows.Forms.Button(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.btnApply = new System.Windows.Forms.Button(); this.cbAutostart = new System.Windows.Forms.CheckBox(); this.tabControl1.SuspendLayout(); this.tabPage1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.tabPage2.SuspendLayout(); this.SuspendLayout(); // // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnOk.Location = new System.Drawing.Point(298, 356); this.btnOk.Name = "btnOk"; this.btnOk.Size = new System.Drawing.Size(75, 23); this.btnOk.TabIndex = 1; this.btnOk.Text = "Ok"; this.btnOk.UseVisualStyleBackColor = true; // // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnCancel.Location = new System.Drawing.Point(395, 356); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(75, 23); this.btnCancel.TabIndex = 2; this.btnCancel.Text = "Cancel"; this.btnCancel.UseVisualStyleBackColor = true; // // tabControl1 // this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tabControl1.Controls.Add(this.tabPage1); this.tabControl1.Controls.Add(this.tabPage2); this.tabControl1.Location = new System.Drawing.Point(12, 12); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; this.tabControl1.Size = new System.Drawing.Size(458, 338); this.tabControl1.TabIndex = 3; // // tabPage1 // this.tabPage1.Controls.Add(this.cbAutostart); this.tabPage1.Controls.Add(this.comboPlacement); this.tabPage1.Controls.Add(this.groupBox2); this.tabPage1.Controls.Add(this.label1); this.tabPage1.Location = new System.Drawing.Point(4, 22); this.tabPage1.Name = "tabPage1"; this.tabPage1.Padding = new System.Windows.Forms.Padding(3); this.tabPage1.Size = new System.Drawing.Size(450, 312); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "Integration"; this.tabPage1.UseVisualStyleBackColor = true; // // comboPlacement // this.comboPlacement.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.comboPlacement.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboPlacement.FormattingEnabled = true; this.comboPlacement.Location = new System.Drawing.Point(112, 6); this.comboPlacement.Name = "comboPlacement"; this.comboPlacement.Size = new System.Drawing.Size(330, 21); this.comboPlacement.TabIndex = 6; // // groupBox2 // this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox2.Controls.Add(this.listboxDisplays); this.groupBox2.Controls.Add(this.cbShowInTaskbars); this.groupBox2.Controls.Add(this.label2); this.groupBox2.Enabled = false; this.groupBox2.Location = new System.Drawing.Point(9, 70); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(433, 236); this.groupBox2.TabIndex = 5; this.groupBox2.TabStop = false; // // listboxDisplays // this.listboxDisplays.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.listboxDisplays.FormattingEnabled = true; this.listboxDisplays.Location = new System.Drawing.Point(10, 49); this.listboxDisplays.Name = "listboxDisplays"; this.listboxDisplays.Size = new System.Drawing.Size(418, 169); this.listboxDisplays.TabIndex = 3; // // cbShowInTaskbars // this.cbShowInTaskbars.AutoSize = true; this.cbShowInTaskbars.BackColor = System.Drawing.SystemColors.Window; this.cbShowInTaskbars.Checked = true; this.cbShowInTaskbars.CheckState = System.Windows.Forms.CheckState.Checked; this.cbShowInTaskbars.Enabled = false; this.cbShowInTaskbars.Location = new System.Drawing.Point(6, -1); this.cbShowInTaskbars.Name = "cbShowInTaskbars"; this.cbShowInTaskbars.Size = new System.Drawing.Size(121, 17); this.cbShowInTaskbars.TabIndex = 2; this.cbShowInTaskbars.Text = "Show on all displays"; this.cbShowInTaskbars.UseVisualStyleBackColor = false; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(6, 24); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(143, 13); this.label2.TabIndex = 2; this.label2.Text = "Only show on these displays:"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(6, 9); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(100, 13); this.label1.TabIndex = 3; this.label1.Text = "Location in taskbar:"; // // tabPage2 // this.tabPage2.Controls.Add(this.comboWeekRule); this.tabPage2.Controls.Add(this.label7); this.tabPage2.Controls.Add(this.label6); this.tabPage2.Controls.Add(this.txtDisplayFormat); this.tabPage2.Controls.Add(this.panelFontColor); this.tabPage2.Controls.Add(this.label5); this.tabPage2.Controls.Add(this.lblFontSample); this.tabPage2.Controls.Add(this.btnChangeFont); this.tabPage2.Controls.Add(this.label4); this.tabPage2.Controls.Add(this.label3); this.tabPage2.Location = new System.Drawing.Point(4, 22); this.tabPage2.Name = "tabPage2"; this.tabPage2.Padding = new System.Windows.Forms.Padding(3); this.tabPage2.Size = new System.Drawing.Size(450, 312); this.tabPage2.TabIndex = 1; this.tabPage2.Text = "Appearance"; this.tabPage2.UseVisualStyleBackColor = true; // // comboWeekRule // this.comboWeekRule.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboWeekRule.FormattingEnabled = true; this.comboWeekRule.Location = new System.Drawing.Point(131, 9); this.comboWeekRule.Name = "comboWeekRule"; this.comboWeekRule.Size = new System.Drawing.Size(313, 21); this.comboWeekRule.TabIndex = 12; // // label7 // this.label7.AutoSize = true; this.label7.Location = new System.Drawing.Point(12, 12); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(113, 13); this.label7.TabIndex = 11; this.label7.Text = "Week calculation rule:"; // // label6 // this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(186, 82); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(236, 39); this.label6.TabIndex = 10; this.label6.Text = "Available placeholders:\r\n %week% - Number of current calendar week\r\n %year% - The" + " year of the current calendar week"; // // txtDisplayFormat // this.txtDisplayFormat.AcceptsReturn = true; this.txtDisplayFormat.Location = new System.Drawing.Point(32, 79); this.txtDisplayFormat.Multiline = true; this.txtDisplayFormat.Name = "txtDisplayFormat"; this.txtDisplayFormat.Size = new System.Drawing.Size(148, 48); this.txtDisplayFormat.TabIndex = 9; this.txtDisplayFormat.WordWrap = false; // // panelFontColor // this.panelFontColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panelFontColor.Location = new System.Drawing.Point(223, 39); this.panelFontColor.Name = "panelFontColor"; this.panelFontColor.Size = new System.Drawing.Size(15, 15); this.panelFontColor.TabIndex = 7; // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(186, 41); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(34, 13); this.label5.TabIndex = 8; this.label5.Text = "Color:"; // // lblFontSample // this.lblFontSample.AutoSize = true; this.lblFontSample.Location = new System.Drawing.Point(49, 41); this.lblFontSample.Name = "lblFontSample"; this.lblFontSample.Size = new System.Drawing.Size(90, 13); this.lblFontSample.TabIndex = 4; this.lblFontSample.Text = "Font Sample Text"; // // btnChangeFont // this.btnChangeFont.Location = new System.Drawing.Point(369, 36); this.btnChangeFont.Name = "btnChangeFont"; this.btnChangeFont.Size = new System.Drawing.Size(75, 23); this.btnChangeFont.TabIndex = 4; this.btnChangeFont.Text = "Change"; this.btnChangeFont.UseVisualStyleBackColor = true; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(12, 63); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(76, 13); this.label4.TabIndex = 1; this.label4.Text = "Display format:"; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(12, 41); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(31, 13); this.label3.TabIndex = 0; this.label3.Text = "Font:"; // // btnApply // this.btnApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnApply.Location = new System.Drawing.Point(217, 356); this.btnApply.Name = "btnApply"; this.btnApply.Size = new System.Drawing.Size(75, 23); this.btnApply.TabIndex = 4; this.btnApply.Text = "Apply"; this.btnApply.UseVisualStyleBackColor = true; // // cbAutostart // this.cbAutostart.AutoSize = true; this.cbAutostart.Location = new System.Drawing.Point(9, 32); this.cbAutostart.Name = "cbAutostart"; this.cbAutostart.Size = new System.Drawing.Size(180, 17); this.cbAutostart.TabIndex = 7; this.cbAutostart.Text = "Automatically start with Windows"; this.cbAutostart.UseVisualStyleBackColor = true; // // SettingsWindow // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(479, 391); this.Controls.Add(this.btnApply); this.Controls.Add(this.tabControl1); this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnOk); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; this.Name = "SettingsWindow"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Settings"; this.tabControl1.ResumeLayout(false); this.tabPage1.ResumeLayout(false); this.tabPage1.PerformLayout(); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.tabPage2.ResumeLayout(false); this.tabPage2.PerformLayout(); this.ResumeLayout(false); } #endregion private System.Windows.Forms.Button btnOk; private System.Windows.Forms.Button btnCancel; private System.Windows.Forms.TabControl tabControl1; private System.Windows.Forms.TabPage tabPage1; private System.Windows.Forms.ComboBox comboPlacement; private System.Windows.Forms.GroupBox groupBox2; private System.Windows.Forms.CheckedListBox listboxDisplays; private System.Windows.Forms.CheckBox cbShowInTaskbars; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label1; private System.Windows.Forms.TabPage tabPage2; private System.Windows.Forms.Label label4; private System.Windows.Forms.Label label3; private System.Windows.Forms.Button btnChangeFont; private System.Windows.Forms.Panel panelFontColor; private System.Windows.Forms.Label label5; private System.Windows.Forms.Label lblFontSample; private System.Windows.Forms.TextBox txtDisplayFormat; private System.Windows.Forms.Label label6; private System.Windows.Forms.Button btnApply; private System.Windows.Forms.ComboBox comboWeekRule; private System.Windows.Forms.Label label7; private System.Windows.Forms.CheckBox cbAutostart; } }
mit
frappe/frappe
frappe/printing/doctype/letter_head/letter_head.py
2095
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: MIT. See LICENSE import frappe from frappe.utils import is_image, flt from frappe.model.document import Document from frappe import _ class LetterHead(Document): def before_insert(self): # for better UX, let user set from attachment self.source = 'Image' def validate(self): self.set_image() self.validate_disabled_and_default() def validate_disabled_and_default(self): if self.disabled and self.is_default: frappe.throw(_("Letter Head cannot be both disabled and default")) if not self.is_default and not self.disabled: if not frappe.db.exists('Letter Head', dict(is_default=1)): self.is_default = 1 def set_image(self): if self.source=='Image': if self.image and is_image(self.image): self.image_width = flt(self.image_width) self.image_height = flt(self.image_height) dimension = 'width' if self.image_width > self.image_height else 'height' dimension_value = self.get('image_' + dimension) self.content = f''' <div style="text-align: {self.align.lower()};"> <img src="{self.image}" alt="{self.name}" {dimension}="{dimension_value}" style="{dimension}: {dimension_value}px;"> </div> ''' frappe.msgprint(frappe._('Header HTML set from attachment {0}').format(self.image), alert = True) else: frappe.msgprint(frappe._('Please attach an image file to set HTML'), alert = True, indicator = 'orange') def on_update(self): self.set_as_default() # clear the cache so that the new letter head is uploaded frappe.clear_cache() def set_as_default(self): from frappe.utils import set_default if self.is_default: frappe.db.sql("update `tabLetter Head` set is_default=0 where name != %s", self.name) set_default('letter_head', self.name) # update control panel - so it loads new letter directly frappe.db.set_default("default_letter_head_content", self.content) else: frappe.defaults.clear_default('letter_head', self.name) frappe.defaults.clear_default("default_letter_head_content", self.content)
mit
babel/babel-preset-env
test/fixtures/preset-options/use-builtins-node/expected.js
131
import "core-js/modules/es7.string.pad-start"; import "core-js/modules/es7.string.pad-end"; import "regenerator-runtime/runtime";
mit